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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 600b45a5732c982a3dccb0fab84fc1f5bc1e789e
4
- data.tar.gz: f88873c96d276a4be674f1714552bbf2fb994051
3
+ metadata.gz: 3ab6093b565fba4c83b897f7bfd8e3e93092e875
4
+ data.tar.gz: d781031b9a708d9ed34063d5ca0976e98e99693a
5
5
  SHA512:
6
- metadata.gz: 41b288dc80b9074e2dd695813acef36efdff5ebaede86fb74776f8a34a9054b363eaf045bce95ae69194f493f758545cab3e3937d9c4e9b0627fefe1595280c8
7
- data.tar.gz: 0278a082d398a5ab0834ac65a73d7b078a2e7374abf18853a8b87276e3717c14ed795386b152c81261c6f9e772e6cd2da862997537ba58f0f133c45b63c32076
6
+ metadata.gz: e6af2f4fd0a49b13a16a6611c15214834e67ac7525302eb2ee9e32fc3b2f61f199d657af77a7a9ae10b4312479398dd71abb776e995c0337e3770c2115a110f4
7
+ data.tar.gz: 98e388210224c685770f22259677f20b8848f21bf3d948cda749a64b9f251d85ed0a9ba1172d47a6c9a4b8a841af50db142c9d6852db4867d6bf11dadf8892f0
data/asf.version CHANGED
@@ -1 +1 @@
1
- 0.0.40
1
+ 0.0.41
@@ -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 Struct.new(:id, :name, :email).new(id, name, email)
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
- ICLA.new.each do |id, name, email|
19
+ new.each do |id, legal_name, name, email|
19
20
  if email.downcase == value
20
- return Struct.new(:id, :name, :email).new(id, name, email)
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
- ICLA.new.each {|id, name, email| availids << id unless id == 'notinavail'}
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]+):.*?:(.*?):(.*?):/).each(&block)
40
+ iclas.scan(/^([-\w]+):(.*?):(.*?):(.*?):/).each(&block)
38
41
  end
39
42
  end
40
43
  end
@@ -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.40
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-27 00:00:00.000000000 Z
11
+ date: 2015-08-28 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: nokogiri