A Framework for rapidly building RubyCocoa applications
Rucola is a light weight framework that helps you write RubyCocoa apps. It allows you to build, test, and deploy applications using rake commands, eliminating the need to use XCode for the most common tasks.
Rucola provides a set of generators to help you generate controllers, window controllers, and document-based applications. It also provides APIs for simplifying some of Objective-C’s ways of doing things.
- RubyCocoa 0.13.2 That’s NOT the one currently included with Leopard
- For testing it’s adviced to install the following gems: test-spec, mocha, zentest (autotest)
$ sudo gem install rucola
Demonstration of usage
Generating an application skeleton
$ rucola MyApp -a "Your Name"
Running this command will give you a complete, working application with a single window already bound to your application controller.
Running an application
Documentation can be found here.
Sample apps can be found at:
svn co svn://rubyforge.org/var/svn/rucola/extras/examples/
There’s a basic TextMate bundle which contains only 4 commands which are the equivalent of the “go to file” commands in the rails bundle. With these going from a controller to it’s test/model/view file is only a shortcut away. To get it:
cd ~/Library/Application\ Support/TextMate/Bundles/ svn co svn://rubyforge.org/var/svn/rucola/extras/Rucola.tmbundle
There’s a crash reporter plugin and a ActiveRecord plugin available. Check their descriptions with:
cd MyApp script/plugin list
Or install them with:
cd MyApp script/plugin install SACrashReporter
How to submit patches
Browse the git repo online at:
The latest version can be checked out with:
$ git clone git://github.com/alloy/rucola.git
This code is free to use under the terms of the MIT license.
Comments are welcome. Send an email via the forum