maxmind-db 1.2.0 → 1.3.2

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: d5705dca32ee40fdadd07a1f6abc8a0ff56e23b699ecb9ba159344a9325c8456
4
- data.tar.gz: d71304945c1c09f3af09a85b03dbbcf8cbeb4652456441a7f6978b2cb9db6adc
3
+ metadata.gz: 9b642dbfca79a5abf8c5c5ab4a2ceb07051affb7148dd005514d0bc1a9950c3b
4
+ data.tar.gz: 6cb14299dec849aef6f054ca39cbf139d3e552ed593960ebfbd72a09a6ce5f27
5
5
  SHA512:
6
- metadata.gz: b8c1a541fcf270945c34254e2e5817ac52864f6cea427d223cb4b5c9c4036afdc61380954462fe063beeacd3407507a647eff776ab8913a561eef6eed71a6730
7
- data.tar.gz: 70c1967f07e22885938b7fb1e9cbd0a73c9d4f3efab144a6aa4c2e40bac81ce8445d2702ad51d2b32e028a6eef053f132542d9d9c1086030d224575a4bb39e64
6
+ metadata.gz: 232d60717fed7da9d7253edc041316eec8f71782b9fca2e72cdbd5ad5414e7253504d423b3bab105cd87c5fd1c62e6df2fe7b8a2d70ea19f97a5fc5fc493a572
7
+ data.tar.gz: c40ce6eec502c4f2f45d8b5036b179b9f498e680771571430228845f0a588a564e3a4adf66193f56440bb8c21940793cba5ee073f3eb444dbe9f303db9f6fe21
data/CHANGELOG.md CHANGED
@@ -1,5 +1,18 @@
1
1
  # Changelog
2
2
 
3
+ ## 1.3.2 (2025-04-03)
4
+
5
+ * Re-release to fix a release script problem. There are no code changes.
6
+
7
+ ## 1.3.1 (2025-04-03)
8
+
9
+ * Re-release to fix a release script problem. There are no code changes.
10
+
11
+ ## 1.3.0 (2025-04-03)
12
+
13
+ * Ruby 3.0+ is now required. If you're using Ruby 2.5, 2.6, or 2.7, please
14
+ use version 1.2.0 of this gem.
15
+
3
16
  ## 1.2.0 (2023-11-22)
4
17
 
5
18
  * Ruby 2.4 is no longer supported. If you're using Ruby 2.4, please use
data/Gemfile.lock ADDED
@@ -0,0 +1,58 @@
1
+ PATH
2
+ remote: .
3
+ specs:
4
+ maxmind-db (1.3.2)
5
+
6
+ GEM
7
+ remote: https://rubygems.org/
8
+ specs:
9
+ ast (2.4.3)
10
+ json (2.10.2)
11
+ language_server-protocol (3.17.0.4)
12
+ lint_roller (1.1.0)
13
+ minitest (5.25.5)
14
+ parallel (1.26.3)
15
+ parser (3.3.7.4)
16
+ ast (~> 2.4.1)
17
+ racc
18
+ prism (1.4.0)
19
+ racc (1.8.1)
20
+ rainbow (3.1.1)
21
+ rake (13.2.1)
22
+ regexp_parser (2.10.0)
23
+ rubocop (1.75.2)
24
+ json (~> 2.3)
25
+ language_server-protocol (~> 3.17.0.2)
26
+ lint_roller (~> 1.1.0)
27
+ parallel (~> 1.10)
28
+ parser (>= 3.3.0.2)
29
+ rainbow (>= 2.2.2, < 4.0)
30
+ regexp_parser (>= 2.9.3, < 3.0)
31
+ rubocop-ast (>= 1.44.0, < 2.0)
32
+ ruby-progressbar (~> 1.7)
33
+ unicode-display_width (>= 2.4.0, < 4.0)
34
+ rubocop-ast (1.44.0)
35
+ parser (>= 3.3.7.2)
36
+ prism (~> 1.4)
37
+ rubocop-performance (1.25.0)
38
+ lint_roller (~> 1.1)
39
+ rubocop (>= 1.75.0, < 2.0)
40
+ rubocop-ast (>= 1.38.0, < 2.0)
41
+ ruby-progressbar (1.13.0)
42
+ unicode-display_width (3.1.4)
43
+ unicode-emoji (~> 4.0, >= 4.0.4)
44
+ unicode-emoji (4.0.4)
45
+
46
+ PLATFORMS
47
+ ruby
48
+ x86_64-linux
49
+
50
+ DEPENDENCIES
51
+ maxmind-db!
52
+ minitest
53
+ rake
54
+ rubocop
55
+ rubocop-performance
56
+
57
+ BUNDLED WITH
58
+ 2.6.2
data/README.dev.md CHANGED
@@ -1,45 +1,4 @@
1
1
  # How to release
2
- * Ensure tests pass: `rake`
3
- * Update changelog: Set version and release date
4
- * Set version in `maxmind-db.gemspec`
5
- * Add them: `git add -p`
6
- * Create a branch e.g. `horgh/release` and switch to it.
7
- * `main` is protected.
8
- * Commit: `git commit -m v1.0.0`
9
- * Tag: `git tag -a v1.0.0 -m v1.0.0`
10
- * Clean up to be sure nothing stray gets into gem: `git clean -dxff`
11
- * Create `.gem` file: `gem build maxmind-db.gemspec`
12
- * Complete prerequisites (see below)
13
- * You only need to do this once. You can tell if this is necessary if you
14
- are lacking `:rubygems_api_key` in `~/.local/share/gem/credentials`
15
- (previously `~/.gem/credentials`)
16
- * Upload to rubygems.org: `gem push maxmind-db-1.0.0.gem`
17
- * Push: `git push`
18
- * Push tag: `git push --tags`
19
- * Make a PR and get it merged.
20
- * Double check it looks okay at https://rubygems.org/gems/maxmind-db and
21
- https://www.rubydoc.info/gems/maxmind-db
22
2
 
23
-
24
- # Prerequisites
25
-
26
- ## Step 1
27
- Sign up for an account at rubygems.org if you don't have one.
28
-
29
- Enable multi factor authentication (for both UI and API).
30
-
31
-
32
- ## Step 2
33
- Ask someone who is an owner of the gem to add you as one.
34
-
35
- They do this by using the `gem owner` command
36
- ([docs](https://guides.rubygems.org/command-reference/#gem-owner)).
37
-
38
-
39
- ## Step 3
40
- Run `gem signin`. This will prompt you for your username and password, and
41
- then create an API key for you. Select the scopes `index_rubygems` and
42
- `push_rubygem` (I'm not sure the former is required, but anyway).
43
-
44
- Note you may need an up to date version of rubygems to do this as I believe
45
- support for API keys like this is a newer addition.
3
+ See
4
+ [here](https://github.com/maxmind/minfraud-api-ruby/blob/main/README.dev.md).
data/README.md CHANGED
@@ -35,7 +35,7 @@ For more information see the
35
35
 
36
36
  ## Requirements
37
37
 
38
- This code requires Ruby version 2.5 or higher.
38
+ This code requires Ruby version 3.0 or higher.
39
39
 
40
40
  ## Contributing
41
41
 
@@ -56,7 +56,7 @@ This library uses [Semantic Versioning](https://semver.org/).
56
56
 
57
57
  ## Copyright and License
58
58
 
59
- This software is Copyright (c) 2018 - 2023 by MaxMind, Inc.
59
+ This software is Copyright (c) 2018 - 2024 by MaxMind, Inc.
60
60
 
61
61
  This is free software, licensed under the [Apache License, Version
62
62
  2.0](LICENSE-APACHE) or the [MIT License](LICENSE-MIT), at your option.
data/Rakefile CHANGED
@@ -1,5 +1,6 @@
1
1
  # frozen_string_literal: true
2
2
 
3
+ require 'bundler/gem_tasks'
3
4
  require 'rake/testtask'
4
5
  require 'rubocop/rake_task'
5
6
 
data/maxmind-db.gemspec CHANGED
@@ -2,10 +2,10 @@
2
2
 
3
3
  Gem::Specification.new do |s|
4
4
  s.authors = ['William Storey']
5
- s.files = Dir['**/*']
5
+ s.files = Dir['**/*'].difference(Dir['.github/**/*', 'dev-bin/**/*'])
6
6
  s.name = 'maxmind-db'
7
7
  s.summary = 'A gem for reading MaxMind DB files.'
8
- s.version = '1.2.0'
8
+ s.version = '1.3.2'
9
9
 
10
10
  s.description = 'A gem for reading MaxMind DB files. MaxMind DB is a binary file format that stores data indexed by IP address subnets (IPv4 or IPv6).'
11
11
  s.email = 'support@maxmind.com'
@@ -19,7 +19,7 @@ Gem::Specification.new do |s|
19
19
  'source_code_uri' => 'https://github.com/maxmind/MaxMind-DB-Reader-ruby',
20
20
  'rubygems_mfa_required' => 'true',
21
21
  }
22
- s.required_ruby_version = '>= 2.5.0'
22
+ s.required_ruby_version = '>= 3.0'
23
23
 
24
24
  s.add_development_dependency 'minitest'
25
25
  s.add_development_dependency 'rake'
data/test/test_decoder.rb CHANGED
@@ -211,11 +211,9 @@ class DecoderTest < Minitest::Test
211
211
  end
212
212
 
213
213
  def validate_type_decoding(type, tests)
214
- values = []
215
- tests.each do |input, expected|
216
- values << check_decoding(type, input, expected)
214
+ tests.map do |input, expected|
215
+ check_decoding(type, input, expected)
217
216
  end
218
- values
219
217
  end
220
218
 
221
219
  def check_decoding(type, input, expected, name = nil)
data/test/test_reader.rb CHANGED
@@ -316,10 +316,9 @@ class ReaderTest < Minitest::Test
316
316
  reader = MaxMind::DB.new(
317
317
  'test/data/test-data/MaxMind-DB-test-decoder.mmdb'
318
318
  )
319
- e = assert_raises NoMethodError do
319
+ assert_raises NoMethodError do
320
320
  reader.metadata.what
321
321
  end
322
- assert(e.message.include?('undefined method `what\''))
323
322
  reader.close
324
323
  end
325
324
 
metadata CHANGED
@@ -1,14 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: maxmind-db
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.2.0
4
+ version: 1.3.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - William Storey
8
- autorequire:
9
8
  bindir: bin
10
9
  cert_chain: []
11
- date: 2023-11-22 00:00:00.000000000 Z
10
+ date: 2025-04-03 00:00:00.000000000 Z
12
11
  dependencies:
13
12
  - !ruby/object:Gem::Dependency
14
13
  name: minitest
@@ -75,6 +74,7 @@ extra_rdoc_files: []
75
74
  files:
76
75
  - CHANGELOG.md
77
76
  - Gemfile
77
+ - Gemfile.lock
78
78
  - LICENSE-APACHE
79
79
  - LICENSE-MIT
80
80
  - README.dev.md
@@ -168,7 +168,6 @@ metadata:
168
168
  homepage_uri: https://github.com/maxmind/MaxMind-DB-Reader-ruby
169
169
  source_code_uri: https://github.com/maxmind/MaxMind-DB-Reader-ruby
170
170
  rubygems_mfa_required: 'true'
171
- post_install_message:
172
171
  rdoc_options: []
173
172
  require_paths:
174
173
  - lib
@@ -176,15 +175,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
176
175
  requirements:
177
176
  - - ">="
178
177
  - !ruby/object:Gem::Version
179
- version: 2.5.0
178
+ version: '3.0'
180
179
  required_rubygems_version: !ruby/object:Gem::Requirement
181
180
  requirements:
182
181
  - - ">="
183
182
  - !ruby/object:Gem::Version
184
183
  version: '0'
185
184
  requirements: []
186
- rubygems_version: 3.4.18
187
- signing_key:
185
+ rubygems_version: 3.6.2
188
186
  specification_version: 4
189
187
  summary: A gem for reading MaxMind DB files.
190
188
  test_files: []