Commit 8a0e6906 authored by Fabio Pelosin's avatar Fabio Pelosin

[Pod::Command::Spec#Lint] Added check for actual existence of license file

parent d6442c62
...@@ -274,6 +274,7 @@ module Pod ...@@ -274,6 +274,7 @@ module Pod
messages = [] messages = []
messages += check_spec_files_exists(spec, :source_files, platform_name) messages += check_spec_files_exists(spec, :source_files, platform_name)
messages += check_spec_files_exists(spec, :resources, platform_name) messages += check_spec_files_exists(spec, :resources, platform_name)
messages << "license[:file] = '#{spec.license[:file]}' -> did not match any file" if spec.license[:file] && Pathname.pwd.glob(spec.license[:file]).empty?
messages.compact messages.compact
end end
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