add compability for ruby greater than or equal to 2.0

Hi, I found a one liner was needed to get the gem working with Ruby 2.0, hope this helps.  There are some whitespace deletions caused automatically by my editor, you can ignore them or just merge them.