ptlog 0.2.1 → 0.2.2

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.
@@ -76,9 +76,12 @@ module PTLog
76
76
  doc.body do
77
77
  doc.h1 "Change Log @ #{Time.new.utc.strftime('%I:%M%P %D UTC')}"
78
78
  changelog.tags.each do |tag|
79
+
79
80
  doc.h2 do
80
81
  doc.text "Release #{tag} "
81
- doc.text changelog.git.gcommit(tag).date.utc.strftime('(%I:%M%P %D UTC)')
82
+ doc.span(class: 'date') do
83
+ doc.text changelog.git.gcommit(tag).date.utc.strftime('(%I:%M%P %D UTC)')
84
+ end
82
85
  end
83
86
 
84
87
  changelog.stories(changelog.tags.prev_to(tag), tag).each do |num, messages|
@@ -87,11 +90,22 @@ module PTLog
87
90
  doc.h3 do
88
91
  if story.valid?
89
92
  doc.a(href: story.url) do
90
- doc.text "##{num}"
93
+ doc.span(class: 'num') do
94
+ doc.text num
95
+ end
96
+ end
97
+ doc.span(class: 'name') do
98
+ doc.text " "
99
+ doc.text story.name
91
100
  end
92
- doc.text " - #{story.name}"
93
101
  else
94
- doc.text "##{num} - #{story.error}"
102
+ doc.span(class: 'num') do
103
+ doc.text num
104
+ end
105
+ doc.span(class: 'name error') do
106
+ doc.text " "
107
+ doc.text story.error
108
+ end
95
109
  end
96
110
  end
97
111
  doc.ul(class: 'commits') do
data/lib/ptlog/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module PTLog
2
- VERSION = "0.2.1"
2
+ VERSION = "0.2.2"
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.1
4
+ version: 0.2.2
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2013-11-21 00:00:00.000000000 Z
12
+ date: 2013-11-22 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: bundler
@@ -156,3 +156,4 @@ specification_version: 3
156
156
  summary: Generages changelog based on PivotalTracker stories and Git commits
157
157
  test_files:
158
158
  - spec/spec_helper.rb
159
+ has_rdoc: