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

ruby-changes:58608

From: Hiroshi <ko1@a...>
Date: Thu, 7 Nov 2019 16:38:07 +0900 (JST)
Subject: [ruby-changes:58608] 478f6e2b34 (master): Fixed an Errno::ENOENT with non-test libraries

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

From 478f6e2b34c985bd2305895b9eec6918338e8ee2 Mon Sep 17 00:00:00 2001
From: Hiroshi SHIBATA <hsbt@r...>
Date: Thu, 7 Nov 2019 08:43:10 +0900
Subject: Fixed an Errno::ENOENT with non-test libraries


diff --git a/tool/sync_default_gems.rb b/tool/sync_default_gems.rb
index fef9751..8e16903 100644
--- a/tool/sync_default_gems.rb
+++ b/tool/sync_default_gems.rb
@@ -35,6 +35,7 @@ https://github.com/ruby/ruby/blob/trunk/tool/sync_default_gems.rb#L35
 # * https://github.com/ruby/racc
 # * https://github.com/ruby/singleton
 # * https://github.com/ruby/open3
+# * https://github.com/ruby/getoptlong
 #
 
 require 'fileutils'
@@ -77,6 +78,7 @@ $repositories = { https://github.com/ruby/ruby/blob/trunk/tool/sync_default_gems.rb#L78
   racc: "ruby/racc",
   singleton: "ruby/singleton",
   open3: "ruby/open3",
+  getoptlong: "ruby/getoptlong",
 }
 
 def sync_default_gems(gem)
@@ -295,7 +297,7 @@ def sync_lib(repo) https://github.com/ruby/ruby/blob/trunk/tool/sync_default_gems.rb#L297
           else
             "test/test_#{repo}.rb"
           end
-  cp_r("../#{repo}/#{tests}", "test")
+  cp_r("../#{repo}/#{tests}", "test") if File.exist?("../#{repo}/#{tests}")
   gemspec = if File.directory?("lib/#{repo}")
               "lib/#{repo}/#{repo}.gemspec"
             else
-- 
cgit v0.10.2


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

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