I decided to upgrade to 1.9.2 ruby yesterday and also installed rvm to do it. I ran a few recent files I had working previously on 1.8.7 but anything requiring nokogiri fail
Try running rvm requirements in Terminal and see if there are any missing dependencies. (It shows in red in my OS X)
rvm requirements
The returned notes helped me install missing dependencies with brew, with clearly stated steps.