ruby-1.8.7 goodness
Version 1.8.7 of ruby has been released, with magical vendor-dir support that I don’t recall being in the first few pre releases. It looks like someone decided to hack the autofoo as well, to obey –libdir, although it seems that while the default site_ruby uses it, the default vendor_ruby doesn’t yet. Here’s an ebuild for it, if you need one, and I’ve already added it to arbor.
At work we’ve got an old app we still haven’t upgraded from rails-1.2.6, 1.8.7 broke it. The first breakage has been fixed in 1.8.7 with this patch, and the second breakage we’ve found is that String now has a .chars method, returning an enumerable, this doesn’t get on with activesupport-1.4.4/lib/active_support/core_ext/string/unicode.rb, which defines chars to return ActiveSupport::Multibyte::Chars.new(self). We’ve noticed this where using attachment_fu is trying to use String.first, and I’m sure we’d have noticed it in more places if we’d ever written our tests properly. For now, we’ll just cheat and use String.class_eval { remove_method(:chars) } to drop the new method, but soon I suppose we’ll actually have to get around to upgrading.