Fix nokogiri dependency to 1.5.x for ruby 1.8.7

Nokogiri 1.6.0+ requires ruby >= `1.9.2` which breaks for the older versions of ruby in the CI build.