logstash/logstash — pull request #277 by dwbutler (2012-12-17 08:30:25+00:00)
Title: Ruby 1.8.7 compatibility for LogStash::Event

This patch makes the logstash-event gem compatibile with Ruby 1.8.7. Yes, some of us in the world are still running it. =)

`rspec spec/event.rb` passes in 1.8.7, 1.9.3, and jruby.

I tried defining a Travis CI matrix build to run the event spec in 1.8.7 and 1.9.3, but I was not successful. You can't override the `script` in different matrices. Perhaps a single rake task could call the appropriate tests depending on runtime?