Trying to install Nokogiri I’m getting the following error
Maxims-MacBook-Air:ScrapingTheApple maximveksler$ gem install nokogiri
Fetching: nokogiri-1.6.2.1.
I was experiencing this problem as well, turns out for me it was a result of having installed macports under Mavericks, and not having migrating the setup to Yosemite.
Following the instructions here:
http://trac.macports.org/wiki/Migration
Allowed me to install the older version of Nokogiri (1.5.x) that was a dependency of rspec-puppet