seattlerb/heckle — pull request #4 by phiggins (2012-07-02 08:20:31+00:00)
Title: ruby_parser support

This is a first pass at getting heckle to work with ruby_parser instead of ParseTree. Most of the difficulty came from the interfaces used to interact with ParseTree vs. ruby_parser. ParseTree's ability to grab a class/method's sexp at runtime fits heckle's use case much better than the solution I came up with for ruby_parser, iterating over the files in the project directory and parsing them all. This way is also much slower.

Other things:
* I've only done enough work to get the unit tests to pass, I haven't actually tried running heckle on anything, so bugs probably remain.
* I had to change two unit tests to get them to pass. Lame, I know.
* Only tested with 1.8.7-p358.