test of linux listener usability work with ruby 1.9.2

This commit is contained in:
Yann Lugrin 2010-10-21 17:04:10 +08:00 committed by Thibaud Guillaume-Gentil
parent eb8decd9ee
commit ffe9f933b0

View File

@ -30,7 +30,7 @@ module Guard
def self.usable?
require 'rb-inotify'
if !defined?(INotify::VERSION) || Gem::Version.new(INotify::VERSION) < 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