Skip to content

Instantly share code, notes, and snippets.

@stungeye
Created May 29, 2010 20:35
Show Gist options
  • Save stungeye/418534 to your computer and use it in GitHub Desktop.
Save stungeye/418534 to your computer and use it in GitHub Desktop.
Using Jeweler to Build a Gem
sudo apt-get install jeweler
jeweler gem_name --testunit
cd gem_name
touch lib/gem_name.rb <unless you already have code, in which case move it to /lib>
rake version:write
git add <any new files>
git commit -m 'Existing files added'
git remote add origin git@github.com:stungeye/gem_name.git
git push origin master
# Write the library...
rake test
rake version:bump:minor
rake build
gem push pkg/gem_name.git
git tag -a v0.1.0 -m 'version 0.1.0'
git push --tags
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment