Isaac Sloan - Web Developer, Photographer, Musician and Citizen of Earth
Banner700

Modern Gem Crafting in Ruby

May 25, 2013

Here is the most modern approach to gem crafting with Bundler:

bundle gem your_gem
cd your_gem

edit your_gem.gemspec and add description, summary and optional website. Add required gems such as rspec to the Gemfile.

rspec --init 
touch spec/your_gem_spec.rb

Write good tests. Add your code to lib/your_gem.rb. When you're finished its time to build and push to rubygems.org:

Modern Gem Crafting in Ruby