summaryrefslogtreecommitdiff
path: root/tool
diff options
context:
space:
mode:
authorHiroshi SHIBATA <hsbt@ruby-lang.org>2020-08-25 21:17:19 +0900
committerHiroshi SHIBATA <hsbt@ruby-lang.org>2020-08-25 21:17:19 +0900
commit2e3a7f70ae71650be6ea38a483f66ce17ca5eb1d (patch)
tree80c93d7a798c1e5980c43996b0eda1043ddb591c /tool
parent8d68f54c94ff46f3677f133fb1b6c48861efc62e (diff)
Promote nkf to default gems
Diffstat (limited to 'tool')
-rw-r--r--tool/sync_default_gems.rb8
1 files changed, 8 insertions, 0 deletions
diff --git a/tool/sync_default_gems.rb b/tool/sync_default_gems.rb
index 4842f81973..c2ebd39e82 100644
--- a/tool/sync_default_gems.rb
+++ b/tool/sync_default_gems.rb
@@ -66,6 +66,7 @@ $repositories = {
find: "ruby/find",
rinda: "ruby/rinda",
erb: "ruby/erb",
+ nkf: "ruby/nkf",
}
def sync_default_gems(gem)
@@ -271,6 +272,13 @@ def sync_default_gems(gem)
cp_r("#{upstream}/test/erb", "test")
cp_r("#{upstream}/erb.gemspec", "lib")
cp_r("#{upstream}/exe/erb", "libexec")
+ when "nkf"
+ rm_rf(%w[ext/nkf test/nkf])
+ cp_r("#{upstream}/ext/nkf", "ext")
+ cp_r("#{upstream}/lib", "ext/nkf")
+ cp_r("#{upstream}/test/nkf", "test")
+ cp_r("#{upstream}/nkf.gemspec", "ext/nkf")
+ `git checkout ext/nkf/depend`
else
sync_lib gem
end