From 5806f2cbf53cb9b64a0904b6b91a977d8a8807b7 Mon Sep 17 00:00:00 2001 From: Thomas Reynolds Date: Sun, 7 Jul 2013 20:57:04 -0700 Subject: [PATCH] auto include wdm on windows platforms --- middleman-core/lib/middleman-core/templates/empty/Gemfile.tt | 3 +++ middleman-core/lib/middleman-core/templates/shared/Gemfile.tt | 4 ++-- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/middleman-core/lib/middleman-core/templates/empty/Gemfile.tt b/middleman-core/lib/middleman-core/templates/empty/Gemfile.tt index 2dadbf76..f78d3f5b 100644 --- a/middleman-core/lib/middleman-core/templates/empty/Gemfile.tt +++ b/middleman-core/lib/middleman-core/templates/empty/Gemfile.tt @@ -2,6 +2,9 @@ source 'https://rubygems.org' gem "middleman", "~><%= Middleman::VERSION %>" +# For faster file watcher updates on Windows: +gem "wdm", "~> 0.1.0", :platforms => [:mswin, :mingw] + # Cross-templating language block fix for Ruby 1.8 platforms :mri_18 do gem "ruby18_source_location" diff --git a/middleman-core/lib/middleman-core/templates/shared/Gemfile.tt b/middleman-core/lib/middleman-core/templates/shared/Gemfile.tt index 35f99031..39cb9cb8 100644 --- a/middleman-core/lib/middleman-core/templates/shared/Gemfile.tt +++ b/middleman-core/lib/middleman-core/templates/shared/Gemfile.tt @@ -7,8 +7,8 @@ gem "middleman", "~><%= Middleman::VERSION %>" # Live-reloading plugin gem "middleman-livereload", "~> 3.1.0" -# For faster file watcher updates: -# gem "wdm", "~> 0.1.0") # Windows +# For faster file watcher updates on Windows: +gem "wdm", "~> 0.1.0", :platforms => [:mswin, :mingw] # Cross-templating language block fix for Ruby 1.8 platforms :mri_18 do