lib/test_notifier/notifier.rb in test_notifier-0.3.4 vs lib/test_notifier/notifier.rb in test_notifier-0.3.5.rc.1

- old
+ new

@@ -4,10 +4,11 @@ autoload :Snarl, "test_notifier/notifier/snarl" autoload :OsdCat, "test_notifier/notifier/osd_cat" autoload :Knotify, "test_notifier/notifier/knotify" autoload :Kdialog, "test_notifier/notifier/kdialog" autoload :NotifySend, "test_notifier/notifier/notify_send" + autoload :Placebo, "test_notifier/notifier/placebo" extend self def notifiers constants.collect do |name| @@ -19,10 +20,10 @@ notifiers.select {|notifier| notifier.supported?} end def from_name(name) notifier = const_get(classify(name.to_s)) - rescue NameError + rescue Exception nil end def supported_notifier_from_name(name) notifier = from_name(name)