summaryrefslogtreecommitdiff
path: root/tool
diff options
context:
space:
mode:
authorHiroshi SHIBATA <hsbt@ruby-lang.org>2020-02-01 11:31:46 +0900
committerHiroshi SHIBATA <hsbt@ruby-lang.org>2020-02-01 11:31:46 +0900
commit563f177aa41519db655359576386d438e3694c48 (patch)
tree038fa1d8c7c81ac1fe3cec83135593c208fd3b7c /tool
parentf8df531bbf4ae662fe6de2cf210a274c97d76bf3 (diff)
UnpackedInstaller on rbinstall.rb is inherited from Gem::Installer.
It also needs to explicitly convert from String to Gem::Package with initialization.
Diffstat (limited to 'tool')
-rwxr-xr-xtool/rbinstall.rb3
1 files changed, 2 insertions, 1 deletions
diff --git a/tool/rbinstall.rb b/tool/rbinstall.rb
index d13607f4b7..341adbf765 100755
--- a/tool/rbinstall.rb
+++ b/tool/rbinstall.rb
@@ -724,7 +724,8 @@ module RbInstall
end
def initialize(spec, *options)
- super(spec.loaded_from, *options)
+ package = Gem::Package.new(spec.loaded_from)
+ super(package, *options)
@package.extend(DirPackage).spec = spec
end