lib/quality/rake/task.rb in quality-27.4.0 vs lib/quality/rake/task.rb in quality-28.0.0

- old
+ new

@@ -1,6 +1,5 @@ -#!/usr/bin/env ruby # frozen_string_literal: true # XXX: There's an underlying issue with bundler, and knowing my luck, # probably RVM that is causing confusion on which version of rake is # being pulled in in this situation. Similar issues from the past: @@ -77,11 +76,13 @@ def ratchet_name config.ratchet_name end def define - desc 'Verify quality has increased or stayed ' \ - 'the same' unless ::Rake.application.last_description + unless ::Rake.application.last_description + desc 'Verify quality has increased or stayed ' \ + 'the same' + end @dsl.define_task(quality_name) { @runner.run_quality } @dsl.define_task(ratchet_name) { @runner.run_ratchet } @runner.tools.each do |tool_name, tool_exe| @dsl.define_task(tool_name) do @runner.run_quality_with_tool(tool_name, tool_exe)