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.37 lib/whimsy/asf/watch.rb
whimsy-asf-0.0.36 lib/whimsy/asf/watch.rb
whimsy-asf-0.0.35 lib/whimsy/asf/watch.rb
whimsy-asf-0.0.34 lib/whimsy/asf/watch.rb
whimsy-asf-0.0.33 lib/whimsy/asf/watch.rb
whimsy-asf-0.0.32 lib/whimsy/asf/watch.rb
whimsy-asf-0.0.31 lib/whimsy/asf/watch.rb
whimsy-asf-0.0.30 lib/whimsy/asf/watch.rb
whimsy-asf-0.0.29 lib/whimsy/asf/watch.rb
whimsy-asf-0.0.28 lib/whimsy/asf/watch.rb
whimsy-asf-0.0.27 lib/whimsy/asf/watch.rb
whimsy-asf-0.0.26 lib/whimsy/asf/watch.rb
whimsy-asf-0.0.25 lib/whimsy/asf/watch.rb
whimsy-asf-0.0.24 lib/whimsy/asf/watch.rb
whimsy-asf-0.0.23 lib/whimsy/asf/watch.rb
whimsy-asf-0.0.22 lib/whimsy/asf/watch.rb
whimsy-asf-0.0.21 lib/whimsy/asf/watch.rb
whimsy-asf-0.0.20 lib/whimsy/asf/watch.rb
whimsy-asf-0.0.19 lib/whimsy/asf/watch.rb
whimsy-asf-0.0.18 lib/whimsy/asf/watch.rb