GemPolish
Command line tool to help with gem creation and maintenance. Is meant to be used in
addition to bundler
's gem
command.
Installation
$ gem install gem_polish
Usage
Provides the executable gem_polish
, which boasts the following subcommands:
- polish
Is meant to be used inside the directory a newly created gem (bundle gem GEM_NAME
)
Available options:
Option | Alias | Result |
---|---|---|
--description |
-d |
Takes a string and writes it to the gemspec and the README |
--rspec_conf |
-r |
Adds additional rspec configuration, check lib/templates |
--travis |
-t |
Takes several ruby versions travis will use |
--coverage |
-c |
Adds coveralls to your gem |
--badges |
-b |
Adds badge fury, gemnasium, travis, coveralls and code climate and/or badges to your README |
--git_user |
-g |
Git user name used to link to your badges. Defaults to the information inside of your .gitconfig |
--no_default |
-n |
Disables all default values provided in your .gem_polish.yml file |
Unless --no_default
is set, polish_gem
will look into your home
directory for a .gem_polish.yml
file, that can provide default values
for gem polishing. Check the examples
folder for its formatting.
Here's an example of the syntax:
# inside a new gem called test
gem_polish polish -nc -d 'a test gem' -t 1.9.3 jruby-1.7.8 -b travis coveralls
This would polish the test gem with coveralls support,
circumventing the .gem_polish.yml
file, adding a description,
using two ruby versions for travis and adding two badges to the
README file.
For ease of use you can issue polish_gem
instead of gem_polish
polish
directly on the command line.
The additional executable create_gem
combines gem creation and polishing:
create_gem my_new_gem
This will create the new gem my_new_gem
. Arguments of polish_gem
can
be passed to override defaults or to provide a description.
create_gem my_new_gem -d 'Does nothing so far'
At the moment he bundle gem
command is invoked with -t rspec
to
provide the rspec
test framework by default.
- version
Provides a version reader and a version bumper. Call gem_polish
version
to learn about its usage. Also includes support to commit your
version bump directly through git
.
Contributing
- Fork it ( http://github.com/LFDM/gem_polish/fork )
- Create your feature branch (
git checkout -b my-new-feature
) - Commit your changes (
git commit -am 'Add some feature'
) - Push to the branch (
git push origin my-new-feature
) - Create new Pull Request