class PTLog::Wrappers::ChangeLog
Attributes
git[R]
Public Class Methods
new()
click to toggle source
# File lib/ptlog/wrappers/changelog.rb, line 5 def initialize @git ||= ::Git.open(Dir.getwd) @start = ENV['PTLOG_SINCE'] || git.lib.ordered_tags.first @tags = PTLog::TagList.new(@git, @start) end
Public Instance Methods
date()
click to toggle source
# File lib/ptlog/wrappers/changelog.rb, line 11 def date Time.new.utc.strftime('%I:%M%P %D UTC') end
releases()
click to toggle source
# File lib/ptlog/wrappers/changelog.rb, line 15 def releases @tags.map do |tag| PTLog::Wrappers::Release.new(tag, self) end end