You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@whimsical.apache.org by ru...@apache.org on 2018/05/16 16:46:58 UTC

[whimsy] branch master updated (c2c5e32 -> 4ac100c)

This is an automated email from the ASF dual-hosted git repository.

rubys pushed a change to branch master
in repository https://gitbox.apache.org/repos/asf/whimsy.git.


    from c2c5e32  don't count action items as awaiting preapprovals
     new b5470fb  enable pages with non-word characters in the title to be found
     new 4ac100c  take advantage of enhanced find

The 2 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails.  The revisions
listed as "add" were already present in the repository and have only
been added to this reference.


Summary of changes:
 www/board/agenda/views/models/agenda.js.rb  | 1 +
 www/board/agenda/views/models/minutes.js.rb | 3 +--
 2 files changed, 2 insertions(+), 2 deletions(-)

-- 
To stop receiving notification emails like this one, please contact
rubys@apache.org.

[whimsy] 02/02: take advantage of enhanced find

Posted by ru...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

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

commit 4ac100cc09e73ef129a155918d3aa14f1de307ef
Author: Sam Ruby <ru...@intertwingly.net>
AuthorDate: Wed May 16 12:46:38 2018 -0400

    take advantage of enhanced find
---
 www/board/agenda/views/models/minutes.js.rb | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/www/board/agenda/views/models/minutes.js.rb b/www/board/agenda/views/models/minutes.js.rb
index 4b8bbe1..5b4276b 100644
--- a/www/board/agenda/views/models/minutes.js.rb
+++ b/www/board/agenda/views/models/minutes.js.rb
@@ -20,8 +20,7 @@ class Minutes
       pattern = RegExp.new('^(?:@|AI\s+)(\w+):?\s+([\s\S]*?)(\n\n|$)', 'g')
       match = pattern.exec(minutes)
       while match
-        actions << {owner: match[1], text: match[2], 
-          item: Agenda.find(title.gsub(/\W+/, '-'))}
+        actions << {owner: match[1], text: match[2], item: Agenda.find(title)}
         match = pattern.exec(minutes)
       end
     end

-- 
To stop receiving notification emails like this one, please contact
rubys@apache.org.

[whimsy] 01/02: enable pages with non-word characters in the title to be found

Posted by ru...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

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

commit b5470fb14526dfc03d31040a3cf04d4a86fa1068
Author: Sam Ruby <ru...@intertwingly.net>
AuthorDate: Wed May 16 12:44:50 2018 -0400

    enable pages with non-word characters in the title to be found
---
 www/board/agenda/views/models/agenda.js.rb | 1 +
 1 file changed, 1 insertion(+)

diff --git a/www/board/agenda/views/models/agenda.js.rb b/www/board/agenda/views/models/agenda.js.rb
index 7bcccb5..9b9a1f4 100644
--- a/www/board/agenda/views/models/agenda.js.rb
+++ b/www/board/agenda/views/models/agenda.js.rb
@@ -130,6 +130,7 @@ class Agenda
   # find an agenda item by path name
   def self.find(path)
     result = nil
+    path = path.gsub(/\W+/, '-')
     @@index.each do |item|
       result = item if item.href == path
     end

-- 
To stop receiving notification emails like this one, please contact
rubys@apache.org.