bundle gem
$ bundle gem GEM [--bin or -b] [--test=TESTFRAMEWORK] [--edit=TEXTEDITOR] [--ext]
Options:
--bin or -b
: Generate a binary for your library.
--coc
: Generate a code of conduct file.
--edit
: Open generated gemspec in the specified editor (defaults to $EDITOR
or $BUNDLER_EDITOR
)
--ext
: Generate a skeleton for a C-extension.
--mit
: Generate an MIT license file.
--test
: Generate a test directory for your library:
rspec
is the default, but minitest
is also supported.
When run for the first time, bundle gem
will ask for your preferences regarding test framework, code of conduct, and MIT license. These preferences will be stored in ~/.bundle/config
for future runs.
$ rake -T
rake build # Build GEM-0.1.0.gem into the pkg directory
rake install # Build and install GEM-0.1.0.gem into system gems
rake install:local # Build and install GEM-0.1.0.gem into system gems without network access
rake release # Create tag v0.1.0 and build and push GEM-0.1.0.gem to Rubygems
rake test # Run tests