From 28dc7aa0689852fa71abfa2ee171c655f51739e1 Mon Sep 17 00:00:00 2001 From: John Bintz Date: Sat, 4 Jun 2011 08:39:32 -0400 Subject: [PATCH] multi-platform gemfile --- Gemfile | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/Gemfile b/Gemfile index e070301..d83c3e8 100644 --- a/Gemfile +++ b/Gemfile @@ -7,7 +7,13 @@ gem 'fakefs', :require => nil gem 'guard' gem 'guard-rspec' -# TODO: make this more OS-independent...like the rest of the gem -gem 'growl' -gem 'rb-fsevent' +require 'rbconfig' +if Config::CONFIG['target_os'] =~ /darwin/i + gem 'rb-fsevent', '>= 0.3.9' + gem 'growl', '~> 1.0.3' +end +if Config::CONFIG['target_os'] =~ /linux/i + gem 'rb-inotify', '>= 0.5.1' + gem 'libnotify', '~> 0.1.3' +end