Rootstrap way ® to generate gems
rsgem
- Rootstrap's gem generatorrsgem
is a tool to help you start developing gems with the defaults we use at Rootstrap.
$ gem install rsgem
We highly suggest to not include rsgem
in your Gemfile.
rsgem
is not a library, and should not affect the dependency tree of your project.
rsgem new NAME
RSGem will solve the following tasks for you:
rake code_analysis
.rsgem new foo
Creates a new gem called foo.
rsgem new bar --ci=github_actions
Creates a new gem called bar that uses Github Actions as the CI provider.
rsgem new foo_bar --bundler=--ext
Creates a new gem called foo_bar and passes the --ext flag to bundler.
rsgem new bar_foo --bundler='--several --flags'
Creates a new gem passing several flags to bundler.
rsgem -h
Displays global help.
rsgem new -h
Displays help for the new
command.
After checking out the repo, run bin/setup
to install dependencies. Then, run bundle exec rspec
to run the tests. You can also run bin/console
for an interactive prompt that will allow you to experiment.
To install this gem onto your local machine, run bundle exec rake install
. To release a new version, update the version number in version.rb
, and then run bundle exec rake release
, which will create a git tag for the version, push git commits and tags, and push the .gem
file to rubygems.org.
Bug reports and pull requests are welcome on GitHub at https://github.com/rootstrap/rsgem. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the code of conduct.
The gem is available as open source under the terms of the MIT License.
Everyone interacting in the Rootstrap project's codebases, issue trackers, chat rooms and mailing lists is expected to follow the code of conduct.