sciolyff 0.3.0 → 0.3.1

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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 3bc0709e109b89da26d0c66d2f1f0ef69a9b2ca2f4ac729a74ac156d2bf20f5e
4
- data.tar.gz: 1c0cd81c92947527ba549dc4bf53d0c7e6c403b090694976fc601061526c0a66
3
+ metadata.gz: 7a423488f5ba1571fcb37a8a835bb42d66b66b6a5224147621beaefd5f81c840
4
+ data.tar.gz: f3b5a65a2feeb605df4ff618b8955c02daccb765df9cf02fd0ef76642c311920
5
5
  SHA512:
6
- metadata.gz: d6b3e37f27e29b78df485db79c6a0ca756d56fee18f42f135aba843f7284016451d32ae1992d73e5532c4477411d39b74bcfff924013db550616d79d7cb78df7
7
- data.tar.gz: e5ac57ff0cd5d495903ba47c09f81663b5d6c5860d2994767205cae1da2cc85f3f038483d3f378c3bc2393bcb98c2cb36e6cc5942d81582865111321b2ad34a7
6
+ metadata.gz: 0cd67908e1ac66abfdc3dc6e5aaba397e91a3bbc461efb6b9daf931e8af528a4f4e1c47cdb6502db819709f39735d6e8169af28b29a51986d82377e46633d9ed
7
+ data.tar.gz: a932bde5d3ff3fa3112023e9293255e41d4a659cb55b7e8e3e49e1335841d1f84a38827ee3c2e7b3e9153af5c4946765db65de2615dcc469f895b10819dde9ed
data/bin/sciolyff CHANGED
@@ -6,7 +6,7 @@ require 'yaml'
6
6
  require 'sciolyff'
7
7
 
8
8
  opts = Optimist.options do
9
- version 'sciolyff 0.3.0'
9
+ version 'sciolyff 0.3.1'
10
10
  banner <<~STRING
11
11
  Checks if a given file is in the Scioly File Format
12
12
 
@@ -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 { |p| p[:event] == placing[:event] }
72
- assert_includes 1..max_place, placing[:place]
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.0
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-31 00:00:00.000000000 Z
11
+ date: 2019-06-05 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: minitest