summaryrefslogtreecommitdiff
path: root/tool/rbinstall.rb
diff options
context:
space:
mode:
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 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