Permalink
Browse files

Only check if the source of a pod is ‘local’ if there is a source.

Which might not be the case if a pod is part of another pod.

Fixes #130.
  • Loading branch information...
1 parent 1b5a845 commit 00bc92eaa9198d2b9d0cf5988cef1f74b2c85b9a @alloy alloy committed Feb 22, 2012
Showing with 2 additions and 1 deletion.
  1. +1 −0 bin/pod
  2. +1 −1 lib/cocoapods/specification.rb
View
@@ -1,6 +1,7 @@
#!/usr/bin/env ruby
if $0 == __FILE__
+ $:.unshift File.expand_path('../../external/xcodeproj/ext', __FILE__)
$:.unshift File.expand_path('../../external/xcodeproj/lib', __FILE__)
$:.unshift File.expand_path('../../lib', __FILE__)
end
@@ -154,7 +154,7 @@ def subspec(name, &block)
include Config::Mixin
def local?
- !source[:local].nil?
+ !source.nil? && !source[:local].nil?
end
def local_path

0 comments on commit 00bc92e

Please sign in to comment.