From 5d0ec698defe72b83881bdbaf5e7350da1055ec9 Mon Sep 17 00:00:00 2001 From: Thibaud Guillaume-Gentil Date: Mon, 25 Oct 2010 21:36:04 +0200 Subject: [PATCH] Properly close rb-fsevent pipe after killed it Closes #5. --- CHANGELOG.rdoc | 6 ++++++ Gemfile | 2 +- lib/guard/listeners/darwin.rb | 4 ++-- 3 files changed, 9 insertions(+), 3 deletions(-) diff --git a/CHANGELOG.rdoc b/CHANGELOG.rdoc index 7d18730..6dcdb90 100644 --- a/CHANGELOG.rdoc +++ b/CHANGELOG.rdoc @@ -2,6 +2,12 @@ Bugs fixes: +- Avoid creating new copy of fsevent_watch every time a file is changed. (issue #5) + +== 0.2.1 (Oct 24, 2010) + +Bugs fixes: + - Fixes for Linux support == 0.2.0 (Oct 21, 2010) diff --git a/Gemfile b/Gemfile index 729ab8f..46730fb 100644 --- a/Gemfile +++ b/Gemfile @@ -5,7 +5,7 @@ gemspec require 'rbconfig' if Config::CONFIG['target_os'] =~ /darwin/i - gem 'rb-fsevent', '>= 0.3.3' + gem 'rb-fsevent', '>= 0.3.4' gem 'growl', '~> 1.0.3' end if Config::CONFIG['target_os'] =~ /linux/i diff --git a/lib/guard/listeners/darwin.rb b/lib/guard/listeners/darwin.rb index 2005dce..4b70d9c 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.3') - UI.info "Please update rb-fsevent (>= 0.3.3)" + if !defined?(FSEvent::VERSION) || Gem::Version.new(FSEvent::VERSION) < Gem::Version.new('0.3.4') + UI.info "Please update rb-fsevent (>= 0.3.4)" false else true