messages<<"license file not found = '#{spec.license[:file]}' -> did not match any file"ifspec.license&&spec.license[:file]&&pod_dir.glob(spec.license[:file]).empty?
messages.compact
end
messages=[]
messages<<"The sources did not match any file"if!@spec.source_files.empty?&&@pod.source_files.empty?
messages<<"The resources did not match any file"if!@spec.resources.empty?&&@pod.resources.empty?
messages<<"The preserve_paths did not match any file"if!@spec.preserve_paths.empty?&&@pod.preserve_paths.empty?
messages<<"The exclude_headers did not match any file"if!@spec.exclude_headers.empty?&&@pod.exclude_headers.empty?
messages
end
defcheck_spec_files_exists(accessor,options={})
result=[]
patterns=spec.send(accessor)
patterns.eachdo|original_pattern|
pattern=pod_dir+original_pattern
ifpattern.directory?&&options[:glob]
pattern+=options[:glob]
end
result<<"[#{accessor} = '#{original_pattern}'] -> did not match any file"ifpattern.glob.empty?
end
result
deffile_patterns_warnings
messages=[]
messages<<"Unable to find a license file"unless@pod.license_file