Sha256: 9dc9e3cb2e25b80ce2fdc818b14e044d293d35d2d0c76a405bfaecdc58043dff

Contents?: true

Size: 776 Bytes

Versions: 75

Compression:

Stored size: 776 Bytes

Contents

module ASF

  class Person < Base
  
    def self.member_nominees
      return @member_nominees if @member_nominees

      meetings = ASF::SVN['private/foundation/Meetings']
      nominations = Dir["#{meetings}/*/nominated-members.txt"].sort.last.untaint

      nominations = File.read(nominations).split(/^\s*---+\s*/)
      nominations.shift(2)

      nominees = {}
      nominations.each do |nomination|
        id = nomination[/^\s?\w+.*<(\S+)@apache.org>/,1]
        id ||= nomination[/^\s?\w+.*\((\S+)@apache.org\)/,1]
        id ||= nomination[/^\s?\w+.*\(([a-z]+)\)/,1]

        next unless id

        nominees[find(id)] = nomination
      end

      @member_nominees = nominees
    end

    def member_nomination
      Person.member_nominees[self]
    end
  end
end

Version data entries

75 entries across 75 versions & 1 rubygems

Version Path
whimsy-asf-0.0.75 lib/whimsy/asf/nominees.rb
whimsy-asf-0.0.74 lib/whimsy/asf/nominees.rb
whimsy-asf-0.0.73 lib/whimsy/asf/nominees.rb
whimsy-asf-0.0.72 lib/whimsy/asf/nominees.rb
whimsy-asf-0.0.71 lib/whimsy/asf/nominees.rb
whimsy-asf-0.0.70 lib/whimsy/asf/nominees.rb
whimsy-asf-0.0.69 lib/whimsy/asf/nominees.rb
whimsy-asf-0.0.68 lib/whimsy/asf/nominees.rb
whimsy-asf-0.0.67 lib/whimsy/asf/nominees.rb
whimsy-asf-0.0.66 lib/whimsy/asf/nominees.rb
whimsy-asf-0.0.65 lib/whimsy/asf/nominees.rb
whimsy-asf-0.0.64 lib/whimsy/asf/nominees.rb
whimsy-asf-0.0.63 lib/whimsy/asf/nominees.rb
whimsy-asf-0.0.62 lib/whimsy/asf/nominees.rb
whimsy-asf-0.0.61 lib/whimsy/asf/nominees.rb
whimsy-asf-0.0.60 lib/whimsy/asf/nominees.rb
whimsy-asf-0.0.59 lib/whimsy/asf/nominees.rb
whimsy-asf-0.0.58 lib/whimsy/asf/nominees.rb
whimsy-asf-0.0.57 lib/whimsy/asf/nominees.rb
whimsy-asf-0.0.56 lib/whimsy/asf/nominees.rb