Sha256: 2cf9091e1eb5d54f0a87b5a25dc5a0d3f541c0bef925eb4718e057074cfeef1c
Contents?: true
Size: 753 Bytes
Versions: 4
Compression:
Stored size: 753 Bytes
Contents
module Jsus module Util module Validator # Mooforge validator checks every file for the following: # * Presence of header # * Presence of authors field # * Presence of license field class Mooforge < Base def validation_errors # :nodoc: @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 # Util end
Version data entries
4 entries across 4 versions & 1 rubygems