diff options
author | Josh Nichols <josh.nichols@gusto.com> | 2023-08-19 12:23:11 -0400 |
---|---|---|
committer | git <svn-admin@ruby-lang.org> | 2023-08-20 09:07:00 +0000 |
commit | e5efa01c7dfaaff0f7f45c3c87e65a84ed43bd34 (patch) | |
tree | b6578966dada83464b73cc4a19a810d36aef9439 /lib/bundler/settings.rb | |
parent | f0bf9391dc61a8cf2500c9e6f361d1c336edf7bd (diff) |
[rubygems/rubygems] handle removing `BUNDLE_`, since using start_with? would still include that
https://github.com/rubygems/rubygems/commit/235d9b38d8
Diffstat (limited to 'lib/bundler/settings.rb')
-rw-r--r-- | lib/bundler/settings.rb | 4 |
1 files changed, 3 insertions, 1 deletions
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 = {} |