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
caccc1a5
Commit
caccc1a5
authored
Apr 02, 2015
by
Samuel E. Giddins
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[PodDirCleaner] Clean up creation of file accessors to be more modern ruby
parent
538b2d2e
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
7 deletions
+2
-7
pod_dir_cleaner.rb
lib/cocoapods/sandbox/pod_dir_cleaner.rb
+2
-7
No files found.
lib/cocoapods/sandbox/pod_dir_cleaner.rb
View file @
caccc1a5
...
...
@@ -24,15 +24,10 @@ module Pod
# specifications on their respective platform.
#
def
file_accessors
return
@file_accessors
if
@file_accessors
@file_accessors
=
[]
specs_by_platform
.
each
do
|
platform
,
specs
|
specs
.
each
do
|
spec
|
@file_accessors
<<
Sandbox
::
FileAccessor
.
new
(
path_list
,
spec
.
consumer
(
platform
))
@file_accessors
||=
specs_by_platform
.
flat_map
do
|
platform
,
specs
|
specs
.
flat_map
{
|
spec
|
Sandbox
::
FileAccessor
.
new
(
path_list
,
spec
.
consumer
(
platform
))
}
end
end
@file_accessors
end
# @return [Sandbox::PathList] The path list for this Pod.
#
...
...
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