You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@whimsical.apache.org by Sebastian Bazley <se...@apache.org> on 2016/03/14 00:54:38 UTC
[whimsy.git] [1/1] Commit ff1149d: Add a timestamp to the output
Commit ff1149d16086d135951ef0b47104bbd78348b136:
Add a timestamp to the output
Branch: refs/heads/master
Author: Sebb <se...@apache.org>
Committer: Sebb <se...@apache.org>
Pusher: sebb <se...@apache.org>
------------------------------------------------------------
tools/collate_minutes.rb | ++ -
------------------------------------------------------------
3 changes: 2 additions, 1 deletions.
------------------------------------------------------------
diff --git a/tools/collate_minutes.rb b/tools/collate_minutes.rb
index 4b0af03..85db5e3 100755
--- a/tools/collate_minutes.rb
+++ b/tools/collate_minutes.rb
@@ -570,10 +570,11 @@ def layout(title = nil)
$calendar.at('title').content = "Board Meeting Minutes"
# $calendar.at('h2').content = "Board Meeting Minutes"
end
+ stamp = DateTime.now.strftime '%Y-%m-%d %H:%M'
section = $calendar.at('.container p strong').parent.parent
paragraphs = section.search('p')
paragraphs.first.children.last.content =
- paragraphs.first.children.last.content.sub 'is a', 'is extracted from a'
+ paragraphs.first.children.last.content.sub 'is a', "was extracted (@ #{stamp}) from a"
section.children.each {|child| child.remove}
section.add_child paragraphs[0]