We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents c44fe8e + 75ffa8e commit 54032f3Copy full SHA for 54032f3
bundler/lib/bundler/settings.rb
@@ -102,10 +102,12 @@ def initialize(root = nil)
102
def [](name)
103
key = key_for(name)
104
105
- values = configs.values
106
- values.map! {|config| config[key] }
107
- values.compact!
108
- value = values.first
+ value = nil
+ configs.each do |_, config|
+ value = config[key]
+ next if value.nil?
109
+ break
110
+ end
111
112
converted_value(value, name)
113
end
@@ -316,7 +318,7 @@ def key_for(key)
316
318
private
317
319
320
def configs
- {
321
+ @configs ||= {
322
:temporary => @temporary,
323
:local => @local_config,
324
:env => @env_config,
0 commit comments