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
commit a7833df4e0b40383e6bad5747f658509617d2f46 Author: Sebb <[email protected]> AuthorDate: Fri Sep 10 16:55:35 2021 +0100 Tidy --- www/roster/public_ldap_groups.rb | 29 +++++++++++++++-------------- 1 file changed, 15 insertions(+), 14 deletions(-) diff --git a/www/roster/public_ldap_groups.rb b/www/roster/public_ldap_groups.rb index 041608f..8c77f3e 100644 --- a/www/roster/public_ldap_groups.rb +++ b/www/roster/public_ldap_groups.rb @@ -37,6 +37,7 @@ end class MyPerson attr_accessor :name + def initialize(name) @name=name end @@ -72,20 +73,20 @@ groups.select{|g| EXTRAS.include? g.name}.each do |group,data| projects[project] = [] end -projects.keys.sort_by {|a| a.name}.each do |project| - next unless WANTED.include? project.name - m = [] - createTimestamp = project.createTimestamp - modifyTimestamp = project.modifyTimestamp - project.members.sort_by {|a| a.name}.each do |e| - m << e.name - end - lastStamp = modifyTimestamp if modifyTimestamp > lastStamp - entries[project.name] = { - createTimestamp: createTimestamp, - modifyTimestamp: modifyTimestamp, - roster: m - } +projects.keys.sort_by(&:name).each do |project| + next unless WANTED.include? project.name + m = [] + createTimestamp = project.createTimestamp + modifyTimestamp = project.modifyTimestamp + project.members.sort_by(&:name).each do |e| + m << e.name + end + lastStamp = modifyTimestamp if modifyTimestamp > lastStamp + entries[project.name] = { + createTimestamp: createTimestamp, + modifyTimestamp: modifyTimestamp, + roster: m + } end info = {
