diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index fe4dd8e..5c5a677 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -17,6 +17,11 @@ jobs: environment: release permissions: id-token: write + env: + # Keep the bundle out of the system gems. release-gem signs the gem + # with an unbundled `gem exec` that sees the system gems, and the json + # version in Gemfile.lock can break the signer there. + BUNDLE_PATH: vendor/bundle steps: - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 with: @@ -35,4 +40,17 @@ jobs: # zizmor complains that 'v1' is a ref that can be provided by both the branch and tag namespaces. # specify that we want the v1 branch. - - uses: rubygems/release-gem@7f9650160c1a4e7989fdc9855807bdbd421d8b6b # v1.4.1 + - uses: rubygems/release-gem@5c53f5308233b7c0f47411f0471b3faae6fa57b2 # v1.4.2 + + # release-gem pushes the gem without an attestation if signing fails, + # and the job still passes. Fail the job so that someone notices. + - name: Check that RubyGems.org has an attestation + run: | + for gem in pkg/*.gem; do + name="$(basename "$gem" .gem)" + if ! curl -fsS "https://rubygems.org/api/v1/attestations/$name.json" | + jq -e 'length > 0' >/dev/null; then + echo "::error::RubyGems.org has no attestation for $name." + exit 1 + fi + done diff --git a/.gitignore b/.gitignore index 3231e9a..fa0c5b3 100644 --- a/.gitignore +++ b/.gitignore @@ -8,3 +8,4 @@ pkg .DS_Store .claude .lycheecache +/vendor/bundle diff --git a/CHANGELOG.md b/CHANGELOG.md index 3183fc3..413ef2c 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,6 +1,6 @@ # Changelog -## v2.11.0 +## v2.11.0 (2026-11-18) * Added the `phone_verification_method`, `phone_was_verification_successful`, and `phone_verification_time` @@ -46,6 +46,10 @@ second 60, a UTC offset of 24 hours or more, and a lowercase `t` or `z`. * Added the processor `:ryft` to `Minfraud::Components::Payment`. +* The minimum version of the `maxmind-geoip2` gem is now 1.7.0. It + requires `maxmind-db` 1.5.0, which limits the work and memory of each + decode of a crafted database and makes lookups faster. See the + [maxmind-geoip2 1.7.0 changelog](https://github.com/maxmind/GeoIP2-ruby/blob/v1.7.0/CHANGELOG.md). ## v2.10.0 (2026-07-21) diff --git a/Gemfile.lock b/Gemfile.lock index 76d723d..6f820ff 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -1,10 +1,10 @@ PATH remote: . specs: - minfraud (2.10.0) + minfraud (2.11.0) connection_pool (>= 2.2, < 4.0) http (>= 4.3, < 7.0) - maxmind-geoip2 (~> 1.6) + maxmind-geoip2 (~> 1.7) simpleidn (~> 0.1, >= 0.1.1) GEM @@ -42,11 +42,11 @@ GEM llhttp-ffi (0.5.1) ffi-compiler (~> 1.0) rake (~> 13.0) - maxmind-db (1.4.0) - maxmind-geoip2 (1.6.0) + maxmind-db (1.5.0) + maxmind-geoip2 (1.7.0) connection_pool (>= 2.2, < 4.0) http (>= 4.3, < 7.0) - maxmind-db (~> 1.4) + maxmind-db (~> 1.5) parallel (1.28.0) parser (3.3.13.0) ast (~> 2.4.1) diff --git a/lib/minfraud/version.rb b/lib/minfraud/version.rb index eb80e4c..62c2c10 100644 --- a/lib/minfraud/version.rb +++ b/lib/minfraud/version.rb @@ -2,5 +2,5 @@ module Minfraud # The Gem version. - VERSION = '2.10.0' + VERSION = '2.11.0' end diff --git a/minfraud.gemspec b/minfraud.gemspec index 77a6c0e..01714b3 100644 --- a/minfraud.gemspec +++ b/minfraud.gemspec @@ -31,7 +31,7 @@ Gem::Specification.new do |spec| spec.add_dependency 'connection_pool', '>= 2.2', '< 4.0' spec.add_dependency 'http', '>= 4.3', '< 7.0' - spec.add_dependency 'maxmind-geoip2', '~> 1.6' + spec.add_dependency 'maxmind-geoip2', '~> 1.7' spec.add_dependency 'simpleidn', '~> 0.1', '>= 0.1.1' spec.add_development_dependency 'bundler', '~> 2.2'