whimsy-asf 0.0.40 → 0.0.41
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/icla.rb +9 -6
- data/lib/whimsy/asf/mail.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 3ab6093b565fba4c83b897f7bfd8e3e93092e875
|
4
|
+
data.tar.gz: d781031b9a708d9ed34063d5ca0976e98e99693a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e6af2f4fd0a49b13a16a6611c15214834e67ac7525302eb2ee9e32fc3b2f61f199d657af77a7a9ae10b4312479398dd71abb776e995c0337e3770c2115a110f4
|
7
|
+
data.tar.gz: 98e388210224c685770f22259677f20b8848f21bf3d948cda749a64b9f251d85ed0a9ba1172d47a6c9a4b8a841af50db142c9d6852db4867d6bf11dadf8892f0
|
data/asf.version
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.0.
|
1
|
+
0.0.41
|
data/lib/whimsy/asf/icla.rb
CHANGED
@@ -2,12 +2,13 @@ module ASF
|
|
2
2
|
|
3
3
|
class ICLA
|
4
4
|
include Enumerable
|
5
|
+
ICLA_Struct = Struct.new(:id, :legal_name, :name, :email)
|
5
6
|
|
6
7
|
def self.find_by_id(value)
|
7
8
|
return if value == 'notinavail'
|
8
|
-
new.each do |id, name, email|
|
9
|
+
new.each do |id, legal_name, name, email|
|
9
10
|
if id == value
|
10
|
-
return
|
11
|
+
return ICLA_Struct.new(id, legal_name, name, email)
|
11
12
|
end
|
12
13
|
end
|
13
14
|
nil
|
@@ -15,9 +16,9 @@ module ASF
|
|
15
16
|
|
16
17
|
def self.find_by_email(value)
|
17
18
|
value = value.downcase
|
18
|
-
|
19
|
+
new.each do |id, legal_name, name, email|
|
19
20
|
if email.downcase == value
|
20
|
-
return
|
21
|
+
return ICLA_Struct.new(id, legal_name, name, email)
|
21
22
|
end
|
22
23
|
end
|
23
24
|
nil
|
@@ -26,7 +27,9 @@ module ASF
|
|
26
27
|
def self.availids
|
27
28
|
return @availids if @availids
|
28
29
|
availids = []
|
29
|
-
|
30
|
+
new.each do |id, legal_name, name, email|
|
31
|
+
availids << id unless id == 'notinavail'
|
32
|
+
end
|
30
33
|
@availids = availids
|
31
34
|
end
|
32
35
|
|
@@ -34,7 +37,7 @@ module ASF
|
|
34
37
|
officers = ASF::SVN['private/foundation/officers']
|
35
38
|
if officers and File.exist?("#{officers}/iclas.txt")
|
36
39
|
iclas = File.read("#{officers}/iclas.txt")
|
37
|
-
iclas.scan(/^([-\w]+)
|
40
|
+
iclas.scan(/^([-\w]+):(.*?):(.*?):(.*?):/).each(&block)
|
38
41
|
end
|
39
42
|
end
|
40
43
|
end
|
data/lib/whimsy/asf/mail.rb
CHANGED
@@ -21,7 +21,7 @@ module ASF
|
|
21
21
|
end
|
22
22
|
|
23
23
|
# load all ICLA emails in one pass
|
24
|
-
ASF::ICLA.new.each do |id, name, email|
|
24
|
+
ASF::ICLA.new.each do |id, legal_name, name, email|
|
25
25
|
list[email.downcase] ||= Person.find(id)
|
26
26
|
next if id == 'notinavail'
|
27
27
|
list["#{id.downcase}@apache.org"] ||= Person.find(id)
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: whimsy-asf
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.41
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Sam Ruby
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-08-
|
11
|
+
date: 2015-08-28 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: nokogiri
|