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
Until they release a proper nokogiri release for Ruby 2.2, I'd like to share with you all, some steps to get it running.
Credits for Paul Grant and Daniel Rikowski for their help!
First, I must say I'm running Ruby 2.2.2p95 (32bits) on Windows 8.1 (64 bits) and Rails 4.2.3 installed (and Cygwin shell)
1) uninstall the nokogiri gem (you'll need to confirm because many gems depend on it)
2) download the nokogiri gem compiled on ruby 2.2 by Paul Grant (kudos for him) here: https://github.com/paulgrant999/ruby-2.2.2-nokogiri-1.6.6.2-x86-x64-mingw32.gem
3) installed the local gem ( gem install --local path/to/gem ) 32 bit version (in my case)
if you try to load rails here, bcrypt will fail, so, as posted by Daniel Rikowski, you can build your on bcrypt_ext.so file.
4) be sure that you have DevKit on your path (/devkit/bin and /devkit/mingw/bin)
5) go to bcrypt ext/mri gem subfolder: (I'm using Cygwin)
cd /cygdrive/c/Ruby22/lib/ruby/gems/2.2.0/gems/bcrypt-3.1.10-x86-mingw32/ext/mri
6) call ruby extconf.rb (to generate a Makefile)
7) just call make
(it will output many files including a bcrypt_ext.so file)
8) copy bcrypt_ext.so to /cygdrive/c/Ruby22/lib/ruby/gems/2.2.0/gems/bcrypt-3.1.10-x86-mingw32/lib/2.2 folder. You have to create this subfolder.
That's it! Now just start your rails server. Working like a charm!