whimsy-asf 0.0.61 → 0.0.62

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA1:
3
+ metadata.gz: 6c7eefea0940f990467cbf94ea9f0deaec611969
4
+ data.tar.gz: 7dafa1d49ee55d3e14b164262692089493f04925
5
+ SHA512:
6
+ metadata.gz: 50a9b817b053e113c538145552c94b0cb2d39df29030a010cdd0afb52d6aac811e1f84e9865880bb743452e99f0a2677af6ee76f24006365db45b1baf183180b
7
+ data.tar.gz: da7a82e6d466ce0e616deebf5e0f492a7d41a465a444d87a821e94e5a523442b7a21c25227cd6e0cbb5119d4cf3cb4797a6cda6637ffdb148bb7e99c0b651cf5
data/asf.version CHANGED
@@ -1 +1 @@
1
- 0.0.61
1
+ 0.0.62
@@ -1,4 +1,5 @@
1
1
  require_relative '../asf'
2
+ require 'nokogiri'
2
3
 
3
4
  module ASF
4
5
 
@@ -6,19 +7,40 @@ module ASF
6
7
  @@list = {}
7
8
 
8
9
  def self.list
9
- Committee.load_committee_info
10
10
  templates = ASF::SVN['asf/infrastructure/site/trunk/templates']
11
- file = "#{templates}/blocks/projects.mdtext"
11
+ file = "#{templates}/index.html"
12
12
  return @@list if not @@list.empty? and File.mtime(file) == @@mtime
13
13
  @@mtime = File.mtime(file)
14
14
 
15
- projects = File.read(file)
16
- projects.scan(/\[(.*?)\]\((http.*?) "(.*)"\)/).each do |name, link, text|
17
- @@list[Committee.find(name).name] = {link: link, text: text}
15
+ Committee.load_committee_info
16
+ doc = Nokogiri::HTML.parse(File.read(file))
17
+ list = doc.at("#projects-list .row .row")
18
+ if list
19
+ list.search('a').each do |a|
20
+ @@list[Committee.find(a.text).name] =
21
+ {link: a['href'], text: a['title']}
22
+ end
18
23
  end
19
24
 
20
25
  @@list
21
26
  end
27
+
28
+ def self.find(committee)
29
+ committee = committee.name if ASF::Committee == committee
30
+ list[committee]
31
+ end
22
32
  end
23
33
 
34
+
35
+ class Committee
36
+ def site
37
+ site = ASF::Site.find(name)
38
+ site[:link] if site
39
+ end
40
+
41
+ def description
42
+ site = ASF::Site.find(name)
43
+ site[:text] if site
44
+ end
45
+ end
24
46
  end
data/lib/whimsy/asf.rb CHANGED
@@ -8,3 +8,4 @@ require File.expand_path('../asf/nominees', __FILE__)
8
8
  require File.expand_path('../asf/icla', __FILE__)
9
9
  require File.expand_path('../asf/auth', __FILE__)
10
10
  require File.expand_path('../asf/member', __FILE__)
11
+ require File.expand_path('../asf/site', __FILE__)
metadata CHANGED
@@ -1,166 +1,153 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: whimsy-asf
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.61
5
- prerelease:
4
+ version: 0.0.62
6
5
  platform: ruby
7
6
  authors:
8
7
  - Sam Ruby
9
8
  autorequire:
10
9
  bindir: bin
11
10
  cert_chain: []
12
- date: 2015-09-20 00:00:00.000000000 Z
11
+ date: 2015-09-22 00:00:00.000000000 Z
13
12
  dependencies:
14
13
  - !ruby/object:Gem::Dependency
15
14
  name: nokogiri
16
15
  requirement: !ruby/object:Gem::Requirement
17
- none: false
18
16
  requirements:
19
- - - ! '>='
17
+ - - ">="
20
18
  - !ruby/object:Gem::Version
21
19
  version: '0'
22
20
  type: :runtime
23
21
  prerelease: false
24
22
  version_requirements: !ruby/object:Gem::Requirement
25
- none: false
26
23
  requirements:
27
- - - ! '>='
24
+ - - ">="
28
25
  - !ruby/object:Gem::Version
29
26
  version: '0'
30
27
  - !ruby/object:Gem::Dependency
31
28
  name: rack
32
29
  requirement: !ruby/object:Gem::Requirement
33
- none: false
34
30
  requirements:
35
- - - ! '>='
31
+ - - ">="
36
32
  - !ruby/object:Gem::Version
37
33
  version: '0'
38
34
  type: :runtime
39
35
  prerelease: false
40
36
  version_requirements: !ruby/object:Gem::Requirement
41
- none: false
42
37
  requirements:
43
- - - ! '>='
38
+ - - ">="
44
39
  - !ruby/object:Gem::Version
45
40
  version: '0'
46
41
  - !ruby/object:Gem::Dependency
47
42
  name: ruby-ldap
48
43
  requirement: !ruby/object:Gem::Requirement
49
- none: false
50
44
  requirements:
51
- - - ! '>='
45
+ - - ">="
52
46
  - !ruby/object:Gem::Version
53
47
  version: '0'
54
48
  type: :runtime
55
49
  prerelease: false
56
50
  version_requirements: !ruby/object:Gem::Requirement
57
- none: false
58
51
  requirements:
59
- - - ! '>='
52
+ - - ">="
60
53
  - !ruby/object:Gem::Version
61
54
  version: '0'
62
55
  - !ruby/object:Gem::Dependency
63
56
  name: tzinfo
64
57
  requirement: !ruby/object:Gem::Requirement
65
- none: false
66
58
  requirements:
67
- - - ! '>='
59
+ - - ">="
68
60
  - !ruby/object:Gem::Version
69
61
  version: '0'
70
62
  type: :runtime
71
63
  prerelease: false
72
64
  version_requirements: !ruby/object:Gem::Requirement
73
- none: false
74
65
  requirements:
75
- - - ! '>='
66
+ - - ">="
76
67
  - !ruby/object:Gem::Version
77
68
  version: '0'
78
69
  - !ruby/object:Gem::Dependency
79
70
  name: tzinfo-data
80
71
  requirement: !ruby/object:Gem::Requirement
81
- none: false
82
72
  requirements:
83
- - - ! '>='
73
+ - - ">="
84
74
  - !ruby/object:Gem::Version
85
75
  version: '0'
86
76
  type: :runtime
87
77
  prerelease: false
88
78
  version_requirements: !ruby/object:Gem::Requirement
89
- none: false
90
79
  requirements:
91
- - - ! '>='
80
+ - - ">="
92
81
  - !ruby/object:Gem::Version
93
82
  version: '0'
94
83
  - !ruby/object:Gem::Dependency
95
84
  name: wunderbar
96
85
  requirement: !ruby/object:Gem::Requirement
97
- none: false
98
86
  requirements:
99
- - - ! '>='
87
+ - - ">="
100
88
  - !ruby/object:Gem::Version
101
89
  version: '0'
102
90
  type: :runtime
103
91
  prerelease: false
104
92
  version_requirements: !ruby/object:Gem::Requirement
105
- none: false
106
93
  requirements:
107
- - - ! '>='
94
+ - - ">="
108
95
  - !ruby/object:Gem::Version
109
96
  version: '0'
110
- description: ! " This package contains a set of classes which encapsulate access\n
111
- \ to a number of data sources such as LDAP, ICLAs, auth lists, etc.\n"
97
+ description: |2
98
+ This package contains a set of classes which encapsulate access
99
+ to a number of data sources such as LDAP, ICLAs, auth lists, etc.
112
100
  email: rubys@intertwingly.net
113
101
  executables: []
114
102
  extensions: []
115
103
  extra_rdoc_files: []
116
104
  files:
117
- - asf.version
118
105
  - asf.gemspec
106
+ - asf.version
119
107
  - lib/whimsy/asf.rb
120
- - lib/whimsy/asf/rack.rb
121
108
  - lib/whimsy/asf/agenda.rb
122
- - lib/whimsy/asf/svn.rb
123
- - lib/whimsy/asf/watch.rb
124
- - lib/whimsy/asf/config.rb
125
- - lib/whimsy/asf/podlings.rb
126
- - lib/whimsy/asf/nominees.rb
127
- - lib/whimsy/asf/auth.rb
128
- - lib/whimsy/asf/member.rb
129
- - lib/whimsy/asf/mail.rb
130
- - lib/whimsy/asf/agenda/special.rb
131
- - lib/whimsy/asf/agenda/committee.rb
132
- - lib/whimsy/asf/agenda/minutes.rb
133
109
  - lib/whimsy/asf/agenda/attachments.rb
110
+ - lib/whimsy/asf/agenda/back.rb
111
+ - lib/whimsy/asf/agenda/committee.rb
134
112
  - lib/whimsy/asf/agenda/exec-officer.rb
135
113
  - lib/whimsy/asf/agenda/front.rb
136
- - lib/whimsy/asf/agenda/back.rb
114
+ - lib/whimsy/asf/agenda/minutes.rb
115
+ - lib/whimsy/asf/agenda/special.rb
116
+ - lib/whimsy/asf/auth.rb
137
117
  - lib/whimsy/asf/committee.rb
118
+ - lib/whimsy/asf/config.rb
119
+ - lib/whimsy/asf/icla.rb
138
120
  - lib/whimsy/asf/ldap.rb
121
+ - lib/whimsy/asf/mail.rb
122
+ - lib/whimsy/asf/member.rb
123
+ - lib/whimsy/asf/nominees.rb
124
+ - lib/whimsy/asf/podlings.rb
125
+ - lib/whimsy/asf/rack.rb
139
126
  - lib/whimsy/asf/site.rb
140
- - lib/whimsy/asf/icla.rb
127
+ - lib/whimsy/asf/svn.rb
128
+ - lib/whimsy/asf/watch.rb
141
129
  homepage: https://whimsy.apache.org/
142
130
  licenses:
143
131
  - Apache License, Version 2.0
132
+ metadata: {}
144
133
  post_install_message:
145
134
  rdoc_options: []
146
135
  require_paths:
147
136
  - lib
148
137
  required_ruby_version: !ruby/object:Gem::Requirement
149
- none: false
150
138
  requirements:
151
- - - ! '>='
139
+ - - ">="
152
140
  - !ruby/object:Gem::Version
153
141
  version: '0'
154
142
  required_rubygems_version: !ruby/object:Gem::Requirement
155
- none: false
156
143
  requirements:
157
- - - ! '>='
144
+ - - ">="
158
145
  - !ruby/object:Gem::Version
159
146
  version: '0'
160
147
  requirements: []
161
148
  rubyforge_project:
162
- rubygems_version: 1.8.23
149
+ rubygems_version: 2.4.5.1
163
150
  signing_key:
164
- specification_version: 3
151
+ specification_version: 4
165
152
  summary: Whimsy 'model' of the ASF
166
153
  test_files: []