troessner/reek — pull request #107 by mvz (2012-06-09 06:31:26+00:00)
Title: Dynamically depend on best available parser

These commits allow reek to select the best available parser library.

There are two parts to this:
* The gemspec is adjusted so reek depends on both ruby_parser and ripper_ruby_parser. Since both can be installed on all rubies, this will allow reek to be installed on all rubies.
* At runtime, reek tries to load ripper_ruby_parser. If that succeeds, reek uses that parser and will be able to handle Ruby 1.9 syntax. On Ruby versions below 1.9.3, it will fail and reek will use ruby_parser and handle Ruby 1.8 syntax only.

This pull request by necessity also contains the commits from pull request #102.