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
663d8710
Commit
663d8710
authored
Jun 20, 2012
by
Fabio Pelosin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[LocalPod] Fix for unavailable #select! in 1.8.7.
parent
0c114e99
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
4 deletions
+6
-4
local_pod.rb
lib/cocoapods/local_pod.rb
+6
-4
No files found.
lib/cocoapods/local_pod.rb
View file @
663d8710
...
...
@@ -216,9 +216,12 @@ module Pod
# files grouped by {Specification}.
#
def
header_files_by_spec
source_files_by_spec
.
dup
.
each
do
|
spec
,
paths
|
paths
.
select!
{
|
f
|
f
.
extname
==
'.h'
}
result
=
{}
source_files_by_spec
.
each
do
|
spec
,
paths
|
headers
=
paths
.
select
{
|
f
|
f
.
extname
==
'.h'
}
result
[
spec
]
=
headers
unless
headers
.
empty?
end
result
end
# @return [Array<Pathname>] The paths of the resources.
...
...
@@ -304,8 +307,7 @@ module Pod
all_specs
=
top_specification
.
recursive_subspecs
<<
top_specification
files
=
all_specs
.
map
{
|
s
|
expanded_paths
(
s
.
source_files
,
:glob
=>
'*.{h}'
)
}
files
.
flatten!
files
.
select!
{
|
f
|
f
&&
f
.
extname
==
'.h'
}
files
.
uniq!
files
.
select
{
|
f
|
f
&&
f
.
extname
==
'.h'
}.
uniq!
files
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