diff options
author | Takashi Kokubun <takashikkbn@gmail.com> | 2023-08-21 21:45:33 -0700 |
---|---|---|
committer | Takashi Kokubun <takashikkbn@gmail.com> | 2023-08-21 21:45:33 -0700 |
commit | be889b6d6c3b919dc6a762c7cf0853b8d019cf55 (patch) | |
tree | 9b1187edf4477edfd0602e9e71f2e7563c6947b5 /tool | |
parent | 0955ca342ed01b61161e1a46015a58b54d2e7205 (diff) | |
download | ruby-be889b6d6c3b919dc6a762c7cf0853b8d019cf55.tar.gz |
Add a forgotten default value for ignored_paths
Diffstat (limited to 'tool')
-rwxr-xr-x | tool/sync_default_gems.rb | 5 |
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) |