We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents b5c9f7c + 6bfb735 commit 163f254Copy full SHA for 163f254
lib/puppet_forge_server/backends/directory.rb
@@ -57,10 +57,10 @@ def upload(file_data)
57
58
private
59
def read_module_data(archive_path)
60
- file_contents = read_from_archive(archive_path, %r[^([^/]+/)?(metadata\.json|README\.md)$])
+ file_contents = read_from_archive(archive_path, %r[^([^/]+/)?(metadata\.json|README\.md|README\.markdown)$])
61
metadata = JSON.parse(file_contents.find {|key, value| key =~ /metadata\.json/}[1])
62
begin
63
- readme = file_contents.find {|key, value| key =~ /README\.md/}[1]
+ readme = file_contents.find {|key, value| key =~ /README\.md|README\.markdown/}[1]
64
rescue
65
readme = nil
66
end
0 commit comments