How Dr Nic Packages His Ruby Code With RubyGems
Everyone's favorite Australian Ruby developer, Dr. Nic Williams, has put together a handy slide presentation called How to Package Your Ruby Code where he demonstrates how he packages his various bits of Ruby code using RubyGems. His process is backed by his own NewGem, a library that generates a framework for a new Ruby gem, and Hoe by Ryan Davis.
In his explanatory blog post, Nic also ponders Perl's CPAN (a gigantic archive of Perl modules) and the module installation process it offers. When you install a module, the tests for the module are run in real time immediately. If they fail, the module isn't installed into its final location. Nic discovered you can do this with RubyGems by adding the --test option, but it would be nice if it were a standard operation as it could clear up ambiguity over whether a library is fully functioning or not before you try to use it.
If you want to see a different approach, Ryan Bates has recorded a "how to make a gem" screencast.
Elsewhere, Dr Nic was recently interviewed on the Mobile Orchard podcast. Mobile Orchard is essentially the Ruby Inside of the iPhone developer world, and Nic spoke about getting Ruby onto the iPhone, unit testing Objective C from Ruby, and other great stuff.