geocoder 1.2.13 → 1.2.14

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 2184f181fb0c642d0cc02774bcd2208e325b8dc8
4
- data.tar.gz: 7b0da04b5c05f0b9afe9182e00ee6099a83adc45
3
+ metadata.gz: 650f94f889eacdf006a3c98cc55cf2a2f2a0b162
4
+ data.tar.gz: f373165da885bfca07187488b97bdabede1b9c91
5
5
  SHA512:
6
- metadata.gz: fd8d36a0c7fb2cabda97f03baa19c68d4106bca4e5c8eb1e987ac0156393fa1c05f67d235020ca332cd3557c77411cbfd8d601add3b8820dcfffd0359a30a19a
7
- data.tar.gz: 05a0eb39a8f575083f3ff20fbe93c209afcb533313c531bee25462b1e6f25bed6da7f2d47ffcb296923d933786249309d8f07e66cb23d0e271da9cf7962c53c8
6
+ metadata.gz: 02cc8f4d8c8a8f0a681e473ae15a52c17b3cd0406c1be04ae9bb0960885fcdb0248c075823cf51442daa90a473c086909bf5632976804fe84ce31d096f2082f9
7
+ data.tar.gz: aafb1a59a65180065a47233c4ce3aa86be7a7ea65b83d0be67ea323a1bed2d460e3d8bf1007a2b73e51e10e3a6e7ae7d203aad2ec17d71fecd964385e9cc6d41
@@ -3,6 +3,10 @@ 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.2.14 (2015 Dec 27)
7
+ --------------------
8
+ * Fix bug in :geoip2 lookup (thanks github.com/mromulus).
9
+
6
10
  1.2.13 (2015 Dec 15)
7
11
  --------------------
8
12
  * Update :telize IP lookup to reflect new URL (thanks github.com/jfredrickson).
@@ -37,7 +37,8 @@ module Geocoder
37
37
  def results(query)
38
38
  return [] unless configuration[:file]
39
39
 
40
- Array(@mmdb.lookup(query.to_s))
40
+ result = @mmdb.lookup(query.to_s)
41
+ result.nil? ? [] : [result]
41
42
  end
42
43
  end
43
44
  end
@@ -1,3 +1,3 @@
1
1
  module Geocoder
2
- VERSION = "1.2.13"
2
+ VERSION = "1.2.14"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: geocoder
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.2.13
4
+ version: 1.2.14
5
5
  platform: ruby
6
6
  authors:
7
7
  - Alex Reisner
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-12-15 00:00:00.000000000 Z
11
+ date: 2015-12-27 00:00:00.000000000 Z
12
12
  dependencies: []
13
13
  description: Provides object geocoding (by street or IP address), reverse geocoding
14
14
  (coordinates to street address), distance queries for ActiveRecord and Mongoid,