From e5efa01c7dfaaff0f7f45c3c87e65a84ed43bd34 Mon Sep 17 00:00:00 2001 From: Josh Nichols Date: Sat, 19 Aug 2023 12:23:11 -0400 Subject: [PATCH] [rubygems/rubygems] handle removing `BUNDLE_`, since using start_with? would still include that https://github.com/rubygems/rubygems/commit/235d9b38d8 --- lib/bundler/settings.rb | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lib/bundler/settings.rb b/lib/bundler/settings.rb index ce8112b793..1743b9c037 100644 --- a/lib/bundler/settings.rb +++ b/lib/bundler/settings.rb @@ -90,8 +90,10 @@ module Bundler def initialize(root = nil) @root = root @local_config = load_config(local_config_file) + @env_config = ENV.to_h - @env_config.select! {|key, _value| key.start_with?("BUNDLE_") } + @env_config.select! {|key, _value| key.start_with?("BUNDLE_")} + @env_config.delete("BUNDLE_") @global_config = load_config(global_config_file) @temporary = {}