Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to create a new Ruby gem?

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?

like image 849
Daniel Kehoe Avatar asked Dec 05 '10 00:12

Daniel Kehoe


1 Answers

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.

like image 53
Andrew Avatar answered Oct 03 '22 23:10

Andrew