From edeaa1e864a4b01c9daa9888e979052045e18df3 Mon Sep 17 00:00:00 2001 From: Thibaud Guillaume-Gentil Date: Tue, 26 Oct 2010 21:24:04 +0200 Subject: [PATCH] Depends on rb-fsevent >= 0.3.5 for ruby 1.8.6 support --- Gemfile | 2 +- README.rdoc | 3 ++- lib/guard/listeners/darwin.rb | 4 ++-- 3 files changed, 5 insertions(+), 4 deletions(-) diff --git a/Gemfile b/Gemfile index 46730fb..413885b 100644 --- a/Gemfile +++ b/Gemfile @@ -5,7 +5,7 @@ gemspec require 'rbconfig' if Config::CONFIG['target_os'] =~ /darwin/i - gem 'rb-fsevent', '>= 0.3.4' + gem 'rb-fsevent', '>= 0.3.5' gem 'growl', '~> 1.0.3' end if Config::CONFIG['target_os'] =~ /linux/i diff --git a/README.rdoc b/README.rdoc index 3179968..612dc54 100644 --- a/README.rdoc +++ b/README.rdoc @@ -4,7 +4,7 @@ Guard is a command line tool to easly handle events on files modifications. == Features -- {FSEvent}[http://en.wikipedia.org/wiki/FSEvents] support on Mac OS X 10.5+ (without RubyCocoa!, {rb-fsevent gem, >= 0.3.4}[https://rubygems.org/gems/rb-fsevent] required) +- {FSEvent}[http://en.wikipedia.org/wiki/FSEvents] support on Mac OS X 10.5+ (without RubyCocoa!, {rb-fsevent gem, >= 0.3.5}[https://rubygems.org/gems/rb-fsevent] required) - {Inotify}[http://en.wikipedia.org/wiki/Inotify] support on Linux ({rb-inotify gem, >= 0.5.1}[https://rubygems.org/gems/rb-inotify] required) - Polling for others (help us to support more systems) - Super fast change detection (when polling not used) @@ -87,6 +87,7 @@ Signal handlers are used to interact with Guard: - {guard-compass}[http://github.com/guard/guard-compass] - {guard-shell}[http://github.com/guard/guard-shell] - {guard-bundler}[http://github.com/guard/guard-bundler] +- {guard-passenger}[http://github.com/guard/guard-passenger] guard ideas: diff --git a/lib/guard/listeners/darwin.rb b/lib/guard/listeners/darwin.rb index 4b70d9c..45d5737 100644 --- a/lib/guard/listeners/darwin.rb +++ b/lib/guard/listeners/darwin.rb @@ -25,8 +25,8 @@ module Guard def self.usable? require 'rb-fsevent' - if !defined?(FSEvent::VERSION) || Gem::Version.new(FSEvent::VERSION) < Gem::Version.new('0.3.4') - UI.info "Please update rb-fsevent (>= 0.3.4)" + if !defined?(FSEvent::VERSION) || Gem::Version.new(FSEvent::VERSION) < Gem::Version.new('0.3.5') + UI.info "Please update rb-fsevent (>= 0.3.5)" false else true