From 287137651078d540a14dfbe78dd99b277f3ac4d2 Mon Sep 17 00:00:00 2001 From: David Rodriguez Date: Fri, 12 Apr 2024 18:20:57 +0200 Subject: [rubygems/rubygems] Remove unnecessary workaround All supported rubies include the fix. https://github.com/rubygems/rubygems/commit/9d74b699f5 --- lib/bundler/environment_preserver.rb | 13 +------------ 1 file changed, 1 insertion(+), 12 deletions(-) (limited to 'lib') diff --git a/lib/bundler/environment_preserver.rb b/lib/bundler/environment_preserver.rb index c4c1b53fa4..47fd4d9584 100644 --- a/lib/bundler/environment_preserver.rb +++ b/lib/bundler/environment_preserver.rb @@ -39,18 +39,7 @@ module Bundler # Replaces `ENV` with the bundler environment variables backed up def replace_with_backup - unless Gem.win_platform? - ENV.replace(backup) - return - end - - # Fallback logic for Windows below to workaround - # https://bugs.ruby-lang.org/issues/16798. Can be dropped once all - # supported rubies include the fix for that. - - ENV.clear - - backup.each {|k, v| ENV[k] = v } + ENV.replace(backup) end # @return [Hash] -- cgit v1.2.3