inspect values rather than simply print them, so that strings appear quoted

This commit is contained in:
John Bintz 2011-06-21 10:34:11 -04:00
parent c3ddeac36f
commit 72f31c9eba

View File

@ -53,7 +53,7 @@ module Guard
line = " #{guard[:name]}" line = " #{guard[:name]}"
if !guard[:options].empty? if !guard[:options].empty?
line += ": #{guard[:options].collect { |k, v| "#{k} => #{v}" }.join(", ")}" line += ": #{guard[:options].collect { |k, v| "#{k} => #{v.inspect}" }.join(", ")}"
end end
::Guard::UI.info line ::Guard::UI.info line
end end