Permalink
Browse files

[AbstractExternalSource] Raise if unable to find a podspec.

  • Loading branch information...
1 parent 2c0cc3e commit ae569fc3b00a3b07a164d29cb22ffa650be09d9f @fabiopelosin fabiopelosin committed Aug 13, 2012
Showing with 3 additions and 11 deletions.
  1. +3 −11 lib/cocoapods/dependency.rb
@@ -55,16 +55,6 @@ def external?
!@external_source.nil?
end
- def =~(other)
- if head?
- name === other.name && other.head?
- elsif external?
- name === other.name && external_source == other.external_source
- else
- super && !other.head? && !other.external?
- end
- end
-
# In case this is a dependency for a subspec, e.g. 'RestKit/Networking',
# this returns 'RestKit', which is what the Pod::Source needs to know to
# retrieve the correct Set from disk.
@@ -174,7 +164,9 @@ def specification_from_local(sandbox, platform)
def specification_from_external(sandbox, platform)
copy_external_source_into_sandbox(sandbox, platform)
- specification_from_local(sandbox, platform)
+ spec = specification_from_local(sandbox, platform)
+ raise Informative, "No podspec found for `#{name}` in #{description}" unless spec
+ spec
end
def ==(other)

0 comments on commit ae569fc

Please sign in to comment.