ruby-changes:60146
From: Hiroshi <ko1@a...>
Date: Fri, 21 Feb 2020 21:42:48 +0900 (JST)
Subject: [ruby-changes:60146] 8d3b7f0fda (master): Fixed net-pop, smtp, protocol and imap task for sync tool
https://git.ruby-lang.org/ruby.git/commit/?id=8d3b7f0fda From 8d3b7f0fda491b076965fc37e2f56bd141cedee7 Mon Sep 17 00:00:00 2001 From: Hiroshi SHIBATA <hsbt@r...> Date: Fri, 21 Feb 2020 21:30:04 +0900 Subject: Fixed net-pop, smtp, protocol and imap task for sync tool diff --git a/tool/sync_default_gems.rb b/tool/sync_default_gems.rb index cd894ae..dd143e5 100644 --- a/tool/sync_default_gems.rb +++ b/tool/sync_default_gems.rb @@ -277,17 +277,29 @@ def sync_default_gems(gem) https://github.com/ruby/ruby/blob/trunk/tool/sync_default_gems.rb#L277 cp_r("#{upstream}/HISTORY.md", "ext/openssl") `git checkout ext/openssl/depend` when "net-pop" - sync_lib "net-pop" - mv "lib/net-pop.gemspec", "lib/net/pop" + rm_rf(%w[lib/net/pop.rb lib/net/pop test/net/pop]) + cp_r("#{upstream}/lib/net/pop.rb", "lib/net") + cp_r("#{upstream}/lib/net/pop", "lib/net") + cp_r("#{upstream}/test/net/pop", "test/net") + cp_r("#{upstream}/net-pop.gemspec", "lib/net/pop") when "net-smtp" - sync_lib "net-smtp" - mv "lib/net-smtp.gemspec", "lib/net/smtp" + rm_rf(%w[lib/net/smtp.rb lib/net/smtp test/net/smtp]) + cp_r("#{upstream}/lib/net/smtp.rb", "lib/net") + cp_r("#{upstream}/lib/net/smtp", "lib/net") + cp_r("#{upstream}/test/net/smtp", "test/net") + cp_r("#{upstream}/net-smtp.gemspec", "lib/net/smtp") when "net-protocol" - sync_lib "net-protocol" - mv "lib/net-protocol.gemspec", "lib/net/protocol" + rm_rf(%w[lib/net/protocol.rb lib/net/protocol test/net/protocol]) + cp_r("#{upstream}/lib/net/protocol.rb", "lib/net") + cp_r("#{upstream}/lib/net/protocol", "lib/net") + cp_r("#{upstream}/test/net/protocol", "test/net") + cp_r("#{upstream}/net-protocol.gemspec", "lib/net/protocol") when "net-imap" - sync_lib "net-imap" - mv "lib/net-imap.gemspec", "lib/net/imap" + rm_rf(%w[lib/net/imap.rb lib/net/imap test/net/imap]) + cp_r("#{upstream}/lib/net/imap.rb", "lib/net") + cp_r("#{upstream}/lib/net/imap", "lib/net") + cp_r("#{upstream}/test/net/imap", "test/net") + cp_r("#{upstream}/net-imap.gemspec", "lib/net/imap") when "net-ftp" rm_rf(%w[lib/net/ftp.rb lib/net/ftp test/net/ftp]) cp_r("#{upstream}/lib/net/ftp.rb", "lib/net") -- cgit v0.10.2 -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/