alloy/cocoapods — Issue #30: undefined method exception when running 'pod search'
Author: bassnode
Created: 2011-10-21 01:03:23+00:00
State: open

~/code/cocoapods/ (master *) $ pod --version
0.1.0

~/code/cocoapods/ (master *) $ ruby -v
MacRuby 0.10 (ruby 1.9.2) [universal-darwin10.0, x86_64]

~/code/cocoapods/ (master *) $ pod search http --verbose
==> ASIHTTPRequest (1.8.1)
Oh no, an error occurred. Please run with `--verbose' and report on https://github.com/alloy/cocoapods/issues.

undefined method `platform' for nil:NilClass
/Users/ed/.rvm/gems/macruby-0.10/gems/cocoapods-0.1.0/lib/cocoapods/config.rb:58:in `ios?'
/Users/ed/.cocoapods/master/ASIHTTPRequest/1.8.1/ASIHTTPRequest.podspec:21:in `block'
/Users/ed/.rvm/gems/macruby-0.10/gems/cocoapods-0.1.0/lib/cocoapods/specification.rb:23:in `initialize'
/Users/ed/.cocoapods/master/ASIHTTPRequest/1.8.1/ASIHTTPRequest.podspec:1:in `

'
/Users/ed/.rvm/gems/macruby-0.10/gems/cocoapods-0.1.0/lib/cocoapods/specification.rb:5:in `_eval_podspec:'
/Users/ed/.rvm/gems/macruby-0.10/gems/cocoapods-0.1.0/lib/cocoapods/specification.rb:13:in `from_file:'
/Users/ed/.rvm/gems/macruby-0.10/gems/cocoapods-0.1.0/lib/cocoapods/specification/set.rb:58:in `specification'
/Users/ed/.rvm/gems/macruby-0.10/gems/cocoapods-0.1.0/lib/cocoapods/command/search.rb:29:in `block'
/Users/ed/.rvm/gems/macruby-0.10/gems/cocoapods-0.1.0/lib/cocoapods/command/search.rb:27:in `run'
/Users/ed/.rvm/gems/macruby-0.10/gems/cocoapods-0.1.0/lib/cocoapods/command.rb:51:in `run:'
/Users/ed/.rvm/gems/macruby-0.10/gems/cocoapods-0.1.0/bin/pod:9:in `

'
/Users/ed/.rvm/gems/macruby-0.10/bin/pod:19:in `

'