Skip to content


Subversion checkout URL

You can clone with
Download ZIP


Don't try to load the FSEvents listener on older versions of OSX. #238

merged 2 commits into from

2 participants


OS X 10.4.x (and earlier) don't have a (public) FSEvents API, and the FSEvent listener will not work for those OS versions. This means that you need to always remember to use --no-vendor when you invoke guard, or it will fail. This is a small change to the way the OS is detected to make it only try the FSEvents listener on appropriate versions of darwin.

@netzpirat netzpirat merged commit 9ea3b7c into guard:master
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
This page is out of date. Refresh to see the latest.
Showing with 2 additions and 2 deletions.
  1. +1 −1  Rakefile
  2. +1 −1  lib/guard/listeners/darwin.rb
2  Rakefile
@@ -63,7 +63,7 @@ namespace(:spec) do
desc "Run all specs on multiple ruby versions (requires rvm)"
task(:portability) do
- Rake::Task[:build_mac_exec].invoke if RbConfig::CONFIG['host_os'] =~ /darwin/
+ Rake::Task[:build_mac_exec].invoke if RbConfig::CONFIG['host_os'] =~ /darwin(9|1\d)/i
travis_config_file = File.expand_path("../.travis.yml", __FILE__)
travis_options ||= YAML::load_file(travis_config_file)
2  lib/guard/listeners/darwin.rb
@@ -30,7 +30,7 @@ def stop
# @return [Boolean] whether usable or not
def self.usable?(no_vendor = false)
- return false unless RbConfig::CONFIG['target_os'] =~ /darwin/i
+ return false unless RbConfig::CONFIG['target_os'] =~ /darwin(9|1\d)/i
$LOAD_PATH << File.expand_path('../../../vendor/darwin/lib', __FILE__) unless no_vendor
require 'rb-fsevent'
Something went wrong with that request. Please try again.