summaryrefslogtreecommitdiff
path: root/lib/bundler/settings.rb
diff options
context:
space:
mode:
authorJosh Nichols <josh.nichols@gusto.com>2023-08-16 15:08:54 -0400
committergit <svn-admin@ruby-lang.org>2023-08-20 09:06:43 +0000
commit29aab66e6b7e71e139644817109c20a26fa05f3e (patch)
treeb73bc7a00dfb9030e1682197df059ee2d88103d2 /lib/bundler/settings.rb
parent239e35254bc26e747d40fd99e348d486d9ae9f87 (diff)
[rubygems/rubygems] call key.to_s once instead of multiple times to save when it's a symbol
https://github.com/rubygems/rubygems/commit/535feb817c
Diffstat (limited to 'lib/bundler/settings.rb')
-rw-r--r--lib/bundler/settings.rb2
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/bundler/settings.rb b/lib/bundler/settings.rb
index 0275844dc1..3aba4247a0 100644
--- a/lib/bundler/settings.rb
+++ b/lib/bundler/settings.rb
@@ -412,6 +412,8 @@ module Bundler
end
def converted_value(value, key)
+ key = key.to_s
+
if is_array(key)
to_array(value)
elsif value.nil?