Sha256: 97e5a1f4455313d6c72187a21a24086db3686dbbbec6ef854ac4e9d6caa5d15f
Contents?: true
Size: 674 Bytes
Versions: 6
Compression:
Stored size: 674 Bytes
Contents
require 'ansi' out = [] out << "#{title}\n".ansi(:bold) if title changelog.by_date.each do |date, date_changes| date_changes.by_author.each do |author, author_changes| out << "#{ date } #{ author }\n".ansi(:bold) author_changes.sort!{|a,b| b.level <=> a.level} author_changes.each do |entry| msg = entry.to_s(:summary=>!options.detail) #if !options.summary && entry.type # msg << " [#{ entry.type }]" #end msg = msg.ansi(*entry.color) unless entry.color.empty? msg << "\n(##{entry.id})" if options.reference out << msg.tabto(4).sub(' ',' * ') end out << "" end end out.join("\n") + "\n"
Version data entries
6 entries across 6 versions & 2 rubygems