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 = {