From fdd18a4b79775ac71112cb2bc14efd80826833f5 Mon Sep 17 00:00:00 2001 From: Bo Anderson Date: Wed, 16 Aug 2023 01:26:36 +0100 Subject: [PATCH] utils/gems: update to Bundler 2.4 --- Library/Homebrew/utils/gems.rb | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Library/Homebrew/utils/gems.rb b/Library/Homebrew/utils/gems.rb index 86587ff10f..75be425cbd 100644 --- a/Library/Homebrew/utils/gems.rb +++ b/Library/Homebrew/utils/gems.rb @@ -10,7 +10,7 @@ require "English" module Homebrew # Keep in sync with the `Gemfile.lock`'s BUNDLED WITH. # After updating this, run `brew vendor-gems --update=--bundler`. - HOMEBREW_BUNDLER_VERSION = "2.3.26" + HOMEBREW_BUNDLER_VERSION = "2.4.18" module_function @@ -65,6 +65,8 @@ module Homebrew require "rubygems" raise "RubyGems too old!" if Gem::Version.new(Gem::VERSION) < Gem::Version.new("2.2.0") + ENV["BUNDLER_NO_OLD_RUBYGEMS_WARNING"] = "1" + # Match where our bundler gems are. gem_home = "#{HOMEBREW_LIBRARY_PATH}/vendor/bundle/ruby/#{RbConfig::CONFIG["ruby_version"]}" Gem.paths = {