[rubygems/rubygems] Avoid now unnecessary reset
https://github.com/rubygems/rubygems/commit/511c7b211b
This commit is contained in:
parent
72e80c8f29
commit
155989415b
@ -57,8 +57,6 @@ to the same gem path as user-installed gems.
|
|||||||
end
|
end
|
||||||
|
|
||||||
def execute
|
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
|
check_executable
|
||||||
|
|
||||||
print_command
|
print_command
|
||||||
@ -74,9 +72,6 @@ to the same gem path as user-installed gems.
|
|||||||
end
|
end
|
||||||
|
|
||||||
load!
|
load!
|
||||||
ensure
|
|
||||||
ENV.update(gem_paths) if gem_paths
|
|
||||||
Gem.clear_paths
|
|
||||||
end
|
end
|
||||||
|
|
||||||
private
|
private
|
||||||
|
Loading…
x
Reference in New Issue
Block a user