From 42cf1307c3e110f5d01b74f16cbdd0f83e183abe Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?V=C3=ADt=20Ondruch?= Date: Fri, 20 Oct 2023 18:01:14 +0200 Subject: [rubygems/rubygems] Make the user installation less exceptional The main purpose is to put handling of user installation into the same place as e.g. handling the --build-root option handling. There is no reason why the --build-root option should not prefix also paths used for user installation. Please note that the `util_installer` in `test_generate_plugins_with_user_install` enforced the `:install_dir`, which is against what user install is about. https://github.com/rubygems/rubygems/commit/0b10cb41aa --- test/rubygems/test_gem_installer.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'test/rubygems/test_gem_installer.rb') diff --git a/test/rubygems/test_gem_installer.rb b/test/rubygems/test_gem_installer.rb index adda63cf22..155e9f6ff4 100644 --- a/test/rubygems/test_gem_installer.rb +++ b/test/rubygems/test_gem_installer.rb @@ -821,7 +821,7 @@ gem 'other', version File.chmod(0o555, Gem.plugindir) system_path = File.join(Gem.plugindir, "a_plugin.rb") user_path = File.join(Gem.plugindir(Gem.user_dir), "a_plugin.rb") - installer = util_installer spec, Gem.dir, :user + installer = Gem::Installer.at spec.cache_file, :user_install => true, :force => true assert_equal spec, installer.install -- cgit v1.2.3