Sha256: 29ccc772c18caf198a8a88a94afc485b5a23fc909ac071011399e39d7bc653c9
Contents?: true
Size: 1.36 KB
Versions: 11
Compression:
Stored size: 1.36 KB
Contents
namespace :release do task :all => [:release_github, :release_rubyforge] desc 'Display instructions to release on github' task :github => [:jquery, :reversion, :authors, :gemspec] do name, version = GEMSPEC.name, GEMSPEC.version sh('git', 'add', 'MANIFEST', 'doc/CHANGELOG', 'doc/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 # TODO: Not tested desc 'Display instructions to release on rubyforge' task :rubyforge => [:jquery, :reversion, :authors, :gemspec, :package] do name, version = GEMSPEC.name, GEMSPEC.version puts <<INSTRUCTIONS To publish to rubyforge do following: rubyforge login rubyforge add_release #{name} #{name} '#{version}' pkg/#{name}-#{version}.gem After you have done these steps, see: rake release:rubyforge_archives INSTRUCTIONS end desc 'Display instructions to add archives after release:rubyforge' task :rubyforge_archives do name, version = GEMSPEC.name, GEMSPEC.version puts "Adding archives for distro packagers is:", "" Dir["pkg/#{name}-#{version}.{tgz,zip}"].each do |file| puts "rubyforge add_file #{name} #{name} '#{version}' '#{file}'" end puts end end
Version data entries
11 entries across 11 versions & 4 rubygems