Nokogiri requires Ruby version < 2.3
<p>I am trying to get Rails to work on Windows 10. I am using Ruby 2.3.0, and Rails 4.2.6, and am temporarily using Nokogiri 1.6.3.</p>

<p>When I try running <code>rails new demo</code>, it returns an error:</p>

<pre><code>An error occurred while installing nokogiri (1.6.7.2), and Bundler cannot
continue.
Make sure that `gem install nokogiri -v '1.6.7.2'` succeeds before bundling.
</code></pre>

<p>When I run <code>gem install nokogiri -v '1.6.7.2</code> I get:</p>

<pre><code>ERROR:  Error installing nokogiri:
        nokogiri requires Ruby version &lt; 2.3, &gt;= 1.9.2.
</code></pre>

<p>How do I update Nokogiri and get Rails to work?</p>