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.
- data/lib/ptlog/capistrno.rb +1 -2
- data/lib/ptlog/change_log.rb +7 -3
- data/lib/ptlog/version.rb +1 -1
- metadata +1 -1
data/lib/ptlog/capistrno.rb
CHANGED
@@ -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
|
-
|
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)"
|
data/lib/ptlog/change_log.rb
CHANGED
@@ -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[-
|
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 "
|
77
|
+
doc.h1 "Change Log @ #{Time.new.utc.strftime('%I:%M%P %D UTC')}"
|
78
78
|
changelog.tags.each do |tag|
|
79
|
-
doc.h2
|
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