The organiser, Ronie Uliana, There are some interesting rules for others who might want to run a RailsRally for people outside of Brazil:
- Teams of any size – you just have to figure out how you’re going to split the prizes!
- Competition runs for 7 days
- To prevent you pre-writing your application, there will be a theme for all applications, announced at the start of the competition.
- No external gems allowed. I thought this was a harsh limitation, but Ronie said they will support the native-compiled gems like Hpricot and RMagik, and other gems could be frozen into your application code base with Gems on Rails [summary below].
Gems on Rails
This Rails plugin allows you to freeze or link a gem into your rails source (inspired by Rick Olsen’s gems plugin)
To install the plugin:
> gem install gemsonrails > cd rails-app-folder > gemsonrails
rake gems:freeze GEM=gem_to_freeze rake gems:link GEM=gem_to_link rake gems:unfreeze GEM=gem_to_unfreeze_or_unlink
The gems are loaded into
vendor/gems and are loaded automatically. Any rake task files from the gems are also automatically loaded via your root Rakefile (that is, if you type
rake -T from your application path the rake files in your gems are included; very nifty)
This plugin is experimental, and will invoke an
init.rb file in the root of the gem if it has one, else it just adds the gem into the LOAD_PATH, and you’ll need to
require it as per normal.
If the target gem doesn’t have an
init.rb, you can create one in the
vendor/gems/<gem-name>/ folder to do any preloading you’d like; instead of doing it in environment.rb.
This plugin was written by moi, and is used in a production environment, but still proceed with caution and ping me with any quirks or features.
- Where art thou generator? Summary: click to select UPDATE: Rails Generators within RubyGems support...