Project

mechanic

0.0
No commit activity in last 3 years
No release in over 3 years
Makes your engines better.
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

~> 0.4.11

Runtime

>= 1.1
~> 1.10.2
= 3.2.8
 Project Readme

engine

Mechanic Build Status

Mechanic creates engines the Group Buddies way. It's perfect if you just want to hit the groud running and not worrying on doing those same configuration steps everytime.

Installation

First install the mechanic gem:

gem install mechanic

Then run:

mechanic enginename --mountable

or

mechanic enginename (same as --full)

This will create a Rails mountable engine in enginename. This script creates a new new git repository. It is not meant to be used against an existing repo.

Gemfile

To see the latest and greatest gems, look at Mechanic's templates/gemspec_additions, which will be appended to the default generated enginename.gemspec.

It includes application gems like:

And development gems like:

Other goodies

Mechanic also comes with:

  • A few nice time formats.
  • An email validator.
  • A default .gitignore file.

Github

You can optionally create a Github repository:

mechanic app --github organization/project

This has the same effect as running:

hub create organization/project

Capybara Webkit

You can optionally not include Capybara Webkit (which depends on QT being installed on your machine):

mechanic app --webkit false

Dependencies

Some gems included in Mechanic have native extensions. You should have GCC installed on your machine before generating an app with Mechanic.

Use OS X GCC Installer for Snow Leopard (OS X 10.6).

Use Command Line Tools for XCode for Lion (OS X 10.7) or Mountain Lion (OS X 10.8).

We use Capybara Webkit for full-stack Javascript integration testing. It requires QT. Instructions for installing QT are here.

PostgreSQL needs to be installed and running for the db:create rake task.

Issues

If you have problems, please create a Github Issue.

Contributing

  1. Fork it
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Add tests and make sure you break none
  4. Commit your changes (git commit -am 'Add some feature')
  5. Push to the branch (git push origin my-new-feature)
  6. Create new Pull Request

Credits

groupbuddies

Mechanic is maintained and funded by GB - Software As A Service, Lda.

Mechanic's idea came from thoughtbot's suspenders, so some of the code is based on it.

License

Mechanic is Copyright © 2008-2012 Group Buddies. It is free software, and may be redistributed under the terms specified in the LICENSE file.