lib/guard/ui.rb in guard-0.8.8 vs lib/guard/ui.rb in guard-0.9.0
- old
+ new
@@ -54,11 +54,11 @@
# @option options [Boolean] reset whether to clean the output before
#
def debug(message, options = { })
unless ENV['GUARD_ENV'] == 'test'
reset_line if options[:reset]
- STDERR.puts color("DEBUG (#{Time.now.strftime('%T')}): ", :yellow) + message if ::Guard.options && ::Guard.options[:debug]
+ STDERR.puts color("DEBUG (#{Time.now.strftime('%T')}): ", :yellow) + message if ::Guard.options && ::Guard.options[:verbose]
end
end
# Reset a line.
#
@@ -117,10 +117,10 @@
#
# @example
#
# color('Hello World', :red, :bright)
#
- # @param [String] the text to colorize
+ # @param [String] text the text to colorize
# @param [Array] color_options the color options
#
def color(text, *color_options)
color_code = ''
color_options.each do |color_option|