Sha256: fbb9d056d9c1909ed6eda874e4955b816c80f90c3677863dfcc8d21564af7770

Contents?: true

Size: 980 Bytes

Versions: 77

Compression:

Stored size: 980 Bytes

Contents

module ASF

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

      foundation = ASF::SVN['private/foundation']
      text = File.read "#{foundation}/potential-member-watch-list.txt"

      nominations = text.scan(/^\s+\*\)\s+\w.*?\n\s*(?:---|\Z)/m)

      i = 0
      member_watch_list = {}
      nominations.each do |nomination|
        id = nil
        name = nomination[/\*\)\s+(.+?)\s+(\(|\<|$)/,1]
        id ||= nomination[/\*\)\s.+?\s\((.*?)\)/,1]
        id ||= nomination[/\*\)\s.+?\s<(.*?)@apache.org>/,1]

        unless id
          id = "notinavail_#{i+=1}"
          find(id).attrs['cn'] = name
        end

        member_watch_list[find(id)] = nomination
      end

      @member_watch_list = member_watch_list
    end

    def member_watch
      text = Person.member_watch_list[self]
      if text
        text.sub!(/\A\s*\n/,'')
        text.sub!(/\n---\Z/,'')
      end
      text
    end
  end
end

Version data entries

77 entries across 77 versions & 1 rubygems

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