Commit b0c910b9 authored by Fabio Pelosin's avatar Fabio Pelosin

[Core Extraction] Adapted Sandbox.

parent 3ad07c83
...@@ -26,14 +26,18 @@ module Pod ...@@ -26,14 +26,18 @@ module Pod
root + "Pods.xcodeproj" root + "Pods.xcodeproj"
end end
def inspect
"#<#{self.class}> with root #{root}"
end
def prepare_for_install def prepare_for_install
build_headers.prepare_for_install build_headers.prepare_for_install
public_headers.prepare_for_install public_headers.prepare_for_install
end end
def local_pod_for_spec(spec, platform) def local_pod_for_spec(spec, platform)
key = [spec.top_level_parent.name, platform.to_sym] key = [spec.root_spec.name, platform.to_sym]
(@cached_local_pods[key] ||= LocalPod.new(spec.top_level_parent, self, platform)).tap do |pod| (@cached_local_pods[key] ||= LocalPod.new(spec.root_spec, self, platform)).tap do |pod|
pod.add_specification(spec) pod.add_specification(spec)
end end
end end
...@@ -41,8 +45,8 @@ module Pod ...@@ -41,8 +45,8 @@ module Pod
# TODO: refactor the pods from a local source should not be chached by the sandbox # TODO: refactor the pods from a local source should not be chached by the sandbox
# #
def locally_sourced_pod_for_spec(spec, platform) def locally_sourced_pod_for_spec(spec, platform)
key = [spec.top_level_parent.name, platform.to_sym] key = [spec.root_spec.name, platform.to_sym]
(@cached_locally_sourced_pods[key] ||= LocalPod::LocalSourcedPod.new(spec.top_level_parent, self, platform)).tap do |pod| (@cached_locally_sourced_pods[key] ||= LocalPod::LocalSourcedPod.new(spec.root_spec, self, platform)).tap do |pod|
pod.add_specification(spec) pod.add_specification(spec)
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