From 3b57879e71acc0428155fbe928301130e80ad065 Mon Sep 17 00:00:00 2001 From: Robert Herbig Date: Mon, 1 Dec 2014 05:40:07 -0600 Subject: [PATCH] Simplified platform detection for Windows --- site/_docs/windows.md | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/site/_docs/windows.md b/site/_docs/windows.md index b87140b9..81e909c9 100644 --- a/site/_docs/windows.md +++ b/site/_docs/windows.md @@ -39,6 +39,5 @@ built-in support for UNIX systems, it requires an extra gem for compatibility with Windows. Add the following to the Gemfile for your site: {% highlight ruby %} -require 'rbconfig' -gem 'wdm', '~> 0.1.0' if RbConfig::CONFIG['target_os'] =~ /mswin|mingw/i +gem 'wdm', '~> 0.1.0' if Gem.win_platform? {% endhighlight %}