From 155989415b660caba247db74f96b299e0cea66c1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?David=20Rodr=C3=ADguez?= Date: Mon, 2 Sep 2024 19:12:06 +0200 Subject: [PATCH] [rubygems/rubygems] Avoid now unnecessary reset https://github.com/rubygems/rubygems/commit/511c7b211b --- lib/rubygems/commands/exec_command.rb | 5 ----- 1 file changed, 5 deletions(-) diff --git a/lib/rubygems/commands/exec_command.rb b/lib/rubygems/commands/exec_command.rb index 9489f3172c..7985b0fda6 100644 --- a/lib/rubygems/commands/exec_command.rb +++ b/lib/rubygems/commands/exec_command.rb @@ -57,8 +57,6 @@ to the same gem path as user-installed gems. end def execute - gem_paths = { "GEM_HOME" => Gem.paths.home, "GEM_PATH" => Gem.paths.path.join(File::PATH_SEPARATOR), "GEM_SPEC_CACHE" => Gem.paths.spec_cache_dir }.compact - check_executable print_command @@ -74,9 +72,6 @@ to the same gem path as user-installed gems. end load! - ensure - ENV.update(gem_paths) if gem_paths - Gem.clear_paths end private