fixes #47: added rb-inotify for linux and wdm for windows

Ivan Youroff committed May 30, 2013
commit 221d544a924365a6f2fb7e12eb255918c6284fae
Showing 4 changed files with 13 additions and 5 deletions
generators/blank/Gemfile.tt +3 -1
@@ @@ -10,8 +10,10 @@ group :development do
# Unix
gem 'therubyracer', require: 'v8', platforms: :ruby
+ gem 'rb-inotify', '~> 0.9', require: RUBY_PLATFORM.include?('linux') && 'rb-inotify'
- # TODO: Windows
+ # Windows
+ gem 'wdm', '>= 0.1.0', require: RUBY_PLATFORM =~ /mswin|mingw/i && 'wdm'
end
group :misc do
generators/bootstrap/Gemfile.tt +3 -1
@@ @@ -10,8 +10,10 @@ group :development do
# Unix
gem 'therubyracer', require: 'v8', platforms: :ruby
+ gem 'rb-inotify', '~> 0.9', require: RUBY_PLATFORM.include?('linux') && 'rb-inotify'
- # TODO: Windows
+ # Windows
+ gem 'wdm', '>= 0.1.0', require: RUBY_PLATFORM =~ /mswin|mingw/i && 'wdm'
end
group :misc do
generators/cloned/Gemfile.tt +3 -1
@@ @@ -10,8 +10,10 @@ group :development do
# Unix
gem 'therubyracer', require: 'v8', platforms: :ruby
+ gem 'rb-inotify', '~> 0.9', require: RUBY_PLATFORM.include?('linux') && 'rb-inotify'
- # TODO: Windows
+ # Windows
+ gem 'wdm', '>= 0.1.0', require: RUBY_PLATFORM =~ /mswin|mingw/i && 'wdm'
end
group :misc do
generators/foundation/Gemfile.tt +4 -2
@@ @@ -6,12 +6,14 @@ gem 'locomotivecms_wagon', '<%= config[:version] -%>'
group :development do
# Mac OS X
- gem 'rb-fsevent', '~> 0.9.1', :require => RUBY_PLATFORM.include?('darwin') && 'rb-fsevent'
+ gem 'rb-fsevent', '~> 0.9.1', require: RUBY_PLATFORM.include?('darwin') && 'rb-fsevent'
# Unix
gem 'therubyracer', require: 'v8', platforms: :ruby
+ gem 'rb-inotify', '~> 0.9', require: RUBY_PLATFORM.include?('linux') && 'rb-inotify'
- # TODO: Windows
+ # Windows
+ gem 'wdm', '>= 0.1.0', require: RUBY_PLATFORM =~ /mswin|mingw/i && 'wdm'
end
group :misc do