lib/quality/rake/task.rb in quality-21.0.4 vs lib/quality/rake/task.rb in quality-21.0.5

- old
+ new

@@ -81,11 +81,13 @@ def define desc 'Verify quality has increased or stayed ' \ 'the same' unless ::Rake.application.last_description @dsl.define_task(quality_name) { @runner.run_quality } @dsl.define_task(ratchet_name) { @runner.run_ratchet } - @runner.tools.each do |tool| - @dsl.define_task(tool) { @runner.run_quality_with_tool(tool) } + @runner.tools.each do |tool_name, tool_exe| + @dsl.define_task(tool_name) do + @runner.run_quality_with_tool(tool_exe) + end end end end end end