Lets support Ruby 2.0

This is exactly the same as #110 but my tests have passed.