ptlog 0.2.0 → 0.2.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -4,8 +4,7 @@ Capistrano::Configuration.instance(:must_exist).load do
4
4
  namespace :ptlog do
5
5
  desc "Generates changelog"
6
6
  task :changes do
7
- # put PTLog::ChangeLog.generate, "#{release_path}/public/changelog.html"
8
- puts PTLog::ChangeLog.generate
7
+ put PTLog::ChangeLog.generate, "#{current_path}/public/changelog.html"
9
8
  end
10
9
 
11
10
  desc "Generates release file. RESTART=(true|false) option could be specified (by default is true)"
@@ -48,7 +48,7 @@ module PTLog
48
48
 
49
49
  def initialize
50
50
  @git ||= Git.open(Dir.getwd)
51
- @start = ENV['PTLOG_SINCE'] || git.lib.ordered_tags[-2]
51
+ @start = ENV['PTLOG_SINCE'] || git.lib.ordered_tags[-1]
52
52
  @tags = PTLog::TagList.new(@git, @start)
53
53
  end
54
54
 
@@ -74,9 +74,13 @@ module PTLog
74
74
 
75
75
  @builder = Nokogiri::HTML::Builder.new(:encoding => 'UTF-8') do |doc|
76
76
  doc.body do
77
- doc.h1 "ChangeLog"
77
+ doc.h1 "Change Log @ #{Time.new.utc.strftime('%I:%M%P %D UTC')}"
78
78
  changelog.tags.each do |tag|
79
- doc.h2 "Release #{tag}"
79
+ doc.h2 do
80
+ doc.text "Release #{tag} "
81
+ doc.text changelog.git.gcommit(tag).date.utc.strftime('(%I:%M%P %D UTC)')
82
+ end
83
+
80
84
  changelog.stories(changelog.tags.prev_to(tag), tag).each do |num, messages|
81
85
  doc.div(class: 'story') do
82
86
  story = Pivotal::Story.get(num)
data/lib/ptlog/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module PTLog
2
- VERSION = "0.2.0"
2
+ VERSION = "0.2.1"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ptlog
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.0
4
+ version: 0.2.1
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors: