guard/guard — Issue #163: Guard cross-platform fs events and bundler issue
Author: zimbatm
Created: 2011-10-15 20:08:15+00:00
State: open

If you are on a Mac and want good performances and nice notifications, you need to install `rb-fsevent` and `growl_notifier`.

If you add those to your Gemfile, then your `bundle install` will not be cross-platform. If you don't add them to your Gemfile, bundler will not recognize them when you run `guard`. Also bundler supports a :platform selector but it doesn't allow you to select on :osx or :linux, only :mswin and other ruby implementations (see http://gembundler.com/man/gemfile.5.html )

My current solution is to create an :osx group in the gemfile but it's cumbersome to use because you have to then specify --without-osx, --without-linux on a windows platform.

Ideally, either Bundler would start supporting :osx and :linux platform selectors, either the fs event and notifier gems get merged instead of having one per platform. I don't know what's the best solution.