From 36f29b598af767e588c39502c673ba2b82dc035e Mon Sep 17 00:00:00 2001 From: Hiroshi SHIBATA Date: Sat, 23 May 2020 07:27:42 +0900 Subject: [PATCH] Fixed wrong usage rm_rf for cleanup the default gems in sync tool --- tool/sync_default_gems.rb | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/tool/sync_default_gems.rb b/tool/sync_default_gems.rb index 504c3b1980..cf03d58168 100644 --- a/tool/sync_default_gems.rb +++ b/tool/sync_default_gems.rb @@ -132,11 +132,11 @@ def sync_default_gems(gem) case gem when "rubygems" - rm_rf(%w[lib/rubygems* test/rubygems]) + rm_rf(%w[lib/rubygems lib/rubygems.rb test/rubygems]) cp_r(Dir.glob("#{upstream}/lib/rubygems*"), "lib") cp_r("#{upstream}/test/rubygems", "test") when "bundler" - rm_rf(%w[lib/bundler* libexec/bundler libexec/bundle spec/bundler man/bundle* man/gemfile*]) + rm_rf(%w[lib/bundler lib/bundler.rb libexec/bundler libexec/bundle spec/bundler man/bundle* man/gemfile*]) cp_r(Dir.glob("#{upstream}/bundler/lib/bundler*"), "lib") cp_r(Dir.glob("#{upstream}/bundler/exe/bundle*"), "libexec") cp_r("#{upstream}/bundler/bundler.gemspec", "lib/bundler") @@ -144,7 +144,7 @@ def sync_default_gems(gem) cp_r(Dir.glob("#{upstream}/bundler/man/*.{1,5,1\.txt,5\.txt,ronn}"), "man") rm_rf(%w[spec/bundler/support/artifice/vcr_cassettes]) when "rdoc" - rm_rf(%w[lib/rdoc* test/rdoc libexec/rdoc libexec/ri]) + rm_rf(%w[lib/rdoc lib/rdoc.rb test/rdoc libexec/rdoc libexec/ri]) cp_r(Dir.glob("#{upstream}/lib/rdoc*"), "lib") cp_r("#{upstream}/test/rdoc", "test") cp_r("#{upstream}/rdoc.gemspec", "lib/rdoc") @@ -153,7 +153,7 @@ def sync_default_gems(gem) rm_rf(%w[lib/rdoc/markdown.kpeg lib/rdoc/markdown/literals.kpeg lib/rdoc/rd/block_pager.ry lib/rdoc/rd/inline_parser.ry]) `git checkout lib/rdoc/.document` when "reline" - rm_rf(%w[lib/reline* test/reline]) + rm_rf(%w[lib/reline lib/reline.rb test/reline]) cp_r(Dir.glob("#{upstream}/lib/reline*"), "lib") cp_r("#{upstream}/test/reline", "test") cp_r("#{upstream}/reline.gemspec", "lib/reline") @@ -248,7 +248,7 @@ def sync_default_gems(gem) rm_rf(%w["ext/strscan/regenc.h ext/strscan/regint.h"]) `git checkout ext/strscan/depend` when "racc" - rm_rf(%w[lib/racc* ext/racc test/racc]) + rm_rf(%w[lib/racc lib/racc.rb ext/racc test/racc]) cp_r(Dir.glob("#{upstream}/lib/racc*"), "lib") mkdir_p("ext/racc/cparse") cp_r(Dir.glob("#{upstream}/ext/racc/cparse/*"), "ext/racc/cparse") @@ -316,7 +316,7 @@ def sync_default_gems(gem) cp_r("#{upstream}/readline-ext.gemspec", "ext/readline") `git checkout ext/readline/depend` when "did_you_mean" - rm_rf(%w[lib/did_you_mean* test/did_you_mean]) + rm_rf(%w[lib/did_you_mean lib/did_you_mean.rb test/did_you_mean]) cp_r(Dir.glob("#{upstream}/lib/did_you_mean*"), "lib") cp_r("#{upstream}/did_you_mean.gemspec", "lib/did_you_mean") cp_r("#{upstream}/test", "test/did_you_mean")