Making Metrical Run with 1.9 - Practical Approach
Hi, I just tried out metrical and think its great. Thinking of changing it to run with 1.9 source code - in fact I already did a nasty hack running all .rb files through a gsub that replaces 1.9 with 1.8 hash syntax and tada all metrics are generated. (see https://github.com/bkleinen/hash-reverter - three files to put in an rails app - still rather rough, if it's going to stick has to be converted to a gem).
Thus my approach would be to include that to metrical, split up the metric tools into those that do support 1.9 and those which don't , and run everything in two passes, and migrate them to 1.9 one by one.
As finally the ruby_parser seems to get updated to support 1.9 hashes in version 3, I hope that it will become easier upgrading the tools, too.
I've forked metrical, https://github.com/bkleinen/metrical , but not yet sure if I will be able to maintain it, but I'm looking into that.
Any comments on my approach welcomed.