diff --git a/lib/guard/listeners/darwin.rb b/lib/guard/listeners/darwin.rb index 775a368..c6eb055 100644 --- a/lib/guard/listeners/darwin.rb +++ b/lib/guard/listeners/darwin.rb @@ -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 diff --git a/lib/guard/listeners/linux.rb b/lib/guard/listeners/linux.rb index f7c5668..2d53b62 100644 --- a/lib/guard/listeners/linux.rb +++ b/lib/guard/listeners/linux.rb @@ -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