vclog 1.5.0 → 1.6.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (63) hide show
  1. data/HISTORY.rdoc +12 -0
  2. data/README.rdoc +5 -5
  3. data/REQUIRE +1 -0
  4. data/VERSION +2 -2
  5. data/bin/vclog +1 -1
  6. data/features/git.feature +8 -8
  7. data/features/hg.feature +8 -8
  8. data/features/svn.feature +8 -8
  9. data/lib/plugins/syckle/vclog.rb +19 -9
  10. data/lib/vclog/adapters/abstract.rb +78 -9
  11. data/lib/vclog/adapters/darcs.rb +5 -5
  12. data/lib/vclog/adapters.rb +3 -4
  13. data/lib/vclog/change.rb +14 -28
  14. data/lib/vclog/changelog.rb +8 -12
  15. data/lib/vclog/cli/abstract.rb +99 -0
  16. data/lib/vclog/cli/bump.rb +30 -0
  17. data/lib/vclog/cli/changelog.rb +33 -0
  18. data/lib/vclog/cli/help.rb +37 -0
  19. data/lib/vclog/cli/history.rb +40 -0
  20. data/lib/vclog/cli/list.rb +28 -0
  21. data/lib/vclog/cli/version.rb +30 -0
  22. data/lib/vclog/cli.rb +70 -51
  23. data/lib/vclog/config.rb +65 -0
  24. data/lib/vclog/formatter.rb +27 -10
  25. data/lib/vclog/heuristics/default.rb +20 -0
  26. data/lib/vclog/heuristics.rb +86 -8
  27. data/lib/vclog/history.rb +26 -191
  28. data/lib/vclog/kernel.rb +12 -0
  29. data/lib/vclog/metadata.rb +1 -0
  30. data/lib/vclog/release.rb +25 -10
  31. data/lib/vclog/tag.rb +14 -4
  32. data/lib/vclog/templates/changelog.ansi.rb +52 -0
  33. data/lib/vclog/templates/{changelog.atom → changelog.atom.erb} +0 -0
  34. data/lib/vclog/templates/changelog.gnu.rb +31 -0
  35. data/lib/vclog/templates/{changelog.html → changelog.html.erb} +0 -0
  36. data/lib/vclog/templates/changelog.json.rb +1 -0
  37. data/lib/vclog/templates/changelog.markdown.rb +30 -0
  38. data/lib/vclog/templates/changelog.rdoc.rb +30 -0
  39. data/lib/vclog/templates/{changelog.xml → changelog.xml.erb} +0 -0
  40. data/lib/vclog/templates/changelog.yaml.rb +1 -0
  41. data/lib/vclog/templates/history.ansi.rb +59 -0
  42. data/lib/vclog/templates/{history.atom → history.atom.erb} +1 -1
  43. data/lib/vclog/templates/history.gnu.rb +41 -0
  44. data/lib/vclog/templates/history.html.erb +52 -0
  45. data/lib/vclog/templates/history.json.rb +1 -0
  46. data/lib/vclog/templates/history.markdown.rb +40 -0
  47. data/lib/vclog/templates/history.rdoc.rb +40 -0
  48. data/lib/vclog/templates/{history.xml → history.xml.erb} +1 -1
  49. data/lib/vclog/templates/history.yaml.rb +1 -0
  50. data/lib/vclog.rb +6 -1
  51. metadata +95 -21
  52. data/ROADMAP.rdoc +0 -31
  53. data/lib/vclog/templates/changelog.gnu +0 -6
  54. data/lib/vclog/templates/changelog.json +0 -1
  55. data/lib/vclog/templates/changelog.markdown +0 -6
  56. data/lib/vclog/templates/changelog.rdoc +0 -6
  57. data/lib/vclog/templates/changelog.yaml +0 -1
  58. data/lib/vclog/templates/history.gnu +0 -12
  59. data/lib/vclog/templates/history.html +0 -47
  60. data/lib/vclog/templates/history.json +0 -1
  61. data/lib/vclog/templates/history.markdown +0 -12
  62. data/lib/vclog/templates/history.rdoc +0 -12
  63. data/lib/vclog/templates/history.yaml +0 -1
@@ -0,0 +1,59 @@
1
+ require 'ansi'
2
+
3
+ out = []
4
+
5
+ out << "#{title.ansi(:bold)}"
6
+
7
+ history.releases.sort.each do |release|
8
+
9
+ tag = release.tag
10
+
11
+ out << "\n#{tag.name} / #{tag.date.strftime('%Y-%m-%d')}".ansi(:bold)
12
+
13
+ out << "\n#{tag.message.strip} (#{tag.author})"
14
+
15
+ if options.extra && !release.changes.empty?
16
+
17
+ #out << "\nChanges:".ansi(:green)
18
+
19
+ release.groups.each do |number, changes|
20
+
21
+ out << "\n* " + "#{changes.size} #{changes[0].label}\n"
22
+
23
+ changes.sort{|a,b| b.date <=> a.date}.each do |entry|
24
+
25
+ line = "#{entry.message.strip}"
26
+
27
+ if options.revision
28
+ out.last << "(##{entry.revision})"
29
+ end
30
+
31
+ case entry.level
32
+ when 1
33
+ line = line.ansi(:yellow)
34
+ when 0
35
+ line = line.ansi(:green)
36
+ when -1
37
+ line = line.ansi(:cyan)
38
+ else
39
+ if entry.level > 1
40
+ line = line.ansi(:red)
41
+ else
42
+ line = line.ansi(:blue)
43
+ end
44
+ end
45
+
46
+ out << " * " + line
47
+
48
+ end
49
+
50
+ end
51
+
52
+ end
53
+
54
+ out << ""
55
+
56
+ end
57
+
58
+ out.join("\n") + "\n"
59
+
@@ -24,7 +24,7 @@
24
24
  <p><%= tag.message %></p>
25
25
  <% if options.extra %>
26
26
  <% release.groups.each do |number, changes| %>
27
- <h2><%= changes.size %> <%= changes[0].type_phrase %></h2>
27
+ <h2><%= changes.size %> <%= changes[0].label %></h2>
28
28
  <ul class="log">
29
29
  <% changes.sort{|a,b| b.date <=> a.date}.each do |entry| %>
30
30
  <li class="entry">
@@ -0,0 +1,41 @@
1
+
2
+ out = []
3
+
4
+ out << "#{title}"
5
+
6
+ history.releases.sort.each do |release|
7
+
8
+ tag = release.tag
9
+
10
+ out << "\n#{tag.name} / #{tag.date.strftime('%Y-%m-%d')}"
11
+
12
+ out << "\n#{tag.message.strip} (#{tag.author})"
13
+
14
+ if options.extra && !release.changes.empty?
15
+
16
+ out << "\nChanges:"
17
+
18
+ release.groups.each do |number, changes|
19
+
20
+ out << "\n* #{changes.size} #{changes[0].label }\n"
21
+
22
+ changes.sort{|a,b| b.date <=> a.date}.each do |entry|
23
+
24
+ out << " * #{entry.message.strip}"
25
+
26
+ if options.revision
27
+ out.last << "(##{entry.revision})"
28
+ end
29
+
30
+ end
31
+
32
+ end
33
+
34
+ end
35
+
36
+ out << ""
37
+
38
+ end
39
+
40
+ out.join("\n") + "\n"
41
+
@@ -0,0 +1,52 @@
1
+ <html>
2
+ <head>
3
+ <title><%= title %> History</title>
4
+ <style>
5
+ body{font-family: sans-serif;}
6
+ h1{ }
7
+ h2{ color: #555; }
8
+ li{padding: 10px;}
9
+ .changelog{width:800px; margin:0 auto;}
10
+ .title{font-size: 64px;}
11
+ .date{font-weight: bold; color: green; float: left; padding-right: 15px;}
12
+ .author{font-weight: bold; color: blue;}
13
+ .message{padding: 5 0; font-weight: bold;}
14
+ .revision{font-size: 0.8em;}
15
+ </style>
16
+ <% if options.stylesheet %>
17
+ <link rel="stylesheet" href="#{options.stylesheet}" type="text/css">
18
+ <% end %>
19
+ </head>
20
+ <body>
21
+ <div class="history">
22
+ <div class="title"><%= title %></div>
23
+
24
+ <% history.releases.sort.each do |release| %>
25
+ <% tag = release.tag %>
26
+
27
+ <h1><%= tag.name %> / <%= tag.date.strftime('%Y-%m-%d') %></h1>
28
+ <p><%= tag.message %></p>
29
+ <% if options.extra %>
30
+ <% release.groups.each do |number, changes| %>
31
+
32
+ <h2><%= changes.size %> <%= changes[0].label %></h2>
33
+ <ul class="log">
34
+ <% changes.sort{|a,b| b.date <=> a.date}.each do |entry| %>
35
+ <li class="entry">
36
+ <div class="message">
37
+ <%= h entry.message.strip %>
38
+ </div>
39
+ <!-- <div class="type"><%= h entry.type %></div> -->
40
+ <div class="revision">#<%= h entry.revision %></div>
41
+ <div class="date"><%= entry.date %></div>
42
+ <div class="author"><%= h entry.author %></div>
43
+ </li>
44
+ <% end %>
45
+ </ul>
46
+ <% end %>
47
+ <% end %>
48
+ <% end %>
49
+ </div>
50
+ </body>
51
+ </html>
52
+
@@ -0,0 +1 @@
1
+ history.to_h.to_json
@@ -0,0 +1,40 @@
1
+ out = []
2
+
3
+ out << "# #{title || 'RELEASE HISTORY'}"
4
+
5
+ history.releases.sort.each do |release|
6
+
7
+ tag = release.tag
8
+
9
+ out << "\n## #{tag.name} / #{tag.date.strftime('%Y-%m-%d')}"
10
+
11
+ out << "\n#{tag.message.strip} (#{tag.author})"
12
+
13
+ if options.extra && !release.changes.empty?
14
+
15
+ out << "\nChanges:"
16
+
17
+ release.groups.each do |number, changes|
18
+
19
+ out << "\n* #{changes.size} #{changes[0].label }\n"
20
+
21
+ changes.sort{|a,b| b.date <=> a.date}.each do |entry|
22
+
23
+ out << " * #{entry.message.strip}"
24
+
25
+ if options.revision
26
+ out.last << "(##{entry.revision})"
27
+ end
28
+
29
+ end
30
+
31
+ end
32
+
33
+ end
34
+
35
+ out << ""
36
+
37
+ end
38
+
39
+ out.join("\n") + "\n"
40
+
@@ -0,0 +1,40 @@
1
+ out = []
2
+
3
+ out << "= #{title || 'Release History'}"
4
+
5
+ history.releases.sort.each do |release|
6
+
7
+ tag = release.tag
8
+
9
+ out << "\n== #{tag.name} / #{tag.date.strftime('%Y-%m-%d')}"
10
+
11
+ out << "\n#{tag.message.strip} (#{tag.author})"
12
+
13
+ if options.extra && !release.changes.empty?
14
+
15
+ out << "\nChanges:"
16
+
17
+ release.groups.each do |type, changes|
18
+
19
+ out << "\n* #{changes.size} #{changes[0].label }\n"
20
+
21
+ changes.sort{|a,b| b.date <=> a.date}.each do |entry|
22
+
23
+ out << " * #{entry.message.strip}"
24
+
25
+ if options.revision
26
+ out.last << "(##{entry.revision})"
27
+ end
28
+
29
+ end
30
+
31
+ end
32
+
33
+ end
34
+
35
+ out << ""
36
+
37
+ end
38
+
39
+ out.join("\n") + "\n"
40
+
@@ -13,7 +13,7 @@
13
13
  <message><%= h tag.message %></message>
14
14
 
15
15
  <% release.groups.each do |number, changes| %>
16
- <commit-group type="<%= changes[0].type %>" label="<%= changes[0].type_phrase %>">
16
+ <commit-group type="<%= changes[0].type %>" label="<%= changes[0].label %>">
17
17
  <% changes.sort{|a,b| b.date <=> a.date}.each do |entry| %>
18
18
  <commit>
19
19
  <revision>#<%= h entry.revision %></revision>
@@ -0,0 +1 @@
1
+ history.to_h.to_yaml
data/lib/vclog.rb CHANGED
@@ -1 +1,6 @@
1
- require 'vclog/adapters'
1
+ module VCLog
2
+ require 'vclog/config'
3
+ require 'vclog/adapters'
4
+ end
5
+
6
+
metadata CHANGED
@@ -1,12 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: vclog
3
3
  version: !ruby/object:Gem::Version
4
+ hash: 15
4
5
  prerelease: false
5
6
  segments:
6
7
  - 1
7
- - 5
8
+ - 6
8
9
  - 0
9
- version: 1.5.0
10
+ version: 1.6.0
10
11
  platform: ruby
11
12
  authors:
12
13
  - Thomas Sawyer
@@ -14,22 +15,80 @@ autorequire:
14
15
  bindir: bin
15
16
  cert_chain: []
16
17
 
17
- date: 2010-05-28 00:00:00 -04:00
18
+ date: 2010-06-21 00:00:00 -04:00
18
19
  default_executable:
19
20
  dependencies:
20
21
  - !ruby/object:Gem::Dependency
21
22
  name: facets
22
23
  prerelease: false
23
24
  requirement: &id001 !ruby/object:Gem::Requirement
25
+ none: false
24
26
  requirements:
25
27
  - - ">"
26
28
  - !ruby/object:Gem::Version
29
+ hash: 11
27
30
  segments:
28
31
  - 2
29
32
  - 4
30
33
  version: "2.4"
31
34
  type: :runtime
32
35
  version_requirements: *id001
36
+ - !ruby/object:Gem::Dependency
37
+ name: ansi
38
+ prerelease: false
39
+ requirement: &id002 !ruby/object:Gem::Requirement
40
+ none: false
41
+ requirements:
42
+ - - ">="
43
+ - !ruby/object:Gem::Version
44
+ hash: 3
45
+ segments:
46
+ - 0
47
+ version: "0"
48
+ type: :runtime
49
+ version_requirements: *id002
50
+ - !ruby/object:Gem::Dependency
51
+ name: syckle
52
+ prerelease: false
53
+ requirement: &id003 !ruby/object:Gem::Requirement
54
+ none: false
55
+ requirements:
56
+ - - ">="
57
+ - !ruby/object:Gem::Version
58
+ hash: 3
59
+ segments:
60
+ - 0
61
+ version: "0"
62
+ type: :development
63
+ version_requirements: *id003
64
+ - !ruby/object:Gem::Dependency
65
+ name: cucumber
66
+ prerelease: false
67
+ requirement: &id004 !ruby/object:Gem::Requirement
68
+ none: false
69
+ requirements:
70
+ - - ">="
71
+ - !ruby/object:Gem::Version
72
+ hash: 3
73
+ segments:
74
+ - 0
75
+ version: "0"
76
+ type: :development
77
+ version_requirements: *id004
78
+ - !ruby/object:Gem::Dependency
79
+ name: aruba
80
+ prerelease: false
81
+ requirement: &id005 !ruby/object:Gem::Requirement
82
+ none: false
83
+ requirements:
84
+ - - ">="
85
+ - !ruby/object:Gem::Version
86
+ hash: 3
87
+ segments:
88
+ - 0
89
+ version: "0"
90
+ type: :development
91
+ version_requirements: *id005
33
92
  description: VCLog is a cross-VCS/SCM ChangeLog generator.
34
93
  email: transfire@gmail.com
35
94
  executables:
@@ -49,31 +108,43 @@ files:
49
108
  - lib/vclog/adapters.rb
50
109
  - lib/vclog/change.rb
51
110
  - lib/vclog/changelog.rb
111
+ - lib/vclog/cli/abstract.rb
112
+ - lib/vclog/cli/bump.rb
113
+ - lib/vclog/cli/changelog.rb
114
+ - lib/vclog/cli/help.rb
115
+ - lib/vclog/cli/history.rb
116
+ - lib/vclog/cli/list.rb
117
+ - lib/vclog/cli/version.rb
52
118
  - lib/vclog/cli.rb
119
+ - lib/vclog/config.rb
53
120
  - lib/vclog/facets.rb
54
121
  - lib/vclog/formatter.rb
122
+ - lib/vclog/heuristics/default.rb
55
123
  - lib/vclog/heuristics.rb
56
124
  - lib/vclog/history.rb
125
+ - lib/vclog/kernel.rb
57
126
  - lib/vclog/metadata.rb
58
127
  - lib/vclog/release.rb
59
128
  - lib/vclog/tag.rb
60
- - lib/vclog/templates/changelog.atom
61
- - lib/vclog/templates/changelog.gnu
62
- - lib/vclog/templates/changelog.html
63
- - lib/vclog/templates/changelog.json
64
- - lib/vclog/templates/changelog.markdown
65
- - lib/vclog/templates/changelog.rdoc
66
- - lib/vclog/templates/changelog.xml
129
+ - lib/vclog/templates/changelog.ansi.rb
130
+ - lib/vclog/templates/changelog.atom.erb
131
+ - lib/vclog/templates/changelog.gnu.rb
132
+ - lib/vclog/templates/changelog.html.erb
133
+ - lib/vclog/templates/changelog.json.rb
134
+ - lib/vclog/templates/changelog.markdown.rb
135
+ - lib/vclog/templates/changelog.rdoc.rb
136
+ - lib/vclog/templates/changelog.xml.erb
67
137
  - lib/vclog/templates/changelog.xsl
68
- - lib/vclog/templates/changelog.yaml
69
- - lib/vclog/templates/history.atom
70
- - lib/vclog/templates/history.gnu
71
- - lib/vclog/templates/history.html
72
- - lib/vclog/templates/history.json
73
- - lib/vclog/templates/history.markdown
74
- - lib/vclog/templates/history.rdoc
75
- - lib/vclog/templates/history.xml
76
- - lib/vclog/templates/history.yaml
138
+ - lib/vclog/templates/changelog.yaml.rb
139
+ - lib/vclog/templates/history.ansi.rb
140
+ - lib/vclog/templates/history.atom.erb
141
+ - lib/vclog/templates/history.gnu.rb
142
+ - lib/vclog/templates/history.html.erb
143
+ - lib/vclog/templates/history.json.rb
144
+ - lib/vclog/templates/history.markdown.rb
145
+ - lib/vclog/templates/history.rdoc.rb
146
+ - lib/vclog/templates/history.xml.erb
147
+ - lib/vclog/templates/history.yaml.rb
77
148
  - lib/vclog.rb
78
149
  - features/git.feature
79
150
  - features/hg.feature
@@ -88,7 +159,6 @@ files:
88
159
  - PROFILE
89
160
  - LICENSE
90
161
  - README.rdoc
91
- - ROADMAP.rdoc
92
162
  - REQUIRE
93
163
  - VERSION
94
164
  has_rdoc: true
@@ -104,23 +174,27 @@ rdoc_options:
104
174
  require_paths:
105
175
  - lib
106
176
  required_ruby_version: !ruby/object:Gem::Requirement
177
+ none: false
107
178
  requirements:
108
179
  - - ">="
109
180
  - !ruby/object:Gem::Version
181
+ hash: 3
110
182
  segments:
111
183
  - 0
112
184
  version: "0"
113
185
  required_rubygems_version: !ruby/object:Gem::Requirement
186
+ none: false
114
187
  requirements:
115
188
  - - ">="
116
189
  - !ruby/object:Gem::Version
190
+ hash: 3
117
191
  segments:
118
192
  - 0
119
193
  version: "0"
120
194
  requirements: []
121
195
 
122
196
  rubyforge_project: vclog
123
- rubygems_version: 1.3.6
197
+ rubygems_version: 1.3.7
124
198
  signing_key:
125
199
  specification_version: 3
126
200
  summary: Cross-VCS/SCM ChangeLog Generator
data/ROADMAP.rdoc DELETED
@@ -1,31 +0,0 @@
1
- = ROADMAP
2
-
3
- == Subversion History Support
4
-
5
- Generating a Relase History for a svn repo is painfully slow and will likely fail due to hitting the server too many times in rapid succession. Is there another way?
6
-
7
- == Automagical Version Numbers
8
-
9
- Would be cool if it could also generate an automagical version number.
10
-
11
- === For Git
12
-
13
- We started off by looking at what git can tell us about the current release:
14
-
15
- * git-rev-parse <id> tells up what the ID of the <id> is, we can find out the current commit's ID by using HEAD (or nothing at all)
16
- * git-rev-list <id>..HEAD tells us what the commits were between the <id> and the current commit
17
- * git-describe <id> shows us, in a nice format, a unique description of the commit.
18
-
19
- Using all of this together Patrick came up with:
20
-
21
- BRANCH=`git-describe | awk -F'-g[0-9a-fA-F]+' '{print $1}'`
22
- COMMIT=`git-rev-parse HEAD | awk '{print substr($1,0,8)}'`
23
- INCREMENT=`git-rev-list $BRANCH..HEAD | wc -l | awk '{print $1}'`
24
- TGZ="openswan-$BRANCH-($INCREMENT)-g$COMMIT.tgz"
25
-
26
- What this attempts to achieve is create a tar ball name that describes the release using the last tag, the number of builds since the tag was made, and the short commit ID. Here is the breakdown of the bits:
27
-
28
- * BRANCH will tell us what major release this is a part of,
29
- * INCREMENT is a pseudo build number (it's really the number of commits since the last release), and
30
- * g*COMMIT* is the short ID of the commit that generated the build.
31
-
@@ -1,6 +0,0 @@
1
- <% changelog.by_date.each do |date, date_changes| %><% date_changes.by_author.each do |author, author_changes| %>
2
- <%= date %> <%= author %>
3
- <% author_changes.each do |entry| %>
4
- * <%= entry.message %> <% if entry.type %><<%= entry.type %>><% end %><% if options.revision %>(#<%= entry.revision %>)<% end %><% end %>
5
- <% end %>
6
- <% end %>
@@ -1 +0,0 @@
1
- <%= changelog.to_h.to_json %>
@@ -1,6 +0,0 @@
1
- # <%= title %>
2
- <% changelog.by_date.each do |date, date_changes| %><% date_changes.by_author.each do |author, author_changes| %>
3
- ## <%= date %> <%= author %>
4
- <% author_changes.each do |entry| %>
5
- * <%= entry.message %> <% if entry.type %><<%= entry.type %>><% end %><% if options.revision %>(#<%= entry.revision %>)<% end %><% end %>
6
- <% end %><% end %>
@@ -1,6 +0,0 @@
1
- = <%= title %>
2
- <% changelog.by_date.each do |date, date_changes| %><% date_changes.by_author.each do |author, author_changes| %>
3
- == <%= date %> <%= author %>
4
- <% author_changes.each do |entry| %>
5
- * <%= entry.message %> <% if entry.type %><<%= entry.type %>><% end %><% if options.revision %>(#<%= entry.revision %>)<% end %><% end %>
6
- <% end %><% end %>
@@ -1 +0,0 @@
1
- <%= changelog.to_h.to_yaml %>
@@ -1,12 +0,0 @@
1
- # <%= title %>
2
- <% history.releases.sort.each do |release| %><% tag = release.tag %>
3
- ## <%= tag.name %> / <%= tag.date.strftime('%Y-%m-%d') %>
4
-
5
- <%= h tag.message.strip %> (<%= tag.author %>)
6
-
7
- <% if options.extra %>Changes:
8
- <% release.groups.each do |number, changes| %>
9
- * <%= changes.size %> <%= changes[0].type_phrase %>
10
- <% changes.sort{|a,b| b.date <=> a.date}.each do |entry| %>
11
- * <%= entry.message %> <% if options.revision %>(#<%= entry.revision %>)<% end %><% end %>
12
- <% end %><% end %><% end %>
@@ -1,47 +0,0 @@
1
- <html>
2
- <head>
3
- <title><%= title %> History</title>
4
- <style>
5
- body{font-family: sans-serif;}
6
- h1{ }
7
- h2{ color: #555; }
8
- li{padding: 10px;}
9
- .changelog{width:800px; margin:0 auto;}
10
- .title{font-size: 64px;}
11
- .date{font-weight: bold; color: green; float: left; padding-right: 15px;}
12
- .author{font-weight: bold; color: blue;}
13
- .message{padding: 5 0; font-weight: bold;}
14
- .revision{font-size: 0.8em;}
15
- </style>
16
- <% if options.stylesheet %>
17
- <link rel="stylesheet" href="#{options.stylesheet}" type="text/css">
18
- <% end %>
19
- </head>
20
- <body>
21
- <div class="history">
22
- <div class="title"><%= title %></div>
23
- <% history.releases.sort.each do |release| %>
24
- <% tag = release.tag %>
25
- <h1><%= tag.name %> / <%= tag.date.strftime('%Y-%m-%d') %></h1>
26
- <p><%= tag.message %></p>
27
- <% if options.extra %>
28
- <% release.groups.each do |number, changes| %>
29
- <h2><%= changes.size %> <%= changes[0].type_phrase %></h2>
30
- <ul class="log">
31
- <% changes.sort{|a,b| b.date <=> a.date}.each do |entry| %>
32
- <li class="entry">
33
- <div class="message"><%= h entry.message %></div>
34
- <!-- <div class="type"><%= h entry.type %></div> -->
35
- <div class="revision">#<%= h entry.revision %></div>
36
- <div class="date"><%= entry.date %></div>
37
- <div class="author"><%= h entry.author %></div>
38
- </li>
39
- <% end %>
40
- </ul>
41
- <% end %>
42
- <% end %>
43
- <% end %>
44
- </div>
45
- </body>
46
- </html>
47
-
@@ -1 +0,0 @@
1
- <%= history.to_h.to_json %>
@@ -1,12 +0,0 @@
1
- # <%= title %>
2
- <% history.releases.sort.each do |release| %><% tag = release.tag %>
3
- ## <%= tag.name %> / <%= tag.date.strftime('%Y-%m-%d') %>
4
-
5
- <%= h tag.message.strip %> (<%= tag.author %>)
6
-
7
- <% if options.extra %>Changes:
8
- <% release.groups.each do |number, changes| %>
9
- * <%= changes.size %> <%= changes[0].type_phrase %>
10
- <% changes.sort{|a,b| b.date <=> a.date}.each do |entry| %>
11
- * <%= entry.message %> <% if options.revision %>(#<%= entry.revision %>)<% end %><% end %>
12
- <% end %><% end %><% end %>
@@ -1,12 +0,0 @@
1
- = <%= title %>
2
- <% history.releases.sort.each do |release| %><% tag = release.tag %>
3
- == <%= tag.name %> / <%= tag.date.strftime('%Y-%m-%d') %>
4
-
5
- <%= h tag.message.strip %> (<%= tag.author %>)
6
-
7
- <% if options.extra %>Changes:
8
- <% release.groups.each do |number, changes| %>
9
- * <%= changes.size %> <%= changes[0].type_phrase %>
10
- <% changes.sort{|a,b| b.date <=> a.date}.each do |entry| %>
11
- * <%= entry.message %> <% if options.revision %>(#<%= entry.revision %>)<% end %><% end %>
12
- <% end %><% end %><% end %>
@@ -1 +0,0 @@
1
- <%= history.to_h.to_yaml %>