Fix spec tests
Reverted to nokogiri 1.5.10 for Ruby 1.8.7
Fixed nokogiri to 1.5.x for Ruby 1.8.7
Fix spec for ruby 1.8.7 which does not have ordered hashes