summaryrefslogtreecommitdiff
path: root/tool/sync_default_gems.rb
diff options
context:
space:
mode:
authorHiroshi SHIBATA <hsbt@ruby-lang.org>2019-10-31 10:18:57 +0900
committerHiroshi SHIBATA <hsbt@ruby-lang.org>2019-10-31 10:19:57 +0900
commitc38ba75780c4641816a8090629d1b5eea22fd137 (patch)
tree5941b6ef14b5b558acf63f0e72455c4c66db7411 /tool/sync_default_gems.rb
parent79d96b42df8850b7ba5dd3a78cb72c23cf8cbe91 (diff)
Fixed the sync task for json
* Ignode to change ext/json/depend * Fixed to ignore json_pure files
Diffstat (limited to 'tool/sync_default_gems.rb')
-rw-r--r--tool/sync_default_gems.rb5
1 files changed, 2 insertions, 3 deletions
diff --git a/tool/sync_default_gems.rb b/tool/sync_default_gems.rb
index 140cf3700d..f2e61f68ca 100644
--- a/tool/sync_default_gems.rb
+++ b/tool/sync_default_gems.rb
@@ -112,10 +112,9 @@ def sync_default_gems(gem)
cp_r("#{upstream}/ext/json/ext", "ext/json")
cp_r("#{upstream}/tests", "test/json")
cp_r("#{upstream}/lib", "ext/json")
- rm_rf(%[ext/json/lib/json/pure*])
cp_r("#{upstream}/json.gemspec", "ext/json")
- rm_rf(%w[ext/json/lib/json/ext])
- `git checkout ext/json/extconf.rb ext/json/parser/prereq.mk ext/json/generator/depend ext/json/parser/depend`
+ rm_rf(%w[ext/json/lib/json/ext ext/json/lib/json/pure.rb ext/json/lib/json/pure])
+ `git checkout ext/json/extconf.rb ext/json/parser/prereq.mk ext/json/generator/depend ext/json/parser/depend ext/json/depend`
when "psych"
rm_rf(%w[ext/psych test/psych])
cp_r("#{upstream}/ext/psych", "ext")