ruby-changes:62791
From: David <ko1@a...>
Date: Tue, 1 Sep 2020 21:18:31 +0900 (JST)
Subject: [ruby-changes:62791] 6b43200948 (master): Fix syncing bundler man pages
https://git.ruby-lang.org/ruby.git/commit/?id=6b43200948 From 6b432009485fed880949223b9f56c904f52881ed Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?David=20Rodr=C3=ADguez?= <deivid.rodriguez@r...> Date: Tue, 1 Sep 2020 13:46:53 +0200 Subject: Fix syncing bundler man pages `rm_rf` does not support globbing, so not all files get deleted. diff --git a/tool/sync_default_gems.rb b/tool/sync_default_gems.rb index 663f54b..1943eeb 100644 --- a/tool/sync_default_gems.rb +++ b/tool/sync_default_gems.rb @@ -80,7 +80,7 @@ def sync_default_gems(gem) https://github.com/ruby/ruby/blob/trunk/tool/sync_default_gems.rb#L80 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 man/bundle* man/gemfile*]) + rm_rf(%w[lib/bundler lib/bundler.rb libexec/bundler libexec/bundle spec/bundler] + Dir.glob("man/{bundle*,gemfile*}")) 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") -- cgit v0.10.2 -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/