lib/whimsy/asf/mail.rb in whimsy-asf-0.0.50 vs lib/whimsy/asf/mail.rb in whimsy-asf-0.0.51

- old
+ new

@@ -19,13 +19,14 @@ ASF::Member.each do |id, text| Member.emails(text).each {|mail| list[mail.downcase] ||= Person[id]} end # load all ICLA emails in one pass - ASF::ICLA.new.each do |id, legal_name, name, email| - list[email.downcase] ||= Person.find(id) - next if id == 'notinavail' - list["#{id.downcase}@apache.org"] ||= Person.find(id) + ASF::ICLA.each do |icla| + person = Person.find(icla.id) + list[icla.email.downcase] ||= person + next if icla.id == 'notinavail' + list["#{icla.id.downcase}@apache.org"] ||= person end @list = list end