Commit aa1bea96 authored by Fabio Pelosin's avatar Fabio Pelosin

[LocalPod] Expand paths in a case insensitive fashion.

Closes #346.
parent d95a27f6
...@@ -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
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment