rrschedule 0.2.3 → 0.2.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/VERSION +1 -1
- data/lib/rrschedule.rb +2 -1
- metadata +4 -4
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.2.
|
1
|
+
0.2.4
|
data/lib/rrschedule.rb
CHANGED
@@ -204,13 +204,14 @@ module RRSchedule
|
|
204
204
|
#PS and GT stack empty... we go to the next rule
|
205
205
|
if @cur_rule_index < @rules.size-1
|
206
206
|
@cur_rule_index += 1
|
207
|
+
@cur_rule = @rules[@cur_rule_index]
|
207
208
|
#Go to the next date (except if the new rule is for the same weekday)
|
208
209
|
@cur_date = next_game_date(@cur_date+=1,@cur_rule.wday) if @cur_rule.wday != @rules[@cur_rule_index].wday
|
209
210
|
else
|
210
211
|
@cur_rule_index = 0
|
212
|
+
@cur_rule = @rules[@cur_rule_index]
|
211
213
|
@cur_date = next_game_date(@cur_date+=1,@cur_rule.wday)
|
212
214
|
end
|
213
|
-
@cur_rule = @rules[@cur_rule_index]
|
214
215
|
@gt_stack = @cur_rule.gt.clone; @cur_gt = @gt_stack.shift
|
215
216
|
@ps_stack = @cur_rule.ps.clone.shuffle; @cur_ps = @ps_stack.shift
|
216
217
|
end
|
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rrschedule
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 31
|
5
5
|
prerelease: false
|
6
6
|
segments:
|
7
7
|
- 0
|
8
8
|
- 2
|
9
|
-
-
|
10
|
-
version: 0.2.
|
9
|
+
- 4
|
10
|
+
version: 0.2.4
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- flamontagne
|
@@ -87,5 +87,5 @@ signing_key:
|
|
87
87
|
specification_version: 3
|
88
88
|
summary: Round-Robin schedule generator
|
89
89
|
test_files:
|
90
|
-
- test/helper.rb
|
91
90
|
- test/test_rrschedule.rb
|
91
|
+
- test/helper.rb
|