summaryrefslogtreecommitdiff
path: root/tool/sync_default_gems.rb
diff options
context:
space:
mode:
authorTakashi Kokubun <takashikkbn@gmail.com>2023-08-21 21:45:33 -0700
committerTakashi Kokubun <takashikkbn@gmail.com>2023-08-21 21:45:33 -0700
commitbe889b6d6c3b919dc6a762c7cf0853b8d019cf55 (patch)
tree9b1187edf4477edfd0602e9e71f2e7563c6947b5 /tool/sync_default_gems.rb
parent0955ca342ed01b61161e1a46015a58b54d2e7205 (diff)
Add a forgotten default value for ignored_paths
Diffstat (limited to 'tool/sync_default_gems.rb')
-rwxr-xr-xtool/sync_default_gems.rb5
1 files changed, 3 insertions, 2 deletions
diff --git a/tool/sync_default_gems.rb b/tool/sync_default_gems.rb
index ce6a6dd0ae..1f2e0ddf4d 100755
--- a/tool/sync_default_gems.rb
+++ b/tool/sync_default_gems.rb
@@ -572,15 +572,16 @@ module SyncDefaultGems
elsif /^CONFLICT/ =~ result
# Forcibly remove any files that we don't want to copy to this repository.
# We also ignore them as new `toplevels` even when they don't conflict.
+ ignored_paths = []
case gem
when "rubygems"
# We don't copy any vcr_cassettes to this repository. Because the directory does not
# exist, rename detection doesn't work. So it starts with the original path `bundler/`.
- ignored_paths = %w[bundler/spec/support/artifice/vcr_cassettes]
+ ignored_paths += %w[bundler/spec/support/artifice/vcr_cassettes]
when "yarp"
# Rename detection never works between ruby/ruby/doc and ruby/yarp/docs
# since ruby/ruby/doc is not something owned by YARP.
- ignored_paths = %w[docs/]
+ ignored_paths += %w[docs/]
end
ignored_paths.each do |path|
if File.exist?(path)