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

ruby-changes:65252

From: Nobuyoshi <ko1@a...>
Date: Sun, 14 Feb 2021 14:05:39 +0900 (JST)
Subject: [ruby-changes:65252] fc56b96b09 (master): Fix gemspec only case

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

From fc56b96b09e477686975c978142e3af9179219cd Mon Sep 17 00:00:00 2001
From: Nobuyoshi Nakada <nobu@r...>
Date: Sun, 14 Feb 2021 13:20:22 +0900
Subject: Fix gemspec only case

---
 tool/rbinstall.rb | 7 ++++++-
 1 file changed, 6 insertions(+), 1 deletion(-)

diff --git a/tool/rbinstall.rb b/tool/rbinstall.rb
index 9f6c1c7..8790268 100755
--- a/tool/rbinstall.rb
+++ b/tool/rbinstall.rb
@@ -708,9 +708,14 @@ module RbInstall https://github.com/ruby/ruby/blob/trunk/tool/rbinstall.rb#L708
           prefix = @base_dir
         end
 
-        Dir.glob("#{base}{.rb,/**/*.rb}").collect do |ruby_source|
+        libs = Dir.glob("#{base}{.rb,/**/*.rb}").collect do |ruby_source|
           remove_prefix(prefix, ruby_source)
         end
+        if libs.empty?
+          [File.basename(@gemspec, '.gemspec') + '.rb']
+        else
+          libs
+        end
       end
 
       def built_libraries
-- 
cgit v1.1


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

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