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
2aa73d65
Commit
2aa73d65
authored
Mar 20, 2013
by
Fabio Pelosin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[PodSourceInstaller] Fix for paths case issues
parent
3cdf7fcc
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
1 deletion
+6
-1
pod_source_installer.rb
lib/cocoapods/installer/pod_source_installer.rb
+6
-1
No files found.
lib/cocoapods/installer/pod_source_installer.rb
View file @
2aa73d65
...
...
@@ -240,6 +240,10 @@ module Pod
# @note Implementation detail: Don't use `Dir#glob` as there is an
# unexplained issue (#568, #572 and #602).
#
# @todo The paths are down-cased for the comparison as issues similar
# to #602 lead the files not being matched and so cleaning all
# the files. This solution might create side effects.
#
# @return [Array<Strings>] The paths that can be deleted.
#
def
clean_paths
...
...
@@ -248,7 +252,9 @@ module Pod
files
=
Pathname
.
glob
(
root
+
"**/*"
,
glob_options
).
map
(
&
:to_s
)
files
.
reject!
do
|
candidate
|
candidate
=
candidate
.
downcase
candidate
.
end_with?
(
'.'
,
'..'
)
||
cached_used
.
any?
do
|
path
|
path
=
path
.
downcase
path
.
include?
(
candidate
)
||
candidate
.
include?
(
path
)
end
end
...
...
@@ -259,7 +265,6 @@ module Pod
# specifications (according to their platform) of this Pod.
#
def
used_files
files
=
[
file_accessors
.
map
(
&
:source_files
),
file_accessors
.
map
(
&
:resources
),
...
...
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