whimsy-asf 0.0.68 → 0.0.69

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: 68d7c933c137c13c4587266b429d5e54cf4f3286
4
- data.tar.gz: 8c731b26ea7c9af07cbc034877b4235073efd668
3
+ metadata.gz: dea5c1fb8825e5340b11582a9110eb38acdc7316
4
+ data.tar.gz: 23d3377769b45de7816b75152c2d0415e85b731d
5
5
  SHA512:
6
- metadata.gz: f36ac41bbc033b4ea71a2211bb99a155d87b306b7072556b49146e744b39480b212475303cd5ef3c784a85de1c32c7cf33260b4400851ba1a0e504a2bc62b810
7
- data.tar.gz: dbb31aa413b81582d3e800e305b5e58ae0ffe84ea78cbb39fd67bf9efafb76d18b3bef92f2076f42b6747554aa12450d5bfe7a3982f66a2aeea761cc327b6854
6
+ metadata.gz: 5d9375e4feb2de2e5d5bbf3b63951a79cd2a71d3ea5785e665961753f6844bb750b01abc63f046d147cbef21dc31aa3498106abf1fd351edf4d76e20664530f9
7
+ data.tar.gz: 3170dd19c89690236bed42915a7c17cbc8d34685c50f173bc47b8ae904897565bc5a3ca42a3f184323da98e82ba30c651b2e3eab569ec771208d2a1de549b808
@@ -1 +1 @@
1
- 0.0.68
1
+ 0.0.69
@@ -0,0 +1,32 @@
1
+ require 'bundler'
2
+ require 'whimsy/asf/config'
3
+
4
+ #
5
+ # modify bundler to be aware of whimsy library overrides
6
+ #
7
+ module Bundler
8
+ class Dsl
9
+ bundler_gem = instance_method(:gem)
10
+ libs = ASF::Config.get(:lib)
11
+
12
+ define_method :gem do |name, *args|
13
+ pname = name.gsub('-', '/')
14
+
15
+ path = nil
16
+ libs.each do |lib|
17
+ if File.exist?("#{lib}/#{pname}")
18
+ path = lib
19
+ end
20
+ end
21
+
22
+ if path
23
+ args.push({}) unless args.last.is_a?(Hash)
24
+ args.last[:path] = File.dirname(path)
25
+ end
26
+
27
+ bundler_gem.bind(self).(name, *args)
28
+ end
29
+ end
30
+ end
31
+
32
+ require 'bundler/setup'
@@ -5,13 +5,38 @@ module ASF
5
5
  class Podlings
6
6
  include Enumerable
7
7
 
8
+ def quarter
9
+ [
10
+ Date.today.strftime('%B'),
11
+ Date.today.next_month.strftime('%B'),
12
+ Date.today.next_month.next_month.strftime('%B')
13
+ ]
14
+ end
15
+
8
16
  def each
9
17
  incubator_content = ASF::SVN['asf/incubator/public/trunk/content']
10
18
  podlings = Nokogiri::XML(File.read("#{incubator_content}/podlings.xml"))
11
19
  podlings.search('podling').map do |node|
20
+
21
+ reporting = node.at('reporting')
22
+ if reporting
23
+ group = reporting['group']
24
+ monthly = reporting.text.split(/,\s*/) if reporting['monthly']
25
+ reporting = %w(January April July October) if group == '1'
26
+ reporting = %w(February May August November) if group == '2'
27
+ reporting = %w(March June September December) if group == '3'
28
+ reporting.rotate! until quarter.include? reporting.first
29
+
30
+ if monthly
31
+ monthly.shift until monthly.empty? or quarter.include? monthly.first
32
+ reporting = (monthly + reporting).uniq
33
+ end
34
+ end
35
+
12
36
  data = {
13
37
  name: node['name'],
14
38
  status: node['status'],
39
+ reporting: reporting,
15
40
  description: node.at('description').text,
16
41
  mentors: node.search('mentor').map {|mentor| mentor['username']}
17
42
  }
metadata CHANGED
@@ -1,97 +1,97 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: whimsy-asf
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.68
4
+ version: 0.0.69
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-11-14 00:00:00.000000000 Z
11
+ date: 2015-12-08 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: nokogiri
15
15
  requirement: !ruby/object:Gem::Requirement
16
16
  requirements:
17
- - - ">="
17
+ - - '>='
18
18
  - !ruby/object:Gem::Version
19
19
  version: '0'
20
20
  type: :runtime
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
- - - ">="
24
+ - - '>='
25
25
  - !ruby/object:Gem::Version
26
26
  version: '0'
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: rack
29
29
  requirement: !ruby/object:Gem::Requirement
30
30
  requirements:
31
- - - ">="
31
+ - - '>='
32
32
  - !ruby/object:Gem::Version
33
33
  version: '0'
34
34
  type: :runtime
35
35
  prerelease: false
36
36
  version_requirements: !ruby/object:Gem::Requirement
37
37
  requirements:
38
- - - ">="
38
+ - - '>='
39
39
  - !ruby/object:Gem::Version
40
40
  version: '0'
41
41
  - !ruby/object:Gem::Dependency
42
42
  name: ruby-ldap
43
43
  requirement: !ruby/object:Gem::Requirement
44
44
  requirements:
45
- - - ">="
45
+ - - '>='
46
46
  - !ruby/object:Gem::Version
47
47
  version: '0'
48
48
  type: :runtime
49
49
  prerelease: false
50
50
  version_requirements: !ruby/object:Gem::Requirement
51
51
  requirements:
52
- - - ">="
52
+ - - '>='
53
53
  - !ruby/object:Gem::Version
54
54
  version: '0'
55
55
  - !ruby/object:Gem::Dependency
56
56
  name: tzinfo
57
57
  requirement: !ruby/object:Gem::Requirement
58
58
  requirements:
59
- - - ">="
59
+ - - '>='
60
60
  - !ruby/object:Gem::Version
61
61
  version: '0'
62
62
  type: :runtime
63
63
  prerelease: false
64
64
  version_requirements: !ruby/object:Gem::Requirement
65
65
  requirements:
66
- - - ">="
66
+ - - '>='
67
67
  - !ruby/object:Gem::Version
68
68
  version: '0'
69
69
  - !ruby/object:Gem::Dependency
70
70
  name: tzinfo-data
71
71
  requirement: !ruby/object:Gem::Requirement
72
72
  requirements:
73
- - - ">="
73
+ - - '>='
74
74
  - !ruby/object:Gem::Version
75
75
  version: '0'
76
76
  type: :runtime
77
77
  prerelease: false
78
78
  version_requirements: !ruby/object:Gem::Requirement
79
79
  requirements:
80
- - - ">="
80
+ - - '>='
81
81
  - !ruby/object:Gem::Version
82
82
  version: '0'
83
83
  - !ruby/object:Gem::Dependency
84
84
  name: wunderbar
85
85
  requirement: !ruby/object:Gem::Requirement
86
86
  requirements:
87
- - - ">="
87
+ - - '>='
88
88
  - !ruby/object:Gem::Version
89
89
  version: '0'
90
90
  type: :runtime
91
91
  prerelease: false
92
92
  version_requirements: !ruby/object:Gem::Requirement
93
93
  requirements:
94
- - - ">="
94
+ - - '>='
95
95
  - !ruby/object:Gem::Version
96
96
  version: '0'
97
97
  description: |2
@@ -104,8 +104,6 @@ extra_rdoc_files: []
104
104
  files:
105
105
  - asf.gemspec
106
106
  - asf.version
107
- - lib/whimsy/asf.rb
108
- - lib/whimsy/asf/agenda.rb
109
107
  - lib/whimsy/asf/agenda/attachments.rb
110
108
  - lib/whimsy/asf/agenda/back.rb
111
109
  - lib/whimsy/asf/agenda/committee.rb
@@ -113,7 +111,9 @@ files:
113
111
  - lib/whimsy/asf/agenda/front.rb
114
112
  - lib/whimsy/asf/agenda/minutes.rb
115
113
  - lib/whimsy/asf/agenda/special.rb
114
+ - lib/whimsy/asf/agenda.rb
116
115
  - lib/whimsy/asf/auth.rb
116
+ - lib/whimsy/asf/bundler.rb
117
117
  - lib/whimsy/asf/committee.rb
118
118
  - lib/whimsy/asf/config.rb
119
119
  - lib/whimsy/asf/icla.rb
@@ -126,6 +126,7 @@ files:
126
126
  - lib/whimsy/asf/site.rb
127
127
  - lib/whimsy/asf/svn.rb
128
128
  - lib/whimsy/asf/watch.rb
129
+ - lib/whimsy/asf.rb
129
130
  homepage: https://whimsy.apache.org/
130
131
  licenses:
131
132
  - Apache License, Version 2.0
@@ -136,17 +137,17 @@ require_paths:
136
137
  - lib
137
138
  required_ruby_version: !ruby/object:Gem::Requirement
138
139
  requirements:
139
- - - ">="
140
+ - - '>='
140
141
  - !ruby/object:Gem::Version
141
142
  version: '0'
142
143
  required_rubygems_version: !ruby/object:Gem::Requirement
143
144
  requirements:
144
- - - ">="
145
+ - - '>='
145
146
  - !ruby/object:Gem::Version
146
147
  version: '0'
147
148
  requirements: []
148
149
  rubyforge_project:
149
- rubygems_version: 2.4.5.1
150
+ rubygems_version: 2.0.14
150
151
  signing_key:
151
152
  specification_version: 4
152
153
  summary: Whimsy 'model' of the ASF