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

tool/sync_default_gems.rb: Check prerequisites

This commit is contained in:
Takashi Kokubun 2019-04-26 18:18:09 +09:00
parent 1cef6a0c0c
commit a93f555699
No known key found for this signature in database
GPG key ID: 6FFC433B12EE23DD

View file

@ -208,6 +208,9 @@ def sync_default_gems(gem)
end
def sync_lib(repo)
unless File.directory?("../#{repo}")
abort "Expected '../#{repo}' (#{File.expand_path("../#{repo}")}) to be a directory, but it wasn't."
end
`rm -rf lib/#{repo}.rb lib/#{repo}/* test/test_#{repo}.rb`
`cp -rf ../#{repo}/lib/* lib`
tests = if File.directory?("test/#{repo}")