lib/autotest_notification.rb in urubatan-autotest-notification-0.1.0 vs lib/autotest_notification.rb in urubatan-autotest-notification-0.2.0
- old
+ new
@@ -1,9 +1,10 @@
$:.unshift(File.dirname(__FILE__))
require 'autotest_notification/linux'
require 'autotest_notification/mac'
require 'autotest_notification/windows'
+require 'autotest_notification/cygwin'
module AutotestNotification
FAIL = -1
PENDING = 0
SUCCESS = 1
@@ -56,10 +57,12 @@
case RUBY_PLATFORM
when /linux/
Linux.notify(title, msg, img)
when /darwin/
Mac.notify(title, msg, img, pri)
- when /mswin|cygwin/
+ when /cygwin/
+ Cygwin.notify(title, msg, img)
+ when /mswin/
Windows.notify(title, msg, img)
end
end
def pluralize(text, number)