lib/notifier/notify_send.rb in notifier-0.2.0 vs lib/notifier/notify_send.rb in notifier-0.2.1
- old
+ new
@@ -1,10 +1,10 @@
module Notifier
module NotifySend
extend self
def supported?
- RUBY_PLATFORM =~ /(linux|freebsd)/ && `which notify-send > /dev/null` && $? == 0
+ Notifier.os?(/(linux|freebsd)/) && `which notify-send > /dev/null` && $? == 0
end
def notify(options)
command = [
"notify-send", "-i",