зеркало из https://github.com/github/ruby.git
[rubygems/rubygems] Use Array#union to join these, instead of with | multiple times. This saves allocating 2 arrays
https://github.com/rubygems/rubygems/commit/48c03b33b7
This commit is contained in:
Родитель
79b187a45e
Коммит
2a61e1dccc
|
@ -146,7 +146,7 @@ module Bundler
|
||||||
end
|
end
|
||||||
|
|
||||||
def all
|
def all
|
||||||
keys = @temporary.keys | @global_config.keys | @local_config.keys | @env_config.keys
|
keys = @temporary.keys.union(@global_config.keys, @local_config.keys, @env_config.keys)
|
||||||
|
|
||||||
keys.map do |key|
|
keys.map do |key|
|
||||||
key.sub(/^BUNDLE_/, "").gsub(/___/, "-").gsub(/__/, ".").downcase
|
key.sub(/^BUNDLE_/, "").gsub(/___/, "-").gsub(/__/, ".").downcase
|
||||||
|
|
Загрузка…
Ссылка в новой задаче