maxminddb 0.1.13 → 0.1.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: 8baf986bd6ee8827d5dec1075ab871ed940a7450
4
- data.tar.gz: d6c493bf9a2c759deaf221c7adde7092faf1ac02
3
+ metadata.gz: 19d1e58b79d3beb9ed5bd74ffdf5da41d62f5be4
4
+ data.tar.gz: d8e3f6acbc575111367caf90d73c0d3549061084
5
5
  SHA512:
6
- metadata.gz: d5f7b6bc12aad94797fccd16c77a1b383e4c9b0502134e74429b2fafa1ea55db633d00ce7787f6c6f2039b845431f81e7c8441d22f3cb993e2291c63ff42bf6b
7
- data.tar.gz: 88f840828b38a877fd346057f847e38bc04d6ad9977e61cd829f56cce781b40d4a05d0a3cded7451a27c45f38afd005c763887f2e4d3f7305e1f27039947dbbb
6
+ metadata.gz: 46d7fa5b3bd159eeae83360bff4dfe86ebfdbb1da2de64690d0a47a019437f6aee2464af7b6d4a88a11f79ed1253d1b3a0038ea9a4102ca242d31b5e3682f5fb
7
+ data.tar.gz: '028ee475caa88471dcd6bdbf35e7e66b75c6ae179e209d030d90c788c02413f41cf9900e89b4252500e070270e4a9531b8a945cfb7f80a25c27ee28c3f363cc9'
@@ -1,5 +1,9 @@
1
1
  # Changelog
2
2
 
3
+ ### 0.1.14 (July 26, 2017)
4
+
5
+ - Expose accuracy_radius in Location data #29
6
+
3
7
  ### 0.1.13 (June 13, 2017)
4
8
 
5
9
  - Expose database metadata #27
@@ -20,6 +20,10 @@ module MaxMindDB
20
20
  def time_zone
21
21
  raw['time_zone']
22
22
  end
23
+
24
+ def accuracy_radius
25
+ raw['accuracy_radius']
26
+ end
23
27
 
24
28
  private
25
29
 
@@ -1,3 +1,3 @@
1
1
  module MaxMindDB
2
- VERSION = "0.1.13"
2
+ VERSION = "0.1.14"
3
3
  end
@@ -9,13 +9,15 @@ describe MaxMindDB::Result::Location do
9
9
  "latitude"=>37.419200000000004,
10
10
  "longitude"=>-122.0574,
11
11
  "metro_code"=>"807",
12
- "time_zone"=>"America/Los_Angeles"
12
+ "time_zone"=>"America/Los_Angeles",
13
+ "accuracy_radius"=>1000
13
14
  } }
14
15
 
15
16
  its(:latitude) { should eq(37.419200000000004) }
16
17
  its(:longitude) { should eq(-122.0574) }
17
18
  its(:metro_code) { should eq("807") }
18
19
  its(:time_zone) { should eq("America/Los_Angeles") }
20
+ its(:accuracy_radius) { should eq(1000) }
19
21
  end
20
22
 
21
23
  context "without a result" do
@@ -25,5 +27,6 @@ describe MaxMindDB::Result::Location do
25
27
  its(:longitude) { should be_nil }
26
28
  its(:metro_code) { should be_nil }
27
29
  its(:time_zone) { should be_nil }
30
+ its(:accuracy_radius) { should be_nil }
28
31
  end
29
32
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: maxminddb
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.13
4
+ version: 0.1.14
5
5
  platform: ruby
6
6
  authors:
7
7
  - yhirose
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-06-13 00:00:00.000000000 Z
11
+ date: 2017-07-26 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler