vendorificator.gemspec in vendorificator-0.4.0 vs vendorificator.gemspec in vendorificator-0.5.git.v0.4.0.17.g26d50d8
- old
+ new
@@ -14,17 +14,23 @@
gem.files = `git ls-files`.split($\)
gem.executables = gem.files.grep(%r{^bin/}).map{ |f| File.basename(f) }
gem.test_files = gem.files.grep(%r{^(test|spec|features)/})
gem.name = "vendorificator"
gem.require_paths = ["lib"]
- gem.version = Vendorificator::VERSION
+ gem.version = if ENV['PRERELEASE']
+ require 'minigit'
+ git_desc = MiniGit::Capturing.new(__FILE__).describe.strip.gsub('-', '.')
+ Gem::Version.new(Vendorificator::VERSION).bump.to_s << ".git.#{git_desc}"
+ else
+ Vendorificator::VERSION
+ end
gem.add_dependency 'escape'
gem.add_dependency 'thor', '>= 0.18.1'
gem.add_dependency 'minigit', '>= 0.0.3'
gem.add_dependency 'awesome_print'
- gem.add_development_dependency 'aruba', '0.5.1'
+ gem.add_development_dependency 'aruba', '0.5.3'
gem.add_development_dependency 'cucumber', '~> 2.0'
gem.add_development_dependency 'mocha', '>= 0.14.0'
gem.add_development_dependency 'chef', '>= 10.16.0' unless is_jruby
gem.add_development_dependency 'berkshelf' unless is_jruby || !is_1_9_plus
gem.add_development_dependency 'vcr'