From 5d2fb5d76b576be080e9cfc9301cce0b5f061981 Mon Sep 17 00:00:00 2001 From: David Rodriguez Date: Fri, 12 Apr 2024 18:42:06 +0200 Subject: [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 --- lib/bundler/environment_preserver.rb | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) (limited to 'lib') 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] -- cgit v1.2.3