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 ea293d1 Unused
ea293d1 is described below
commit ea293d157912d4e45ddc534eb65eb95a7c1be237
Author: Sebb <[email protected]>
AuthorDate: Tue Sep 22 19:42:43 2020 +0100
Unused
---
lib/whimsy/asf/committee.rb | 6 +++---
www/board/agenda/views/sw.js.rb | 4 ++--
www/members/board-attend.cgi | 10 +++++-----
3 files changed, 10 insertions(+), 10 deletions(-)
diff --git a/lib/whimsy/asf/committee.rb b/lib/whimsy/asf/committee.rb
index 93613ec..b5415cc 100644
--- a/lib/whimsy/asf/committee.rb
+++ b/lib/whimsy/asf/committee.rb
@@ -62,7 +62,7 @@ module ASF
# mapping of committee names to canonical names (generally from ldap)
# See also www/roster/committee.cgi
- @@aliases = Hash.new {|hash, name| name.downcase}
+ @@aliases = Hash.new { |_hash, name| name.downcase}
@@aliases.merge! \
'c++ standard library' => 'stdcxx',
'community development' => 'comdev',
@@ -214,8 +214,8 @@ module ASF
end
# sort and concatenate committees
- committees = committees.sort_by {|name, chair| name.downcase}.
- map {|name, chair| " #{name.ljust(23)} #{chair}"}.
+ committees = committees.sort_by { |name, _chair| name.downcase }.
+ map { |name, chair| " #{name.ljust(23)} #{chair}" }.
join("\n")
# replace committee info in the section, and then replace the
diff --git a/www/board/agenda/views/sw.js.rb b/www/board/agenda/views/sw.js.rb
index 369fb70..415881d 100644
--- a/www/board/agenda/views/sw.js.rb
+++ b/www/board/agenda/views/sw.js.rb
@@ -114,7 +114,7 @@ def latest(event)
end
if match
- match.clone().text().then do |before|
+ match.clone().text().then do
fulfill(match)
request = Request.new(match.url, cache: "no-store")
@@ -185,7 +185,7 @@ def bootstrap(event, request)
# bad response: use cache instead
replyFromCache(true)
end
- }.catch {|failure|
+ }.catch { |_failure|
# no response: use cache instead
replyFromCache(true)
}
diff --git a/www/members/board-attend.cgi b/www/members/board-attend.cgi
index 74ad4e3..92e0cd5 100755
--- a/www/members/board-attend.cgi
+++ b/www/members/board-attend.cgi
@@ -68,7 +68,7 @@ end
# If JSON requested, simply return the data hash
_json do
- summaries, errors = summarize_all
+ summaries, _errors = summarize_all
summaries
end
@@ -87,7 +87,7 @@ _html do
) do
datums = JSON.parse(File.read(File.join(BOARD, 'scripts',
'board-attend.json')))
months = Set.new()
- datums.each do |id, data|
+ datums.each do |_id, data|
data.each_key do |m|
months << m
end
@@ -121,7 +121,7 @@ _html do
datums.each do | id, data |
totp = 0.0
tota = 0.0
- data.each do |k,v|
+ data.each do |_k, v|
totp += v['preapps'] if v.has_key?('preapps')
tota += v['actions'] if v.has_key?('actions')
end
@@ -134,10 +134,10 @@ _html do
end
end
_td do
- _ data.select{|k,v| v['present']}.length
+ _ data.select{ |_k, v| v['present']}.length
end
_td do
- _ data.select{|k,v| !v['present']}.length
+ _ data.reject{ |_k, v| v['present']}.length
end
_td do
_span.text_muted "#{((totp / data.length)*100).round(0)}%"