I moved the relevant files to lib/ruby_parser/legacy (looks better and avoids require conflicts) and namespaced most things. RubyParserStuff is renamed LegacyRubyParserStuff.
This should work with the regular ruby_parser gem or by itself.
If there is drift in the main RubyParser class, it could cause problems when the two gems are used together, since the legacy one avoids overwriting it.
Here is a cut at a legacy gem.
I moved the relevant files to
lib/ruby_parser/legacy
(looks better and avoidsrequire
conflicts) and namespaced most things.RubyParserStuff
is renamedLegacyRubyParserStuff
.This should work with the regular ruby_parser gem or by itself.
Tested with the https://github.com/zenspider/ruby_parser/tree/drop_legacy branch:
Tests pass.
If there is drift in the main
RubyParser
class, it could cause problems when the two gems are used together, since the legacy one avoids overwriting it.Otherwise I think it's fairly clean.