fifa 2019.11.27 → 2020.5.10
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +4 -4
- data/Rakefile +2 -2
- data/lib/fifa.rb +1 -1
- data/lib/fifa/version.rb +3 -3
- data/test/test_countries.rb +0 -8
- 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: ecf763580ce7bb75f6633d59d099faf8971493ab
|
4
|
+
data.tar.gz: 04623752107b52153f7417c415bc01b50d83d5a3
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 855d30fc13dac2bf1ce83d071a1c854e4f728cdf1f9384a7a3acedd4548461a2d7bdd2243e8933e69b609baad9230925f50ecbd5e1b3879a9742c349acdf4f80
|
7
|
+
data.tar.gz: b252f4ec65dfd0becb1db9d5596fe39691f3c90d2fa3f30672457f45d72dae02211522d16cd0377058f9b7ffaaeb63171172eec27fd07d01b3d7297ac35bc5f3
|
data/README.md
CHANGED
@@ -1,8 +1,8 @@
|
|
1
1
|
# fifa - the world's football countries and codes (incl. non-member countries and irregular codes)
|
2
2
|
|
3
3
|
|
4
|
-
* home :: [github.com/sportdb/
|
5
|
-
* bugs :: [github.com/sportdb/
|
4
|
+
* home :: [github.com/sportdb/football.db](https://github.com/sportdb/football.db)
|
5
|
+
* bugs :: [github.com/sportdb/football.db/issues](https://github.com/sportdb/football.db/issues)
|
6
6
|
* gem :: [rubygems.org/gems/fifa](https://rubygems.org/gems/fifa)
|
7
7
|
* rdoc :: [rubydoc.info/gems/fifa](http://rubydoc.info/gems/fifa)
|
8
8
|
* forum :: [opensport](http://groups.google.com/group/opensport)
|
@@ -117,7 +117,7 @@ That's it.
|
|
117
117
|
The World's Football Association / Governing Body
|
118
118
|
uses its own country list and (three-letter²) codes - see
|
119
119
|
the [List of FIFA country codes @ Wikipedia](https://en.wikipedia.org/wiki/List_of_FIFA_country_codes)
|
120
|
-
or the [`countries.txt`](https://github.com/sportdb/
|
120
|
+
or the [`countries.txt`](https://github.com/sportdb/football.db/blob/master/fifa/config/countries.txt) list shipping with this library.
|
121
121
|
|
122
122
|
Trivia - The FIFA member list includes 211 countries (in 2019) while the United Nations (UN)
|
123
123
|
member list only includes 193 countries.
|
@@ -156,7 +156,7 @@ from countries in use by regional confederations too, for example:
|
|
156
156
|
|
157
157
|
¹: [Fédération Internationale de Football Association (FIFA) @ Wikipedia](https://en.wikipedia.org/wiki/FIFA)
|
158
158
|
|
159
|
-
²: Northern Cyprus (TRNC) has a four-letter FIFA country code
|
159
|
+
²: Northern Cyprus (TRNC) has a four-letter FIFA country code
|
160
160
|
|
161
161
|
|
162
162
|
## License
|
data/Rakefile
CHANGED
@@ -8,7 +8,7 @@ Hoe.spec 'fifa' do
|
|
8
8
|
self.summary = "fifa - the world's football countries and codes (incl. non-member countries and irregular codes)"
|
9
9
|
self.description = summary
|
10
10
|
|
11
|
-
self.urls = ['https://github.com/sportdb/
|
11
|
+
self.urls = ['https://github.com/sportdb/football.db']
|
12
12
|
|
13
13
|
self.author = 'Gerald Bauer'
|
14
14
|
self.email = 'opensport@googlegroups.com'
|
@@ -20,7 +20,7 @@ Hoe.spec 'fifa' do
|
|
20
20
|
self.licenses = ['Public Domain']
|
21
21
|
|
22
22
|
self.extra_deps = [
|
23
|
-
['sportdb-
|
23
|
+
['sportdb-formats', '>= 1.0.1'],
|
24
24
|
]
|
25
25
|
|
26
26
|
self.spec_extras = {
|
data/lib/fifa.rb
CHANGED
data/lib/fifa/version.rb
CHANGED
@@ -4,9 +4,9 @@
|
|
4
4
|
## note: use class for now - change to module - possible? - why? why not?
|
5
5
|
|
6
6
|
class Fifa
|
7
|
-
MAJOR =
|
8
|
-
MINOR =
|
9
|
-
PATCH =
|
7
|
+
MAJOR = 2020 ## todo: namespace inside version or something - why? why not??
|
8
|
+
MINOR = 5
|
9
|
+
PATCH = 10
|
10
10
|
VERSION = [MAJOR,MINOR,PATCH].join('.')
|
11
11
|
|
12
12
|
def self.version
|
data/test/test_countries.rb
CHANGED
@@ -31,10 +31,6 @@ class TestCountries < MiniTest::Test
|
|
31
31
|
assert_equal 'ENG', eng.fifa
|
32
32
|
assert_equal ['fifa','uefa'], eng.tags
|
33
33
|
|
34
|
-
assert_equal 'eng', eng[:key]
|
35
|
-
assert_equal 'England', eng[:name]
|
36
|
-
assert_equal 'ENG', eng[:fifa]
|
37
|
-
|
38
34
|
|
39
35
|
aut = Fifa['AUT']
|
40
36
|
assert_equal aut, Fifa['aut']
|
@@ -44,10 +40,6 @@ class TestCountries < MiniTest::Test
|
|
44
40
|
assert_equal 'Austria', aut.name
|
45
41
|
assert_equal 'AUT', aut.fifa
|
46
42
|
assert_equal ['fifa','uefa'], aut.tags
|
47
|
-
|
48
|
-
assert_equal 'at', aut[:key]
|
49
|
-
assert_equal 'Austria', aut[:name]
|
50
|
-
assert_equal 'AUT', aut[:fifa]
|
51
43
|
end
|
52
44
|
|
53
45
|
end # class TestCountries
|
metadata
CHANGED
@@ -1,29 +1,29 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: fifa
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version:
|
4
|
+
version: 2020.5.10
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Gerald Bauer
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2020-05-10 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
|
-
name: sportdb-
|
14
|
+
name: sportdb-formats
|
15
15
|
requirement: !ruby/object:Gem::Requirement
|
16
16
|
requirements:
|
17
17
|
- - ">="
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: 0.
|
19
|
+
version: 1.0.1
|
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: 0.
|
26
|
+
version: 1.0.1
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: rdoc
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
@@ -76,7 +76,7 @@ files:
|
|
76
76
|
- test/helper.rb
|
77
77
|
- test/test_countries.rb
|
78
78
|
- test/test_orgs.rb
|
79
|
-
homepage: https://github.com/sportdb/
|
79
|
+
homepage: https://github.com/sportdb/football.db
|
80
80
|
licenses:
|
81
81
|
- Public Domain
|
82
82
|
metadata: {}
|