Building Ruby Gems Cheat Sheet

Here are some quick commands for building and installing ruby gems locally. This is just for reference; I’ve been meaning to make more of these kinds of posts.

Bump the Gem Version

To bump to version 1.0:

echo "1.0" > VERSION

Generate the Gemspec

rake gemspec

Build the Gem

gem build ./hello_world.gemspec

Install the Gem

gem install ./hello_world.gem
Copyright Tech 2019