whimsy-asf 0.0.42 → 0.0.43
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 +7 -2
- data/lib/whimsy/asf/icla.rb +13 -0
- 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: 87007616ab9dc536c51a6b80133d606df7f49592
|
4
|
+
data.tar.gz: 1438b5ff08f544b7d7f86e9d1e138806228e1b31
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ece30f2772dbfebe48a2f621048391e85e86280e901ab84830d2c8f153f9c54fdd1ae41ae722d140e391c73e369be3d426e890cf21bb1591c460a70955898cc2
|
7
|
+
data.tar.gz: 0cd0ed8d12e8577361f01c30293ed8822730e9bb7e92342c0add047a5354e436ab262d592a9964585a1d970ad00ab3e3b9f38bff26ead0e093ef49c3a1f1b526
|
data/asf.version
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.0.
|
1
|
+
0.0.43
|
data/lib/whimsy/asf/committee.rb
CHANGED
@@ -6,7 +6,8 @@ module ASF
|
|
6
6
|
end
|
7
7
|
|
8
8
|
class Committee < Base
|
9
|
-
attr_accessor :info, :emeritus, :report, :roster, :established, :chairs
|
9
|
+
attr_accessor :info, :emeritus, :report, :roster, :established, :chairs,
|
10
|
+
:schedule
|
10
11
|
def initialize(*args)
|
11
12
|
@info = []
|
12
13
|
@emeritus = []
|
@@ -83,7 +84,7 @@ module ASF
|
|
83
84
|
elsif period == 'Next month'
|
84
85
|
committee.report = 'Every month'
|
85
86
|
else
|
86
|
-
committee.
|
87
|
+
committee.schedule = period
|
87
88
|
end
|
88
89
|
end
|
89
90
|
end
|
@@ -123,6 +124,10 @@ module ASF
|
|
123
124
|
@display_name ||= name
|
124
125
|
end
|
125
126
|
|
127
|
+
def report
|
128
|
+
@report || @schedule
|
129
|
+
end
|
130
|
+
|
126
131
|
def info=(list)
|
127
132
|
@info = list
|
128
133
|
end
|
data/lib/whimsy/asf/icla.rb
CHANGED
@@ -4,6 +4,15 @@ module ASF
|
|
4
4
|
include Enumerable
|
5
5
|
ICLA_Struct = Struct.new(:id, :legal_name, :name, :email)
|
6
6
|
|
7
|
+
def self.preload
|
8
|
+
new.each do |id, legal_name, name, email|
|
9
|
+
if id != 'notinaval'
|
10
|
+
ASF::Person.find(id).icla =
|
11
|
+
ICLA_Struct.new(id, legal_name, name, email)
|
12
|
+
end
|
13
|
+
end
|
14
|
+
end
|
15
|
+
|
7
16
|
def self.find_by_id(value)
|
8
17
|
return if value == 'notinavail'
|
9
18
|
new.each do |id, legal_name, name, email|
|
@@ -47,6 +56,10 @@ module ASF
|
|
47
56
|
@icla ||= ASF::ICLA.find_by_id(name)
|
48
57
|
end
|
49
58
|
|
59
|
+
def icla=(icla)
|
60
|
+
@icla = icla
|
61
|
+
end
|
62
|
+
|
50
63
|
def icla?
|
51
64
|
ICLA.availids.include? name
|
52
65
|
end
|
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.43
|
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-29 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: nokogiri
|