ruby-changes:51826
From: hsbt <ko1@a...>
Date: Wed, 25 Jul 2018 20:47:10 +0900 (JST)
Subject: [ruby-changes:51826] hsbt:r64040 (trunk): Support logger.gemspec
hsbt 2018-07-25 20:47:04 +0900 (Wed, 25 Jul 2018) New Revision: 64040 https://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=64040 Log: Support logger.gemspec Modified files: trunk/tool/sync_default_gems.rb Index: tool/sync_default_gems.rb =================================================================== --- tool/sync_default_gems.rb (revision 64039) +++ tool/sync_default_gems.rb (revision 64040) @@ -203,11 +203,6 @@ def sync_default_gems(gem) https://github.com/ruby/ruby/blob/trunk/tool/sync_default_gems.rb#L203 `cp -rf ../ipaddr/lib/* lib` `cp -rf ../ipaddr/test/test_ipaddr.rb test` `cp -f ../ipaddr/ipaddr.gemspec lib` - when "logger" - `rm -rf lib/logger.rb test/logger` - `cp -rf ../logger/lib/* lib` - `cp -rf ../logger/test/logger test` - `cp -f ../logger/logger.gemspec lib` when "prime" `rm -rf lib/prime.rb test/test_prime.rb` `cp -rf ../prime/lib/* lib` @@ -228,7 +223,7 @@ def sync_default_gems(gem) https://github.com/ruby/ruby/blob/trunk/tool/sync_default_gems.rb#L223 `cp -rf ../tracer/lib/* lib` `cp -rf ../tracer/test/test_tracer.rb test` `cp -f ../tracer/tracer.gemspec lib` - when "rexml", "rss", "matrix", "irb", "csv", "shell" + when "rexml", "rss", "matrix", "irb", "csv", "shell", "logger" sync_lib gem else end @@ -238,7 +233,12 @@ def sync_lib(repo) https://github.com/ruby/ruby/blob/trunk/tool/sync_default_gems.rb#L233 `rm -rf lib/#{repo}.rb lib/#{repo}/* test/#{repo}` `cp -rf ../#{repo}/lib/* lib` `cp -rf ../#{repo}/test/#{repo} test` - `cp -f ../#{repo}/#{repo}.gemspec lib/#{repo}` + gemspec = if File.directory?("lib/#{repo}") + "lib/#{repo}/#{repo}.gemspec" + else + "lib/#{repo}.gemspec" + end + `cp -f ../#{repo}/#{repo}.gemspec #{gemspec}` end if ARGV[0] -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/