Sha256: de521088e164127ab3545daf50d0f25c54f1b5e3f14044125cf485313aa553da

Contents?: true

Size: 433 Bytes

Versions: 8

Compression:

Stored size: 433 Bytes

Contents

module TestNotifier
  module Notifier
    module Snarl
      extend self

      def supported?
        return false unless RUBY_PLATFORM =~ /(mswin|mingw)/

        begin
          require "snarl" unless defined?(Snarl)
          true
        rescue LoadError
          false
        end
      end

      def notify(options)
        Snarl.show_message(options[:title], options[:message], options[:image])
      end
    end
  end
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
test_notifier-0.3.5.rc.1 lib/test_notifier/notifier/snarl.rb
test_notifier-0.3.4 lib/test_notifier/notifier/snarl.rb
test_notifier-0.3.3 lib/test_notifier/notifier/snarl.rb
test_notifier-0.3.2 lib/test_notifier/notifier/snarl.rb
test_notifier-0.3.1 lib/test_notifier/notifier/snarl.rb
test_notifier-0.3.0 lib/test_notifier/notifier/snarl.rb
test_notifier-0.2.1 lib/test_notifier/notifier/snarl.rb
test_notifier-0.2.0 lib/test_notifier/notifier/snarl.rb