1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

Tweak skipped files in bundler gemspec

We won't be using the `extra_rdoc_files` field, because it's very slow
for markdown files.
This commit is contained in:
David Rodríguez 2021-05-27 12:06:23 +02:00 committed by Hiroshi SHIBATA
parent cd2190448d
commit 3954799071
Notes: git 2021-05-31 21:26:50 +09:00

View file

@ -89,7 +89,7 @@ def sync_default_gems(gem)
cp_r(Dir.glob("#{upstream}/bundler/exe/bundle*"), "libexec")
gemspec_content = File.readlines("#{upstream}/bundler/bundler.gemspec").map do |line|
next if line =~ /extra_rdoc_files/
next if line =~ /LICENSE\.md/
line.gsub("bundler.gemspec", "lib/bundler/bundler.gemspec").gsub('"exe"', '"libexec"')
end.compact.join