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:
parent
c896f71577
commit
19dabfbe57
1 changed files with 4 additions and 4 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue