CocoaPods/CocoaPods — pull request #392 by irrationalfab (2012-07-12 12:40:31+00:00)
Title: Experimental support for bleeding version for git repos.

I'm experimenting with the possibility to specify a bleeding version with a hash, like:

```ruby
platform :ios, '5.1'
pod 'RestKit', :bleeding
```

With this change set in place we could have `0.0.1` podspec being updated (i.e. add `0.0.2.cp`) only they don't work anymore in bleeding mode for unversioned libraries.

##### Known issues:

- it creates the documentation for the spec with the bleeding version.
- missing specs.
- needs more robust integration with subspecs and and the preferred dependency.

##### Sample output:

Notice that RestKit is downloaded from head and marked as `[BLEEDING]`.

```console
$ dpod install --no-update --verbose

Resolving dependencies of: /Users/fabio/Desktop/Lambda News/Podfile

Resolving dependencies for target `default' (iOS 5.1)
- RestKit [BLEEDING]
- RestKit/JSON (= 0.10.1)
- RestKit/Network
- LibComponentLogging-NSLog (>= 1.0.4)
- LibComponentLogging-Core (>= 1.1.6)
- cocoa-oauth
- NSData+Base64 (~> 1.0)
- FileMD5Hash
- SOCKit
- RestKit/ObjectMapping/JSON
- JSONKit (>= 1.5pre)
- ISO8601DateFormatter (>= 0.6)
- RestKit/Network
- RestKit/ObjectMapping/CoreData
- ISO8601DateFormatter (>= 0.6)
- RestKit/Network
- RestKit/UI

Installing dependencies

-> Installing FileMD5Hash (0.0.1)
-> Cloning git repo
$ /usr/local/bin/git rev-list --max-count=1 d00c0c51c6d0955d9daf94c30cfd95a219d4914e
d00c0c51c6d0955d9daf94c30cfd95a219d4914e
$ /usr/local/bin/git clone '/Users/fabio/Library/Caches/CocoaPods/Git/ee93d7208a5cd34ce13dcdb4b8dcfdd22612fc30' '/Users/fabio/Desktop/Lambda News/Pods/FileMD5Hash'
Cloning into '/Users/fabio/Desktop/Lambda News/Pods/FileMD5Hash'...
done.
$ /usr/local/bin/git checkout -b activated-pod-commit d00c0c51c6d0955d9daf94c30cfd95a219d4914e
Switched to a new branch 'activated-pod-commit'
-> Using existing documentation

-> Installing ISO8601DateFormatter (0.6)
...

-> Installing RestKit/JSON (0.10.1)[BLEEDING]
-> Cloning git repo
-> Updating cache git repo (/Users/fabio/Library/Caches/CocoaPods/Git/3b4327a38aaa13bb7bccccfa640badc94f770919)
$ /usr/local/bin/git reset --hard HEAD
HEAD is now at f11a538 Merge branch 'release/0.10.1'
$ /usr/local/bin/git clean -d -x -f
$ /usr/local/bin/git pull
Already up-to-date.
$ /usr/local/bin/git clone '/Users/fabio/Library/Caches/CocoaPods/Git/3b4327a38aaa13bb7bccccfa640badc94f770919' '/Users/fabio/Desktop/Lambda News/Pods/RestKit'
Cloning into '/Users/fabio/Desktop/Lambda News/Pods/RestKit'...
done.
-> Using existing documentation

-> Installing SOCKit (1.0)
...

Generating support files
...
```