ruby-changes:51774
From: hsbt <ko1@a...>
Date: Tue, 17 Jul 2018 20:39:24 +0900 (JST)
Subject: [ruby-changes:51774] hsbt:r63986 (trunk): Unified common workflow for default gems.
hsbt 2018-07-17 20:39:16 +0900 (Tue, 17 Jul 2018) New Revision: 63986 https://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=63986 Log: Unified common workflow for default gems. Modified files: trunk/tool/sync_default_gems.rb Index: tool/sync_default_gems.rb =================================================================== --- tool/sync_default_gems.rb (revision 63985) +++ tool/sync_default_gems.rb (revision 63986) @@ -127,16 +127,6 @@ def sync_default_gems(gem) https://github.com/ruby/ruby/blob/trunk/tool/sync_default_gems.rb#L127 `cp -rf ../io-console/lib/console ext/io/console/lib` `cp -f ../io-console/io-console.gemspec ext/io/console` `git checkout ext/io/console/depend` - when "csv" - `rm -rf lib/csv* test/csv` - `cp -rf ../csv/lib/* lib` - `cp -rf ../csv/test/csv test` - `cp -f ../csv/csv.gemspec lib/csv` - when "irb" - `rm -rf lib/irb* test/irb` - `cp -rf ../irb/lib/* lib` - `cp -rf ../irb/test/irb test` - `cp -f ../irb/irb.gemspec lib/irb` when "webrick" `rm -rf lib/webrick* test/webrick` `cp -rf ../webrick/lib/webrick* lib` @@ -217,30 +207,24 @@ def sync_default_gems(gem) https://github.com/ruby/ruby/blob/trunk/tool/sync_default_gems.rb#L207 `cp -rf ../prime/lib/* lib` `cp -rf ../prime/test/test_prime.rb test` `cp -f ../prime/prime.gemspec lib` - when "matrix" - `rm -rf lib/matrix* test/matrix` - `cp -rf ../matrix/lib/* lib` - `cp -rf ../matrix/test/matrix test` - `cp -f ../matrix/matrix.gemspec lib/matrix` when "ostruct" `rm -rf lib/ostruct.rb test/ostruct` `cp -rf ../ostruct/lib/* lib` `cp -rf ../ostruct/test/ostruct test` `cp -f ../ostruct/ostruct.gemspec lib` - when "rexml" - `rm -rf lib/rexml* test/rexml` - `cp -rf ../rexml/lib/* lib` - `cp -rf ../rexml/test/rexml test` - `cp -f ../rexml/rexml.gemspec lib/rexml` - when "rss" - `rm -rf lib/rss* test/rss` - `cp -rf ../rss/lib/* lib` - `cp -rf ../rss/test/rss test` - `cp -f ../rss/rss.gemspec lib/rss` + when "rexml", "rss", "matrix", "irb", "csv" + sync_lib gem else end end +def sync_lib(repo) + `rm -rf lib/#{repo}* test/#{repo}` + `cp -rf ../#{repo}/lib/* lib` + `cp -rf ../#{repo}/test/#{repo} test` + `cp -f ../#{repo}/#{repo}.gemspec lib/#{repo}` +end + if ARGV[0] sync_default_gems(ARGV[0]) else -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/