# -*- encoding: utf-8 -*- # # Gem::Specification.new do |s| # avoid shelling out to run git every time the gemspec is evaluated # # @see spec/gemspec_spec.rb # gemfiles_cache = File.join(File.dirname(__FILE__), '.gemfiles') if File.exists?(gemfiles_cache) gemfiles = File.open(gemfiles_cache, "r") {|f| f.read} # normalize EOL gemfiles.gsub!(/\r\n/, "\n") else # .gemfiles missing, run 'rake gemfiles' to create it # falling back to 'git ls-files'" gemfiles = `git ls-files` end s.name = "repo_manager" s.version = File.open(File.join(File.dirname(__FILE__), 'VERSION'), "r") { |f| f.read } s.platform = Gem::Platform::RUBY s.authors = ["Robert Wahler"] s.email = ["robert@gearheadforhire.com"] s.homepage = "http://rubygems.org/gems/repo_manager" s.summary = "CLI for batch management of multiple Git repositories" s.description = "CLI for batch management of multiple Git repositories. Repositories don't need to be related." s.required_rubygems_version = ">= 1.3.6" s.rubyforge_project = "repo_manager" s.add_dependency 'term-ansicolor', '~> 1.0.4' s.add_dependency 'logging', '>= 1.6.2' s.add_dependency 'slim', '~> 1.0.4' s.add_dependency 'mustache', '= 0.99.4' s.add_dependency "chronic", ">= 0.6.5" s.add_dependency "thor", ">= 0.15.0" s.add_dependency 'git', '= 1.2.5' # lock down tins from term-ansicolor since newer versions require Ruby > 2.0 s.add_dependency 'tins', '~> 1.6.0' s.add_development_dependency "bundler", ">= 1.0.14" s.add_development_dependency "rspec", ">= 2.6.0" s.add_development_dependency "cucumber", ">= 1.0" s.add_development_dependency "aruba", "= 0.4.5" s.add_development_dependency "rake", ">= 0.8.7" # guard, watches files and runs specs and features # # Guard is locked at 1.0.3 due to high CPU usage after returning from screen # lock on Ubuntu 11.04. Wait for the 1+ version of Guard to mature and listen # gem fixes are applied # # https://github.com/guard/listen/issues/44 # s.add_development_dependency "guard", ">= 1.0.3" s.add_development_dependency "guard-rspec", ">= 0.7" s.add_development_dependency "guard-cucumber", ">= 0.8" s.files = gemfiles.split("\n") s.executables = gemfiles.split("\n").map{|f| f =~ /^bin\/(.*)/ ? $1 : nil}.compact s.require_paths = ["lib"] s.rdoc_options = [ '--title', 'RepoManager Documentation', '--main', 'README.markdown', '--line-numbers', '--inline-source' ] end