[rubygems/rubygems] Don't modify ENV when installing realworld gems

https://github.com/rubygems/rubygems/commit/b75319aa96
This commit is contained in:
David Rodríguez 2024-10-08 11:59:42 +02:00 committed by git
parent 7c304e316f
commit abd01d616a

View File

@ -388,10 +388,8 @@ module Spec
opts = gems.last.is_a?(Hash) ? gems.pop : {}
path = opts.fetch(:path, system_gem_path)
with_gem_path_as(path) do
gems.each do |gem|
gem_command "install --no-document #{gem}"
end
gems.each do |gem|
gem_command "install --no-document --install-dir #{path} #{gem}"
end
end