summaryrefslogtreecommitdiff
path: root/tool/sync_default_gems.rb
diff options
context:
space:
mode:
authorHiroshi SHIBATA <hsbt@ruby-lang.org>2023-07-28 13:15:12 +0900
committerHiroshi SHIBATA <hsbt@ruby-lang.org>2023-07-28 13:15:12 +0900
commitce6c6c7cfae7bb328ef796b57a8daa1e6fba9955 (patch)
tree471002e9b72b43152badb79b5b793a3071bc7ed4 /tool/sync_default_gems.rb
parent93f57dbcefcb4aebfc8625ffac47499498f743ed (diff)
Exclude lockfile from sync target
Diffstat (limited to 'tool/sync_default_gems.rb')
-rwxr-xr-xtool/sync_default_gems.rb7
1 files changed, 3 insertions, 4 deletions
diff --git a/tool/sync_default_gems.rb b/tool/sync_default_gems.rb
index 15a7ca7b6b..c96e527aaf 100755
--- a/tool/sync_default_gems.rb
+++ b/tool/sync_default_gems.rb
@@ -153,10 +153,9 @@ module SyncDefaultGems
File.write("lib/bundler/bundler.gemspec", gemspec_content)
cp_r("#{upstream}/bundler/spec", "spec/bundler")
- cp_r(Dir.glob("#{upstream}/tool/bundler/dev_gems*"), "tool/bundler")
- cp_r(Dir.glob("#{upstream}/tool/bundler/test_gems*"), "tool/bundler")
- cp_r(Dir.glob("#{upstream}/tool/bundler/rubocop_gems*"), "tool/bundler")
- cp_r(Dir.glob("#{upstream}/tool/bundler/standard_gems*"), "tool/bundler")
+ %w[dev_gems test_gems rubocop_gems standard_gems].each do |gemfile|
+ cp_r("#{upstream}/bundler/tool/bundler/#{gemfile}.rb", "tool/bundler")
+ end
rm_rf Dir.glob("spec/bundler/support/artifice/{vcr_cassettes,used_cassettes.txt}")
rm_rf Dir.glob("lib/{bundler,rubygems}/**/{COPYING,LICENSE,README}{,.{md,txt,rdoc}}")
when "rdoc"