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

[bundler/bundler] Rename a variable

Otherwise I get conflicts when extracting the helper.

https://github.com/bundler/bundler/commit/314c64cd07
This commit is contained in:
David Rodríguez 2019-08-15 19:24:56 +02:00 committed by Hiroshi SHIBATA
parent c896f71577
commit 19dabfbe57
No known key found for this signature in database
GPG key ID: F9CF13417264FAC2

View file

@ -268,11 +268,11 @@ RSpec.describe "The library itself" do
lib/bundler/templates/gems.rb
]
lib_tracked_files = ruby_core? ? `git ls-files -z -- lib/bundler lib/bundler.rb` : `git ls-files -z -- lib`
lib_tracked_files = lib_tracked_files.split("\x0").grep(/\.rb$/) - exclusions
lib_tracked_files.reject! {|f| f.start_with?("lib/bundler/vendor") }
lib_tracked_files.map! {|f| f.chomp(".rb") }
files_to_require = lib_tracked_files.split("\x0").grep(/\.rb$/) - exclusions
files_to_require.reject! {|f| f.start_with?("lib/bundler/vendor") }
files_to_require.map! {|f| f.chomp(".rb") }
sys_exec!("ruby -w -Ilib") do |input, _, _|
lib_tracked_files.each do |f|
files_to_require.each do |f|
input.puts "require '#{f.sub(%r{\Alib/}, "")}'"
end
end