Repair rubygems bugs.