diff --git a/.travis.yml b/.travis.yml index f642106070e28720590bd6fa0040ef049ebb6dfd..460484cd92e691c512288eced943091a07cf11df 100644 --- a/.travis.yml +++ b/.travis.yml @@ -2,6 +2,7 @@ rvm: - 1.8.7 - 1.9.2 - 1.9.3 + - jruby-19mode gemfile: - Gemfile - gemfiles/Gemfile.mongoid-2.4.x @@ -17,3 +18,6 @@ matrix: - rvm: 1.9.3 gemfile: gemfiles/Gemfile.mongoid-2.4.x env: SSL_CERT_DIR=/etc/ssl/certs + - rvm: jruby-19mode + gemfile: gemfiles/Gemfile.mongoid-2.4.x + env: SSL_CERT_DIR=/etc/ssl/certs diff --git a/README.md b/README.md index fbc00dd9607378c2ca8ff0fdc25bf96851118418..33113856a5c0643e04e276d61248c727c0eef1f3 100644 --- a/README.md +++ b/README.md @@ -511,7 +511,6 @@ When you install the Geocoder gem it adds a `geocode` command to your shell. You There are also a number of options for setting the geocoding API, key, and language, viewing the raw JSON reponse, and more. Please run `geocode -h` for details. - Notes on MongoDB ---------------- @@ -533,6 +532,13 @@ Calling `obj.coordinates` directly returns the internal representation of the co For consistency with the rest of Geocoder, always use the `to_coordinates` method instead. +Notes on Non-Rails Frameworks +----------------------------- + +If you are using Geocoder with ActiveRecord and a framework other than Rails (like Sinatra or Padrino) you will need to add this in your model before calling Geocoder methods: + + extend Geocoder::Model::ActiveRecord + Optimisation of Distance Queries --------------------------------