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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 9a5e08f47d4cdf78faa60fcae69dc4e9fcfa2696
4
- data.tar.gz: a3832a419929b0cb501b4773eb84efe5c968979f
3
+ metadata.gz: 87007616ab9dc536c51a6b80133d606df7f49592
4
+ data.tar.gz: 1438b5ff08f544b7d7f86e9d1e138806228e1b31
5
5
  SHA512:
6
- metadata.gz: a42704ea46a96cfa34722e344438bda15146668c1aa784addcb5dcd6654bd0974a1c66a3f84e654251dee67c9a74e7ba3814fcc72dfe16c462aabfe9a8195c83
7
- data.tar.gz: f07bf20714a425b519ad23f56977da8c865b87368f7a833b85401131668d31fa4f89c324cbf4809155ca2a1536520e0a92d1632f63277444579bd2afa8b29906
6
+ metadata.gz: ece30f2772dbfebe48a2f621048391e85e86280e901ab84830d2c8f153f9c54fdd1ae41ae722d140e391c73e369be3d426e890cf21bb1591c460a70955898cc2
7
+ data.tar.gz: 0cd0ed8d12e8577361f01c30293ed8822730e9bb7e92342c0add047a5354e436ab262d592a9964585a1d970ad00ab3e3b9f38bff26ead0e093ef49c3a1f1b526
data/asf.version CHANGED
@@ -1 +1 @@
1
- 0.0.42
1
+ 0.0.43
@@ -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.report = period
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
@@ -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.42
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-28 00:00:00.000000000 Z
11
+ date: 2015-08-29 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: nokogiri