Compatibility with Ruby 1.9.2 and Ruby 2.0.0