Skip to content

Commit

Permalink
Simplify syncing bundler
Browse files Browse the repository at this point in the history
These files no longer exist upstream, so they don't need to be synced.
  • Loading branch information
deivid-rodriguez authored and hsbt committed May 11, 2021
1 parent 774cc32 commit cc4d8d0
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions tool/sync_default_gems.rb
Expand Up @@ -95,15 +95,14 @@ def sync_default_gems(gem)
cp_r(Dir.glob("#{upstream}/lib/rubygems*"), "lib")
cp_r("#{upstream}/test/rubygems", "test")
when "bundler"
rm_rf(%w[lib/bundler lib/bundler.rb libexec/bundler libexec/bundle spec/bundler tool/bundler/*] + Dir.glob("man/{bundle*,gemfile*}"))
rm_rf(%w[lib/bundler lib/bundler.rb libexec/bundler libexec/bundle spec/bundler tool/bundler/*])
cp_r(Dir.glob("#{upstream}/bundler/lib/bundler*"), "lib")
cp_r(Dir.glob("#{upstream}/bundler/exe/bundle*"), "libexec")
cp_r("#{upstream}/bundler/bundler.gemspec", "lib/bundler")
cp_r("#{upstream}/bundler/spec", "spec/bundler")
cp_r(Dir.glob("#{upstream}/bundler/tool/bundler/test_gems*"), "tool/bundler")
cp_r(Dir.glob("#{upstream}/bundler/tool/bundler/rubocop_gems*"), "tool/bundler")
cp_r(Dir.glob("#{upstream}/bundler/tool/bundler/standard_gems*"), "tool/bundler")
cp_r(Dir.glob("#{upstream}/bundler/man/*.{1,5,1\.txt,5\.txt,ronn}"), "man")
`git checkout lib/bundler/bundler.gemspec`
rm_rf(%w[spec/bundler/support/artifice/vcr_cassettes])
when "rdoc"
Expand Down

0 comments on commit cc4d8d0

Please sign in to comment.