lib/geokit/geocoders/maxmind.rb in geokit-1.9.0 vs lib/geokit/geocoders/maxmind.rb in geokit-1.10.0

- old
+ new

@@ -15,10 +15,10 @@ loc.city = res.city_name loc.state = res.region_name loc.zip = res.postal_code loc.country_code = res.country_code2 - loc.success = ( res.longitude.kind_of?(Numeric) && res.latitude.kind_of?(Numeric) ) + loc.success = (res.longitude.is_a?(Numeric) && res.latitude.is_a?(Numeric)) loc end end end end