lib/travis/tools/notification.rb in travis-1.6.2.travis.366.4 vs lib/travis/tools/notification.rb in travis-1.6.2.travis.367.4

- old
+ new

@@ -39,11 +39,11 @@ def notify(title, body) system BIN_PATH, '-message', body.to_s, '-title', title.to_s end def available? - System.mac? and `sw_vers -productVersion`.strip >= '10.8' + System.mac? and System.os_version.to_s >= '10.8' end end class Growl def initialize @@ -53,10 +53,10 @@ def notify(title, body) system @command, '-n', 'Travis', '--image', ICON, '-m', body, title end def available? - system "which #{@command} >/dev/null 2>/dev/null" unless System.windows? + System.has? @command end end class LibNotify < Growl def initialize