sportdb-config 1.0.2 → 1.0.3
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 +4 -4
- data/Rakefile +2 -2
- data/lib/sportdb/config/catalog.rb +2 -2
- data/lib/sportdb/config/version.rb +1 -1
- data/test/test_countries.rb +2 -2
- metadata +6 -6
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 10c2cd18b2db897c4e9ada4c8bf5674c62b7367e
|
4
|
+
data.tar.gz: a26aec24daeb29af78ea4d14b7ff692ce85a8ddf
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: '0604860b9f588f9c69a975a94b93b1abea468ae2df8d1dbab6ac6ac273d4652b2aa4c165b1afe0bc0fce7aebe7cae19546db75e317ea68d7c065b028763d78d1'
|
7
|
+
data.tar.gz: 5a2c634119347103b50edbfd19d761ae711da19a835863f85ad362b99ed2089591d71cd1e7c0cb5a2763d0ef6b2d587d9ef2c4e73f8187ae8882304561739448
|
data/Rakefile
CHANGED
@@ -20,9 +20,9 @@ Hoe.spec 'sportdb-config' do
|
|
20
20
|
self.licenses = ['Public Domain']
|
21
21
|
|
22
22
|
self.extra_deps = [
|
23
|
-
['sportdb-formats', '>= 1.0.
|
23
|
+
['sportdb-formats', '>= 1.0.5'],
|
24
24
|
## dataset libs / gems
|
25
|
-
['fifa', '>= 2020.5.
|
25
|
+
['fifa', '>= 2020.5.18'], ## for (builtin/default) countries
|
26
26
|
['footballdb-clubs', '>= 2020.5.10'], ## for (builtin/default) clubs
|
27
27
|
['footballdb-leagues', '>= 2020.5.10'], ## for (builtin/default) leagues & cups
|
28
28
|
]
|
@@ -26,9 +26,9 @@ class Catalog
|
|
26
26
|
## auto-build national teams from Fifa.countries for now
|
27
27
|
teams = []
|
28
28
|
Fifa.countries.each do |country|
|
29
|
-
team = NationalTeam.new( key: country.
|
29
|
+
team = NationalTeam.new( key: country.code.downcase, ## note: use country code (fifa)
|
30
30
|
name: country.name,
|
31
|
-
code: country.
|
31
|
+
code: country.code, ## note: use country code (fifa)
|
32
32
|
alt_names: country.alt_names )
|
33
33
|
team.country = country
|
34
34
|
|
data/test/test_countries.rb
CHANGED
@@ -18,12 +18,12 @@ class TestCountries < MiniTest::Test
|
|
18
18
|
eng = COUNTRIES[:eng]
|
19
19
|
assert_equal 'eng', eng.key
|
20
20
|
assert_equal 'England', eng.name
|
21
|
-
assert_equal 'ENG', eng.
|
21
|
+
assert_equal 'ENG', eng.code
|
22
22
|
|
23
23
|
at = COUNTRIES[:at]
|
24
24
|
assert_equal 'at', at.key
|
25
25
|
assert_equal 'Austria', at.name
|
26
|
-
assert_equal 'AUT', at.
|
26
|
+
assert_equal 'AUT', at.code
|
27
27
|
|
28
28
|
assert at == COUNTRIES['AT']
|
29
29
|
assert at == COUNTRIES['at']
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: sportdb-config
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Gerald Bauer
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2020-05-
|
11
|
+
date: 2020-05-18 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: sportdb-formats
|
@@ -16,28 +16,28 @@ dependencies:
|
|
16
16
|
requirements:
|
17
17
|
- - ">="
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: 1.0.
|
19
|
+
version: 1.0.5
|
20
20
|
type: :runtime
|
21
21
|
prerelease: false
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
23
23
|
requirements:
|
24
24
|
- - ">="
|
25
25
|
- !ruby/object:Gem::Version
|
26
|
-
version: 1.0.
|
26
|
+
version: 1.0.5
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: fifa
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
30
30
|
requirements:
|
31
31
|
- - ">="
|
32
32
|
- !ruby/object:Gem::Version
|
33
|
-
version: 2020.5.
|
33
|
+
version: 2020.5.18
|
34
34
|
type: :runtime
|
35
35
|
prerelease: false
|
36
36
|
version_requirements: !ruby/object:Gem::Requirement
|
37
37
|
requirements:
|
38
38
|
- - ">="
|
39
39
|
- !ruby/object:Gem::Version
|
40
|
-
version: 2020.5.
|
40
|
+
version: 2020.5.18
|
41
41
|
- !ruby/object:Gem::Dependency
|
42
42
|
name: footballdb-clubs
|
43
43
|
requirement: !ruby/object:Gem::Requirement
|