Sha256: 89b29da039504c6b9ca0f5d0ad1f7166469eb6d97ffb5de8dbf8fc75b65cfbb7
Contents?: true
Size: 693 Bytes
Versions: 1
Compression:
Stored size: 693 Bytes
Contents
module YSI class ChangeLog < Assertion needs "version" attr_reader :error def initialize(engine) @engine = engine end 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
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
yes_ship_it-0.0.2 | assertions/change_log.rb |