summaryrefslogtreecommitdiff
path: root/tool
diff options
context:
space:
mode:
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