module Wrongdoc::History
Public Instance Methods
initialize_history()
click to toggle source
# File lib/wrongdoc/history.rb, line 2 def initialize_history @tags = @old_summaries = nil end
old_summaries()
click to toggle source
# File lib/wrongdoc/history.rb, line 43 def old_summaries @old_summaries ||= if File.exist?(".CHANGELOG.old") File.readlines(".CHANGELOG.old").inject({}) do |hash, line| version, summary = line.split(/ - /, 2) hash[version] = summary hash end else {} end end
tag_uri(tag_name)
click to toggle source
returns a cgit URI for a given tag_name
# File lib/wrongdoc/history.rb, line 7 def tag_uri(tag_name) uri = @cgit_uri.dup uri.path += "/tag/" uri.query = "id=#{tag_name}" uri end