Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

Already on GitHub? Sign in to your account

Making Metrical Run with 1.9 - Practical Approach #16

Open
bkleinen opened this Issue Jul 29, 2012 · 0 comments

Comments

Projects
None yet
1 participant

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment