Removed the unless with multiple conditions. Changed it back to if

This commit is contained in:
Bruno Tavares 2011-05-05 20:52:11 -03:00
parent cefb872360
commit ed0b086cc5
2 changed files with 2 additions and 2 deletions

View File

@ -25,7 +25,7 @@ module Guard
def self.usable?
require 'rb-fsevent'
unless defined?(FSEvent::VERSION) || Gem::Version.new(FSEvent::VERSION) >= Gem::Version.new('0.3.9')
if !defined?(FSEvent::VERSION) || Gem::Version.new(FSEvent::VERSION) < Gem::Version.new('0.3.9')
UI.info "Please update rb-fsevent (>= 0.3.9)"
false
else

View File

@ -32,7 +32,7 @@ module Guard
def self.usable?
require 'rb-inotify'
unless defined?(INotify::VERSION) || Gem::Version.new(INotify::VERSION.join('.')) >= Gem::Version.new('0.5.1')
if !defined?(INotify::VERSION) || Gem::Version.new(INotify::VERSION.join('.')) < Gem::Version.new('0.5.1')
UI.info "Please update rb-inotify (>= 0.5.1)"
false
else