enrichment_db 0.1.3 → 0.1.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/enrichment_db/geo/locator.rb +1 -1
- data/lib/enrichment_db/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: fac1cbd711cda815b1fa1f3b2f9ccb03d3cb3d87
|
4
|
+
data.tar.gz: b148dfebfe4da0ecb2bfea97088645de89c5cd4d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 60c6b6d4516375f7de949472233930bed26cde2270bac3c906f32c5e8c4c100b8fdc580c77a7296d62ba12557e6ea548ea300d1a620657d56198c8a2e51d5c6a
|
7
|
+
data.tar.gz: 0f77ea54c9fe29580b8750db699befcdec594533cb470d2eb943c5db149ea337ad28382006aeded2c868d37e1a4c34ef5da8492f3a6a133e09d92880c9d031dd
|
@@ -81,7 +81,7 @@ class EnrichmentDb::Geo::Locator < EnrichmentDb::DatumModel
|
|
81
81
|
return geo if geo.is_a?(String)
|
82
82
|
|
83
83
|
fail EnrichmentDb::InvalidGeoPointFormat unless valid_geo_point?(geo)
|
84
|
-
geo_format = geo.each_with_object({}) do |k, v, h|
|
84
|
+
geo_format = geo.each_with_object({}) do |(k, v), h|
|
85
85
|
h[k.to_sym] = v
|
86
86
|
end
|
87
87
|
GeoHash.encode(geo_format[:lat], geo_format[:lon])
|