module Guard::Compat::UI

def self.notify(msg, options = {})

def self.notify(msg, options = {})
  return $stdout.puts(msg) unless Guard.const_defined?(:UI)
  return Notifier.notify(msg, options) if Notifier.respond_to?(:notify)
  # test helper was included
  note = 'NOTE: Notification is disabled when testing Guard plugins'\
    ' (it makes no sense)'
  $stderr.puts(note)
  $stdout.puts(msg)
end