Sha256: 927357f8bb470a1faa18c9d7447bbcac73a2a7cae0ebb8f3dc3d8d60359d56e6
Contents?: true
Size: 521 Bytes
Versions: 6
Compression:
Stored size: 521 Bytes
Contents
module Jsus module Validator class Mooforge < Base def validation_errors @validation_errors ||= sources.inject([]) do |result, sf| if !sf.header result << "#{sf.filename} is missing header" elsif !sf.header["authors"] result << "#{sf.filename} is missing authors" elsif !sf.header["license"] result << "#{sf.filename} is missing license" else result end end end end end end
Version data entries
6 entries across 6 versions & 1 rubygems