From 5ba71d4a5f5a28651ffcc5bbcabd6a3470e90eb5 Mon Sep 17 00:00:00 2001 From: Ryan Davis Date: Sun, 5 May 2024 13:06:48 -0800 Subject: [PATCH] - Fix NoMethodError: undefined method 'verbose'. (adangel) [git-p4: depot-paths = "//src/hoe/dev/": change = 14130] --- lib/hoe/debug.rb | 2 +- test/test_hoe_debug.rb | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/hoe/debug.rb b/lib/hoe/debug.rb index 8a4fdbe..a77b827 100644 --- a/lib/hoe/debug.rb +++ b/lib/hoe/debug.rb @@ -86,7 +86,7 @@ def check_manifest File.open f, "w" do |fp| fp.puts files end - verbose = { :verbose => Rake.application.options.verbose } + verbose = { :verbose => Rake.application.options.trace || Rake.verbose } begin sh "#{DIFF} -du Manifest.txt #{f}", verbose diff --git a/test/test_hoe_debug.rb b/test/test_hoe_debug.rb index 11d99f1..c346d7e 100644 --- a/test/test_hoe_debug.rb +++ b/test/test_hoe_debug.rb @@ -7,8 +7,8 @@ class TestHoeDebug < Minitest::Test include Hoe::Debug - # On Rake 0.8.7 verbose_flag is true, causing two tests to fail. - RakeFileUtils.verbose_flag = nil + # On Rake 0.8.7 verbose_flag is true, causing three tests to fail. + Rake.verbose(false) attr_accessor :generated_files