Commit ad1e8fab authored by Eloy Duran's avatar Eloy Duran

Use Dir.glob to try to match any README.

parent 0202158f
...@@ -45,13 +45,9 @@ module Pod ...@@ -45,13 +45,9 @@ module Pod
end end
def index_file def index_file
candidates = ['README.md', 'README.mdown', 'README.markdown','README'] @pod.chdir do
candidates.each do |f| Dir.glob("README*", File::FNM_CASEFOLD).first
if File.file?(@pod.root + f)
return f
end
end end
nil
end end
def spec_appledoc_options def spec_appledoc_options
......
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