whimsy-asf 0.0.56 → 0.0.57
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/asf.version +1 -1
- data/lib/whimsy/asf/committee.rb +3 -2
- data/lib/whimsy/asf/ldap.rb +16 -0
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 69c40670045ca191469f2234fb810b23703e00a9
|
4
|
+
data.tar.gz: a4ec1fe4ead9840992cbec7e9c41e299798851f2
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 0113b9371dd355892ef35835d7edba2c522dd6172ca4eaae40fa6cb07ac8d123aa63b04998cf300ab0b8377ac20e607225d299a1c0ad57320a8ebd48b2c2d676
|
7
|
+
data.tar.gz: 6cd561e8cf71d8f131cf6ca647f821ea9b05141b821e5abca5f1608891ddcff4f4be81bac98457adcb61eeba0170d8812bb3580c886e3304322ade25308dd52a
|
data/asf.version
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.0.
|
1
|
+
0.0.57
|
data/lib/whimsy/asf/committee.rb
CHANGED
@@ -27,6 +27,7 @@ module ASF
|
|
27
27
|
'httpserver' => 'httpd',
|
28
28
|
'java community process' => 'jcp',
|
29
29
|
'lucene.net' => 'lucenenet',
|
30
|
+
'portable runtime' => 'apr',
|
30
31
|
'quetzalcoatl' => 'quetz',
|
31
32
|
'security team' => 'security',
|
32
33
|
'open climate workbench' => 'climate',
|
@@ -37,7 +38,7 @@ module ASF
|
|
37
38
|
'xml graphics' => 'xmlgraphics'
|
38
39
|
|
39
40
|
@@namemap = Proc.new do |name|
|
40
|
-
cname = @@aliases[name.downcase]
|
41
|
+
cname = @@aliases[name.sub(/\s+\(.*?\)/, '').downcase]
|
41
42
|
cname
|
42
43
|
end
|
43
44
|
|
@@ -97,7 +98,7 @@ module ASF
|
|
97
98
|
end
|
98
99
|
|
99
100
|
def self.find(name)
|
100
|
-
result = super(@@
|
101
|
+
result = super(@@namemap.call(name))
|
101
102
|
result.display_name = name if name =~ /[A-Z]/
|
102
103
|
result
|
103
104
|
end
|
data/lib/whimsy/asf/ldap.rb
CHANGED
@@ -12,6 +12,7 @@ module ASF
|
|
12
12
|
# determine whether or not the LDAP API can be used
|
13
13
|
def self.init_ldap
|
14
14
|
@ldap = nil
|
15
|
+
@mtime = Time.now
|
15
16
|
|
16
17
|
host = ASF::LDAP.host
|
17
18
|
|
@@ -52,15 +53,30 @@ module ASF
|
|
52
53
|
result
|
53
54
|
end
|
54
55
|
|
56
|
+
def self.refresh(symbol)
|
57
|
+
p @mtime
|
58
|
+
if Time.now - @mtime > 300.0
|
59
|
+
@mtime = Time.now
|
60
|
+
end
|
61
|
+
|
62
|
+
if instance_variable_get("#{symbol}_mtime") != @mtime
|
63
|
+
instance_variable_set("#{symbol}_mtime", @mtime)
|
64
|
+
instance_variable_set(symbol, nil)
|
65
|
+
end
|
66
|
+
end
|
67
|
+
|
55
68
|
def self.pmc_chairs
|
69
|
+
refresh(:@pmc_chairs)
|
56
70
|
@pmc_chairs ||= Service.find('pmc-chairs').members
|
57
71
|
end
|
58
72
|
|
59
73
|
def self.committers
|
74
|
+
refresh(:@committers)
|
60
75
|
@committers ||= Group.find('committers').members
|
61
76
|
end
|
62
77
|
|
63
78
|
def self.members
|
79
|
+
refresh(:@members)
|
64
80
|
@members ||= Group.find('member').members
|
65
81
|
end
|
66
82
|
|