Sha256: 8a94b080042544659fba6c1cb839b4cca8df7e131be7f6e55ce89d30ac04fed0
Contents?: true
Size: 610 Bytes
Versions: 3
Compression:
Stored size: 610 Bytes
Contents
module YSI class ChangeLog < Assertion needs "version" def display_name "change log" end def check if !File.exist?("CHANGELOG.md") @error = "Expected change log in CHANGELOG.md" return nil end @error = check_content(File.read("CHANGELOG.md")) if @error return nil end "CHANGELOG.md" end def assert(dry_run: false) end def check_content(content) if content =~ /#{engine.version}/ nil else return "Can't find version #{engine.version} in change log" end end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
yes_ship_it-0.0.5 | assertions/change_log.rb |
yes_ship_it-0.0.4 | assertions/change_log.rb |
yes_ship_it-0.0.3 | assertions/change_log.rb |