From 94dafb298757fefdaba508a78396207b5b74ee0e Mon Sep 17 00:00:00 2001 From: Earlopain <14981592+Earlopain@users.noreply.github.com> Date: Tue, 27 Jan 2026 14:10:28 +0100 Subject: [PATCH] Update bundler in the main gemfile Every time I run `bundle exec rake`, I get warnings about duplicate constants. This is solved in newer bundler versions: ``` /home/user/.rbenv/versions/4.0.0/lib/ruby/gems/4.0.0/gems/bundler-2.5.16/lib/bundler/rubygems_ext.rb:290: warning: already initialized constant Gem::Platform::JAVA /home/user/.rbenv/versions/4.0.0/lib/ruby/4.0.0/rubygems/platform.rb:279: warning: previous definition of JAVA was here ``` Bundler 4 requires ruby 3.2 but erb since 5.0 already imposes the same constraint. Bundler now warns about using mswin etc. Should use windows instead. --- Gemfile | 2 +- Gemfile.lock | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Gemfile b/Gemfile index 1a1ed1b269..abcb824ddb 100644 --- a/Gemfile +++ b/Gemfile @@ -11,7 +11,7 @@ gem "rake-compiler" gem "ruby_parser" gem "test-unit" -platforms :mri, :mswin, :mingw, :x64_mingw do +platforms :mri, :windows do gem "ffi" gem "irb" gem "ruby_memcheck" diff --git a/Gemfile.lock b/Gemfile.lock index be87f10dc9..f3c5fc0e42 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -81,4 +81,4 @@ DEPENDENCIES test-unit BUNDLED WITH - 2.5.16 + 4.0.4