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

Version Path
innate-2023.01.06 tasks/release.rake
innate-2015.10.28 tasks/release.rake
nagoro-2013.03 tasks/release.rake
innate-2013.02.21 tasks/release.rake
innate-2013.02 tasks/release.rake
innate-2012.12 tasks/release.rake
innate-2012.03 tasks/release.rake
pgpass-2012.01.18 tasks/release.rake
pgpass-2012.01 tasks/release.rake
innate-2011.12 tasks/release.rake
innate-2011.10 tasks/release.rake
innate-2011.04 tasks/release.rake