Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
C
cocoapods
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
gengmeiios
cocoapods
Commits
0b42871d
Commit
0b42871d
authored
May 21, 2013
by
Fabio Pelosin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Rename PodTarget to AggregateTarget
parent
3d3ab979
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
35 additions
and
13 deletions
+35
-13
cocoapods.rb
lib/cocoapods.rb
+1
-1
installer.rb
lib/cocoapods/installer.rb
+8
-8
analyzer.rb
lib/cocoapods/installer/analyzer.rb
+1
-1
target_installer.rb
lib/cocoapods/installer/target_installer.rb
+1
-1
aggregate_target.rb
lib/cocoapods/target/aggregate_target.rb
+4
-2
aggregate_target_spec.rb
spec/unit/target/aggregate_target_spec.rb
+10
-0
target_spec.rb
spec/unit/target_spec.rb
+10
-0
No files found.
lib/cocoapods.rb
View file @
0b42871d
...
...
@@ -45,7 +45,7 @@ module Pod
autoload
:Installer
,
'cocoapods/installer'
autoload
:SourcesManager
,
'cocoapods/sources_manager'
autoload
:Target
,
'cocoapods/target'
autoload
:
PodTarget
,
'cocoapods/target/pod
_target'
autoload
:
AggregateTarget
,
'cocoapods/target/aggregate
_target'
autoload
:SpecTarget
,
'cocoapods/target/spec_target'
autoload
:Project
,
'cocoapods/project'
autoload
:Resolver
,
'cocoapods/resolver'
...
...
lib/cocoapods/installer.rb
View file @
0b42871d
...
...
@@ -28,12 +28,12 @@ module Pod
#
class
Installer
autoload
:Analyzer
,
'cocoapods/installer/analyzer'
autoload
:FileReferencesInstaller
,
'cocoapods/installer/file_references_installer'
autoload
:PodSourceInstaller
,
'cocoapods/installer/pod_source_installer'
autoload
:
PodTargetInstaller
,
'cocoapods/installer/target_installer'
autoload
:SpecTargetInstaller
,
'cocoapods/installer/target_installer'
autoload
:UserProjectIntegrator
,
'cocoapods/installer/user_project_integrator'
autoload
:Analyzer
,
'cocoapods/installer/analyzer'
autoload
:FileReferencesInstaller
,
'cocoapods/installer/file_references_installer'
autoload
:PodSourceInstaller
,
'cocoapods/installer/pod_source_installer'
autoload
:
AggregateTargetInstaller
,
'cocoapods/installer/target_installer'
autoload
:SpecTargetInstaller
,
'cocoapods/installer/target_installer'
autoload
:UserProjectIntegrator
,
'cocoapods/installer/user_project_integrator'
include
Config
::
Mixin
...
...
@@ -136,7 +136,7 @@ module Pod
#
attr_reader
:names_of_pods_to_install
# @return [Array<
Pod
Target>] The Podfile targets containing library
# @return [Array<
Aggregate
Target>] The Podfile targets containing library
# dependencies.
#
attr_reader
:targets
...
...
@@ -322,7 +322,7 @@ module Pod
targets
.
sort_by
(
&
:name
).
each
do
|
target
|
next
if
target
.
target_definition
.
empty?
target_installer
=
Pod
TargetInstaller
.
new
(
sandbox
,
target
)
target_installer
=
Aggregate
TargetInstaller
.
new
(
sandbox
,
target
)
target_installer
.
install!
end
end
...
...
lib/cocoapods/installer/analyzer.rb
View file @
0b42871d
...
...
@@ -164,7 +164,7 @@ module Pod
def
generate_targets
targets
=
[]
result
.
specs_by_target
.
each
do
|
target_definition
,
specs
|
target
=
Pod
Target
.
new
(
target_definition
,
sandbox
)
target
=
Aggregate
Target
.
new
(
target_definition
,
sandbox
)
targets
<<
target
if
config
.
integrate_targets?
...
...
lib/cocoapods/installer/target_installer.rb
View file @
0b42871d
...
...
@@ -139,7 +139,7 @@ module Pod
#-------------------------------------------------------------------------#
class
Pod
TargetInstaller
<
AbstractTargetInstaller
class
Aggregate
TargetInstaller
<
AbstractTargetInstaller
# Creates the target in the Pods project and the relative support files.
#
...
...
lib/cocoapods/target/
pod
_target.rb
→
lib/cocoapods/target/
aggregate
_target.rb
View file @
0b42871d
module
Pod
class
PodTarget
<
Target
# The aggregate target is used to cluster the targets of the single Pods. The
# client targets will then depend on this one.
#
class
AggregateTarget
<
Target
# @param [TargetDefinition] target_definition @see target_definition
# @param [Sandbox] sandbox @see sandbox
#
def
initialize
(
target_definition
,
sandbox
)
@target_definition
=
target_definition
...
...
spec/unit/target/aggregate_target_spec.rb
0 → 100644
View file @
0b42871d
require
File
.
expand_path
(
'../../../spec_helper'
,
__FILE__
)
module
Pod
describe
AggregateTarget
do
end
end
spec/unit/target_spec.rb
0 → 100644
View file @
0b42871d
require
File
.
expand_path
(
'../../spec_helper'
,
__FILE__
)
module
Pod
describe
Target
do
end
end
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment