Turbo

WARNING: At this point, this is entirely untested and may contain tons of bugs. Consider this alpha code at best, use it if it works for you but don't say I didn't warn you. :)

Rails Engine generator inspired by [EngineX], [Combustion] and [Bundler]'s Gem generator. I've tried to take the best of both generators, combined with an embedded dummy app for testing similar to [Combustion]'s.

Generated Engines should be compatible with Rails 3.0 or 3.1, but again it's untested.

Installation

Install the turbo gem in the usual ways:

Rubygems: gem install turbo

Github: git clone git://github.com/stevenh512/turbo.git cd turbo bundle install rake install

Bundler: gem 'turbo' #, :git => git://github.com/stevenh512/turbo.git

Usage

Generate a ready-to-run Rails 3 engine.

$ turbo engine_name [--test-framework=TEST_FRAMEWORK]

TEST_FRAMEWORK is optional and can be either rspec or test_unit. It defaults to test_unit.

If you installed with Bundler you may need to use bundle exec.

Note on tests

I haven't written any tests for this code, honestly I don't know how I'd test most of it. If you figure it out and would like to contribute any tests, feel free, I'd appreciate it. I prefer RSpec but I can work with Test::Unit too. :)

Note on Patches/Pull Requests

  • Fork the project.
  • Make your feature addition or bug fix.
  • Commit, do not mess with Rakefile, version, or history. (if you want to have your own version, that is fine but bump version in a commit by itself I can ignore when I pull)
  • Send me a pull request. Bonus points for topic branches.

Copyright (c) <%= Date.today.year %> <%= author %>. See MIT-LICENSE for details.