diff options
author | Hiroshi SHIBATA <hsbt@ruby-lang.org> | 2020-02-21 21:25:43 +0900 |
---|---|---|
committer | Hiroshi SHIBATA <hsbt@ruby-lang.org> | 2020-02-21 21:25:43 +0900 |
commit | e7f8724fb223bbae8c467d854e4b4babe9273e62 (patch) | |
tree | edb8f340450bffeee9587dd00fcba461718102d8 /tool/sync_default_gems.rb | |
parent | fa1cf777dbe3c484331864d44c33bc30f2044c76 (diff) |
Fixed net-ftp sync task and resync from standalone repo
Diffstat (limited to 'tool/sync_default_gems.rb')
-rw-r--r-- | tool/sync_default_gems.rb | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/tool/sync_default_gems.rb b/tool/sync_default_gems.rb index 1794e017dc..cd894ae717 100644 --- a/tool/sync_default_gems.rb +++ b/tool/sync_default_gems.rb @@ -289,8 +289,11 @@ def sync_default_gems(gem) sync_lib "net-imap" mv "lib/net-imap.gemspec", "lib/net/imap" when "net-ftp" - sync_lib "net-ftp" - mv "lib/net-ftp.gemspec", "lib/net/ftp" + rm_rf(%w[lib/net/ftp.rb lib/net/ftp test/net/ftp]) + cp_r("#{upstream}/lib/net/ftp.rb", "lib/net") + cp_r("#{upstream}/lib/net/ftp", "lib/net") + cp_r("#{upstream}/test/net/ftp", "test/net") + cp_r("#{upstream}/net-ftp.gemspec", "lib/net/ftp") when "net-http" rm_rf(%w[lib/net/http.rb lib/net/http test/net/http]) cp_r("#{upstream}/lib/net/http.rb", "lib/net") |