sportdb-config 0.4.1 → 0.5.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 +4 -4
- data/config/leagues/fr.txt +9 -9
- data/config/leagues/gr.txt +7 -7
- data/config/leagues/sco.txt +19 -19
- data/config/world/eng.txt +162 -162
- data/lib/sportdb/config/club_reader.rb +278 -278
- data/lib/sportdb/config/clubs.rb +54 -27
- data/lib/sportdb/config/config.rb +123 -123
- data/lib/sportdb/config/league.rb +118 -118
- data/lib/sportdb/config/league_reader.rb +65 -65
- data/lib/sportdb/config/league_utils.rb +24 -24
- data/lib/sportdb/config/variants.rb +106 -91
- data/lib/sportdb/config/version.rb +2 -2
- data/test/test_club_index.rb +6 -0
- data/test/test_club_reader.rb +150 -150
- data/test/test_clubs.rb +14 -1
- data/test/test_league_reader.rb +54 -54
- data/test/test_league_utils.rb +46 -46
- data/test/test_season_utils.rb +29 -29
- metadata +6 -12
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 6d4d8ba997551f61ef2478395cecccfea68b0eb3
|
4
|
+
data.tar.gz: 0b64403cb2fb9cfce02685cafc647f23394e027d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 43ceffe6cf4a3aa3b344d2ae0d3f5dfd38a9441cc8f5ef60d6ad3b3938f84ea5aba1b9e968a7c5b5781ecb5508973ba30f83561bc79ca60549f624ac49e4c301
|
7
|
+
data.tar.gz: 2ed8fd531e7ed50e968eba07f445a489b4b5551edce07fa3692e9340ff4529bad5b6794eb937a87c0783512eab708661120d47d07c7e9caf87de1f286c2528fe
|
data/config/leagues/fr.txt
CHANGED
@@ -1,9 +1,9 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
1 => ligue1, French Ligue 1
|
4
|
-
2 => ligue2, French Ligue 2
|
5
|
-
|
6
|
-
|
7
|
-
[2001-02] ## until (including) 2001-02 season
|
8
|
-
1 => division1, ? ## use championat or something? check official name
|
9
|
-
2 => division2, ?
|
1
|
+
|
2
|
+
|
3
|
+
1 => ligue1, French Ligue 1
|
4
|
+
2 => ligue2, French Ligue 2
|
5
|
+
|
6
|
+
|
7
|
+
[2001-02] ## until (including) 2001-02 season
|
8
|
+
1 => division1, ? ## use championat or something? check official name
|
9
|
+
2 => division2, ?
|
data/config/leagues/gr.txt
CHANGED
@@ -1,7 +1,7 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
1 => superleague, Greek Superleague
|
4
|
-
|
5
|
-
|
6
|
-
[2005-06] ## until (including) 2005-06 season
|
7
|
-
1 => alphaethniki, Greek Alpha Ethniki
|
1
|
+
|
2
|
+
|
3
|
+
1 => superleague, Greek Superleague
|
4
|
+
|
5
|
+
|
6
|
+
[2005-06] ## until (including) 2005-06 season
|
7
|
+
1 => alphaethniki, Greek Alpha Ethniki
|
data/config/leagues/sco.txt
CHANGED
@@ -1,19 +1,19 @@
|
|
1
|
-
|
2
|
-
1 => premiership, Scotish Premiership # starting w/ 2013-14 season
|
3
|
-
2 => championship, Scotish Championship
|
4
|
-
3 => league1, Scotish League One
|
5
|
-
4 => league2, Scotish League Two
|
6
|
-
|
7
|
-
|
8
|
-
[2012-13] ## until (including) 2012-13 season
|
9
|
-
1 => premierleague, Scotish Premiership
|
10
|
-
2 => division1, Scotish 1st Division
|
11
|
-
3 => division2, Scotish League One
|
12
|
-
4 => division3, Scotish League Two
|
13
|
-
|
14
|
-
|
15
|
-
[1997-98] ## until (including) season
|
16
|
-
1 => premierdivision, Scotish Premier Division
|
17
|
-
2 => division1, Scotish 1st Division
|
18
|
-
3 => division2, Scotish 2nd Division
|
19
|
-
4 => division3, Scotish 3rd Division
|
1
|
+
|
2
|
+
1 => premiership, Scotish Premiership # starting w/ 2013-14 season
|
3
|
+
2 => championship, Scotish Championship
|
4
|
+
3 => league1, Scotish League One
|
5
|
+
4 => league2, Scotish League Two
|
6
|
+
|
7
|
+
|
8
|
+
[2012-13] ## until (including) 2012-13 season
|
9
|
+
1 => premierleague, Scotish Premiership
|
10
|
+
2 => division1, Scotish 1st Division
|
11
|
+
3 => division2, Scotish League One
|
12
|
+
4 => division3, Scotish League Two
|
13
|
+
|
14
|
+
|
15
|
+
[1997-98] ## until (including) season
|
16
|
+
1 => premierdivision, Scotish Premier Division
|
17
|
+
2 => division1, Scotish 1st Division
|
18
|
+
3 => division2, Scotish 2nd Division
|
19
|
+
4 => division3, Scotish 3rd Division
|
data/config/world/eng.txt
CHANGED
@@ -1,162 +1,162 @@
|
|
1
|
-
##
|
2
|
-
# what name? use regions or maps or geos or zones or __?
|
3
|
-
|
4
|
-
#
|
5
|
-
# england
|
6
|
-
# see https://en.wikipedia.org/wiki/Subdivisions_of_England
|
7
|
-
# see https://www.bbc.co.uk/news/england/regions
|
8
|
-
|
9
|
-
##
|
10
|
-
# todo: for sort order - allow different sort name
|
11
|
-
# e.g. East Sussex => Sussex (East) or Sussex, East or something
|
12
|
-
# use <> for marking what counts for sorting
|
13
|
-
# e.g East <Sussex> => get auto-converted to Sussex, East - why? why not?
|
14
|
-
#
|
15
|
-
# more examples:
|
16
|
-
# North ‹Yorkshire› => Yorkshire (North) or Yorkshire, North
|
17
|
-
# Greater ‹London› => London, Greater
|
18
|
-
# Greater ‹Manchaster› => Manchaster, Greater
|
19
|
-
|
20
|
-
|
21
|
-
##
|
22
|
-
# note: uses all regions following the camra good beer guide (book)
|
23
|
-
#
|
24
|
-
|
25
|
-
======================================
|
26
|
-
== North West England ==
|
27
|
-
|
28
|
-
# Cumbria
|
29
|
-
# Lancashire
|
30
|
-
# Liverpool
|
31
|
-
# Manchester
|
32
|
-
|
33
|
-
Cheshire
|
34
|
-
Cumbria
|
35
|
-
Lancashire
|
36
|
-
Greater Manchester | Manchester, Greater
|
37
|
-
Liverpool & Merseyside | Merseyside ## note: added Liverpool & - why? why not?
|
38
|
-
|
39
|
-
|
40
|
-
===================================
|
41
|
-
== North East England
|
42
|
-
|
43
|
-
# Tees
|
44
|
-
# Tyne & Wear
|
45
|
-
|
46
|
-
Durham
|
47
|
-
Newcastle & Northumberland | Northumberland ## note: added Newcastle & - why? why not?
|
48
|
-
Tyne and Wear
|
49
|
-
|
50
|
-
|
51
|
-
=====================================
|
52
|
-
== Yorkshire & Lincolnshire ==
|
53
|
-
|
54
|
-
# Humberside
|
55
|
-
# Leeds & West Yorkshire
|
56
|
-
# Lincolnshire
|
57
|
-
# Sheffield & South Yorkshire
|
58
|
-
# York & North Yorkshire
|
59
|
-
|
60
|
-
Lincolnshire
|
61
|
-
West Yorkshire | Yorkshire, West | Yorkshire (West)
|
62
|
-
South Yorkshire | Yorkshire, South | Yorkshire (South)
|
63
|
-
North Yorkshire | Yorkshire, North | Yorkshire (North)
|
64
|
-
East Yorkshire | Yorkshire, East | Yorkshire (East)
|
65
|
-
|
66
|
-
|
67
|
-
==================================
|
68
|
-
== West Midlands
|
69
|
-
|
70
|
-
# Birmingham & Black Country
|
71
|
-
# Coventry & Warwickshire
|
72
|
-
# Hereford & Worcester
|
73
|
-
# Shropshire
|
74
|
-
# Stoke & Staffordshire
|
75
|
-
|
76
|
-
Herefordshire
|
77
|
-
Shropshire
|
78
|
-
Staffordshire
|
79
|
-
Warwickshire
|
80
|
-
Birmingham & West Midlands | West Midlands ## note: added Birmingham - why? why not?
|
81
|
-
Worcestershire
|
82
|
-
|
83
|
-
|
84
|
-
==================================
|
85
|
-
== East Midlands
|
86
|
-
|
87
|
-
# Derby
|
88
|
-
# Leicester
|
89
|
-
# Northampton
|
90
|
-
# Nottingham
|
91
|
-
|
92
|
-
Derbyshire
|
93
|
-
Leicestershire
|
94
|
-
Northamptonshire
|
95
|
-
Nottinghamshire
|
96
|
-
Rutland
|
97
|
-
|
98
|
-
|
99
|
-
===================================
|
100
|
-
== West & South West
|
101
|
-
|
102
|
-
# Bristol
|
103
|
-
# Cornwall
|
104
|
-
# Devon
|
105
|
-
# Gloucestershire
|
106
|
-
# Somerset
|
107
|
-
# Wiltshire
|
108
|
-
|
109
|
-
|
110
|
-
Cornwall
|
111
|
-
Devon
|
112
|
-
Bristol & Gloucestershire | Gloucestershire
|
113
|
-
Somerset
|
114
|
-
Wiltshire
|
115
|
-
|
116
|
-
|
117
|
-
=================================
|
118
|
-
== East
|
119
|
-
|
120
|
-
# Beds, Herts & Bucks
|
121
|
-
# Cambridgeshire
|
122
|
-
# Essex
|
123
|
-
# Norfolk
|
124
|
-
# Suffolk
|
125
|
-
|
126
|
-
Bedfordshire
|
127
|
-
Hertfordshire
|
128
|
-
Buckinghamshire
|
129
|
-
Cambridgeshire
|
130
|
-
Essex
|
131
|
-
Norfolk
|
132
|
-
Suffolk
|
133
|
-
|
134
|
-
|
135
|
-
===============================
|
136
|
-
== South
|
137
|
-
|
138
|
-
# Berkshire
|
139
|
-
# Dorset
|
140
|
-
# Hampshire & Isle of Wight
|
141
|
-
# Oxford
|
142
|
-
|
143
|
-
Berkshire
|
144
|
-
Dorset
|
145
|
-
Hampshire
|
146
|
-
Oxfordshire
|
147
|
-
|
148
|
-
|
149
|
-
|
150
|
-
===============================
|
151
|
-
== London & South East
|
152
|
-
|
153
|
-
# Kent
|
154
|
-
# London
|
155
|
-
# Surrey
|
156
|
-
# Sussex
|
157
|
-
|
158
|
-
Greater London | London, Greater
|
159
|
-
Kent
|
160
|
-
Surrey
|
161
|
-
East Sussex | Sussex, East | Sussex (East)
|
162
|
-
West Sussex | Sussex, West | Sussex (West)
|
1
|
+
##
|
2
|
+
# what name? use regions or maps or geos or zones or __?
|
3
|
+
|
4
|
+
#
|
5
|
+
# england
|
6
|
+
# see https://en.wikipedia.org/wiki/Subdivisions_of_England
|
7
|
+
# see https://www.bbc.co.uk/news/england/regions
|
8
|
+
|
9
|
+
##
|
10
|
+
# todo: for sort order - allow different sort name
|
11
|
+
# e.g. East Sussex => Sussex (East) or Sussex, East or something
|
12
|
+
# use <> for marking what counts for sorting
|
13
|
+
# e.g East <Sussex> => get auto-converted to Sussex, East - why? why not?
|
14
|
+
#
|
15
|
+
# more examples:
|
16
|
+
# North ‹Yorkshire› => Yorkshire (North) or Yorkshire, North
|
17
|
+
# Greater ‹London› => London, Greater
|
18
|
+
# Greater ‹Manchaster› => Manchaster, Greater
|
19
|
+
|
20
|
+
|
21
|
+
##
|
22
|
+
# note: uses all regions following the camra good beer guide (book)
|
23
|
+
#
|
24
|
+
|
25
|
+
======================================
|
26
|
+
== North West England ==
|
27
|
+
|
28
|
+
# Cumbria
|
29
|
+
# Lancashire
|
30
|
+
# Liverpool
|
31
|
+
# Manchester
|
32
|
+
|
33
|
+
Cheshire
|
34
|
+
Cumbria
|
35
|
+
Lancashire
|
36
|
+
Greater Manchester | Manchester, Greater
|
37
|
+
Liverpool & Merseyside | Merseyside ## note: added Liverpool & - why? why not?
|
38
|
+
|
39
|
+
|
40
|
+
===================================
|
41
|
+
== North East England
|
42
|
+
|
43
|
+
# Tees
|
44
|
+
# Tyne & Wear
|
45
|
+
|
46
|
+
Durham
|
47
|
+
Newcastle & Northumberland | Northumberland ## note: added Newcastle & - why? why not?
|
48
|
+
Tyne and Wear
|
49
|
+
|
50
|
+
|
51
|
+
=====================================
|
52
|
+
== Yorkshire & Lincolnshire ==
|
53
|
+
|
54
|
+
# Humberside
|
55
|
+
# Leeds & West Yorkshire
|
56
|
+
# Lincolnshire
|
57
|
+
# Sheffield & South Yorkshire
|
58
|
+
# York & North Yorkshire
|
59
|
+
|
60
|
+
Lincolnshire
|
61
|
+
West Yorkshire | Yorkshire, West | Yorkshire (West)
|
62
|
+
South Yorkshire | Yorkshire, South | Yorkshire (South)
|
63
|
+
North Yorkshire | Yorkshire, North | Yorkshire (North)
|
64
|
+
East Yorkshire | Yorkshire, East | Yorkshire (East)
|
65
|
+
|
66
|
+
|
67
|
+
==================================
|
68
|
+
== West Midlands
|
69
|
+
|
70
|
+
# Birmingham & Black Country
|
71
|
+
# Coventry & Warwickshire
|
72
|
+
# Hereford & Worcester
|
73
|
+
# Shropshire
|
74
|
+
# Stoke & Staffordshire
|
75
|
+
|
76
|
+
Herefordshire
|
77
|
+
Shropshire
|
78
|
+
Staffordshire
|
79
|
+
Warwickshire
|
80
|
+
Birmingham & West Midlands | West Midlands ## note: added Birmingham - why? why not?
|
81
|
+
Worcestershire
|
82
|
+
|
83
|
+
|
84
|
+
==================================
|
85
|
+
== East Midlands
|
86
|
+
|
87
|
+
# Derby
|
88
|
+
# Leicester
|
89
|
+
# Northampton
|
90
|
+
# Nottingham
|
91
|
+
|
92
|
+
Derbyshire
|
93
|
+
Leicestershire
|
94
|
+
Northamptonshire
|
95
|
+
Nottinghamshire
|
96
|
+
Rutland
|
97
|
+
|
98
|
+
|
99
|
+
===================================
|
100
|
+
== West & South West
|
101
|
+
|
102
|
+
# Bristol
|
103
|
+
# Cornwall
|
104
|
+
# Devon
|
105
|
+
# Gloucestershire
|
106
|
+
# Somerset
|
107
|
+
# Wiltshire
|
108
|
+
|
109
|
+
|
110
|
+
Cornwall
|
111
|
+
Devon
|
112
|
+
Bristol & Gloucestershire | Gloucestershire
|
113
|
+
Somerset
|
114
|
+
Wiltshire
|
115
|
+
|
116
|
+
|
117
|
+
=================================
|
118
|
+
== East
|
119
|
+
|
120
|
+
# Beds, Herts & Bucks
|
121
|
+
# Cambridgeshire
|
122
|
+
# Essex
|
123
|
+
# Norfolk
|
124
|
+
# Suffolk
|
125
|
+
|
126
|
+
Bedfordshire
|
127
|
+
Hertfordshire
|
128
|
+
Buckinghamshire
|
129
|
+
Cambridgeshire
|
130
|
+
Essex
|
131
|
+
Norfolk
|
132
|
+
Suffolk
|
133
|
+
|
134
|
+
|
135
|
+
===============================
|
136
|
+
== South
|
137
|
+
|
138
|
+
# Berkshire
|
139
|
+
# Dorset
|
140
|
+
# Hampshire & Isle of Wight
|
141
|
+
# Oxford
|
142
|
+
|
143
|
+
Berkshire
|
144
|
+
Dorset
|
145
|
+
Hampshire
|
146
|
+
Oxfordshire
|
147
|
+
|
148
|
+
|
149
|
+
|
150
|
+
===============================
|
151
|
+
== London & South East
|
152
|
+
|
153
|
+
# Kent
|
154
|
+
# London
|
155
|
+
# Surrey
|
156
|
+
# Sussex
|
157
|
+
|
158
|
+
Greater London | London, Greater
|
159
|
+
Kent
|
160
|
+
Surrey
|
161
|
+
East Sussex | Sussex, East | Sussex (East)
|
162
|
+
West Sussex | Sussex, West | Sussex (West)
|