Commit 2ca31f8f authored by Fabio Pelosin's avatar Fabio Pelosin

Load only required podspecs for external dependencies [see 15c4ca3]

parent 80809dc0
...@@ -46,14 +46,18 @@ module Pod ...@@ -46,14 +46,18 @@ module Pod
headers_root.rmtree if headers_root.exist? headers_root.rmtree if headers_root.exist?
end end
def installed_pods def podspec_for_name(name)
Dir[root + "**/*.podspec"].map do |podspec| if spec_path = Dir[root + "#{name}/*.podspec"].first
LocalPod.from_podspec(Pathname.new(podspec), self) Pathname.new(spec_path)
elsif spec_path = Dir[root + "Local Podspecs/#{name}.podspec"].first
Pathname.new(spec_path)
end end
end end
def installed_pod_named(name) def installed_pod_named(name)
installed_pods.find { |pod| pod.name == name } if spec_path = podspec_for_name(name)
LocalPod.from_podspec(spec_path, self)
end
end end
end end
end end
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