alexreisner/geocoder — pull request #274 by petergoldstein (2012-07-31 18:00:34+00:00)
Title: Get tests running green under JRuby

Tests were not passing (or even loading) under JRuby 1.6.7. This pull request includes several changes necessary to get the tests green:

1) Update the Gemfile so bson_ext is not loaded when using JRuby
2) Update the Gemfile to include the jruby-openssl gem
3) Update the tests for NaN coordinates to test using the nan? method under JRuby, rather than an equality test which will fail ( NaN != NaN in JRuby)
4) Required the 'net/https' module explicitly, ensuring that the use_ssl= method is added to the Net::HTTP client under JRuby

I've got everything passing under Ruby 1.9.3, Ruby 1.9.2, and JRuby 1.6.7 with these changes.