Skip to content

Instantly share code, notes, and snippets.

@mbleigh
Created October 20, 2009 17:28
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mbleigh/214442 to your computer and use it in GitHub Desktop.
Save mbleigh/214442 to your computer and use it in GitHub Desktop.
# Once you've included your Jeweler tasks and your Jeweler::Gemcutter tasks...
namespace :release do
%w(patch minor major).each do |level|
desc "Tag a #{level} version and push it to Gemcutter."
task level.to_sym => ["version:bump:#{level}", "release", "gemcutter:release"]
end
end
# Now, to tag a new version, push it to GitHub and release your project on Gemcutter, you just have to do:
# $ rake release:(patch|minor|major)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment