Ruby 1.8.7

Adds support for Ruby 1.8.7 onward.