sciolyff 0.3.0 → 0.3.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/bin/sciolyff +1 -1
- data/lib/sciolyff/placings.rb +7 -2
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 7a423488f5ba1571fcb37a8a835bb42d66b66b6a5224147621beaefd5f81c840
|
4
|
+
data.tar.gz: f3b5a65a2feeb605df4ff618b8955c02daccb765df9cf02fd0ef76642c311920
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 0cd67908e1ac66abfdc3dc6e5aaba397e91a3bbc461efb6b9daf931e8af528a4f4e1c47cdb6502db819709f39735d6e8169af28b29a51986d82377e46633d9ed
|
7
|
+
data.tar.gz: a932bde5d3ff3fa3112023e9293255e41d4a659cb55b7e8e3e49e1335841d1f84a38827ee3c2e7b3e9153af5c4946765db65de2615dcc469f895b10819dde9ed
|
data/bin/sciolyff
CHANGED
data/lib/sciolyff/placings.rb
CHANGED
@@ -68,8 +68,13 @@ module SciolyFF
|
|
68
68
|
placing.key?(:participated)
|
69
69
|
|
70
70
|
assert_instance_of Integer, placing[:place]
|
71
|
-
max_place = @placings.count
|
72
|
-
|
71
|
+
max_place = @placings.count do |p|
|
72
|
+
p[:event] == placing[:event] &&
|
73
|
+
!p[:disqualified] &&
|
74
|
+
p[:participated] != false
|
75
|
+
end
|
76
|
+
assert_includes 1..max_place, placing[:place],
|
77
|
+
"The event #{placing[:event]} has an out-of-range placing"
|
73
78
|
end
|
74
79
|
end
|
75
80
|
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: sciolyff
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.3.
|
4
|
+
version: 0.3.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Em Zhan
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2019-05
|
11
|
+
date: 2019-06-05 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: minitest
|