From f8df531bbf4ae662fe6de2cf210a274c97d76bf3 Mon Sep 17 00:00:00 2001 From: Hiroshi SHIBATA Date: Sat, 1 Feb 2020 11:23:34 +0900 Subject: Gem::Installer.new(String, options) is obsoleted. Explicitly converted to Gem::Package from String instance. --- tool/rbinstall.rb | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tool/rbinstall.rb b/tool/rbinstall.rb index e5c34b5908..d13607f4b7 100755 --- a/tool/rbinstall.rb +++ b/tool/rbinstall.rb @@ -904,7 +904,8 @@ install?(:ext, :comm, :gem, :'bundled-gems') do Gem.instance_variable_set(:@ruby, with_destdir(File.join(bindir, ruby_install_name))) silent = Gem::SilentUI.new gems.each do |gem| - inst = Gem::Installer.new(gem, options) + package = Gem::Package.new(gem) + inst = Gem::Installer.new(package, options) inst.spec.extension_dir = with_destdir(inst.spec.extension_dir) begin Gem::DefaultUserInteraction.use_ui(silent) {inst.install} -- cgit v1.2.3