diff options
author | David RodrÃguez <deivid.rodriguez@riseup.net> | 2019-08-15 19:24:56 +0200 |
---|---|---|
committer | Hiroshi SHIBATA <hsbt@ruby-lang.org> | 2019-08-17 17:08:50 +0900 |
commit | 19dabfbe574f9a8298054eb417d299ec5fc18412 (patch) | |
tree | 0f1779895ce67031f594c13621393b689aadef56 /spec | |
parent | c896f71577e17e7b89ad39463b82d8936f000480 (diff) | |
download | ruby-19dabfbe574f9a8298054eb417d299ec5fc18412.tar.gz |
[bundler/bundler] Rename a variable
Otherwise I get conflicts when extracting the helper.
https://github.com/bundler/bundler/commit/314c64cd07
Diffstat (limited to 'spec')
-rw-r--r-- | spec/bundler/quality_spec.rb | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/spec/bundler/quality_spec.rb b/spec/bundler/quality_spec.rb index aa59e74662..922a99480c 100644 --- a/spec/bundler/quality_spec.rb +++ b/spec/bundler/quality_spec.rb @@ -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 |