diff --git a/lib/guard.rb b/lib/guard.rb index 44b4322..878e88a 100644 --- a/lib/guard.rb +++ b/lib/guard.rb @@ -140,7 +140,7 @@ module Guard # Let a Guard execute its task, but fire it # if his work leads to a system failure. # - # @param [Guard::Guard] the guard to execute + # @param [Guard::Guard] guard the Guard to execute # @param [Symbol] task_to_supervise the task to run # @param [Array] args the arguments for the task # @return [Boolean, Exception] the result of the Guard @@ -166,7 +166,7 @@ module Guard # @param [String] name the Guard name # @param [Array] watchers the list of declared watchers # @param [Array] callbacks the list of callbacks - # @param [Hash] the Guard options + # @param [Hash] options the Guard options # def add_guard(name, watchers = [], callbacks = [], options = {}) if name.to_sym == :ego diff --git a/lib/guard/dsl.rb b/lib/guard/dsl.rb index f8d0fc3..4ae1bd8 100644 --- a/lib/guard/dsl.rb +++ b/lib/guard/dsl.rb @@ -342,7 +342,7 @@ module Guard # Ignore certain paths globally. # # @example Ignore some paths - # ignore_paths .git, .svn + # ignore_paths ".git", ".svn" # # @param [Array] paths the list of paths to ignore # diff --git a/lib/guard/dsl_describer.rb b/lib/guard/dsl_describer.rb index be2446e..b049fc6 100644 --- a/lib/guard/dsl_describer.rb +++ b/lib/guard/dsl_describer.rb @@ -6,7 +6,7 @@ module Guard # of the Guardfile that is used in some inspection utility methods # like the CLI commands `show` and `list`. # - # @see Guard::DSL + # @see Guard::Dsl # @see Guard::CLI # class DslDescriber < Dsl diff --git a/lib/guard/ui.rb b/lib/guard/ui.rb index eb543a3..8ec264b 100644 --- a/lib/guard/ui.rb +++ b/lib/guard/ui.rb @@ -46,13 +46,13 @@ module Guard end end - # Show a debug message that is prefixed with DEBUG and a timestampe. + # Show a debug message that is prefixed with DEBUG and a timestamp. # # @param [String] message the message to show # @param [Hash] options the options # @option options [Boolean] reset whether to clean the output before # - def debug(message, options={ }) + def debug(message, options = { }) unless ENV['GUARD_ENV'] == 'test' reset_line if options[:reset] puts color("DEBUG (#{Time.now.strftime('%T')}): ", :yellow) + message if ::Guard.options && ::Guard.options[:debug]