geocoder 1.6.7 → 1.7.5

Sign up to get free protection for your applications and to get access to all the features.
Files changed (36) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +29 -0
  3. data/README.md +323 -205
  4. data/examples/app_defined_lookup_services.rb +22 -0
  5. data/lib/generators/geocoder/config/templates/initializer.rb +7 -1
  6. data/lib/geocoder/cache.rb +12 -33
  7. data/lib/geocoder/cache_stores/base.rb +40 -0
  8. data/lib/geocoder/cache_stores/generic.rb +35 -0
  9. data/lib/geocoder/cache_stores/redis.rb +34 -0
  10. data/lib/geocoder/configuration.rb +9 -3
  11. data/lib/geocoder/ip_address.rb +6 -0
  12. data/lib/geocoder/lookup.rb +29 -4
  13. data/lib/geocoder/lookups/amazon_location_service.rb +54 -0
  14. data/lib/geocoder/lookups/base.rb +8 -2
  15. data/lib/geocoder/lookups/bing.rb +1 -1
  16. data/lib/geocoder/lookups/freegeoip.rb +8 -6
  17. data/lib/geocoder/lookups/geoapify.rb +72 -0
  18. data/lib/geocoder/lookups/geoip2.rb +4 -0
  19. data/lib/geocoder/lookups/ip2location.rb +10 -6
  20. data/lib/geocoder/lookups/ipdata_co.rb +1 -1
  21. data/lib/geocoder/lookups/ipqualityscore.rb +50 -0
  22. data/lib/geocoder/lookups/location_iq.rb +5 -1
  23. data/lib/geocoder/lookups/melissa_street.rb +41 -0
  24. data/lib/geocoder/lookups/photon.rb +89 -0
  25. data/lib/geocoder/results/amazon_location_service.rb +57 -0
  26. data/lib/geocoder/results/esri.rb +5 -2
  27. data/lib/geocoder/results/geoapify.rb +179 -0
  28. data/lib/geocoder/results/ipqualityscore.rb +54 -0
  29. data/lib/geocoder/results/mapbox.rb +10 -4
  30. data/lib/geocoder/results/melissa_street.rb +46 -0
  31. data/lib/geocoder/results/nominatim.rb +24 -16
  32. data/lib/geocoder/results/photon.rb +119 -0
  33. data/lib/geocoder/version.rb +1 -1
  34. metadata +16 -4
  35. data/examples/autoexpire_cache_dalli.rb +0 -62
  36. data/examples/autoexpire_cache_redis.rb +0 -30
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 17d8f44da8b584b65c5546df089f0c16e6d20045676d4a1fe3fef38cdf3c3c59
4
- data.tar.gz: c527329b8d1f28a326092e3b3f6d2c9c143dacc2da2397fab5b4109ae7387f09
3
+ metadata.gz: 5063f6ec31c36d023439cdb255c76f62e9107da4d3bd42667a0f8a1df12919fd
4
+ data.tar.gz: d260cd1d770947fa7415989c63404bb0f0e179eee7a0e0e09c3e5c56b019dec2
5
5
  SHA512:
6
- metadata.gz: 918ed290277a1aa7e57a102ad06b0cf733e1908e9f31ead6cd59c5d08e5cc5b7d2f581a9958961781e013b535763c92701ad02f2bd8268374e339a36fd75eb25
7
- data.tar.gz: 14416b59a9f34890d9a466aad87a883651f13f58a1f0a972c7d48370daed0f70923b9534b13e489673dbbc19543c82fb9017dd274529ce3a587bebe1f230649d
6
+ metadata.gz: dd798ea9317b6cbdc51b521c60558002fc4263adb52fd2de8277e834a03a04561cedc070e2d08f4fe9ebd688771a8f6440a9c9288a83b6d3412d3d100714a99f
7
+ data.tar.gz: d262213ca0f637847d571d81054365e969c6eb6b3444e6064a538928a0fb673c5e7c315bc0708758c33e107d46bf38a642f91bccb574273e0c784c77cf8562ad
data/CHANGELOG.md CHANGED
@@ -3,6 +3,35 @@ Changelog
3
3
 
4
4
  Major changes to Geocoder for each release. Please see the Git log for complete list of changes.
5
5
 
6
+ 1.7.5 (2022 Mar 14)
7
+ -------------------
8
+ * Avoid lookup naming collisions in some environments.
9
+
10
+ 1.7.4 (2022 Mar 14)
11
+ -------------------
12
+ * Add ability to use app-defined lookups (thanks github.com/januszm).
13
+ * Updates to LocationIQ and FreeGeoIP lookups.
14
+
15
+ 1.7.3 (2022 Jan 17)
16
+ -------------------
17
+ * Get rid of unnecessary cache_prefix deprecation warnings.
18
+
19
+ 1.7.2 (2022 Jan 2)
20
+ -------------------
21
+ * Fix uninitialized constant error (occurring on some systems with v1.7.1).
22
+
23
+ 1.7.1 (2022 Jan 1)
24
+ -------------------
25
+ * Various bugfixes and refactorings.
26
+
27
+ 1.7.0 (2021 Oct 11)
28
+ -------------------
29
+ * Add support for Geoapify and Photo lookups (thanks github.com/ahukkanen).
30
+ * Add support for IPQualityScore IP lookup (thanks github.com/jamesbebbington).
31
+ * Add support for Amazon Location Service lookup (thanks github.com/mplewis).
32
+ * Add support for Melissa lookup (thanks github.com/ALacker).
33
+ * Drop official support for Ruby 2.0.x and Rails 4.x.
34
+
6
35
  1.6.7 (2021 Apr 17)
7
36
  -------------------
8
37
  * Add support for Abstract API lookup (thanks github.com/randoum).