Use Openshift's version of Nokogiri.
Use the Openshift rubygems mirror.

See
http://openshift.github.io/documentation/oo_cartridge_guide.html#ruby-mirror