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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 961e38d7670aa8de1653fc6426211ee309711744
4
- data.tar.gz: a8ee1c7363c5354af325aa2976931479314ac4d3
3
+ metadata.gz: 69c40670045ca191469f2234fb810b23703e00a9
4
+ data.tar.gz: a4ec1fe4ead9840992cbec7e9c41e299798851f2
5
5
  SHA512:
6
- metadata.gz: ab5f7223a0e79078549f894851a21c83b7687bf5d6b008783b87b68ec2e61769284f0949e823bcfafa72b5e5fcf4eb814b9e09159350f6410f6e56ae9845eb7f
7
- data.tar.gz: 541009a8ea27f5f469c900f6d246abdf17eaab3e762714d9dcb9aa330de8d4caff9d96380d2f69a209a3693da18ecb951d5b235e14326383940472b7ea4f144b
6
+ metadata.gz: 0113b9371dd355892ef35835d7edba2c522dd6172ca4eaae40fa6cb07ac8d123aa63b04998cf300ab0b8377ac20e607225d299a1c0ad57320a8ebd48b2c2d676
7
+ data.tar.gz: 6cd561e8cf71d8f131cf6ca647f821ea9b05141b821e5abca5f1608891ddcff4f4be81bac98457adcb61eeba0170d8812bb3580c886e3304322ade25308dd52a
data/asf.version CHANGED
@@ -1 +1 @@
1
- 0.0.56
1
+ 0.0.57
@@ -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(@@aliases[name.downcase])
101
+ result = super(@@namemap.call(name))
101
102
  result.display_name = name if name =~ /[A-Z]/
102
103
  result
103
104
  end
@@ -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
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: whimsy-asf
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.56
4
+ version: 0.0.57
5
5
  platform: ruby
6
6
  authors:
7
7
  - Sam Ruby