-
Notifications
You must be signed in to change notification settings - Fork 163
Starting a new project
slothbear edited this page Aug 22, 2010
·
3 revisions
Jeweler provides a generator. It requires you to setup your name and email for git and your username and token for GitHub.
This is the most basic usage:
jeweler the-perfect-gem
This will prepare a project in the ‘the-perfect-gem’ directory, setup to use Jeweler.
It also supports a number of options:
-
--create-repoin addition to preparing a project, it create an repo up on GitHub and enable RubyGem generation -
--testunitgenerate test_helper.rb and test ready for test/unit -
--minitestgenerate test_helper.rb and test ready for minitest -
--shouldagenerate test_helper.rb and test ready for shoulda (this is the default) -
--rspecgenerate spec_helper.rb and spec ready for rspec -
--bacongenerate spec_helper.rb and spec ready for bacon -
--rubyforgesetup releasing to rubyforge
Jeweler respects the JEWELER_OPTS environment variable. Want to always use RSpec, and you’re using bash? Add this to ~/.bashrc:
export JEWELER_OPTS="--rspec"