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/04/06 19:06:43 UTC

[whimsy] branch master updated (24ee4fb -> 359e201)

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 24ee4fb  split out discussion items into separate items
     new 4b995bd  sort meetings
     new 359e201  sum up split discussion item text lengths

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:
 lib/whimsy/asf/agenda/summary.rb | 4 +++-
 tools/agenda_summary.rb          | 2 +-
 2 files changed, 4 insertions(+), 2 deletions(-)

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

[whimsy] 02/02: sum up split discussion item text lengths

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 359e201bdf5fbf9f00dafd33ef6e297dd8586412
Author: Sam Ruby <ru...@intertwingly.net>
AuthorDate: Fri Apr 6 15:06:21 2018 -0400

    sum up split discussion item text lengths
---
 lib/whimsy/asf/agenda/summary.rb | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/lib/whimsy/asf/agenda/summary.rb b/lib/whimsy/asf/agenda/summary.rb
index 5b1acfd..5429e75 100644
--- a/lib/whimsy/asf/agenda/summary.rb
+++ b/lib/whimsy/asf/agenda/summary.rb
@@ -122,7 +122,9 @@ class ASF::Board::Agenda
       # Summarize across this report
       summary[STATS_KEY] = {}
       summary[STATS_KEY]['specialorders'] = agenda.select{ |v| /\A7/ =~ v[ATTACH_KEY] }.length
-      summary[STATS_KEY]['discusstextlen'] = agenda.select{ |v| v[INDEX_KEY] == "Discussion Items" }[0]['text'].length
+      summary[STATS_KEY]['discusstextlen'] = agenda.select{ |v| 
+        v[INDEX_KEY] == "Discussion Items" || /\A8[A-Z]/ =~ v[ATTACH_KEY]
+      }.map {|v| v['text'].length}.sum
       totapprovals = 0
       totcommentlen = 0
       totreportlen = 0

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

[whimsy] 01/02: sort meetings

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 4b995bd4c79aaee3c27ba85e594d5b4a1e309450
Author: Sam Ruby <ru...@intertwingly.net>
AuthorDate: Fri Apr 6 14:36:01 2018 -0400

    sort meetings
---
 tools/agenda_summary.rb | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/tools/agenda_summary.rb b/tools/agenda_summary.rb
index 147d7c2..79ce240 100644
--- a/tools/agenda_summary.rb
+++ b/tools/agenda_summary.rb
@@ -15,7 +15,7 @@ STATS_ROLLUP = 'stats'
 # @return stats hash of of various statistics from minutes
 def summarize_all(dir = BOARD)
   summaries = Hash.new{|h,k| h[k] = {} }
-  Dir[File.join(dir, 'archived_agendas', "board_agenda_2*.txt")].each do |f|
+  Dir[File.join(dir, 'archived_agendas', "board_agenda_2*.txt")].sort.each do |f|
       summaries[File.basename(f, '.*')] = ASF::Board::Agenda.summarize(f)
   end
   allpmcs = Set.new()

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