From 55946927c2ea0051e18c59fcccb67223c3964100 Mon Sep 17 00:00:00 2001 From: Thibaud Guillaume-Gentil Date: Fri, 13 May 2011 22:24:49 +0200 Subject: [PATCH] Required growl/libnotify each time in Guard::Notifier.notify for guard-rspec formatter that is called out of guard scope --- lib/guard/notifier.rb | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/guard/notifier.rb b/lib/guard/notifier.rb index 9cf3721..55ad56f 100644 --- a/lib/guard/notifier.rb +++ b/lib/guard/notifier.rb @@ -24,8 +24,10 @@ module Guard title = options[:title] || "Guard" case Config::CONFIG['target_os'] when /darwin/i + require_growl # need for guard-rspec formatter that is called out of guard scope Growl.notify message, :title => title, :icon => image_path(image), :name => "Guard" when /linux/i + require_libnotify # need for guard-rspec formatter that is called out of guard scope Libnotify.show :body => message, :summary => title, :icon_path => image_path(image) end end