lib/quality/rake/task.rb in quality-17.2.0 vs lib/quality/rake/task.rb in quality-18.0.0
- old
+ new
@@ -14,10 +14,11 @@
end
end
require 'rake'
require 'rake/tasklib'
require 'rbconfig'
+require_relative '../which'
require_relative '../runner'
require_relative '../quality_checker'
require_relative '../config'
module Quality
@@ -45,11 +46,12 @@
count_file: File,
count_io: IO,
globber: Dir,
gem_spec: Gem::Specification,
quality_checker_class:
- Quality::QualityChecker)
+ Quality::QualityChecker,
+ which: Which.new)
@dsl = dsl
@cmd_runner = cmd_runner
@globber = globber
@config = Quality::Config.new(globber: globber)
yield @config if block_given?
@@ -57,10 +59,11 @@
gem_spec: gem_spec,
quality_checker_class:
quality_checker_class,
count_io: count_io,
count_file: count_file,
- globber: globber)
+ globber: globber,
+ which: which)
define
end
attr_reader :globber, :config