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
b87c2e82
Commit
b87c2e82
authored
May 21, 2013
by
Fabio Pelosin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Rename SpecTarget to PodTarget
parent
0b42871d
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
21 additions
and
7 deletions
+21
-7
cocoapods.rb
lib/cocoapods.rb
+1
-1
installer.rb
lib/cocoapods/installer.rb
+2
-2
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
+2
-1
pod_target.rb
lib/cocoapods/target/pod_target.rb
+4
-1
pod_target_spec.rb
spec/unit/target/pod_target_spec.rb
+10
-0
No files found.
lib/cocoapods.rb
View file @
b87c2e82
...
...
@@ -46,7 +46,7 @@ module Pod
autoload
:SourcesManager
,
'cocoapods/sources_manager'
autoload
:Target
,
'cocoapods/target'
autoload
:AggregateTarget
,
'cocoapods/target/aggregate_target'
autoload
:
SpecTarget
,
'cocoapods/target/spec
_target'
autoload
:
PodTarget
,
'cocoapods/target/pod
_target'
autoload
:Project
,
'cocoapods/project'
autoload
:Resolver
,
'cocoapods/resolver'
autoload
:Sandbox
,
'cocoapods/sandbox'
...
...
lib/cocoapods/installer.rb
View file @
b87c2e82
...
...
@@ -32,7 +32,7 @@ module Pod
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
:
PodTargetInstaller
,
'cocoapods/installer/target_installer'
autoload
:UserProjectIntegrator
,
'cocoapods/installer/user_project_integrator'
include
Config
::
Mixin
...
...
@@ -316,7 +316,7 @@ module Pod
UI
.
message
"- Installing libraries"
do
libraries
.
sort_by
(
&
:name
).
each
do
|
library
|
next
if
library
.
target_definition
.
empty?
target_installer
=
Spec
TargetInstaller
.
new
(
sandbox
,
library
)
target_installer
=
Pod
TargetInstaller
.
new
(
sandbox
,
library
)
target_installer
.
install!
end
...
...
lib/cocoapods/installer/analyzer.rb
View file @
b87c2e82
...
...
@@ -183,7 +183,7 @@ module Pod
end
specs
.
each
do
|
spec
|
spec_target
=
Spec
Target
.
new
(
spec
,
target_definition
,
sandbox
)
spec_target
=
Pod
Target
.
new
(
spec
,
target_definition
,
sandbox
)
spec_target
.
user_build_configurations
=
target
.
user_build_configurations
target
.
libraries
<<
spec_target
end
...
...
lib/cocoapods/installer/target_installer.rb
View file @
b87c2e82
...
...
@@ -266,7 +266,7 @@ module Pod
#-------------------------------------------------------------------------#
class
Spec
TargetInstaller
<
AbstractTargetInstaller
class
Pod
TargetInstaller
<
AbstractTargetInstaller
# Creates the target in the Pods project and the relative support files.
#
...
...
lib/cocoapods/target/aggregate_target.rb
View file @
b87c2e82
...
...
@@ -6,6 +6,7 @@ module Pod
class
AggregateTarget
<
Target
# @param [TargetDefinition] target_definition @see target_definition
# @param [Sandbox] sandbox @see sandbox
#
def
initialize
(
target_definition
,
sandbox
)
@target_definition
=
target_definition
...
...
@@ -51,7 +52,7 @@ module Pod
#
attr_accessor
:xcconfig
# @return [Array<
Spec
Target>] the dependencies for this target (or library).
# @return [Array<
Pod
Target>] the dependencies for this target (or library).
#
attr_accessor
:libraries
...
...
lib/cocoapods/target/
spec
_target.rb
→
lib/cocoapods/target/
pod
_target.rb
View file @
b87c2e82
module
Pod
class
SpecTarget
<
Target
# This target is used to compile a single Pod. A pod can have one or more
# activated spec/subspecs.
#
class
PodTarget
<
Target
# @return [Specification] the spec for the target.
#
...
...
spec/unit/target/pod_target_spec.rb
0 → 100644
View file @
b87c2e82
require
File
.
expand_path
(
'../../../spec_helper'
,
__FILE__
)
module
Pod
describe
PodTarget
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