Skip to content

Commit

Permalink
Gem::Installer.new(String, options) is obsoleted. Explicitly converted
Browse files Browse the repository at this point in the history
to Gem::Package from String instance.
  • Loading branch information
hsbt committed Feb 1, 2020
1 parent 600a715 commit f8df531
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion tool/rbinstall.rb
Expand Up @@ -904,7 +904,8 @@ def install_default_gem(dir, srcdir)
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}
Expand Down

0 comments on commit f8df531

Please sign in to comment.