Sha256: ab72888c3e1cdcee78e526d3d590f55e933a7cfe3fee5810687cc005d1a0b03d

Contents?: true

Size: 670 Bytes

Versions: 6

Compression:

Stored size: 670 Bytes

Contents

out = []

out << "# #{title || 'RELEASE HISTORY'}"

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.extra && !release.changes.empty?

    out << "\nChanges:"

    release.groups.each do |number, changes|

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

      changes.sort{|a,b| b.date <=> a.date}.each do |entry|

        out << "    * #{entry.message.strip}"

        if options.revision
          out.last <<  "(##{entry.revision})"
        end

      end

    end

  end 

  out << ""

end

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

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
vclog-1.8.2 lib/vclog/templates/history.markdown.rb
vclog-1.8.1 lib/vclog/templates/history.markdown.rb
vclog-1.8.0 lib/vclog/templates/history.markdown.rb
vclog-1.7.0 lib/vclog/templates/history.markdown.rb
vclog-1.6.1 lib/vclog/templates/history.markdown.rb
vclog-1.6.0 lib/vclog/templates/history.markdown.rb