From 478f6e2b34c985bd2305895b9eec6918338e8ee2 Mon Sep 17 00:00:00 2001 From: Hiroshi SHIBATA Date: Thu, 7 Nov 2019 08:43:10 +0900 Subject: Fixed an Errno::ENOENT with non-test libraries --- tool/sync_default_gems.rb | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'tool') diff --git a/tool/sync_default_gems.rb b/tool/sync_default_gems.rb index fef9751cd9..8e169038f4 100644 --- a/tool/sync_default_gems.rb +++ b/tool/sync_default_gems.rb @@ -35,6 +35,7 @@ # * 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 = { 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) 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 v1.2.3