summaryrefslogtreecommitdiff
path: root/tool/sync_default_gems.rb
diff options
context:
space:
mode:
authorDavid Rodríguez <deivid.rodriguez@riseup.net>2021-05-27 12:06:23 +0200
committerHiroshi SHIBATA <hsbt@ruby-lang.org>2021-05-31 21:26:24 +0900
commit395479907159c5d948492cf761c614fb7c8364df (patch)
tree34352e7d3aca97b1f1215ecb91587c8667fe27c2 /tool/sync_default_gems.rb
parentcd2190448d55edce5695c73b062e3faa7fb9bc3a (diff)
Tweak skipped files in bundler gemspec
We won't be using the `extra_rdoc_files` field, because it's very slow for markdown files.
Notes
Notes: Merged: https://github.com/ruby/ruby/pull/4537
Diffstat (limited to 'tool/sync_default_gems.rb')
-rw-r--r--tool/sync_default_gems.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/tool/sync_default_gems.rb b/tool/sync_default_gems.rb
index 80ba596ae7..1366c1d926 100644
--- a/tool/sync_default_gems.rb
+++ b/tool/sync_default_gems.rb
@@ -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