diff options
author | Josh Nichols <josh.nichols@gusto.com> | 2023-08-16 15:04:06 -0400 |
---|---|---|
committer | git <svn-admin@ruby-lang.org> | 2023-08-20 09:06:07 +0000 |
commit | 2a61e1dccc85fc4c8d6d41ef246b96d0dde0096c (patch) | |
tree | b7691650d517278d3ca0a1c5bcd68bead1367e91 /lib/bundler/settings.rb | |
parent | 79b187a45ecc0f99af97631a1771092874344092 (diff) |
[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
Diffstat (limited to 'lib/bundler/settings.rb')
-rw-r--r-- | lib/bundler/settings.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/bundler/settings.rb b/lib/bundler/settings.rb index c12d1d4f74..b3cd274f31 100644 --- a/lib/bundler/settings.rb +++ b/lib/bundler/settings.rb @@ -146,7 +146,7 @@ module Bundler end 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| key.sub(/^BUNDLE_/, "").gsub(/___/, "-").gsub(/__/, ".").downcase |