summaryrefslogtreecommitdiff
path: root/tool/rbinstall.rb
diff options
context:
space:
mode:
authorHiroshi SHIBATA <hsbt@ruby-lang.org>2020-02-01 11:23:34 +0900
committerHiroshi SHIBATA <hsbt@ruby-lang.org>2020-02-01 11:23:34 +0900
commitf8df531bbf4ae662fe6de2cf210a274c97d76bf3 (patch)
treec2b79640d953b93337879bcad4056c490d9a5261 /tool/rbinstall.rb
parent600a715c9bde99fe2e9a669465d78833445273e8 (diff)
downloadruby-f8df531bbf4ae662fe6de2cf210a274c97d76bf3.tar.gz
Gem::Installer.new(String, options) is obsoleted. Explicitly converted
to Gem::Package from String instance.
Diffstat (limited to 'tool/rbinstall.rb')
-rwxr-xr-xtool/rbinstall.rb3
1 files changed, 2 insertions, 1 deletions
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}