summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorDavid Rodriguez <deivid.rodriguez@riseup.net>2024-04-12 18:42:06 +0200
committergit <svn-admin@ruby-lang.org>2024-04-25 10:35:47 +0000
commit5d2fb5d76b576be080e9cfc9301cce0b5f061981 (patch)
treea89b2721ce786602b4979120168e337db3f817c3 /lib
parent287137651078d540a14dfbe78dd99b277f3ac4d2 (diff)
[rubygems/rubygems] Don't upcase Windows ENV when backing it up
I apparently did that to fix some issue with case insensitivity but I didn't add a spec, and I think not upcasing should not cause issues. https://github.com/rubygems/rubygems/commit/1b6f23275a
Diffstat (limited to 'lib')
-rw-r--r--lib/bundler/environment_preserver.rb9
1 files changed, 1 insertions, 8 deletions
diff --git a/lib/bundler/environment_preserver.rb b/lib/bundler/environment_preserver.rb
index 47fd4d9584..444ab6fd37 100644
--- a/lib/bundler/environment_preserver.rb
+++ b/lib/bundler/environment_preserver.rb
@@ -19,14 +19,7 @@ module Bundler
BUNDLER_PREFIX = "BUNDLER_ORIG_"
def self.from_env
- new(env_to_hash(ENV), BUNDLER_KEYS)
- end
-
- def self.env_to_hash(env)
- to_hash = env.to_hash
- return to_hash unless Gem.win_platform?
-
- to_hash.each_with_object({}) {|(k,v), a| a[k.upcase] = v }
+ new(ENV.to_hash, BUNDLER_KEYS)
end
# @param env [Hash]