Skip to content

Commit

Permalink
Remove unneeded trailing whitespace from Ruby files (#200)
Browse files Browse the repository at this point in the history
  • Loading branch information
jbampton authored Feb 22, 2024
1 parent 5f38b70 commit fcda943
Show file tree
Hide file tree
Showing 11 changed files with 13 additions and 13 deletions.
2 changes: 1 addition & 1 deletion lib/whimsy/asf/board.rb
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
require_relative '../asf'
require 'active_support'
require 'active_support/time'
require 'active_support/time'

module ASF
module Board
Expand Down
2 changes: 1 addition & 1 deletion lib/whimsy/asf/config.rb
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,7 @@ def self.setsvnroot(path)
end

# Get an executable path override
# e.g.
# e.g.
# :exepaths:
# gpg: /usr/local/bin/gpg3
# returns its input if no override is found
Expand Down
2 changes: 1 addition & 1 deletion lib/whimsy/asf/petri.rb
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ def self.list
# @mentors = yaml['mentors']
yaml['cultures'].each do |proj|
prj = new(proj)
if yaml['projects'].include? proj
if yaml['projects'].include? proj
prj.error = 'Listed as a current project' unless prj.status == 'current'
else
prj.error = 'Not listed as a current project' if prj.status == 'current'
Expand Down
4 changes: 2 additions & 2 deletions lib/whimsy/asf/status.rb
Original file line number Diff line number Diff line change
Expand Up @@ -68,11 +68,11 @@ def self.currentIP # intended for CLI testing
end
end
end

def self.activeIP # intended for CLI testing
Resolv::DNS.open.getaddress(ACTIVE_HOSTNAME)
end

end

# for debugging purposes
Expand Down
2 changes: 1 addition & 1 deletion tools/collate_minutes.rb
Original file line number Diff line number Diff line change
Expand Up @@ -740,7 +740,7 @@ def name_changes(title)
puts ''
end
end

# Add to the running tally
pending.each_value do |report|
next if not report.title or report.title.empty?
Expand Down
2 changes: 1 addition & 1 deletion tools/fixroster.rb
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
if __FILE__ == $0
CIN = ARGV.shift || '/srv/svn/board/committee-info.txt'
OUT = ARGV.shift || '/srv/svn/board/committee-info.tmp'

File.open(OUT, 'w') do |out|
File.open(CIN, 'r').slice_before{|l| l.start_with? '* '}.each do |lines|
head = lines.shift
Expand Down
2 changes: 1 addition & 1 deletion tools/site-scan.rb
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ def getText(txt, node, match=/Apache Software Foundation/i)
# TODO should we show them all?
def save_events(data, value)
prev = data[:events]
if prev and prev != value
if prev and prev != value
puts "Events: already have '#{prev}', not storing '#{value}'"
else
data[:events] = value
Expand Down
2 changes: 1 addition & 1 deletion tools/site_member_check.rb
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@
s.scan(/\| (\S+) \|.*?$/)
id = s[1]
unless current.include? id
puts "#{id}: #{status[id] || 'unknown status'}"
puts "#{id}: #{status[id] || 'unknown status'}"
puts "Previous id: #{prev}" unless id
end
prev = id
Expand Down
4 changes: 2 additions & 2 deletions www/board/agenda/routes.rb
Original file line number Diff line number Diff line change
Expand Up @@ -549,7 +549,7 @@ def server
Wunderbar.warn "#{e}, could not access previous actions, continuing"
actions = nil
end

# Get directors, list of pmcs due to report, and shepherds
@directors = ASF::Board.directors
@pmcs = ASF::Board.reporting(@meeting)
Expand Down Expand Up @@ -605,7 +605,7 @@ def server
ASF::SVN.svn!('update', currentpath, {env: env})

if File.symlink? currentpath # Does the symlink exist?
File.unlink currentpath
File.unlink currentpath
File.symlink agenda, currentpath
else
Wunderbar.warn "current.txt link does not exist, creating it"
Expand Down
2 changes: 1 addition & 1 deletion www/roster/models/committee.rb
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ def self.serialize(id, env)
# TODO should it be canonicalised as well above?
roster[key]['notSubbed'] = true if (allMail & pSubs.map{|m| ASF::Mail.to_canonical(m)}).empty?
end
if analysePrivateSubs
if analysePrivateSubs
unMatchedSubs.delete_if {|k| allMail.include? ASF::Mail.to_canonical(k.downcase)}
unMatchedSecSubs.delete_if {|k| allMail.include? ASF::Mail.to_canonical(k.downcase)}
end
Expand Down
2 changes: 1 addition & 1 deletion www/status/monitors/public_json.rb
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ def Monitor.public_json(previous_status)
status = {}

sendMail = Status.active?

Dir[logs].each do |log|
name = File.basename(log).sub('public-', '').to_sym

Expand Down

0 comments on commit fcda943

Please sign in to comment.