You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@whimsical.apache.org by se...@apache.org on 2020/10/07 16:00:13 UTC
[whimsy] branch master updated: Need to allow for Symbol conversion
This is an automated email from the ASF dual-hosted git repository.
sebb pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/whimsy.git
The following commit(s) were added to refs/heads/master by this push:
new 2e48f3c Need to allow for Symbol conversion
2e48f3c is described below
commit 2e48f3ce09b9ed068bbdef73972f60f009f0e7a7
Author: Sebb <se...@apache.org>
AuthorDate: Wed Oct 7 17:00:04 2020 +0100
Need to allow for Symbol conversion
---
www/board/agenda/routes.rb | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/www/board/agenda/routes.rb b/www/board/agenda/routes.rb
index 4385736..319fd32 100755
--- a/www/board/agenda/routes.rb
+++ b/www/board/agenda/routes.rb
@@ -278,7 +278,7 @@ get %r{/(\d\d\d\d-\d\d-\d\d)/(.*)} do |date, path|
minutes = AGENDA_WORK + '/' +
agenda.sub('agenda', 'minutes').sub('.txt', '.yml')
- @page[:minutes] = YAML.safe_load(File.read(minutes)) if File.exist? minutes
+ @page[:minutes] = YAML.safe_load(File.read(minutes), [Symbol]) if File.exist? minutes
@cssmtime = File.mtime('public/stylesheets/app.css').to_i
@manmtime = File.mtime("#{settings.views}/manifest.json.erb").to_i
@@ -482,7 +482,7 @@ end
get %r{/json/chat/(\d\d\d\d_\d\d_\d\d)} do |date|
log = "#{AGENDA_WORK}/board_agenda_#{date}-chat.yml"
if File.exist? log
- _json YAML.safe_load(File.read(log))
+ _json YAML.safe_load(File.read(log), [Symbol])
else
_json []
end