[前][次][番号順一覧][スレッド一覧]

ruby-changes:59895

From: Hiroshi <ko1@a...>
Date: Sat, 1 Feb 2020 11:34:10 +0900 (JST)
Subject: [ruby-changes:59895] 563f177aa4 (master): UnpackedInstaller on rbinstall.rb is inherited from Gem::Installer.

https://git.ruby-lang.org/ruby.git/commit/?id=563f177aa4

From 563f177aa41519db655359576386d438e3694c48 Mon Sep 17 00:00:00 2001
From: Hiroshi SHIBATA <hsbt@r...>
Date: Sat, 1 Feb 2020 11:31:46 +0900
Subject: UnpackedInstaller on rbinstall.rb is inherited from Gem::Installer.

  It also needs to explicitly convert from String to Gem::Package
  with initialization.

diff --git a/tool/rbinstall.rb b/tool/rbinstall.rb
index d13607f..341adbf 100755
--- a/tool/rbinstall.rb
+++ b/tool/rbinstall.rb
@@ -724,7 +724,8 @@ module RbInstall https://github.com/ruby/ruby/blob/trunk/tool/rbinstall.rb#L724
     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
 
-- 
cgit v0.10.2


--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml/

[前][次][番号順一覧][スレッド一覧]