whimsical-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ru...@apache.org
Subject [whimsy] branch master updated: Provide an URL to retrieve draft minutes
Date Tue, 02 Aug 2016 22:02:53 GMT
This is an automated email from the ASF dual-hosted git repository.

rubys pushed a commit to branch master
in repository https://git-dual.apache.org/repos/asf/whimsy.git

The following commit(s) were added to refs/heads/master by this push:
       new  07b9cf4   Provide an URL to retrieve draft minutes
07b9cf4 is described below

commit 07b9cf4e830afe8a461ad6df16a216386c519d1d
Author: Sam Ruby <rubys@intertwingly.net>
AuthorDate: Tue Aug 2 18:02:14 2016 -0400

    Provide an URL to retrieve draft minutes
---
 www/board/agenda/routes.rb | 7 +++++++
 1 file changed, 7 insertions(+)

diff --git a/www/board/agenda/routes.rb b/www/board/agenda/routes.rb
index ed691bb..adc68d9 100755
--- a/www/board/agenda/routes.rb
+++ b/www/board/agenda/routes.rb
@@ -141,6 +141,13 @@ post '/json/:file' do
   _json :"actions/#{params[:file]}"
 end
 
+# Raw minutes
+get %r{(\d\d\d\d-\d\d-\d\d).ya?ml} do |file|
+  minutes = AGENDA_WORK + '/' + "board_minutes_#{file.gsub('-','_')}.yml"
+  pass unless File.exists? minutes
+  _text File.read minutes
+end
+
 # updates to agenda data
 get %r{(\d\d\d\d-\d\d-\d\d).json} do |file|
   file = "board_agenda_#{file.gsub('-','_')}.txt"

-- 
To stop receiving notification emails like this one, please contact
['"commits@whimsical.apache.org" <commits@whimsical.apache.org>'].

Mime
View raw message