Resurrect gem-specific patterns for sync

Yet another partial revert of https://github.com/ruby/ruby/pull/8329,
similar to 00f263e6c4.

Repro: On ruby/ruby@1be64e34d0, `tool/sync_default_gems.rb yarp
162c2088eec6ec8f0558559e082cd661c18ee02a` should exist successfully, but
it doesn't without this gem-specific handling.
This commit is contained in:
Takashi Kokubun 2023-09-15 16:51:42 -07:00
Родитель cb686b9ccc
Коммит 43ab2acf82
1 изменённых файлов: 9 добавлений и 1 удалений

Просмотреть файл

@ -447,7 +447,15 @@ module SyncDefaultGems
# Gem-specific patterns # Gem-specific patterns
case gem case gem
when nil when "yarp"
%r[\A(?:
Makefile\.in
|configure\.ac
|fuzz/.*
|rust/.*
|tasks/.*
|ext/yarp/extconf\.rb
)\z]mx
end&.tap do |pattern| end&.tap do |pattern|
patterns << pattern patterns << pattern
end end