1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

Fixed an Errno::ENOENT with non-test libraries

This commit is contained in:
Hiroshi SHIBATA 2019-11-07 08:43:10 +09:00
parent a396bef8d8
commit 478f6e2b34
No known key found for this signature in database
GPG key ID: F9CF13417264FAC2

View file

@ -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