Commit 2b933ce8 authored by Eloy Duran's avatar Eloy Duran

Raise when a pod can't be found by name.

parent 79fa28ac
dependency 'SSZipArchive', '>= 1'
#dependency 'ASIHTTPRequest', '1.8' #dependency 'ASIHTTPRequest', '1.8'
dependency 'ASIWebPageRequest', '= 1.8' dependency 'ASIWebPageRequest', '= 1.8'
...@@ -16,3 +19,4 @@ dependency 'Reachability' #, '>= 2.0' ...@@ -16,3 +19,4 @@ dependency 'Reachability' #, '>= 2.0'
# * the ASIWebPageRequest dependency requirement matches this one so should work # * the ASIWebPageRequest dependency requirement matches this one so should work
#dependency 'ASIHTTPRequest', '1.8.1' #dependency 'ASIHTTPRequest', '1.8.1'
dependency 'ASIHTTPRequest', '>= 1.8' dependency 'ASIHTTPRequest', '>= 1.8'
...@@ -12,7 +12,11 @@ module Pod ...@@ -12,7 +12,11 @@ module Pod
def find_dependency_sets(specification) def find_dependency_sets(specification)
specification.read(:dependencies).each do |dependency| specification.read(:dependencies).each do |dependency|
Source.search(dependency).each do |set| sets = Source.search(dependency)
if sets.empty?
raise "Unable to find a pod named `#{dependency.name}'"
end
sets.each do |set|
# TODO ultimately this compatibility check should be used to try and # TODO ultimately this compatibility check should be used to try and
# resolve the conflicts, but for now we'll keep it simple. # resolve the conflicts, but for now we'll keep it simple.
if existing_set = @sets.find { |s| s == set } if existing_set = @sets.find { |s| s == set }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment