geocoder 1.2.10 → 1.2.11

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: 80ea51ef32a14fb44a364344b6475fecbf9713df
4
- data.tar.gz: 1a6900cbcfc8cd21151da45fc55f94805c6adc51
3
+ metadata.gz: 5648fa768c84d9f5af64d9c377423d8c03567692
4
+ data.tar.gz: 670746d024b95d37411459e09bdffe69a8e50f65
5
5
  SHA512:
6
- metadata.gz: ac94efc831b73cb9639fa49fdc7957d95de7d3b8250b4477744141267d30ead2315397c5ffe9b73df17bd86a51bdebf736a23bf46dd2f552d16e215329dc0e01
7
- data.tar.gz: 22bc25f4cd0c191ed23df83716efa803ab4d0dd21c12717dbe6dfee99917bdf21850e4ec6e2c4e0a1f79e57d1d75b4154d3bccfb1f4c1f490358d68ce50d9d1e
6
+ metadata.gz: 214ae40b18a556baca80fc3531cadd8250f87c22bd1c4f3e5d2227f3297754a13b799b40bb7833e02a9663162e85e427b48800f418211ad71243a1f6f204acfa
7
+ data.tar.gz: a1a399fbb540520d9e6ae4ffb4d4fa72318388f07746203340b972b5670753129ae52160f8673298a9a2732b31224761d88c00156ef954043c3332fdbc2634cf
@@ -3,11 +3,16 @@ 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.10 (2015 Aug 7)
7
- -----------------
6
+ 1.2.11 (2015 Sep 10)
7
+ --------------------
8
+ * Fix load issue on Ruby 1.9.3.
9
+
10
+ 1.2.10 (2015 Sep 7)
11
+ -------------------
8
12
  * Force Yandex to use HTTPS (thanks github.com/donbobka).
9
13
  * Force :google to use HTTPS if API key set.
10
14
  * Fix out-of-the-box verbosity issues (GH #881).
15
+ * Improve timeout mechanism and add exception Geocoder::LookupTimeout (thanks github.com/ankane).
11
16
  * Deprecate .near and #nearbys for MongoDB-backed models.
12
17
 
13
18
  1.2.9 (2015 Jun 12)
@@ -1,3 +1,5 @@
1
+ require 'timeout' # required for Ruby 1.9.3
2
+
1
3
  module Geocoder
2
4
 
3
5
  class Error < StandardError
@@ -17,7 +17,7 @@ module Geocoder
17
17
  # corresponding to the original client IP for any request sent
18
18
  # through a non-whitelisted proxy.
19
19
  def safe_location
20
- @location ||= Geocoder.search(ip, ip_address: true).first
20
+ @safe_location ||= Geocoder.search(ip, ip_address: true).first
21
21
  end
22
22
 
23
23
  # There's a whole zoo of nonstandard headers added by various
@@ -1,3 +1,3 @@
1
1
  module Geocoder
2
- VERSION = "1.2.10"
2
+ VERSION = "1.2.11"
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.10
4
+ version: 1.2.11
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-09-07 00:00:00.000000000 Z
11
+ date: 2015-09-10 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,