From 044100b7c35cc54459a0830d2cb6f30368704380 Mon Sep 17 00:00:00 2001 From: Michael Kessler Date: Tue, 20 Sep 2011 12:10:53 +0200 Subject: [PATCH] Fix command debug. --- lib/guard.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/guard.rb b/lib/guard.rb index 4a985aa..7cd574f 100644 --- a/lib/guard.rb +++ b/lib/guard.rb @@ -241,13 +241,13 @@ module Guard def debug_command_execution Kernel.send(:alias_method, :original_system, :system) Kernel.send(:define_method, :system) do |command, *args| - ::Guard::UI.debug 'Command execution: #{command} #{args.join(' ')}' + ::Guard::UI.debug "Command execution: #{ command } #{ args.join(' ') }" original_system command, *args end Kernel.send(:alias_method, :original_backtick, :'`') Kernel.send(:define_method, :'`') do |command| - ::Guard::UI.debug 'Command execution: #{command}' + ::Guard::UI.debug "Command execution: #{ command }" original_backtick command end end