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
86824467
Commit
86824467
authored
Jun 05, 2013
by
Jeremy Slater
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix accessor naming libraries -> pod_targets
parent
64131879
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
6 deletions
+5
-6
installer_representation.rb
lib/cocoapods/hooks/installer_representation.rb
+4
-5
validator.rb
lib/cocoapods/validator.rb
+1
-1
No files found.
lib/cocoapods/hooks/installer_representation.rb
View file @
86824467
...
@@ -59,9 +59,8 @@ module Pod
...
@@ -59,9 +59,8 @@ module Pod
#
#
def
specs_by_lib
def
specs_by_lib
result
=
{}
result
=
{}
installer
.
libraries
.
each
do
|
lib
|
installer
.
pod_targets
.
each
do
|
lib
|
next
if
lib
.
spec
==
nil
result
[
installer
.
library_rep
(
lib
)]
=
lib
.
specs
result
[
installer
.
library_rep
(
lib
)]
=
lib
.
spec
end
end
result
result
end
end
...
@@ -71,8 +70,8 @@ module Pod
...
@@ -71,8 +70,8 @@ module Pod
#
#
def
pods_by_lib
def
pods_by_lib
result
=
{}
result
=
{}
installer
.
targets
.
map
(
&
:
librarie
s
).
flatten
.
each
do
|
lib
|
installer
.
targets
.
map
(
&
:
pod_target
s
).
flatten
.
each
do
|
lib
|
pod_names
=
[
lib
.
spec
.
root
.
name
]
pod_names
=
[
lib
.
root_spec
.
name
]
pod_reps
=
pods
.
select
{
|
rep
|
pod_names
.
include?
(
rep
.
name
)
}
pod_reps
=
pods
.
select
{
|
rep
|
pod_names
.
include?
(
rep
.
name
)
}
result
[
lib
.
target_definition
]
=
pod_reps
result
[
lib
.
target_definition
]
=
pod_reps
end
end
...
...
lib/cocoapods/validator.rb
View file @
86824467
...
@@ -208,7 +208,7 @@ module Pod
...
@@ -208,7 +208,7 @@ module Pod
installer
=
Installer
.
new
(
sandbox
,
podfile
)
installer
=
Installer
.
new
(
sandbox
,
podfile
)
installer
.
install!
installer
.
install!
file_accessors
=
installer
.
targets
.
first
.
librarie
s
.
first
.
file_accessors
file_accessors
=
installer
.
targets
.
first
.
pod_target
s
.
first
.
file_accessors
@file_accessor
=
file_accessors
.
find
{
|
accessor
|
accessor
.
spec
==
spec
}
@file_accessor
=
file_accessors
.
find
{
|
accessor
|
accessor
.
spec
==
spec
}
config
.
silent
config
.
silent
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