Sha256: d76db0d842312b3ffff3cabab49c724b76760157f8995e5845e6f13d898ca22f

Contents?: true

Size: 455 Bytes

Versions: 2

Compression:

Stored size: 455 Bytes

Contents

module Yaks
  module Changelog
    extend self

    def current
      versions[Yaks::VERSION]
    end

    def versions
      markdown.split(/(?=###\s*[\d\.]+\n)/).each_with_object({}) do |section, hsh|
        version = section.each_line.first[/[\d\.]+/]
        log     = section.each_line.drop(1).join.strip
        hsh[version] = log
      end
    end

    def markdown
      Pathname(__FILE__).join('../../../../CHANGELOG.md').read
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
yaks-0.7.7 lib/yaks/changelog.rb
yaks-0.7.6 lib/yaks/changelog.rb