Permalink
Browse files

[LocalPod] Expand paths in a case insensitive fashion.

Closes #346.
  • Loading branch information...
1 parent d95a27f commit aa1bea96fa49ba66a5c9eb1bcacb35ee6e934034 @fabiopelosin fabiopelosin committed Jul 3, 2012
Showing with 3 additions and 3 deletions.
  1. +3 −3 lib/cocoapods/local_pod.rb
@@ -255,7 +255,7 @@ def preserve_files
# 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 @@ def license_file
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 @@ def expanded_paths(patterns, options = {})
if pattern.directory? && options[:glob]
pattern += options[:glob]
end
- pattern.glob
+ Pathname.glob(pattern, File::FNM_CASEFOLD)
end.flatten
end
end

0 comments on commit aa1bea9

Please sign in to comment.