lib/terminal-notifier-guard.rb in terminal-notifier-guard-1.6.3 vs lib/terminal-notifier-guard.rb in terminal-notifier-guard-1.6.4
- old
+ new
@@ -1,16 +1,16 @@
module TerminalNotifier
module Guard
- VERSION = "1.6.3"
+ VERSION = "1.6.4"
ICONS_PATH = File.expand_path("../../icons", __FILE__)
GUARD_ICON = File.join(ICONS_PATH, 'Guard.icns')
def self.osx_version
Gem::Version.new(`sw_vers -productVersion`.strip)
end
def self.terminal_notifier_version
- return unless installed?
+ return Gem::Version("0.0.0") unless installed?
Gem::Version.new(`#{bin_path}`.lines.first.match(/\d\.\d\.\d/)[0])
rescue
Gem::Version.new("0.0.0")
end