whimsical-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Sebastian Bazley <s...@apache.org>
Subject [whimsy.git] [1/1] Commit ff1149d: Add a timestamp to the output
Date Sun, 13 Mar 2016 23:54:38 GMT
Commit ff1149d16086d135951ef0b47104bbd78348b136:
    Add a timestamp to the output


Branch: refs/heads/master
Author: Sebb <sebb@apache.org>
Committer: Sebb <sebb@apache.org>
Pusher: sebb <sebb@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]

Mime
View raw message