lib/geocoder/lookups/freegeoip.rb in geocoder-1.4.9 vs lib/geocoder/lookups/freegeoip.rb in geocoder-1.5.0

- old
+ new

@@ -21,9 +21,13 @@ "#{protocol}://#{host}/json/#{query.sanitized_text}" end private # --------------------------------------------------------------- + def cache_key(query) + query_url(query) + end + def parse_raw_data(raw_data) raw_data.match(/^<html><title>404/) ? nil : super(raw_data) end def results(query)