зеркало из https://github.com/github/ruby.git
UnpackedInstaller on rbinstall.rb is inherited from Gem::Installer.
It also needs to explicitly convert from String to Gem::Package with initialization.
This commit is contained in:
Родитель
f8df531bbf
Коммит
563f177aa4
|
@ -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
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче