From 50b2bf27993a8b5de57c9fea98610666aec60e26 Mon Sep 17 00:00:00 2001 From: William Storey Date: Mon, 19 Jan 2026 09:29:34 -0800 Subject: [PATCH 1/3] Update Gemfile.lock during release --- dev-bin/release.sh | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/dev-bin/release.sh b/dev-bin/release.sh index 47908a6..14660c2 100755 --- a/dev-bin/release.sh +++ b/dev-bin/release.sh @@ -32,6 +32,7 @@ fi check_command perl check_command rake +check_command bundle # Check that we're not on the main branch current_branch=$(git branch --show-current) @@ -84,6 +85,9 @@ fi perl -pi -e "s/(?<=s.version\s{,20}=\s{,20}\').+?(?=\')/$version/g" maxmind-db.gemspec +# Update version in Gemfile.lock. +bundle install + echo $"Test results:" rake From 6ed920466ff7d91ff947da2ae19bb9b6595660ae Mon Sep 17 00:00:00 2001 From: William Storey Date: Mon, 19 Jan 2026 09:41:54 -0800 Subject: [PATCH 2/3] Use frozen mode for bundle install in CI This ensures CI fails immediately with a clear error if Gemfile.lock is out of sync, rather than silently updating it. Co-Authored-By: Claude Opus 4.5 --- .github/workflows/release.yml | 2 ++ .github/workflows/rubocop.yml | 2 ++ .github/workflows/test.yml | 2 ++ 3 files changed, 6 insertions(+) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index f3b8cbe..748592d 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -31,6 +31,8 @@ jobs: ruby-version: ruby - run: bundle install + env: + BUNDLE_FROZEN: true # 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. diff --git a/.github/workflows/rubocop.yml b/.github/workflows/rubocop.yml index 40fe044..f237ba4 100644 --- a/.github/workflows/rubocop.yml +++ b/.github/workflows/rubocop.yml @@ -23,4 +23,6 @@ jobs: ruby-version: 3.4 - run: bundle install + env: + BUNDLE_FROZEN: true - run: bundle exec rake -t rubocop diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 70007ac..ae8d7fe 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -38,4 +38,6 @@ jobs: ruby-version: ${{ matrix.version }} - run: bundle install + env: + BUNDLE_FROZEN: true - run: bundle exec rake -t test From ca6c1e80109ca7bb43e3a4564a2840d3322831a7 Mon Sep 17 00:00:00 2001 From: William Storey Date: Mon, 19 Jan 2026 09:58:26 -0800 Subject: [PATCH 3/3] Add java platform to Gemfile.lock for JRuby support This fixes JRuby CI builds which were failing with BUNDLE_FROZEN=true because the lockfile lacked JRuby-compatible gem variants. Co-Authored-By: Claude Opus 4.5 --- Gemfile.lock | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Gemfile.lock b/Gemfile.lock index 545c73e..a77b658 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -8,6 +8,7 @@ GEM specs: ast (2.4.3) json (2.18.0) + json (2.18.0-java) language_server-protocol (3.17.0.5) lint_roller (1.1.0) minitest (6.0.1) @@ -18,6 +19,7 @@ GEM racc prism (1.7.0) racc (1.8.1) + racc (1.8.1-java) rainbow (3.1.1) rake (13.3.1) regexp_parser (2.11.3) @@ -56,6 +58,7 @@ GEM unicode-emoji (4.2.0) PLATFORMS + java ruby x86_64-linux