summaryrefslogtreecommitdiff
path: root/tool/sync_default_gems.rb
diff options
context:
space:
mode:
authoraycabta <aycabta@gmail.com>2020-02-06 21:19:44 +0900
committeraycabta <aycabta@gmail.com>2020-02-06 21:20:20 +0900
commite323f50a9c71da2804f66ba6345ef071def60e1e (patch)
tree56e240d1634f35af7101976b8a76f7469eda6f38 /tool/sync_default_gems.rb
parent5fac54a594b475e7b7a07e925c0353e18c685f2b (diff)
Fix readline-ext sync
Diffstat (limited to 'tool/sync_default_gems.rb')
-rw-r--r--tool/sync_default_gems.rb6
1 files changed, 4 insertions, 2 deletions
diff --git a/tool/sync_default_gems.rb b/tool/sync_default_gems.rb
index 07deee6c64..329f0c1bd0 100644
--- a/tool/sync_default_gems.rb
+++ b/tool/sync_default_gems.rb
@@ -267,8 +267,10 @@ def sync_default_gems(gem)
sync_lib "net-smtp"
mv "lib/net-smtp.gemspec", "lib/net/smtp"
when "readline-ext"
- sync_lib "readline-ext"
- mv "lib/readline-ext.gemspec", "ext/readline"
+ rm_rf(%w[ext/readline test/readline])
+ cp_r("#{upstream}/ext/readline", "ext")
+ cp_r("#{upstream}/test/readline", "test")
+ cp_r("#{upstream}/readline-ext.gemspec", "ext/readline")
when "did_you_mean"
rm_rf(%w[lib/did_you_mean* test/did_you_mean])
cp_r(Dir.glob("#{upstream}/lib/did_you_mean*"), "lib")