Skip to content

Unblock bundle install on Ruby 4.0#35

Merged
bjonord merged 1 commit into
mainfrom
fix-bundle-for-ruby-4
Jun 22, 2026
Merged

Unblock bundle install on Ruby 4.0#35
bjonord merged 1 commit into
mainfrom
fix-bundle-for-ruby-4

Conversation

@bjonord

@bjonord bjonord commented Jun 22, 2026

Copy link
Copy Markdown
Contributor

Build #3 went green on the bootstrap step but the test step failed because bundle install couldn't run on Ruby 4.0: the gemspec pinned bundler "~> 2.4", and the lockfile pinned stringio 3.1.0, whose C extension predates the 4.0 rb_io_extract_modeenc signature change.

What does this PR do?

  • Removes spec.add_development_dependency "bundler", "~> 2.4" from request_queue_time.gemspec. Bundler is required to install the gem in the first place, so declaring a version dependency on it as a dev dep is also redundant.
  • Regenerates Gemfile.lock against Ruby 4.0.5. The refresh moves the transitive dep tree forward (rails 8.1, psych 5.4, stringio 3.1.7, etc.) so native extensions build on Ruby 4.

Note

Local bundle exec rake against Ruby 4.0.5 passes (9 examples, 0 failures). PR #33's tests will be 12 once this and #33 are both in.

The gemspec declared `bundler "~> 2.4"` as a dev dependency, which
collides with the Bundler that ships with Ruby 4.0 (currently 4.0.13)
and stops `bundle install` cold. Bundler is required to install the
gem in the first place, so declaring a version dependency on it as a
dev dep is also redundant. Remove the line.

Regenerate Gemfile.lock against Ruby 4.0.5. The previous lockfile
pinned `stringio 3.1.0`, whose C extension uses the pre-4.0 signature
for `rb_io_extract_modeenc` and fails to compile on 4.0. The refresh
picks up Ruby-4-compatible versions across the dep tree (rails 8.1,
psych 5.4, etc.).

`bundle exec rake` passes (9 examples, 0 failures) on Ruby 4.0.5.
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