I have been busy, busy, busy these past few weeks. Moving Braveworld to Textdrive has snagged on domain name administrativia, but the code is now multisite-able (the great Hamurai also needs a nod and a pat in the back for cleaning up the rakefiles) and we might even get some decent web design elements done.
New tenants are expected along with the reappearance of unwillingy overwritten content. In order not to do all this by hand though, we need to get over the moving part, so these administrativia are really holding us up.
The work on the ruby-lang.org archives unearthed a bug in the 1.8.4 YAML implementation, something you can easily reproduce with the following snippet:
require 'yaml'
bug=[{:content=>"\n\n <dl>\n<dt>From: Yukihiro Matsumoto <matz at ruby-lang.org></dt>"}]
dumped=YAML.dump(bug)
p YAML::load( dumped )
Work around it by stripping leading whitespace from any lines you process (the culprit above is the whitespace before <dl>).
_why has been notified and will hopefully fix it :).
Currently I have been pondering how much work would be required to make rake (as an application) embedabble in other applications.
This would allow me for example, to call unit test tasks defined in rakefiles from an application that integrates several test tools.
Initial analysis shows that the part most affected is command line parsing and that configuration of the application object needs to be decoupled from the command line options – not too scary. Let’s see how much free time I can find now that the project at work is gearing up for the final run :(.