Support Ruby 1.8 and Ruby 2.0