sciolyff 0.3.1 → 0.4.0
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/scores.rb +1 -1
- data/lib/sciolyff/teams.rb +8 -0
- 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: 0e74a3f87dca96e2c00acbccb2f6c324ff669bc348af5e029b0b93a1d2fb50eb
|
4
|
+
data.tar.gz: a871c9a14be7c08449d5a94f71fc8d0d759a89d6b3e85c866dc86bebcf717735
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d45d2a1a73ad360be109d3bb5c6a3b778416de2a7833c54b9c4dc4e1b55ca4a299ed82b3d17817a3f5b906d1d745e574e39feac7ce8901a41558d8098fb3fbae
|
7
|
+
data.tar.gz: 54835c59ff8927dbdd9232edd185fc904563e4e6a4b19b6e2bdae8f0f4cb10845dcc3eb905a5f826113e4b7c2958745f62b276c711d3b138b87c4e3764cbd2a4
|
data/bin/sciolyff
CHANGED
data/lib/sciolyff/scores.rb
CHANGED
data/lib/sciolyff/teams.rb
CHANGED
@@ -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.
|
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-
|
11
|
+
date: 2019-06-11 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: minitest
|