How to create a new Ruby gem?

Daniel Kehoe picture Daniel Kehoe · Dec 5, 2010 · Viewed 12.4k times · Source

To create a new Ruby gem, should I use Jeweler or should I use Bundler's built-in gem skeleton to create a base gem? What are the differences that matter?

Answer

Andrew picture Andrew · Jul 26, 2012

Use Bundler

From the command line:

bundle gem your_new_gem

This will create a directory called your_new_gem with just a basic set of files and directory structure that are now considered best-practice. It's quick, easy, and a great place to start.