Project

creategem

0.0
No commit activity in last 3 years
No release in over 3 years
Creategem creates a scaffold project for new gems. You can choose between Github and Bitbucket, Rubygems or Geminabox, with executable or without, etc.
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

Runtime

~> 1.3
~> 0.19
 Project Readme

Creategem

Gem Version Build Status Dependency Status Code Climate Coverage Status

Creategem creates a scaffold project for a new gem together with remote repository (Github or Bitbucket) and is ready to be released in a public or private gem server.

This project was inspired by the Bundler's bundle gem GEM command and by the great article Deveoping a RubyGem using Bundler.

Similar to what Bundler's bundle gem command does, this gem generates a scaffold with all files you need to start, but it also has some additional features.

Features:

  • automatically creates local and remote git repository (github or bitbucket) for your gem
  • option to create private github and bitbucket repositories
  • automatically release patches, minor and major versions without having to manually increase versions (thanks to gem-release)
  • executable based on Thor (can be omited with --no-executable)
  • test infrastructure based on minitest and minitest-reporters
  • release to rubygems.org or to private geminabox gem server
  • optionaly create rails plugin gem with (mountable) engine
  • readme with badges for travis, codeclimate, coveralls, etc. for public projects (like the badges you see above)

Installation

$ gem install creategem

Usage

$ creategem gem GEM_NAME [--private] [--no-executable] [--bitbucket]

When called without any options it is assumed that you want a gem with an executable and hosted in a public github git repository, and released to rubygems.org.

During the creation you will be asked for your github or bitbucket user name (only the first time, as the user name is saved in your git global config). You will also be asked to enter your github or bitbucket password when the remote repository is created for you.

When you use the --private option a remote repository is made private and on release the gem is pushed to a private Geminabox server.

Per default a gem is created with an executable based on Thor, but you can omit the executable with the option --no-executable.

After you create the gem, edit your gemspec and change the summary and the description, commit the changes to git and invoke rake release_patch and your gem is being released.

$ creategem plugin GEM_NAME [--engine] [--mountable] [--private] [--executable] 

creategem plugin creates a rails plugin. You can also specify if the plugin should be an engine (--engine) or a mountable engine (--mountable).

Development

After checking out the repo, run bin/setup to install dependencies. Then, run rake test 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, run bundle exec rake release_patch, bundle exec rake release_minor, oder bundle exec rake release_major, which will create a git tag for the version, push git commits and tags, and push the .gem file to https://rubygems.org.

Contributing

Bug reports and pull requests are welcome on Github at https://github.com/igorj/creategem.