CocoaPods/CocoaPods — pull request #219 by irrationalfab (2012-04-21 17:36:11+00:00)
Title: RFC: Pod Push, pod spec lint improvements and misc

I've mixed some stuff together. Everything is untested yet but, to my knowledge, functional.

## Pod spec lint

New features:

- `pod spec lint REPO`
- it uses xcodebuild to check if a spec can compile (disabled for repos) [#4]
- provides notices for features which are or will be deprecated
- checks the spec file patterns to ensure that they have at least one match

## Pod Push [#51]

````
$ pod push [REPO]
````

Validates `*.podspec' in the current working dir, updates
the local copy of the repository named REPO, adds specifications
to REPO, and finally it pushes REPO to its remote.

features:

- it lints all the pods and refuses to push them if they don't pass validation
- TODO: decide what warnings are acceptable
- TODO: find a better way to get the result from `Pod::Command::Spec`
- it refuses to push if the master repo is not clean (staged and upstaged files)
- However if you have done some commits it should work and push the as well
- It doesn't defaults to the master repo to prevent accidental commits
- based on @lukeredpath script