recently I installed Ruby 2.2.1 with the new RubyInstaller on Windows. To check whether everything was working I went into a rails app and ran bundle install wh
You can try to use cross-compilled gem. For me works fine.
Remove all versions of nokogiri installed previously
gem uninstall nokogiri
Download gem from https://github.com/paulgrant999/ruby-2.2.2-nokogiri-1.6.6.2-x86-x64-mingw32.gem
Install using one of the next commands:
For 64bit Ruby: gem install --local nokogiri-1.6.6.2-x64-mingw32.gem
For 32bit Ruby: gem install --local nokogiri-1.6.6.2-x86-mingw32.gem
Lock version of nokogiri i your Gemfile:
gem 'nokogiri', '1.6.6.2'