Try rolling back to an earlier version of RubyGems due to a bug that hits 1.8.7 (see https://github.com/freerange/mocha/commit/66bab2a8f4e7cd8734bf88e6f32157c0d5153125).