blammo 0.2.0 → 0.2.1

Sign up to get free protection for your applications and to get access to all the features.
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.2.0
1
+ 0.2.1
@@ -13,7 +13,7 @@ module Blammo
13
13
  desc "render [PATH]", "Renders the given changelog.yml file"
14
14
  def render(path = "changelog.yml")
15
15
  changelog = Changelog.new(path)
16
- template_path = __FILE__.to_fancypath.dir / "../../templates/changelog.markdown.erb".to_fancypath
16
+ template_path = __FILE__.to_fancypath.dir / "../../templates/changelog.html.erb".to_fancypath
17
17
  template = Tilt.new(template_path)
18
18
  puts template.render(nil, :changelog => changelog)
19
19
  end
@@ -0,0 +1,20 @@
1
+ <!DOCTYPE html>
2
+ <html dir="ltr" lang="en-US">
3
+ <body>
4
+ <h1>Changelog</h1>
5
+
6
+ <% changelog.releases.each do |release_hash| %>
7
+ <% release, commits = release_hash.first %>
8
+ <h2><%= release %></h2>
9
+
10
+ <ul>
11
+ <% commits.each do |commit_hash| %>
12
+ <% sha, message = commit_hash.first %>
13
+ <% unless message.empty? %>
14
+ <li><%= message %></li>
15
+ <% end %>
16
+ <% end %>
17
+ </ul>
18
+ <% end %>
19
+ </body>
20
+ </html>
metadata CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
5
5
  segments:
6
6
  - 0
7
7
  - 2
8
- - 0
9
- version: 0.2.0
8
+ - 1
9
+ version: 0.2.1
10
10
  platform: ruby
11
11
  authors:
12
12
  - Josh Bassett
@@ -151,7 +151,7 @@ files:
151
151
  - spec/blammo/git_spec.rb
152
152
  - spec/spec.opts
153
153
  - spec/spec_helper.rb
154
- - templates/changelog.markdown.erb
154
+ - templates/changelog.html.erb
155
155
  has_rdoc: true
156
156
  homepage: http://github.com/nullobject/blammo
157
157
  licenses: []
@@ -1,10 +0,0 @@
1
- # CHANGELOG
2
-
3
- <% changelog.releases.each do |release_hash| %>
4
- <% release, commits = release_hash.first %>
5
- ## <%= release %>
6
- <% commits.each do |commit_hash| %>
7
- <% sha, message = commit_hash.first %>
8
- * <%= message %>
9
- <% end %>
10
- <% end %>