Commit fbadc7d5 authored by Marius Rackwitz's avatar Marius Rackwitz

[Doc] Add some method-inline comments

parent 5012fddf
...@@ -180,6 +180,7 @@ module Pod ...@@ -180,6 +180,7 @@ module Pod
def generate_targets def generate_targets
targets = [] targets = []
result.specs_by_target.each do |target_definition, specs| result.specs_by_target.each do |target_definition, specs|
# Setup the aggregate target
target = AggregateTarget.new(target_definition, sandbox) target = AggregateTarget.new(target_definition, sandbox)
targets << target targets << target
...@@ -202,10 +203,12 @@ module Pod ...@@ -202,10 +203,12 @@ module Pod
end end
end end
# Group specs and subspecs by their root
grouped_specs = specs.map do |spec| grouped_specs = specs.map do |spec|
specs.select { |s| s.root == spec.root } specs.select { |s| s.root == spec.root }
end.uniq end.uniq
# Create a target for each spec group and add it to the aggregate target
grouped_specs.each do |pod_specs| grouped_specs.each do |pod_specs|
pod_target = PodTarget.new(pod_specs, target_definition, sandbox) pod_target = PodTarget.new(pod_specs, target_definition, sandbox)
if config.integrate_targets? if config.integrate_targets?
......
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