Commit 86824467 authored by Jeremy Slater's avatar Jeremy Slater

Fix accessor naming libraries -> pod_targets

parent 64131879
......@@ -59,9 +59,8 @@ module Pod
#
def specs_by_lib
result = {}
installer.libraries.each do |lib|
next if lib.spec == nil
result[installer.library_rep(lib)] = lib.spec
installer.pod_targets.each do |lib|
result[installer.library_rep(lib)] = lib.specs
end
result
end
......@@ -71,8 +70,8 @@ module Pod
#
def pods_by_lib
result = {}
installer.targets.map(&:libraries).flatten.each do |lib|
pod_names = [lib.spec.root.name]
installer.targets.map(&:pod_targets).flatten.each do |lib|
pod_names = [lib.root_spec.name]
pod_reps = pods.select { |rep| pod_names.include?(rep.name) }
result[lib.target_definition] = pod_reps
end
......
......@@ -208,7 +208,7 @@ module Pod
installer = Installer.new(sandbox, podfile)
installer.install!
file_accessors = installer.targets.first.libraries.first.file_accessors
file_accessors = installer.targets.first.pod_targets.first.file_accessors
@file_accessor = file_accessors.find { |accessor| accessor.spec == spec }
config.silent
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