sciolyff 0.3.1 → 0.4.0

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: 7a423488f5ba1571fcb37a8a835bb42d66b66b6a5224147621beaefd5f81c840
4
- data.tar.gz: f3b5a65a2feeb605df4ff618b8955c02daccb765df9cf02fd0ef76642c311920
3
+ metadata.gz: 0e74a3f87dca96e2c00acbccb2f6c324ff669bc348af5e029b0b93a1d2fb50eb
4
+ data.tar.gz: a871c9a14be7c08449d5a94f71fc8d0d759a89d6b3e85c866dc86bebcf717735
5
5
  SHA512:
6
- metadata.gz: 0cd67908e1ac66abfdc3dc6e5aaba397e91a3bbc461efb6b9daf931e8af528a4f4e1c47cdb6502db819709f39735d6e8169af28b29a51986d82377e46633d9ed
7
- data.tar.gz: a932bde5d3ff3fa3112023e9293255e41d4a659cb55b7e8e3e49e1335841d1f84a38827ee3c2e7b3e9153af5c4946765db65de2615dcc469f895b10819dde9ed
6
+ metadata.gz: d45d2a1a73ad360be109d3bb5c6a3b778416de2a7833c54b9c4dc4e1b55ca4a299ed82b3d17817a3f5b906d1d745e574e39feac7ce8901a41558d8098fb3fbae
7
+ data.tar.gz: 54835c59ff8927dbdd9232edd185fc904563e4e6a4b19b6e2bdae8f0f4cb10845dcc3eb905a5f826113e4b7c2958745f62b276c711d3b138b87c4e3764cbd2a4
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.1'
9
+ version 'sciolyff 0.4.0'
10
10
  banner <<~STRING
11
11
  Checks if a given file is in the Scioly File Format
12
12
 
@@ -96,7 +96,7 @@ module SciolyFF
96
96
 
97
97
  max_tier = SciolyFF.rep[:Events].find do |event|
98
98
  event[:name] == score[:event]
99
- end[:tiers]
99
+ end&.[](:tiers)
100
100
 
101
101
  refute_nil max_tier, "#{score[:event]} does not have tiers"
102
102
  assert_includes 1..max_tier, score[:tier]
@@ -22,6 +22,7 @@ module SciolyFF
22
22
  def test_each_team_does_not_have_extra_info
23
23
  @teams.select { |t| t.instance_of? Hash }.each do |team|
24
24
  fo = Set.new %i[school suffix subdivision exhibition number city state]
25
+ fo << :'school abbreviation'
25
26
  assert Set.new(team.keys).subset? fo
26
27
  end
27
28
  end
@@ -32,6 +33,13 @@ module SciolyFF
32
33
  end
33
34
  end
34
35
 
36
+ def test_each_team_has_valid_school_abbreviation
37
+ @teams.select { |t| t.instance_of? Hash }.each do |team|
38
+ assert_instance_of String, team[:'school abbreviation'] \
39
+ if team.key? :'school abbreviation'
40
+ end
41
+ end
42
+
35
43
  def test_each_team_has_valid_suffix
36
44
  @teams.select { |t| t.instance_of? Hash }.each do |team|
37
45
  assert_instance_of String, team[:suffix] if team.key? :suffix
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.1
4
+ version: 0.4.0
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-06-05 00:00:00.000000000 Z
11
+ date: 2019-06-11 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: minitest