Sha256: 1400bd10846ba80d09229ed8617062b9e659c50d5e9caceaf50da8a8d31e3edb

Contents?: true

Size: 687 Bytes

Versions: 6

Compression:

Stored size: 687 Bytes

Contents

out = []

out << "= #{title || 'Release History'}"

releases.sort.each do |release|
  tag = release.tag

  out << "\n== #{tag.name} / #{tag.date.strftime('%Y-%m-%d')}"

  out << "\n#{tag.message.strip} (#{tag.author})"

  if !(options.summary or release.changes.empty?)

    out << "\nChanges:"

    release.groups.each do |type, changes|

      out << "\n* #{changes.size} #{changes[0].label }\n"

      changes.sort{|a,b| b.date <=> a.date}.each do |entry|
        msg = entry.to_s(:summary=>!options.detail)

        msg << "\n(##{entry.id})" if options.reference

        out << msg.tabto(6).sub('      ','    * ')
      end

    end

  end 

  out << ""
end

out.join("\n") + "\n"

Version data entries

6 entries across 6 versions & 2 rubygems

Version Path
rubycut-vclog-1.9.5.1 lib/vclog/templates/history.rdoc.rb
rubycut-vclog-1.9.5 lib/vclog/templates/history.rdoc.rb
rubycut-vclog-1.9.4 lib/vclog/templates/history.rdoc.rb
vclog-1.9.2 lib/vclog/templates/history.rdoc.rb
vclog-1.9.1 lib/vclog/templates/history.rdoc.rb
vclog-1.9.0 lib/vclog/templates/history.rdoc.rb