diff --git a/docs/_docs/installation/windows.md b/docs/_docs/installation/windows.md index d8541088..2809f47b 100644 --- a/docs/_docs/installation/windows.md +++ b/docs/_docs/installation/windows.md @@ -55,7 +55,7 @@ Jekyll uses the `listen` gem to watch for changes when the `--watch` switch is s Add the following to the `Gemfile` for your site if you have issues with auto-regeneration on Windows alone: ```ruby -gem 'wdm', '~> 0.1.1' if Gem.win_platform? +gem 'wdm', '~> 0.1.1', :install_if => Gem.win_platform? ``` You have to use a [Ruby+Devkit](https://rubyinstaller.org/downloads/) version of the RubyInstaller. diff --git a/lib/jekyll/commands/new.rb b/lib/jekyll/commands/new.rb index df98590c..c6832d7b 100644 --- a/lib/jekyll/commands/new.rb +++ b/lib/jekyll/commands/new.rb @@ -91,7 +91,7 @@ module Jekyll # Windows does not include zoneinfo files, so bundle the tzinfo-data gem gem "tzinfo-data", platforms: [:mingw, :mswin, :x64_mingw, :jruby] # Performance-booster for watching directories on Windows - gem "wdm", "~> 0.1.0" if Gem.win_platform? + gem "wdm", "~> 0.1.1", :install_if => Gem.win_platform? RUBY end