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