I tried parser in ruby 1.8.7, ree 2012.02, got the following error
ruby18.y:1916:in `default_encoding': uninitialized constant Parser::Ruby18::Encoding (NameError)
There is no Encoding class in ruby 1.8
Runner: don't invoke force_encoding in 1.8 (fixes #133).
Fixed in master. Let me know if you need a bugfix release! The bug only affected the command-line runner.
Sorry I didn't leave a detailed description.
I called Parser::CurrentRuby.parse(str) manually where parser calls parser.default_encoding internally.
- Parser::Base, ruby18.y: don't try to lookup Encoding on 1.8 (fixes #…
Released 2.1.5 with bugfix.