Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Quickly build out the files needed for a gem, potentially stored in a Gist (MicroGem)
Ruby
Branch: master

Merge branch 'micro_not_mini' of git://github.com/jqr/micro-cutter

* 'micro_not_mini' of git://github.com/jqr/micro-cutter:
  Consistent naming.
latest commit 4092f69325
@tjh authored

README.md

Micro Cutter


Create the base files needed for a micro gem (potentially stored in a gist).

Usage

Call the executable, passing a camel cased class name:

micro-cutter ActsAsBoolean

This creates boilerplate files (overwriting any already there):

  • README.md
  • acts_as_boolean.gemspec
  • acts_as_boolean.rb
  • acts_as_boolean_spec.rb

Using a Gist to store your MicroGem

Head to gist.github.com and create a gist:

  • Give it a good name
  • Set the filename to README.md
  • Add some dummy content
  • Click "Create Public Gist" (or private if you have trouble sharing)

Update the gist from your new MicroGem:

git clone git@gist.github.com:YOUR_GIST_ID.git YOUR_DESIRED_FOLDER_NAME
cd YOUR_DESIRED_FOLDER_NAME
micro-cutter YourClassName
git add .
git commit -v
git push origin master

Credits

Something went wrong with that request. Please try again.