maxminddb 0.1.8 → 0.1.9

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 3b7c0694a1377f0a21ccf0c58ae55d908b5ec8cf
4
- data.tar.gz: a9e8d1a7061d0f45687bdbf1bf513e2214f02356
3
+ metadata.gz: 2b881c09e148380d6bc204590f4a0393e4409ce9
4
+ data.tar.gz: fcd4038055f584dc9d406fc16cdf63e5b8a96ab8
5
5
  SHA512:
6
- metadata.gz: 7f9de1acf095fda1d3b75ebdd325550515e6b0d25fd0194c53e3c8489ecffcfa12ff2bfbb8cbcd92474b20dd15d0ba22b771b8536b3219c772a4d5a0ae85aa54
7
- data.tar.gz: a8a41bd7ce01f0e4514a0d58f9b74589c38fc766e3b0c7dbf357e42084aaec3d9c800e25407cdae8439a6f57c9f003c8ca2daa67b3db25b6cbe87b8fb06e396b
6
+ metadata.gz: 18b101858b0a7727d14bf4c8f3dbf76398b65d302e56ed2da6b345b9a1693613af7add1c9e179625c38e9f5a75388ba7b828dad4079fe1df603c312e68709cc0
7
+ data.tar.gz: 518820cf5a7c61dee2e42d78621a7645ae1738aca5cad4a125d9b0f2d2660f21c2530baf111fb3500117b5282c635f0d1d7edcd2b28c483649b2b1a1911714b3
@@ -4,11 +4,15 @@ rvm:
4
4
  - 2.0.0
5
5
  - 2.1
6
6
  - 2.2
7
+ - 2.3.0
7
8
  - jruby-19mode
8
9
  - rbx-2
9
10
 
10
11
  script: bundle exec rake
11
12
 
13
+ before_install:
14
+ - gem update bundler
15
+
12
16
  cache:
13
17
  directories:
14
18
  - spec/cache
@@ -134,7 +134,7 @@ module MaxMindDB
134
134
  when 13 # end marker
135
135
  val = nil
136
136
  when 14 # boolean
137
- val = size ? true : false
137
+ val = (size != 0)
138
138
  when 15 # float
139
139
  val = @data[pos + base_pos, size].unpack('g')[0]
140
140
  pos += size
@@ -1,3 +1,3 @@
1
1
  module MaxMindDB
2
- VERSION = "0.1.8"
2
+ VERSION = "0.1.9"
3
3
  end
@@ -110,6 +110,9 @@ describe MaxMindDB do
110
110
  it 'returns true for the is_satellite_provider trait' do
111
111
  expect(city_db.lookup(ip).traits.is_satellite_provider).to eq(true)
112
112
  end
113
+
114
+ # There are no false booleans in the database that we can test.
115
+ # False values are simply omitted.
113
116
  end
114
117
  end
115
118
 
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.8
4
+ version: 0.1.9
5
5
  platform: ruby
6
6
  authors:
7
7
  - yhirose
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-09-08 00:00:00.000000000 Z
11
+ date: 2016-02-21 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler