Skip to content

Use Ruby 3.4.9 and re-bundle - #729

Merged
mokagio merged 9 commits into
trunkfrom
mokagio/ruby-3.4.9
Jul 27, 2026
Merged

Use Ruby 3.4.9 and re-bundle#729
mokagio merged 9 commits into
trunkfrom
mokagio/ruby-3.4.9

Conversation

@mokagio

@mokagio mokagio commented Jun 11, 2026

Copy link
Copy Markdown
Contributor

I wanted to ship a new version after merging #757 , but run into the nokogiri-3.2.2-Xcode native extension clash.

Given adopting #757 is not super urgent, I decided to detour and (finish the work already started to) support Ruby 3.4.9 in this repo.

Comment thread Gemfile.lock
DEPENDENCIES
activesupport (~> 8.1)
buildkite-test_collector (~> 2.3)
bundler (~> 2.0)

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think this came from the old gem generator. But we don't need to define an explicit dependency on Bundler. As far as I know, we don't use any of its API directly.

mokagio added 7 commits July 24, 2026 15:03
Removing the Bundler dependency definition allows us to use the latest
bundler version (4.x vs 2.x).

Additionally, it is no longer recommended to use the dev dependencies
API, it's best to use Gemfile instead. See
rubygems/bundler#7222
This image supports Ruby 3.4.9 and it's better than 27.0-beta which may
not stick around.
@mokagio
mokagio force-pushed the mokagio/ruby-3.4.9 branch from fa05c27 to cab3b32 Compare July 24, 2026 05:12
@mokagio
mokagio marked this pull request as ready for review July 24, 2026 05:14
@mokagio
mokagio requested a review from a team as a code owner July 24, 2026 05:14
Copilot AI review requested due to automatic review settings July 24, 2026 05:14

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Updates the repository’s Ruby/tooling baseline to Ruby 3.4.9 and refreshes bundler artifacts to address native-extension/toolchain friction during releases.

Changes:

  • Bump the repo Ruby version to 3.4.9 and adjust Buildkite shared variables/toolchain image accordingly.
  • Move development/test/tooling gems from the gemspec into the Gemfile, and re-bundle (including a Bundler version update in Gemfile.lock).
  • Adjust the Faraday constraint used alongside Fastlane.

Reviewed changes

Copilot reviewed 4 out of 5 changed files in this pull request and generated 1 comment.

Show a summary per file
File Description
Gemfile.lock Re-bundled dependencies; updates dependency list and BUNDLED WITH version.
Gemfile Centralizes development/test/tooling dependencies (activesupport/rspec/rubocop/etc.) and pins Faraday for Fastlane compatibility.
fastlane-plugin-wpmreleasetoolkit.gemspec Removes development dependencies; keeps runtime dependencies (including Fastlane) in the gemspec.
.ruby-version Switches the repo’s Ruby version to 3.4.9.
.buildkite/shared-pipeline-vars Updates Xcode image and slightly refactors Ruby version export used for CI/docker image selection.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread Gemfile Outdated
Comment on lines -7 to +8
export RUBY_VERSION="$(cat "$SCRIPT_DIR/../.ruby-version")"
RUBY_VERSION="$(cat "$SCRIPT_DIR/../.ruby-version")"
export RUBY_VERSION

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ShellCheck told me about this.

spec.add_development_dependency 'rspec_junit_formatter', '~> 0.4.1'
spec.add_development_dependency 'rubocop', '~> 1.65'
spec.add_development_dependency 'rubocop-rspec', '3.0'
spec.add_development_dependency 'simplecov', '~> 0.16.1'

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

add_development_dependency is a valid setting and the Bundler team rejected a proposal to deprecated it.

The docs are somewhat ambiguous:

Gemfile: Manages gem dependencies for development. Contains a gemspec line meaning that Bundler will include dependencies specified in foodie.gemspec too. It’s best practice to specify all dependencies in the gemspec.

Happy to revert if we find this confusing. In which case, though, we should also move the remaining gems from Gemfile to here.

@mokagio
mokagio enabled auto-merge July 27, 2026 03:59
@mokagio
mokagio merged commit a5c8412 into trunk Jul 27, 2026
6 checks passed
@mokagio
mokagio deleted the mokagio/ruby-3.4.9 branch July 27, 2026 04:00
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.

3 participants