I love jeweler for releasing my gems, however I tend to forget how it is working, so here’s my release workflow.
1. Bump and Commit
Bump the version (usually in lib/a_perfect_gem/version.rb
) and git commit
my latest changes
2. Doublecheck
git status
to check if my working tree is clean
git status # On branch master nothing to commit (working directory clean)
Otherwise jeweler will complain
$ rake release rake aborted! Hey buddy, try committing them files first
3. Release
Finally do
$ rake release
which will
- tag the commit with
"v#{A_PERFECT_GEM::VERSION}"
- push the commit(s) to origin
- push the tag to origin
- build the gem
- push the gem to gemcutter
Props to [technicalpickles].