This card describes our current workflow.
Until May 2011
our gems
Show archive.org snapshot
have been created with Jeweler, which is a helper library to package code into a gem. You know a gem was cut with Jeweler if you see the word jeweler
in a gem project's Rakefile
.
This note describes how to update a gem that was cut using Jeweler. Note that this can be traumatic the first time. It would be great to have an easier workflow for this. Jeweler is deprecated these days because you can
now cut gems more easily using Bundler.
git clone git@github.com:makandra/aegis.git
rake version:bump:<major|minor|patch>
. This will create an unpushed commit for the bump. If the rake task doesn't exist, you are probably defining the gem version in the Rakefile
instead of in VERSION
. Change this.rake release
. This will do many things for you:
rake release
will sometimes build and push the .gem
package to RubyGems.org. This seems to happen in some projects and not in others. Check the console output if that has already happened. If not:
rake build
gem push pkg/[GEMNAME]-[VERSION].gem
sudo gem install GEMNAME
git clone git@github.com:makandra/aegis.git
rake version:bump:<major|minor|patch>
. This will create an unpushed commit for the bump.rake gemspec
rake build
gem push pkg/[GEMNAME]-[VERSION].gem
sudo gem install GEMNAME