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
# file.
#
def readme_file
expanded_paths(%w[ README{*,.*} readme{*,.*} ]).first
expanded_paths(%w[ readme{*,.*} ]).first
end
# @return [Pathname] The absolute path of the license file from the
......@@ -265,7 +265,7 @@ module Pod
if top_specification.license && top_specification.license[:file]
root + top_specification.license[:file]
else
expanded_paths(%w[ LICEN{C,S}E{*,.*} licen{c,s}e{*,.*} ]).first
expanded_paths(%w[ licen{c,s}e{*,.*} ]).first
end
end
......@@ -450,7 +450,7 @@ module Pod
if pattern.directory? && options[:glob]
pattern += options[:glob]
end
pattern.glob
Pathname.glob(pattern, File::FNM_CASEFOLD)
end.flatten
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