title: Nokogiri 1.6.8 is installed but gives error for previous Nokogiri when running "bundle install"
body: <p>We had a server shutdown and Redmine stopped working, so I had to reinstall Bundler and run <code>bundle install</code>.</p>
  
  <p>While running <code>bundle install</code> I get this error:</p>
  
  <pre><code>c:\APPS\webapps\redmine-3.2.0&gt;bundle install
  Fetching gem metadata from https://rubygems.org/.............
  Fetching gem metadata from https://rubygems.org/.
  Resolving dependencies....
  Using rake 12.3.2
  Using concurrent-ruby 1.1.5
  Using i18n 0.9.5
  Using json 1.8.6
  Using minitest 5.11.3
  Using thread_safe 0.3.6
  Using tzinfo 1.2.5
  Using activesupport 4.2.5
  Using builder 3.2.3
  Using erubis 2.7.0
  Using mini_portile2 2.4.0
  Fetching nokogiri 1.9.1 (x64-mingw32)
  Installing nokogiri 1.9.1 (x64-mingw32)
  Gem::RuntimeRequirementNotMetError: nokogiri requires Ruby version &gt;= 2.2, &lt;
  2.6. The current ruby version is 2.0.0.
  An error occurred while installing nokogiri (1.9.1), and Bundler cannot
  continue.
  Make sure that `gem install nokogiri -v '1.9.1' --source
  'https://rubygems.org/'` succeeds before bundling.
  
  In Gemfile:
    rails was resolved to 4.2.5, which depends on
      actionmailer was resolved to 4.2.5, which depends on
        actionpack was resolved to 4.2.5, which depends on
          actionview was resolved to 4.2.5, which depends on
            rails-dom-testing was resolved to 1.0.9, which depends on
              nokogiri
  </code></pre>
  
  <p>I already installed Nokogiri 1.6.8. I'm not sure why it cannot read the Nokogiri version that I installed and still fetches 1.9.1 because I need Ruby v. 2 for Redmine 2.3.0, however my bundle is still telling me that it is looking for 1.9.1. While doing <code>bundle install</code> I tried changing the Gemfile based on my research to <code>gem "nokogiri", "&gt;= 1.4.2"</code> however 1.9.1 is persisting. How can I successfully upgrade Nokogiri?</p>
  
  <p>I used: </p>
  
  <pre><code>gem "nokogiri", "1.6.8"
  </code></pre>
  
  <p>In my Gemfile I have:</p>
  
  <pre><code>c:\APPS\webapps\redmine-3.2.0&gt;bundle update nokogiri
  Fetching gem metadata from https://rubygems.org/.............
  Fetching gem metadata from https://rubygems.org/.
  Resolving dependencies....
  Bundler could not find compatible versions for gem "nokogiri":
    In Gemfile:
      nokogiri (= 1.6.8) java
  
      roadie-rails java was resolved to 1.2.0, which depends on
        roadie (~&gt; 3.1) java was resolved to 3.5.0, which depends on
          nokogiri (~&gt; 1.8) java
  </code></pre>
  
  <p>If I run what <code>gem install nokogiri -v '1.9.1'</code>, I get an error that my Ruby version is lower than expected and I cannot have a higher Ruby version because Redmine is an old version.</p>
  
  <p>Here are all the Nokogiri versions I have:</p>
  
  <pre><code>c:\APPS\webapps\redmine-3.2.0&gt;gem uninstall nokogiri
  YAML safe loading is not available. Please upgrade psych to a version that supports safe loading (&gt;= 2.0).
  
      Select gem to uninstall:
      1. nokogiri-1.6.8.rc3-x64-mingw32
      2. nokogiri-1.6.8-x64-mingw32
      3. nokogiri-1.6.8.1-x64-mingw32
      4. All versions
  </code></pre>