diff options
author | Hiroshi SHIBATA <hsbt@ruby-lang.org> | 2019-11-07 08:43:10 +0900 |
---|---|---|
committer | Hiroshi SHIBATA <hsbt@ruby-lang.org> | 2019-11-07 16:36:13 +0900 |
commit | 478f6e2b34c985bd2305895b9eec6918338e8ee2 (patch) | |
tree | c24f259f8c6fb7f8d812925bb4f6c3fd95250ed6 /tool | |
parent | a396bef8d8b72328d411abe7a275736ad995fbcb (diff) |
Fixed an Errno::ENOENT with non-test libraries
Diffstat (limited to 'tool')
-rw-r--r-- | tool/sync_default_gems.rb | 4 |
1 files changed, 3 insertions, 1 deletions
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 |