Sha256: 8ddcfc726b182b86661702c9311f3904973f16f7b45e58a211789c90fef94358

Contents?: true

Size: 1.82 KB

Versions: 22

Compression:

Stored size: 1.82 KB

Contents

namespace :release do
  task :prepare => [:reversion, :authors, :gemspec]
  task :all => ['release:github', 'release:rubyforge', '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 rubyforge'
  task :rubyforge => ['release:prepare', :package] do
    name, version = GEMSPEC.name, GEMSPEC.version

    pkgs = Dir["pkg/#{name}-#{version}.{tgz,zip}"].map{|file|
      "rubyforge add_file #{name} #{name} '#{version}' '#{file}'"
    }

    puts <<-INSTRUCTIONS
================================================================================

To publish to rubyforge do following:

rubyforge login
rubyforge add_release #{name} #{name} '#{version}' pkg/#{name}-#{version}.gem

To publish the archives for distro packagers:

#{pkgs.join "\n"}

================================================================================
    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

22 entries across 22 versions & 4 rubygems

Version Path
mailit-2011.01.27 tasks/release.rake
innate-2011.01 tasks/release.rake
ffi-tk-2010.08.23 tasks/release.rake
ver-2010.08 tasks/release.rake
ffi-tk-2010.08 tasks/release.rake
innate-2010.07 tasks/release.rake
innate-2010.06.18 tasks/release.rake
mailit-2010.06.03 tasks/release.rake
ffi-tk-2010.06 tasks/release.rake
innate-2010.04 tasks/release.rake
innate-2010.03 tasks/release.rake
ffi-tk-2010.03 tasks/release.rake
ffi-tk-2010.02 tasks/release.rake
ver-2010.02 tasks/release.rake
ffi-tk-2010.01 tasks/release.rake
innate-2010.01 tasks/release.rake
ffi-tk-2010.01.02 tasks/release.rake
ver-2009.12.14 tasks/release.rake
ffi-tk-2009.12.14 tasks/release.rake
ver-2009.11.29 tasks/release.rake