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
78e7c396
Commit
78e7c396
authored
Nov 17, 2014
by
Marius Rackwitz
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[Style] Use flat_map instead of map(:…).flatten
parent
ccead7d2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
+2
-2
pod_target_installer.rb
...oapods/installer/target_installer/pod_target_installer.rb
+1
-1
aggregate_target.rb
lib/cocoapods/target/aggregate_target.rb
+1
-1
No files found.
lib/cocoapods/installer/target_installer/pod_target_installer.rb
View file @
78e7c396
...
@@ -24,7 +24,7 @@ module Pod
...
@@ -24,7 +24,7 @@ module Pod
create_info_plist_file
create_info_plist_file
create_module_map
create_module_map
create_umbrella_header
do
|
generator
|
create_umbrella_header
do
|
generator
|
generator
.
imports
+=
target
.
file_accessors
.
map
(
&
:public_headers
).
flatten
.
map
(
&
:basename
)
generator
.
imports
+=
target
.
file_accessors
.
flat_map
(
&
:public_headers
)
.
map
(
&
:basename
)
end
end
end
end
create_prefix_header
create_prefix_header
...
...
lib/cocoapods/target/aggregate_target.rb
View file @
78e7c396
...
@@ -104,7 +104,7 @@ module Pod
...
@@ -104,7 +104,7 @@ module Pod
result
=
{}
result
=
{}
user_build_configurations
.
keys
.
each
do
|
build_configuration
|
user_build_configurations
.
keys
.
each
do
|
build_configuration
|
result
[
build_configuration
]
=
pod_targets_for_build_configuration
(
build_configuration
).
result
[
build_configuration
]
=
pod_targets_for_build_configuration
(
build_configuration
).
map
(
&
:specs
).
flatten
flat_map
(
&
:specs
)
end
end
result
result
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