summaryrefslogtreecommitdiff
path: root/tool/sync_default_gems.rb
diff options
context:
space:
mode:
authorHiroshi SHIBATA <hsbt@ruby-lang.org>2020-09-10 20:42:53 +0900
committerHiroshi SHIBATA <hsbt@ruby-lang.org>2020-09-10 20:42:53 +0900
commit867204c4a558f318be9d39da47298d5ccc85ff17 (patch)
tree07b53dc45eda817bfc1e7896827143b76b0f116d /tool/sync_default_gems.rb
parentcf76a4a5c28ee41221d961935e08404a0ceac6df (diff)
downloadruby-867204c4a558f318be9d39da47298d5ccc85ff17.tar.gz
Promote syslog to default gems
Diffstat (limited to 'tool/sync_default_gems.rb')
-rw-r--r--tool/sync_default_gems.rb9
1 files changed, 9 insertions, 0 deletions
diff --git a/tool/sync_default_gems.rb b/tool/sync_default_gems.rb
index 517f048b35..40ee949aab 100644
--- a/tool/sync_default_gems.rb
+++ b/tool/sync_default_gems.rb
@@ -71,6 +71,7 @@ REPOSITORIES = {
abbrev: "ruby/abbrev",
shellwords: "ruby/shellwords",
base64: "ruby/base64",
+ syslog: "ruby/syslog",
}
def sync_default_gems(gem)
@@ -283,6 +284,14 @@ def sync_default_gems(gem)
cp_r("#{upstream}/test/nkf", "test")
cp_r("#{upstream}/nkf.gemspec", "ext/nkf")
`git checkout ext/nkf/depend`
+ when "syslog"
+ rm_rf(%w[ext/syslog test/syslog test/test_syslog.rb])
+ cp_r("#{upstream}/ext/syslog", "ext")
+ cp_r("#{upstream}/lib", "ext/syslog")
+ cp_r("#{upstream}/test/syslog", "test")
+ cp_r("#{upstream}/test/test_syslog.rb", "test")
+ cp_r("#{upstream}/syslog.gemspec", "ext/syslog")
+ `git checkout ext/syslog/depend`
else
sync_lib gem
end