ruby-changes:55540
From: Takashi <ko1@a...>
Date: Fri, 26 Apr 2019 18:18:19 +0900 (JST)
Subject: [ruby-changes:55540] Takashi Kokubun:a93f555699 (trunk): tool/sync_default_gems.rb: Check prerequisites
https://git.ruby-lang.org/ruby.git/commit/?id=a93f555699 From a93f55569950b714a3d1235e59ad0a7d5b88f938 Mon Sep 17 00:00:00 2001 From: Takashi Kokubun <takashikkbn@g...> Date: Fri, 26 Apr 2019 18:18:09 +0900 Subject: tool/sync_default_gems.rb: Check prerequisites diff --git a/tool/sync_default_gems.rb b/tool/sync_default_gems.rb index e7917f7..2bef1c6 100644 --- a/tool/sync_default_gems.rb +++ b/tool/sync_default_gems.rb @@ -208,6 +208,9 @@ def sync_default_gems(gem) https://github.com/ruby/ruby/blob/trunk/tool/sync_default_gems.rb#L208 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}") -- cgit v0.10.2 -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/