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
363af1f5
Commit
363af1f5
authored
Jun 03, 2013
by
Jeremy Slater
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix old target methods naming
parent
2b6f3906
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
7 deletions
+7
-7
installer.rb
lib/cocoapods/installer.rb
+3
-3
target_integrator.rb
...ds/installer/user_project_integrator/target_integrator.rb
+4
-4
No files found.
lib/cocoapods/installer.rb
View file @
363af1f5
...
@@ -247,10 +247,10 @@ module Pod
...
@@ -247,10 +247,10 @@ module Pod
#
#
def
install_source_of_pod
(
pod_name
)
def
install_source_of_pod
(
pod_name
)
specs_by_platform
=
{}
specs_by_platform
=
{}
librarie
s
.
each
do
|
pod_target
|
pod_target
s
.
each
do
|
pod_target
|
if
pod_target
.
spec
&&
pod_target
.
spec
.
root
.
name
==
pod_name
if
pod_target
.
root_spec
.
name
==
pod_name
specs_by_platform
[
pod_target
.
platform
]
||=
[]
specs_by_platform
[
pod_target
.
platform
]
||=
[]
specs_by_platform
[
pod_target
.
platform
]
<<
pod_target
.
spec
specs_by_platform
[
pod_target
.
platform
]
.
concat
(
pod_target
.
specs
)
end
end
end
end
...
...
lib/cocoapods/installer/user_project_integrator/target_integrator.rb
View file @
363af1f5
...
@@ -91,7 +91,7 @@ module Pod
...
@@ -91,7 +91,7 @@ module Pod
# @return [Specification::Consumer] the consumer for the specifications.
# @return [Specification::Consumer] the consumer for the specifications.
#
#
def
spec_consumers
def
spec_consumers
@spec_consumers
||=
target
.
librarie
s
.
map
(
&
:file_accessors
).
flatten
.
map
(
&
:spec_consumer
)
@spec_consumers
||=
target
.
pod_target
s
.
map
(
&
:file_accessors
).
flatten
.
map
(
&
:spec_consumer
)
end
end
# Adds the `xcconfig` configurations files generated for the current
# Adds the `xcconfig` configurations files generated for the current
...
@@ -230,9 +230,9 @@ module Pod
...
@@ -230,9 +230,9 @@ module Pod
# integration.
# integration.
#
#
def
integration_message
def
integration_message
"Integrating
#{
'library'
.
pluralize
(
target
.
librarie
s
.
size
)
}
"
\
"Integrating
Pod
#{
'target'
.
pluralize
(
target
.
pod_target
s
.
size
)
}
"
\
"`
#{
target
.
librarie
s
.
map
(
&
:name
).
to_sentence
}
` "
\
"`
#{
target
.
pod_target
s
.
map
(
&
:name
).
to_sentence
}
` "
\
"into target
#{
target
.
name
}
"
\
"into
aggregate
target
#{
target
.
name
}
"
\
"of project
#{
UI
.
path
target
.
user_project_path
}
."
"of project
#{
UI
.
path
target
.
user_project_path
}
."
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