We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 581ca1c commit b2a6877Copy full SHA for b2a6877
Ruby/lib/terminal-notifier.rb
@@ -6,7 +6,11 @@ module TerminalNotifier
6
class UnsupportedPlatformError < StandardError; end
7
# Returns wether or not the current platform is Mac OS X 10.8, or higher.
8
def self.available?
9
- @available ||= `uname`.strip == 'Darwin' && `sw_vers -productVersion`.strip >= '10.8'
+ @available ||= Gem::Version.new(version) > Gem::Version.new('10.8')
10
+ end
11
+
12
+ def self.version
13
+ @version ||= `uname`.strip == 'Darwin' && `sw_vers -productVersion`.strip
14
end
15
16
def self.execute(verbose, options)
0 commit comments