module Yaks::Changelog
Public Instance Methods
current()
click to toggle source
# File lib/yaks/changelog.rb, line 5 def current versions[Yaks::VERSION] end
markdown()
click to toggle source
# File lib/yaks/changelog.rb, line 17 def markdown Pathname(__FILE__).join('../../../../CHANGELOG.md').read end
versions()
click to toggle source
# File lib/yaks/changelog.rb, line 9 def versions markdown.split(/(?=###\s*[\d\w\.]+\n)/).each_with_object({}) do |section, hsh| version = section.each_line.first[/[\d\w\.]+/] log = section.each_line.drop(1).join.strip hsh[version] = log end end