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
aa1bea96
Commit
aa1bea96
authored
Jul 03, 2012
by
Fabio Pelosin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[LocalPod] Expand paths in a case insensitive fashion.
Closes #346.
parent
d95a27f6
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
local_pod.rb
lib/cocoapods/local_pod.rb
+3
-3
No files found.
lib/cocoapods/local_pod.rb
View file @
aa1bea96
...
@@ -255,7 +255,7 @@ module Pod
...
@@ -255,7 +255,7 @@ module Pod
# file.
# file.
#
#
def
readme_file
def
readme_file
expanded_paths
(
%w[
README{*,.*}
readme{*,.*} ]
).
first
expanded_paths
(
%w[ readme{*,.*} ]
).
first
end
end
# @return [Pathname] The absolute path of the license file from the
# @return [Pathname] The absolute path of the license file from the
...
@@ -265,7 +265,7 @@ module Pod
...
@@ -265,7 +265,7 @@ module Pod
if
top_specification
.
license
&&
top_specification
.
license
[
:file
]
if
top_specification
.
license
&&
top_specification
.
license
[
:file
]
root
+
top_specification
.
license
[
:file
]
root
+
top_specification
.
license
[
:file
]
else
else
expanded_paths
(
%w[
LICEN{C,S}E{*,.*}
licen{c,s}e{*,.*} ]
).
first
expanded_paths
(
%w[ licen{c,s}e{*,.*} ]
).
first
end
end
end
end
...
@@ -450,7 +450,7 @@ module Pod
...
@@ -450,7 +450,7 @@ module Pod
if
pattern
.
directory?
&&
options
[
:glob
]
if
pattern
.
directory?
&&
options
[
:glob
]
pattern
+=
options
[
:glob
]
pattern
+=
options
[
:glob
]
end
end
pattern
.
glob
Pathname
.
glob
(
pattern
,
File
::
FNM_CASEFOLD
)
end
.
flatten
end
.
flatten
end
end
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