Simple Rails generator to create a class in the lib directory with a matching spec.
Add this line to your application's Gemfile:
gem 'lib-generator'
And then execute:
$ bundle
Or install it yourself as:
$ gem install lib-generator
Use like any rails generator.
rails g lib foo/bar
Will generate
lib/foo/bar.rb
spec/lib/foo/bar_spec.rb
- Fork it
- 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