Skip to content

Normalize Gemfile.lock platforms and update Bundler to 4.0.8#128

Open
marcosdemelo wants to merge 1 commit intoannacruz:mainfrom
marcosdemelo:chore/update-bundler-and-normalize-platforms
Open

Normalize Gemfile.lock platforms and update Bundler to 4.0.8#128
marcosdemelo wants to merge 1 commit intoannacruz:mainfrom
marcosdemelo:chore/update-bundler-and-normalize-platforms

Conversation

@marcosdemelo
Copy link
Copy Markdown
Contributor

Summary

  • Replace versioned Darwin platforms (arm64-darwin-24, arm64-darwin-25) with the generic arm64-darwin in the PLATFORMS section of Gemfile.lock
  • Update BUNDLED WITH from 2.3.3 to 4.0.8

Background

The PLATFORMS accumulation problem

Bundler records the exact OS platform string when bundle install is run. On macOS, this includes the Darwin kernel version (e.g. arm64-darwin-24 for macOS Sequoia, arm64-darwin-25 for macOS Tahoe). As contributors upgrade their OS or as CI images are updated, new entries get appended to the PLATFORMS section — purely as noise, with no functional benefit.

Using the generic arm64-darwin (without a version suffix) avoids this accumulation. Bundler 4.x handles the generic platform correctly and matches it against pre-compiled binaries.

Why Bundler 4.0.8?

Bundler 4.0 requires Ruby >= 3.1.0. This aligns directly with our own Nokogiri constraint: Nokogiri 1.18.x requires Ruby >= 3.1.0 (rubygems.org), which we already depend on. There is no regression risk for any environment already running this gem.

Test plan

  • All 141 existing RSpec examples pass with no failures

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@marcosdemelo marcosdemelo changed the title chore: normalize Gemfile.lock platforms and update Bundler to 4.0.8 Normalize Gemfile.lock platforms and update Bundler to 4.0.8 Mar 23, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant