From ade925820187b979873f17402ff6ac9273cb5184 Mon Sep 17 00:00:00 2001 From: Laurence de Bruxelles Date: Tue, 29 Jul 2025 11:15:54 +0300 Subject: [PATCH 1/2] Bump bundler from 2.6.3 to 2.7.1 Bumps [bundler](https://bundler.io/) from 2.6.3 to 2.7.1. When using the latest version of RubyGems with Bundler 2.6.3 a number of `redefined constant` errors are emitted, so this commit bumps Bundler. - [Release notes](https://github.com/rubygems/rubygems/releases/tag/bundler-v2.7.1) - [Changelog](https://github.com/rubygems/rubygems/blob/bundler-v2.7.1/bundler/CHANGELOG.md) - [Commits](https://github.com/rubygems/rubygems/compare/bundler-v2.6.3...bundler-v2.7.1) Note that this bump drops support for Ruby 3.1. --- Gemfile.lock | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Gemfile.lock b/Gemfile.lock index 26ef59b7..f7614878 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -407,4 +407,4 @@ RUBY VERSION ruby 3.4.1p0 BUNDLED WITH - 2.6.3 + 2.7.1 From 8ad7d0baa4f8ae9654d91f72d69e9d7ff7e5a50f Mon Sep 17 00:00:00 2001 From: Laurence de Bruxelles Date: Tue, 29 Jul 2025 11:24:10 +0300 Subject: [PATCH 2/2] Update Gemfile to fix deprecation warnings The latest version of Bundler was complaining that Platform :mingw, :x64_mingw is deprecated. Please use platform :windows instead. This commit updates the line for the debug gem in to oblige it. This should work with all installations of this app, since Bundler will always install the version of Bundler specified in the lockfile before proceeding. We also add `require: "debug/prelude"` to the line for the debug gem to match what is generated by `rails new` (see [[1]]); this might also give a small speedup. [1]: https://github.com/rails/rails/commit/7254549dcd95a6b9f71dab48b2c0a56956682e9a --- Gemfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Gemfile b/Gemfile index 99a0ff56..d106df39 100644 --- a/Gemfile +++ b/Gemfile @@ -69,7 +69,7 @@ gem "kaminari" group :development, :test do # See https://guides.rubyonrails.org/debugging_rails_applications.html#debugging-with-the-debug-gem - gem "debug", platforms: %i[mri mingw x64_mingw] + gem "debug", platforms: %i[mri windows], require: "debug/prelude" gem "factory_bot_rails"