Validate against previous version of a spec.

See CocoaPods/Specs#2282
See CocoaPods/CocoaPods#877