lib/notifier/snarl.rb in notifier-0.2.0 vs lib/notifier/snarl.rb in notifier-0.2.1
- old
+ new
@@ -1,10 +1,10 @@
module Notifier
module Snarl
extend self
def supported?
- return false unless RUBY_PLATFORM =~ /(mswin|mingw)/
+ return false unless Notifier.os?(/(mswin|mingw)/)
begin
require "snarl" unless defined?(::Snarl)
true
rescue LoadError