maxmind-geoip2 0.2.0 → 0.7.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (98) hide show
  1. checksums.yaml +5 -5
  2. data/CHANGELOG.md +33 -0
  3. data/Gemfile +1 -7
  4. data/README.dev.md +1 -1
  5. data/README.md +36 -14
  6. data/lib/maxmind/geoip2/client.rb +289 -265
  7. data/lib/maxmind/geoip2/errors.rb +0 -7
  8. data/lib/maxmind/geoip2/model/abstract.rb +19 -15
  9. data/lib/maxmind/geoip2/model/anonymous_ip.rb +62 -50
  10. data/lib/maxmind/geoip2/model/asn.rb +33 -29
  11. data/lib/maxmind/geoip2/model/city.rb +59 -55
  12. data/lib/maxmind/geoip2/model/connection_type.rb +27 -23
  13. data/lib/maxmind/geoip2/model/country.rb +57 -53
  14. data/lib/maxmind/geoip2/model/domain.rb +27 -23
  15. data/lib/maxmind/geoip2/model/enterprise.rb +13 -9
  16. data/lib/maxmind/geoip2/model/insights.rb +12 -8
  17. data/lib/maxmind/geoip2/model/isp.rb +45 -41
  18. data/lib/maxmind/geoip2/reader.rb +260 -233
  19. data/lib/maxmind/geoip2/record/abstract.rb +17 -13
  20. data/lib/maxmind/geoip2/record/city.rb +33 -29
  21. data/lib/maxmind/geoip2/record/continent.rb +32 -28
  22. data/lib/maxmind/geoip2/record/country.rb +47 -43
  23. data/lib/maxmind/geoip2/record/location.rb +64 -60
  24. data/lib/maxmind/geoip2/record/maxmind.rb +14 -10
  25. data/lib/maxmind/geoip2/record/place.rb +22 -18
  26. data/lib/maxmind/geoip2/record/postal.rb +26 -22
  27. data/lib/maxmind/geoip2/record/represented_country.rb +20 -16
  28. data/lib/maxmind/geoip2/record/subdivision.rb +42 -38
  29. data/lib/maxmind/geoip2/record/traits.rb +204 -191
  30. data/maxmind-geoip2.gemspec +10 -3
  31. data/test/data/LICENSE +4 -0
  32. data/test/data/MaxMind-DB-spec.md +570 -0
  33. data/test/data/MaxMind-DB-test-metadata-pointers.mmdb +0 -0
  34. data/test/data/README.md +4 -0
  35. data/test/data/bad-data/README.md +7 -0
  36. data/test/data/bad-data/libmaxminddb/libmaxminddb-offset-integer-overflow.mmdb +0 -0
  37. data/test/data/bad-data/maxminddb-golang/cyclic-data-structure.mmdb +0 -0
  38. data/test/data/bad-data/maxminddb-golang/invalid-bytes-length.mmdb +1 -0
  39. data/test/data/bad-data/maxminddb-golang/invalid-data-record-offset.mmdb +0 -0
  40. data/test/data/bad-data/maxminddb-golang/invalid-map-key-length.mmdb +0 -0
  41. data/test/data/bad-data/maxminddb-golang/invalid-string-length.mmdb +1 -0
  42. data/test/data/bad-data/maxminddb-golang/metadata-is-an-uint128.mmdb +1 -0
  43. data/test/data/bad-data/maxminddb-golang/unexpected-bytes.mmdb +0 -0
  44. data/test/data/bad-data/maxminddb-python/bad-unicode-in-map-key.mmdb +0 -0
  45. data/test/data/perltidyrc +12 -0
  46. data/test/data/source-data/GeoIP2-Anonymous-IP-Test.json +49 -0
  47. data/test/data/source-data/GeoIP2-City-Test.json +12852 -0
  48. data/test/data/source-data/GeoIP2-Connection-Type-Test.json +102 -0
  49. data/test/data/source-data/GeoIP2-Country-Test.json +15916 -0
  50. data/test/data/source-data/GeoIP2-DensityIncome-Test.json +14 -0
  51. data/test/data/source-data/GeoIP2-Domain-Test.json +452 -0
  52. data/test/data/source-data/GeoIP2-Enterprise-Test.json +687 -0
  53. data/test/data/source-data/GeoIP2-ISP-Test.json +12595 -0
  54. data/test/data/source-data/GeoIP2-Precision-Enterprise-Test.json +2148 -0
  55. data/test/data/source-data/GeoIP2-Static-IP-Score-Test.json +2132 -0
  56. data/test/data/source-data/GeoIP2-User-Count-Test.json +2837 -0
  57. data/test/data/source-data/GeoLite2-ASN-Test.json +37 -0
  58. data/test/data/source-data/README +15 -0
  59. data/test/data/test-data/GeoIP2-Anonymous-IP-Test.mmdb +0 -0
  60. data/test/data/test-data/GeoIP2-City-Test-Broken-Double-Format.mmdb +0 -0
  61. data/test/data/test-data/GeoIP2-City-Test-Invalid-Node-Count.mmdb +0 -0
  62. data/test/data/test-data/GeoIP2-City-Test.mmdb +0 -0
  63. data/test/data/test-data/GeoIP2-Connection-Type-Test.mmdb +0 -0
  64. data/test/data/test-data/GeoIP2-Country-Test.mmdb +0 -0
  65. data/test/data/test-data/GeoIP2-DensityIncome-Test.mmdb +0 -0
  66. data/test/data/test-data/GeoIP2-Domain-Test.mmdb +0 -0
  67. data/test/data/test-data/GeoIP2-Enterprise-Test.mmdb +0 -0
  68. data/test/data/test-data/GeoIP2-ISP-Test.mmdb +0 -0
  69. data/test/data/test-data/GeoIP2-Precision-Enterprise-Test.mmdb +0 -0
  70. data/test/data/test-data/GeoIP2-Static-IP-Score-Test.mmdb +0 -0
  71. data/test/data/test-data/GeoIP2-User-Count-Test.mmdb +0 -0
  72. data/test/data/test-data/GeoLite2-ASN-Test.mmdb +0 -0
  73. data/test/data/test-data/MaxMind-DB-no-ipv4-search-tree.mmdb +0 -0
  74. data/test/data/test-data/MaxMind-DB-string-value-entries.mmdb +0 -0
  75. data/test/data/test-data/MaxMind-DB-test-broken-pointers-24.mmdb +0 -0
  76. data/test/data/test-data/MaxMind-DB-test-broken-search-tree-24.mmdb +0 -0
  77. data/test/data/test-data/MaxMind-DB-test-decoder.mmdb +0 -0
  78. data/test/data/test-data/MaxMind-DB-test-ipv4-24.mmdb +0 -0
  79. data/test/data/test-data/MaxMind-DB-test-ipv4-28.mmdb +0 -0
  80. data/test/data/test-data/MaxMind-DB-test-ipv4-32.mmdb +0 -0
  81. data/test/data/test-data/MaxMind-DB-test-ipv6-24.mmdb +0 -0
  82. data/test/data/test-data/MaxMind-DB-test-ipv6-28.mmdb +0 -0
  83. data/test/data/test-data/MaxMind-DB-test-ipv6-32.mmdb +0 -0
  84. data/test/data/test-data/MaxMind-DB-test-metadata-pointers.mmdb +0 -0
  85. data/test/data/test-data/MaxMind-DB-test-mixed-24.mmdb +0 -0
  86. data/test/data/test-data/MaxMind-DB-test-mixed-28.mmdb +0 -0
  87. data/test/data/test-data/MaxMind-DB-test-mixed-32.mmdb +0 -0
  88. data/test/data/test-data/MaxMind-DB-test-nested.mmdb +0 -0
  89. data/test/data/test-data/MaxMind-DB-test-pointer-decoder.mmdb +0 -0
  90. data/test/data/test-data/README.md +26 -0
  91. data/test/data/test-data/maps-with-pointers.raw +0 -0
  92. data/test/data/test-data/write-test-data.pl +691 -0
  93. data/test/data/tidyall.ini +5 -0
  94. data/test/test_client.rb +4 -2
  95. data/test/test_model_country.rb +16 -0
  96. data/test/test_reader.rb +59 -0
  97. metadata +156 -10
  98. data/Gemfile.lock +0 -70
@@ -0,0 +1,5 @@
1
+ [PerlTidy]
2
+ select = **/*.{pl,pm,t}
3
+
4
+ [JSON]
5
+ select = **/*.json
data/test/test_client.rb CHANGED
@@ -42,6 +42,7 @@ class ClientTest < Minitest::Test
42
42
  },
43
43
  'traits' => {
44
44
  'ip_address' => '1.2.3.40',
45
+ 'is_residential_proxy' => true,
45
46
  'network' => '1.2.3.0/24',
46
47
  'static_ip_score' => 1.3,
47
48
  'user_count' => 2,
@@ -82,6 +83,7 @@ class ClientTest < Minitest::Test
82
83
 
83
84
  assert_equal(42, record.continent.geoname_id)
84
85
 
86
+ assert_equal(true, record.traits.residential_proxy?)
85
87
  assert_equal('1.2.3.0/24', record.traits.network)
86
88
  assert_equal(1.3, record.traits.static_ip_score)
87
89
  assert_equal(2, record.traits.user_count)
@@ -337,12 +339,12 @@ class ClientTest < Minitest::Test
337
339
  status: 400,
338
340
  },
339
341
  '1.2.3.71' => {
340
- body: JSON.generate({ 'code': 'HI' }),
342
+ body: JSON.generate({ code: 'HI' }),
341
343
  headers: { 'Content-Type': CONTENT_TYPES[:country] },
342
344
  status: 400,
343
345
  },
344
346
  '1.2.3.8' => {
345
- body: JSON.generate({ 'weird': 42 }),
347
+ body: JSON.generate({ weird: 42 }),
346
348
  headers: { 'Content-Type': CONTENT_TYPES[:country] },
347
349
  status: 400,
348
350
  },
@@ -77,4 +77,20 @@ class CountryModelTest < Minitest::Test
77
77
  model = MaxMind::GeoIP2::Model::Country.new(RAW, ['en'])
78
78
  assert_raises(NoMethodError) { model.traits.unknown }
79
79
  end
80
+
81
+ # This can happen if we're being created from a not fully populated response
82
+ # when used by minFraud. It shouldn't ever happen from GeoIP2 though.
83
+ def test_no_traits
84
+ model = MaxMind::GeoIP2::Model::Country.new(
85
+ {
86
+ 'continent' => {
87
+ 'code' => 'NA',
88
+ 'geoname_id' => 42,
89
+ 'names' => { 'en' => 'North America' },
90
+ },
91
+ },
92
+ ['en'],
93
+ )
94
+ assert_equal(42, model.continent.geoname_id)
95
+ end
80
96
  end
data/test/test_reader.rb CHANGED
@@ -1,6 +1,7 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  require 'ipaddr'
4
+ require 'maxmind/db'
4
5
  require 'maxmind/geoip2'
5
6
  require 'minitest/autorun'
6
7
 
@@ -16,6 +17,7 @@ class ReaderTest < Minitest::Test
16
17
  assert_equal(true, record.anonymous_vpn?)
17
18
  assert_equal(false, record.hosting_provider?)
18
19
  assert_equal(false, record.public_proxy?)
20
+ assert_equal(false, record.residential_proxy?)
19
21
  assert_equal(false, record.tor_exit_node?)
20
22
  assert_equal(ip, record.ip_address)
21
23
  assert_equal('1.2.0.0/16', record.network)
@@ -23,6 +25,18 @@ class ReaderTest < Minitest::Test
23
25
  reader.close
24
26
  end
25
27
 
28
+ def test_anonymous_ip_residential_proxy
29
+ reader = MaxMind::GeoIP2::Reader.new(
30
+ 'test/data/test-data/GeoIP2-Anonymous-IP-Test.mmdb',
31
+ )
32
+ ip = '81.2.69.1'
33
+ record = reader.anonymous_ip(ip)
34
+
35
+ assert_equal(true, record.residential_proxy?)
36
+
37
+ reader.close
38
+ end
39
+
26
40
  def test_asn
27
41
  reader = MaxMind::GeoIP2::Reader.new(
28
42
  'test/data/test-data/GeoLite2-ASN-Test.mmdb',
@@ -456,4 +470,49 @@ class ReaderTest < Minitest::Test
456
470
  assert_equal('GeoIP2-City', reader.metadata.database_type)
457
471
  reader.close
458
472
  end
473
+
474
+ def test_constructor_with_minimum_keyword_arguments
475
+ reader = MaxMind::GeoIP2::Reader.new(
476
+ database: 'test/data/test-data/GeoIP2-Country-Test.mmdb',
477
+ )
478
+ record = reader.country('81.2.69.160')
479
+ assert_equal('United Kingdom', record.country.name)
480
+ reader.close
481
+ end
482
+
483
+ def test_constructor_with_all_keyword_arguments
484
+ reader = MaxMind::GeoIP2::Reader.new(
485
+ database: 'test/data/test-data/GeoIP2-Country-Test.mmdb',
486
+ locales: %w[ru],
487
+ mode: MaxMind::DB::MODE_MEMORY,
488
+ )
489
+ record = reader.country('81.2.69.160')
490
+ assert_equal('Великобритания', record.country.name)
491
+ reader.close
492
+ end
493
+
494
+ def test_constructor_missing_database
495
+ error = assert_raises(ArgumentError) do
496
+ MaxMind::GeoIP2::Reader.new
497
+ end
498
+ assert_equal('Invalid database parameter', error.message)
499
+
500
+ error = assert_raises(ArgumentError) do
501
+ MaxMind::GeoIP2::Reader.new(
502
+ locales: %w[ru],
503
+ )
504
+ end
505
+ assert_equal('Invalid database parameter', error.message)
506
+ end
507
+
508
+ def test_old_constructor_parameters
509
+ reader = MaxMind::GeoIP2::Reader.new(
510
+ 'test/data/test-data/GeoIP2-Country-Test.mmdb',
511
+ %w[ru],
512
+ mode: MaxMind::DB::MODE_MEMORY,
513
+ )
514
+ record = reader.country('81.2.69.160')
515
+ assert_equal('Великобритания', record.country.name)
516
+ reader.close
517
+ end
459
518
  end
metadata CHANGED
@@ -1,15 +1,29 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: maxmind-geoip2
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.0
4
+ version: 0.7.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - William Storey
8
- autorequire:
8
+ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2020-02-26 00:00:00.000000000 Z
11
+ date: 2021-03-24 00:00:00.000000000 Z
12
12
  dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ name: connection_pool
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - "~>"
18
+ - !ruby/object:Gem::Version
19
+ version: '2.2'
20
+ type: :runtime
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - "~>"
25
+ - !ruby/object:Gem::Version
26
+ version: '2.2'
13
27
  - !ruby/object:Gem::Dependency
14
28
  name: http
15
29
  requirement: !ruby/object:Gem::Requirement
@@ -38,6 +52,76 @@ dependencies:
38
52
  - - "~>"
39
53
  - !ruby/object:Gem::Version
40
54
  version: '1.1'
55
+ - !ruby/object:Gem::Dependency
56
+ name: minitest
57
+ requirement: !ruby/object:Gem::Requirement
58
+ requirements:
59
+ - - ">="
60
+ - !ruby/object:Gem::Version
61
+ version: '0'
62
+ type: :development
63
+ prerelease: false
64
+ version_requirements: !ruby/object:Gem::Requirement
65
+ requirements:
66
+ - - ">="
67
+ - !ruby/object:Gem::Version
68
+ version: '0'
69
+ - !ruby/object:Gem::Dependency
70
+ name: rake
71
+ requirement: !ruby/object:Gem::Requirement
72
+ requirements:
73
+ - - ">="
74
+ - !ruby/object:Gem::Version
75
+ version: '0'
76
+ type: :development
77
+ prerelease: false
78
+ version_requirements: !ruby/object:Gem::Requirement
79
+ requirements:
80
+ - - ">="
81
+ - !ruby/object:Gem::Version
82
+ version: '0'
83
+ - !ruby/object:Gem::Dependency
84
+ name: rubocop
85
+ requirement: !ruby/object:Gem::Requirement
86
+ requirements:
87
+ - - ">="
88
+ - !ruby/object:Gem::Version
89
+ version: '0'
90
+ type: :development
91
+ prerelease: false
92
+ version_requirements: !ruby/object:Gem::Requirement
93
+ requirements:
94
+ - - ">="
95
+ - !ruby/object:Gem::Version
96
+ version: '0'
97
+ - !ruby/object:Gem::Dependency
98
+ name: rubocop-performance
99
+ requirement: !ruby/object:Gem::Requirement
100
+ requirements:
101
+ - - ">="
102
+ - !ruby/object:Gem::Version
103
+ version: '0'
104
+ type: :development
105
+ prerelease: false
106
+ version_requirements: !ruby/object:Gem::Requirement
107
+ requirements:
108
+ - - ">="
109
+ - !ruby/object:Gem::Version
110
+ version: '0'
111
+ - !ruby/object:Gem::Dependency
112
+ name: webmock
113
+ requirement: !ruby/object:Gem::Requirement
114
+ requirements:
115
+ - - ">="
116
+ - !ruby/object:Gem::Version
117
+ version: '0'
118
+ type: :development
119
+ prerelease: false
120
+ version_requirements: !ruby/object:Gem::Requirement
121
+ requirements:
122
+ - - ">="
123
+ - !ruby/object:Gem::Version
124
+ version: '0'
41
125
  description: A gem for interacting with the GeoIP2 webservices and databases. MaxMind
42
126
  provides geolocation data as downloadable databases as well as through a webservice.
43
127
  email: support@maxmind.com
@@ -47,7 +131,6 @@ extra_rdoc_files: []
47
131
  files:
48
132
  - CHANGELOG.md
49
133
  - Gemfile
50
- - Gemfile.lock
51
134
  - LICENSE-APACHE
52
135
  - LICENSE-MIT
53
136
  - README.dev.md
@@ -79,6 +162,69 @@ files:
79
162
  - lib/maxmind/geoip2/record/subdivision.rb
80
163
  - lib/maxmind/geoip2/record/traits.rb
81
164
  - maxmind-geoip2.gemspec
165
+ - test/data/LICENSE
166
+ - test/data/MaxMind-DB-spec.md
167
+ - test/data/MaxMind-DB-test-metadata-pointers.mmdb
168
+ - test/data/README.md
169
+ - test/data/bad-data/README.md
170
+ - test/data/bad-data/libmaxminddb/libmaxminddb-offset-integer-overflow.mmdb
171
+ - test/data/bad-data/maxminddb-golang/cyclic-data-structure.mmdb
172
+ - test/data/bad-data/maxminddb-golang/invalid-bytes-length.mmdb
173
+ - test/data/bad-data/maxminddb-golang/invalid-data-record-offset.mmdb
174
+ - test/data/bad-data/maxminddb-golang/invalid-map-key-length.mmdb
175
+ - test/data/bad-data/maxminddb-golang/invalid-string-length.mmdb
176
+ - test/data/bad-data/maxminddb-golang/metadata-is-an-uint128.mmdb
177
+ - test/data/bad-data/maxminddb-golang/unexpected-bytes.mmdb
178
+ - test/data/bad-data/maxminddb-python/bad-unicode-in-map-key.mmdb
179
+ - test/data/perltidyrc
180
+ - test/data/source-data/GeoIP2-Anonymous-IP-Test.json
181
+ - test/data/source-data/GeoIP2-City-Test.json
182
+ - test/data/source-data/GeoIP2-Connection-Type-Test.json
183
+ - test/data/source-data/GeoIP2-Country-Test.json
184
+ - test/data/source-data/GeoIP2-DensityIncome-Test.json
185
+ - test/data/source-data/GeoIP2-Domain-Test.json
186
+ - test/data/source-data/GeoIP2-Enterprise-Test.json
187
+ - test/data/source-data/GeoIP2-ISP-Test.json
188
+ - test/data/source-data/GeoIP2-Precision-Enterprise-Test.json
189
+ - test/data/source-data/GeoIP2-Static-IP-Score-Test.json
190
+ - test/data/source-data/GeoIP2-User-Count-Test.json
191
+ - test/data/source-data/GeoLite2-ASN-Test.json
192
+ - test/data/source-data/README
193
+ - test/data/test-data/GeoIP2-Anonymous-IP-Test.mmdb
194
+ - test/data/test-data/GeoIP2-City-Test-Broken-Double-Format.mmdb
195
+ - test/data/test-data/GeoIP2-City-Test-Invalid-Node-Count.mmdb
196
+ - test/data/test-data/GeoIP2-City-Test.mmdb
197
+ - test/data/test-data/GeoIP2-Connection-Type-Test.mmdb
198
+ - test/data/test-data/GeoIP2-Country-Test.mmdb
199
+ - test/data/test-data/GeoIP2-DensityIncome-Test.mmdb
200
+ - test/data/test-data/GeoIP2-Domain-Test.mmdb
201
+ - test/data/test-data/GeoIP2-Enterprise-Test.mmdb
202
+ - test/data/test-data/GeoIP2-ISP-Test.mmdb
203
+ - test/data/test-data/GeoIP2-Precision-Enterprise-Test.mmdb
204
+ - test/data/test-data/GeoIP2-Static-IP-Score-Test.mmdb
205
+ - test/data/test-data/GeoIP2-User-Count-Test.mmdb
206
+ - test/data/test-data/GeoLite2-ASN-Test.mmdb
207
+ - test/data/test-data/MaxMind-DB-no-ipv4-search-tree.mmdb
208
+ - test/data/test-data/MaxMind-DB-string-value-entries.mmdb
209
+ - test/data/test-data/MaxMind-DB-test-broken-pointers-24.mmdb
210
+ - test/data/test-data/MaxMind-DB-test-broken-search-tree-24.mmdb
211
+ - test/data/test-data/MaxMind-DB-test-decoder.mmdb
212
+ - test/data/test-data/MaxMind-DB-test-ipv4-24.mmdb
213
+ - test/data/test-data/MaxMind-DB-test-ipv4-28.mmdb
214
+ - test/data/test-data/MaxMind-DB-test-ipv4-32.mmdb
215
+ - test/data/test-data/MaxMind-DB-test-ipv6-24.mmdb
216
+ - test/data/test-data/MaxMind-DB-test-ipv6-28.mmdb
217
+ - test/data/test-data/MaxMind-DB-test-ipv6-32.mmdb
218
+ - test/data/test-data/MaxMind-DB-test-metadata-pointers.mmdb
219
+ - test/data/test-data/MaxMind-DB-test-mixed-24.mmdb
220
+ - test/data/test-data/MaxMind-DB-test-mixed-28.mmdb
221
+ - test/data/test-data/MaxMind-DB-test-mixed-32.mmdb
222
+ - test/data/test-data/MaxMind-DB-test-nested.mmdb
223
+ - test/data/test-data/MaxMind-DB-test-pointer-decoder.mmdb
224
+ - test/data/test-data/README.md
225
+ - test/data/test-data/maps-with-pointers.raw
226
+ - test/data/test-data/write-test-data.pl
227
+ - test/data/tidyall.ini
82
228
  - test/test_client.rb
83
229
  - test/test_model_country.rb
84
230
  - test/test_model_names.rb
@@ -89,11 +235,11 @@ licenses:
89
235
  - MIT
90
236
  metadata:
91
237
  bug_tracker_uri: https://github.com/maxmind/GeoIP2-ruby/issues
92
- changelog_uri: https://github.com/maxmind/GeoIP2-ruby/blob/master/CHANGELOG.md
93
- documentation_uri: https://github.com/maxmind/GeoIP2-ruby
238
+ changelog_uri: https://github.com/maxmind/GeoIP2-ruby/blob/main/CHANGELOG.md
239
+ documentation_uri: https://www.rubydoc.info/gems/maxmind-geoip2
94
240
  homepage_uri: https://github.com/maxmind/GeoIP2-ruby
95
241
  source_code_uri: https://github.com/maxmind/GeoIP2-ruby
96
- post_install_message:
242
+ post_install_message:
97
243
  rdoc_options: []
98
244
  require_paths:
99
245
  - lib
@@ -108,9 +254,9 @@ required_rubygems_version: !ruby/object:Gem::Requirement
108
254
  - !ruby/object:Gem::Version
109
255
  version: '0'
110
256
  requirements: []
111
- rubyforge_project:
112
- rubygems_version: 2.5.2.1
113
- signing_key:
257
+ rubyforge_project:
258
+ rubygems_version: 2.7.6.2
259
+ signing_key:
114
260
  specification_version: 4
115
261
  summary: A gem for interacting with the GeoIP2 webservices and databases.
116
262
  test_files: []
data/Gemfile.lock DELETED
@@ -1,70 +0,0 @@
1
- GEM
2
- remote: https://rubygems.org/
3
- specs:
4
- addressable (2.7.0)
5
- public_suffix (>= 2.0.2, < 5.0)
6
- ast (2.4.0)
7
- crack (0.4.3)
8
- safe_yaml (~> 1.0.0)
9
- domain_name (0.5.20190701)
10
- unf (>= 0.0.5, < 1.0.0)
11
- ffi (1.12.2)
12
- ffi-compiler (1.0.1)
13
- ffi (>= 1.0.0)
14
- rake
15
- hashdiff (1.0.0)
16
- http (4.3.0)
17
- addressable (~> 2.3)
18
- http-cookie (~> 1.0)
19
- http-form_data (~> 2.2)
20
- http-parser (~> 1.2.0)
21
- http-cookie (1.0.3)
22
- domain_name (~> 0.5)
23
- http-form_data (2.2.0)
24
- http-parser (1.2.1)
25
- ffi-compiler (>= 1.0, < 2.0)
26
- jaro_winkler (1.5.4)
27
- maxmind-db (1.1.0)
28
- minitest (5.14.0)
29
- parallel (1.19.1)
30
- parser (2.7.0.2)
31
- ast (~> 2.4.0)
32
- public_suffix (4.0.3)
33
- rainbow (3.0.0)
34
- rake (13.0.1)
35
- rexml (3.2.4)
36
- rubocop (0.80.0)
37
- jaro_winkler (~> 1.5.1)
38
- parallel (~> 1.10)
39
- parser (>= 2.7.0.1)
40
- rainbow (>= 2.2.2, < 4.0)
41
- rexml
42
- ruby-progressbar (~> 1.7)
43
- unicode-display_width (>= 1.4.0, < 1.7)
44
- rubocop-performance (1.5.2)
45
- rubocop (>= 0.71.0)
46
- ruby-progressbar (1.10.1)
47
- safe_yaml (1.0.5)
48
- unf (0.1.4)
49
- unf_ext
50
- unf_ext (0.0.7.6)
51
- unicode-display_width (1.6.1)
52
- webmock (3.8.2)
53
- addressable (>= 2.3.6)
54
- crack (>= 0.3.2)
55
- hashdiff (>= 0.4.0, < 2.0.0)
56
-
57
- PLATFORMS
58
- ruby
59
-
60
- DEPENDENCIES
61
- http
62
- maxmind-db
63
- minitest
64
- rake
65
- rubocop
66
- rubocop-performance
67
- webmock
68
-
69
- BUNDLED WITH
70
- 2.1.4