Preview Ruby 4.1 is a preview. It can change before the final release. Switch to Ruby 4.0 →
class method
Gem::BundlerVersionFinder.bundle_config_version
bundle_config_version
lib/rubygems/bundler_version_finder.rb
View on GitHub ↗
# File tmp/rubies/ruby-4.1.0-preview1/lib/rubygems/bundler_version_finder.rb, line 84
def self.bundle_config_version
Gem::BundlerSettings.env("version") || Gem::BundlerSettings.from_config_files("version")
end
BUNDLE_VERSION is read before the config files here, unlike everywhere else in Bundler, so the env var alone is enough to pick the version that runs without editing a config file first.