maxmind-geoip2 1.6.0 → 1.7.0

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
  SHA256:
3
- metadata.gz: e92b6c665a97ca75e8f8a8481758d9969b09bca5f186d6b54891ffdecd840fcd
4
- data.tar.gz: c05a9af0e3d2d2520b55da9ac2b3dace158407c810ed6a26db457c2f72d0ad06
3
+ metadata.gz: 9bb68c85b750fd9e083521e668d32b30893895ca66a722b56ac76a143474affb
4
+ data.tar.gz: e78ae3e8de44d46885efb00ee38a9e3d9ff76c250217fc18c32deee52f3622e6
5
5
  SHA512:
6
- metadata.gz: a38c006f285a1f5029c9385f4d44fd2e2a15366964eb601ddeff07779598b9ee5b9375e3684c9d66c816591515a8a0baed5bfec47263348c23c94ac0618b8193
7
- data.tar.gz: a217f1653b3c0acd622d1236b95f221afac74d9b73a65e30c7bff824a4e2cd57b54f99d6669d62f94d7db6c733d0b1f5d4e0b20a25380ef8a74b92097e74a9b7
6
+ metadata.gz: bc2d07df2a2f35c3641ddcaf331360c70427349eaf817ccd88448f0e9af60bc8812415f08029223b1d8667835d8b845f7d8a072e1d8097cf5ae36ce82b3854af
7
+ data.tar.gz: 4dfa837e3b518eb5665ba8772510d53f4b90017c558a832aeb6cde3888bde9ad6b653eed75ee5822c61cf5f24fef07aed619ec4242af8fcfdbf59145cb667dfa
data/CHANGELOG.md CHANGED
@@ -1,5 +1,17 @@
1
1
  # Changelog
2
2
 
3
+ ## 1.7.0 (2026-11-17)
4
+
5
+ * The minimum version of the `maxmind-db` gem is now 1.5.0. This version
6
+ limits the work and memory of each record decode and of the metadata decode
7
+ when a database is opened: 65,536 decoded values, 512 levels of nesting, and
8
+ 2 MiB of string, bytes, and integer payload. Opening a database or looking up
9
+ an IP address raises `MaxMind::DB::InvalidDatabaseError` if a decode exceeds
10
+ a limit. It also rejects pointers that target pointers, and it makes lookups
11
+ faster. MaxMind databases are well within the limits, but a custom database
12
+ that worked before may now fail. See the
13
+ [maxmind-db 1.5.0 changelog](https://github.com/maxmind/MaxMind-DB-Reader-ruby/blob/v1.5.0/CHANGELOG.md).
14
+
3
15
  ## 1.6.0 (2026-07-16)
4
16
 
5
17
  * A new `residential` object has been added to the `anonymizer` object on
@@ -309,7 +309,7 @@ module MaxMind
309
309
  handle_success(endpoint, body, is_json)
310
310
  end
311
311
 
312
- # rubocop:disable Metrics/CyclomaticComplexity
312
+ # rubocop:disable-next Metrics/CyclomaticComplexity
313
313
  def handle_client_error(endpoint, status, body, is_json)
314
314
  if !is_json
315
315
  raise HTTPError,
@@ -343,7 +343,6 @@ module MaxMind
343
343
  raise InvalidRequestError, error['error']
344
344
  end
345
345
  end
346
- # rubocop:enable Metrics/CyclomaticComplexity
347
346
 
348
347
  def handle_success(endpoint, body, is_json)
349
348
  if !is_json
@@ -3,6 +3,6 @@
3
3
  module MaxMind
4
4
  module GeoIP2
5
5
  # The Gem version.
6
- VERSION = '1.6.0'
6
+ VERSION = '1.7.0'
7
7
  end
8
8
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: maxmind-geoip2
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.6.0
4
+ version: 1.7.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - William Storey
@@ -55,14 +55,14 @@ dependencies:
55
55
  requirements:
56
56
  - - "~>"
57
57
  - !ruby/object:Gem::Version
58
- version: '1.4'
58
+ version: '1.5'
59
59
  type: :runtime
60
60
  prerelease: false
61
61
  version_requirements: !ruby/object:Gem::Requirement
62
62
  requirements:
63
63
  - - "~>"
64
64
  - !ruby/object:Gem::Version
65
- version: '1.4'
65
+ version: '1.5'
66
66
  - !ruby/object:Gem::Dependency
67
67
  name: minitest
68
68
  requirement: !ruby/object:Gem::Requirement
@@ -240,7 +240,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
240
240
  - !ruby/object:Gem::Version
241
241
  version: '0'
242
242
  requirements: []
243
- rubygems_version: 4.0.10
243
+ rubygems_version: 4.0.20
244
244
  specification_version: 4
245
245
  summary: A gem for interacting with the GeoIP webservices and databases.
246
246
  test_files: []