Simplified platform detection for Windows

This commit is contained in:
Robert Herbig 2014-12-01 05:40:07 -06:00
parent 19527b47ab
commit 3b57879e71
1 changed files with 1 additions and 2 deletions

View File

@ -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 %}