presidentbeef/brakeman — pull request #60 by presidentbeef (2012-03-21 22:27:43+00:00)
Title: Use old ruby_parser (2.3.1) for Ruby 1.8 parsing

Confusingly, 1.8 support in ruby_parser has a bunch of regressions on the master branch.

This changes Brakeman so it uses the regular ruby_parser gem for Ruby 1.8 apps, but will still use the "vendored" ruby_parser for 1.9, since it has better support for 1.9 syntax.

This should fix a number of parsing issues people are seeing.