sportdb-config 1.0.2 → 1.0.3

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 65fb2dad1f7a9da1ca402af272f9ea574219b586
4
- data.tar.gz: 531f43fc38f1347fcb60203be85b7f084d203ae2
3
+ metadata.gz: 10c2cd18b2db897c4e9ada4c8bf5674c62b7367e
4
+ data.tar.gz: a26aec24daeb29af78ea4d14b7ff692ce85a8ddf
5
5
  SHA512:
6
- metadata.gz: 9aadac096effcee44c6a85ac1c47d0f9926872ee076003a6901f13c69995d4c6f61e0db98c2a3141bc1ddbf4e7ff18b26255cd9c12312e9285ffa6a4b3822d10
7
- data.tar.gz: 821e17820804ec765e58bc3c4c061553e0803b1fb1dfb624821c02659cfa49ef95fda03515c85851605048aeb64e960f40eee2474889a5c7f0495483e66b9c92
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.1'],
23
+ ['sportdb-formats', '>= 1.0.5'],
24
24
  ## dataset libs / gems
25
- ['fifa', '>= 2020.5.10'], ## for (builtin/default) countries
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.fifa.downcase, ## note: use fifa code
29
+ team = NationalTeam.new( key: country.code.downcase, ## note: use country code (fifa)
30
30
  name: country.name,
31
- code: country.fifa, ## note: use fifa code
31
+ code: country.code, ## note: use country code (fifa)
32
32
  alt_names: country.alt_names )
33
33
  team.country = country
34
34
 
@@ -8,7 +8,7 @@ module Boot ## note: use a different module than Config to avoid confusion
8
8
 
9
9
  MAJOR = 1 ## todo: namespace inside version or something - why? why not??
10
10
  MINOR = 0
11
- PATCH = 2
11
+ PATCH = 3
12
12
  VERSION = [MAJOR,MINOR,PATCH].join('.')
13
13
 
14
14
  def self.version
@@ -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.fifa
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.fifa
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.2
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 00:00:00.000000000 Z
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.1
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.1
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.10
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.10
40
+ version: 2020.5.18
41
41
  - !ruby/object:Gem::Dependency
42
42
  name: footballdb-clubs
43
43
  requirement: !ruby/object:Gem::Requirement