Sha256: 64595da565f4386d25508f9e26e65ad999f504bb721b2e11b4349217f2dc3e4d
Contents?: true
Size: 1.13 KB
Versions: 12
Compression:
Stored size: 1.13 KB
Contents
namespace :release do task :prepare => [:reversion, :authors, :gemspec] task :all => ['release:github', 'release:gemcutter'] desc 'Release on github' task :github => :prepare do name, version = GEMSPEC.name, GEMSPEC.version sh('git', 'add', 'MANIFEST', 'CHANGELOG', 'AUTHORS', "#{name}.gemspec", "lib/#{name}/version.rb") puts <<-INSTRUCTIONS ================================================================================ I added the relevant files, you can commit them, tag the commit, and push: git commit -m 'Version #{version}' git tag -a -m '#{version}' '#{version}' git push ================================================================================ INSTRUCTIONS end desc 'Release on gemcutter' task :gemcutter => ['release:prepare', :package] do name, version = GEMSPEC.name, GEMSPEC.version puts <<-INSTRUCTIONS ================================================================================ To publish to gemcutter do following: gem push pkg/#{name}-#{version}.gem ================================================================================ INSTRUCTIONS end end
Version data entries
12 entries across 12 versions & 3 rubygems