fixes #2808 - pin nokogiri to 1.5.x for Ruby 1.8
(cherry picked from commit 0b547e84f7342cbb809ffe5e1f171c0f4b1e8f05)