lib/notifier/osd_cat.rb in notifier-0.2.0 vs lib/notifier/osd_cat.rb in notifier-0.2.1
- old
+ new
@@ -1,10 +1,10 @@
module Notifier
module OsdCat
extend self
def supported?
- RUBY_PLATFORM =~ /(linux|freebsd)/ && `which osd_cat > /dev/null` && $? == 0
+ Notifier.os?(/(linux|freebsd)/) && `which osd_cat > /dev/null` && $? == 0
end
def notify(options)
color = options.fetch(:color, "white")