sportdb-models 1.18.0 → 1.18.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/{HISTORY.md → CHANGELOG.md} +0 -0
- data/Manifest.txt +1 -16
- data/Rakefile +6 -7
- data/lib/sportdb/models.rb +8 -30
- data/lib/sportdb/version.rb +1 -1
- data/test/test_assoc_reader.rb +1 -3
- data/test/test_changes.rb +9 -5
- data/test/test_cursor.rb +6 -1
- data/test/test_event_meta_reader.rb +0 -3
- data/test/test_event_reader.rb +2 -6
- data/test/test_event_table_reader.rb +1 -5
- metadata +24 -25
- data/config/fixtures/de.yml +0 -46
- data/config/fixtures/en.yml +0 -54
- data/config/fixtures/es.yml +0 -48
- data/config/fixtures/fr.yml +0 -53
- data/config/fixtures/it.yml +0 -55
- data/config/fixtures/pt.yml +0 -46
- data/config/fixtures/ro.yml +0 -55
- data/data/seasons.txt +0 -74
- data/data/setups/all.txt +0 -5
- data/lib/sportdb/csv_reader.rb +0 -241
- data/lib/sportdb/finders/date.rb +0 -446
- data/lib/sportdb/lang.rb +0 -216
- data/test/test_csv_reader.rb +0 -45
- data/test/test_date.rb +0 -100
- data/test/test_lang.rb +0 -130
data/config/fixtures/de.yml
DELETED
@@ -1,46 +0,0 @@
|
|
1
|
-
###########################
|
2
|
-
# known keywords for fixtures
|
3
|
-
|
4
|
-
|
5
|
-
group: Gruppe
|
6
|
-
|
7
|
-
round: Spieltag|Runde
|
8
|
-
|
9
|
-
|
10
|
-
stage: Gruppenphase|Qualifikation|Play-off|Finalrunde|K.-o.-Phase
|
11
|
-
|
12
|
-
|
13
|
-
### Knock out rounds
|
14
|
-
|
15
|
-
## fix: add playoffs:
|
16
|
-
round32: Sechzehntelfinale|1/16 Finale
|
17
|
-
round16: Achtelfinale|1/8 Finale
|
18
|
-
quarterfinals: Viertelfinale|1/4 Finale
|
19
|
-
semifinals: Halbfinale|Semifinale|1/2 Finale
|
20
|
-
fifthplace: Spiel um Platz 5
|
21
|
-
thirdplace: Spiel um Platz 3
|
22
|
-
final: Finale|Endspiel
|
23
|
-
|
24
|
-
### Pair matches/games if marked with leg1 n leg2
|
25
|
-
|
26
|
-
leg1: Hin|Hinspiel|Hinspiele
|
27
|
-
leg2: Rück|Rückspiel|Rückspiele
|
28
|
-
|
29
|
-
|
30
|
-
#######################
|
31
|
-
# months of year
|
32
|
-
|
33
|
-
january: Jänner|Januar
|
34
|
-
february: Feber|Februar
|
35
|
-
march: März
|
36
|
-
april: April
|
37
|
-
may: Mai
|
38
|
-
june: Juni
|
39
|
-
july: Juli
|
40
|
-
august: August
|
41
|
-
september: September
|
42
|
-
october: Oktober
|
43
|
-
november: November
|
44
|
-
december: Dezember
|
45
|
-
|
46
|
-
|
data/config/fixtures/en.yml
DELETED
@@ -1,54 +0,0 @@
|
|
1
|
-
###########################
|
2
|
-
# known keywords for fixtures
|
3
|
-
|
4
|
-
|
5
|
-
group: Group
|
6
|
-
|
7
|
-
round: Round|Matchday|Week
|
8
|
-
|
9
|
-
stage: Stage|Phase|Rounds
|
10
|
-
# e.g.
|
11
|
-
# Group stage
|
12
|
-
# Play off stage|Play-off stage
|
13
|
-
# Knockout stage|Knockout stages
|
14
|
-
# First stage
|
15
|
-
# Second stage
|
16
|
-
# Qualifying rounds
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
### Knockout rounds
|
21
|
-
|
22
|
-
playoffs: Playoff|Playoffs|Play-off|Play-offs|Play-off for quarter-finals
|
23
|
-
round32: Round of 32|Last 32
|
24
|
-
round16: Round of 16|Last 16|8th finals
|
25
|
-
quarterfinals: Quarterfinals|Quarter-finals|Quarters|Quarterfinal|Last 8
|
26
|
-
semifinals: Semifinals|Semi-finals|Semis|Last 4
|
27
|
-
fifthplace: Fifth place match|Fifth place|5th place match|5th place final|5th place|Match for fifth place|Match for 5th place
|
28
|
-
thirdplace: Third place match|Third-place match|Third place|3rd place match|3rd place final|3rd place|Match for third place|Match for 3rd place|Third-place play-off|Third place play-off
|
29
|
-
final: Final|Finals
|
30
|
-
|
31
|
-
|
32
|
-
### Pair matches/games if marked with leg1 n leg2
|
33
|
-
|
34
|
-
leg1: 1st leg|First leg
|
35
|
-
leg2: 2nd leg|Second leg
|
36
|
-
|
37
|
-
|
38
|
-
#######################
|
39
|
-
# months of year
|
40
|
-
|
41
|
-
january: January
|
42
|
-
february: February
|
43
|
-
march: March
|
44
|
-
april: April
|
45
|
-
may: May
|
46
|
-
june: June
|
47
|
-
july: July
|
48
|
-
august: August
|
49
|
-
september: September
|
50
|
-
october: October
|
51
|
-
november: November
|
52
|
-
december: December
|
53
|
-
|
54
|
-
|
data/config/fixtures/es.yml
DELETED
@@ -1,48 +0,0 @@
|
|
1
|
-
###########################
|
2
|
-
# known keywords for fixtures
|
3
|
-
|
4
|
-
|
5
|
-
group: Grupo
|
6
|
-
|
7
|
-
round: Fecha|Jornada
|
8
|
-
|
9
|
-
|
10
|
-
stage: Primera fase|Segunda fase|Fase de grupos|Fase final
|
11
|
-
|
12
|
-
|
13
|
-
### Knock out rounds
|
14
|
-
|
15
|
-
## fix: add playoffs + fifthplace
|
16
|
-
|
17
|
-
|
18
|
-
round32: Dieciseisavos de final|16vos de final
|
19
|
-
round16: Octavos|Octavos de final|8vos de final
|
20
|
-
quarterfinals: Cuartos|Cuartos de final|4tos de final
|
21
|
-
semifinals: Semifinales|Semifinal
|
22
|
-
thirdplace: Tercer lugar
|
23
|
-
final: Final
|
24
|
-
|
25
|
-
### Pair matches/games if marked with leg1 n leg2
|
26
|
-
|
27
|
-
leg1: Ida
|
28
|
-
leg2: Vuelta
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
#######################
|
33
|
-
# months of year
|
34
|
-
|
35
|
-
january: enero
|
36
|
-
february: febrero
|
37
|
-
march: marzo
|
38
|
-
april: abril
|
39
|
-
may: mayo
|
40
|
-
june: junio
|
41
|
-
july: julio
|
42
|
-
august: agosto
|
43
|
-
september: septiembre
|
44
|
-
october: octubre
|
45
|
-
november: noviembre
|
46
|
-
december: diciembre
|
47
|
-
|
48
|
-
|
data/config/fixtures/fr.yml
DELETED
@@ -1,53 +0,0 @@
|
|
1
|
-
###########################
|
2
|
-
# known keywords for fixtures
|
3
|
-
|
4
|
-
|
5
|
-
group: Groupe
|
6
|
-
|
7
|
-
round: Journée
|
8
|
-
|
9
|
-
stage: Phase de groupes|Phase à élimination directe|Phase finale
|
10
|
-
# e.g.
|
11
|
-
# Group stage
|
12
|
-
# Play off stage|Play-off stage
|
13
|
-
# Knockout stage|Knockout stages
|
14
|
-
# First stage
|
15
|
-
# Second stage
|
16
|
-
# Qualifying rounds
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
### Knockout rounds
|
22
|
-
|
23
|
-
## fix: add playoffs + fifthplace
|
24
|
-
|
25
|
-
|
26
|
-
round32: Seizièmes de finale
|
27
|
-
round16: Huitièmes de finale
|
28
|
-
quarterfinals: Quarts de finale
|
29
|
-
semifinals: Demi-finales
|
30
|
-
thirdplace: Match pour la troisième place
|
31
|
-
final: Finale
|
32
|
-
|
33
|
-
### Pair matches/games if marked with leg1 n leg2
|
34
|
-
|
35
|
-
leg1: Match aller
|
36
|
-
leg2: Match retour
|
37
|
-
|
38
|
-
|
39
|
-
#######################
|
40
|
-
# months of year
|
41
|
-
|
42
|
-
january: janvier
|
43
|
-
february: février
|
44
|
-
march: mars
|
45
|
-
april: avril
|
46
|
-
may: mai
|
47
|
-
june: juin
|
48
|
-
july: juillet
|
49
|
-
august: août
|
50
|
-
september: septembre
|
51
|
-
october: octobre
|
52
|
-
november: novembre
|
53
|
-
december: décembre
|
data/config/fixtures/it.yml
DELETED
@@ -1,55 +0,0 @@
|
|
1
|
-
###########################
|
2
|
-
# known keywords for fixtures
|
3
|
-
|
4
|
-
|
5
|
-
group: Gruppo
|
6
|
-
|
7
|
-
|
8
|
-
round: Giornata
|
9
|
-
|
10
|
-
stage: Fase a gironi|Fase a eliminazione diretta
|
11
|
-
# e.g.
|
12
|
-
# Group stage
|
13
|
-
# Play off stage|Play-off stage
|
14
|
-
# Knockout stage|Knockout stages
|
15
|
-
# First stage
|
16
|
-
# Second stage
|
17
|
-
# Qualifying rounds
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
### Knockout rounds
|
23
|
-
|
24
|
-
## fix: add playoffs + fifthplace
|
25
|
-
|
26
|
-
|
27
|
-
round32: Sedicesimi di finale
|
28
|
-
round16: Ottavi di finale
|
29
|
-
quarterfinals: Quarti di finale
|
30
|
-
semifinals: Semifinali
|
31
|
-
thirdplace: Finale 3º posto
|
32
|
-
final: Finale
|
33
|
-
|
34
|
-
### Pair matches/games if marked with leg1 n leg2
|
35
|
-
|
36
|
-
leg1: Andata
|
37
|
-
leg2: Ritorno
|
38
|
-
|
39
|
-
|
40
|
-
#######################
|
41
|
-
# months of year
|
42
|
-
|
43
|
-
january: gennaio
|
44
|
-
february: febbraio
|
45
|
-
march: marzo
|
46
|
-
april: aprile
|
47
|
-
may: maggio
|
48
|
-
june: giugno
|
49
|
-
july: luglio
|
50
|
-
august: agosto
|
51
|
-
september: settembre
|
52
|
-
october: ottobre
|
53
|
-
november: novembre
|
54
|
-
december: dicembre
|
55
|
-
|
data/config/fixtures/pt.yml
DELETED
@@ -1,46 +0,0 @@
|
|
1
|
-
###########################
|
2
|
-
# known keywords for fixtures
|
3
|
-
|
4
|
-
|
5
|
-
group: Grupo
|
6
|
-
|
7
|
-
round: Rodada
|
8
|
-
|
9
|
-
stage: Fase de grupos|Fase final|Primeira Fase|Segunda Fase
|
10
|
-
|
11
|
-
|
12
|
-
### Knock out rounds
|
13
|
-
|
14
|
-
## fix: add playoffs + fifthplace
|
15
|
-
|
16
|
-
round32: 16-avos de final
|
17
|
-
round16: Oitavos de final|Oitavas-de-final
|
18
|
-
quarterfinals: Quartos de final|Quartas-de-final
|
19
|
-
semifinals: Semifinais
|
20
|
-
thirdplace: Terceiro lugar
|
21
|
-
final: Final
|
22
|
-
|
23
|
-
|
24
|
-
### Pair matches/games if marked with leg1 n leg2
|
25
|
-
|
26
|
-
leg1: 1º jogo # Ida -- exists ??
|
27
|
-
leg2: 2º jogo # Volta -- exists ??
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
#######################
|
32
|
-
# months of year
|
33
|
-
|
34
|
-
january: janeiro
|
35
|
-
february: fevereiro
|
36
|
-
march: março
|
37
|
-
april: abril
|
38
|
-
may: maio
|
39
|
-
june: junho
|
40
|
-
july: julho
|
41
|
-
august: agosto
|
42
|
-
september: setembro
|
43
|
-
october: outubro
|
44
|
-
november: novembro
|
45
|
-
december: dezembro
|
46
|
-
|
data/config/fixtures/ro.yml
DELETED
@@ -1,55 +0,0 @@
|
|
1
|
-
###########################
|
2
|
-
# known keywords for fixtures
|
3
|
-
|
4
|
-
|
5
|
-
group: Grupa
|
6
|
-
|
7
|
-
round: Runda|Etapa
|
8
|
-
|
9
|
-
|
10
|
-
stage: Faza grupelor|Faza eliminatorie
|
11
|
-
# e.g.
|
12
|
-
# Group stage
|
13
|
-
# Play off stage|Play-off stage
|
14
|
-
# Knockout stage|Knockout stages
|
15
|
-
# First stage
|
16
|
-
# Second stage
|
17
|
-
# Qualifying rounds
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
### Knockout rounds
|
23
|
-
|
24
|
-
## fix: add playoffs + fifthplace
|
25
|
-
|
26
|
-
|
27
|
-
round32: 1/16 de finală
|
28
|
-
round16: Optimi de finală
|
29
|
-
quarterfinals: Sferturi de finală
|
30
|
-
semifinals: Semifinale
|
31
|
-
thirdplace: Meciul pentru locul 3
|
32
|
-
final: Finala
|
33
|
-
|
34
|
-
### Pair matches/games if marked with leg1 n leg2
|
35
|
-
|
36
|
-
leg1: Tur ## Prima manșă - use too ??
|
37
|
-
leg2: Retur ## Manșa secundă - use too ??
|
38
|
-
|
39
|
-
|
40
|
-
#######################
|
41
|
-
# months of year
|
42
|
-
|
43
|
-
january: ianuarie
|
44
|
-
february: februarie
|
45
|
-
march: martie
|
46
|
-
april: aprilie
|
47
|
-
may: mai
|
48
|
-
june: iunie
|
49
|
-
july: iulie
|
50
|
-
august: august
|
51
|
-
september: septembrie
|
52
|
-
october: octombrie
|
53
|
-
november: noiembrie
|
54
|
-
december: decembrie
|
55
|
-
|
data/data/seasons.txt
DELETED
@@ -1,74 +0,0 @@
|
|
1
|
-
###
|
2
|
-
# use period for season? why? why not?
|
3
|
-
# - semantic hairsplitting? make it an alias? why? why not? who cares?
|
4
|
-
|
5
|
-
|
6
|
-
###
|
7
|
-
# use 2012-13 or 2012_13 or 2012.13 or 2012+13 why? why not ???
|
8
|
-
|
9
|
-
2020/21
|
10
|
-
2019/20
|
11
|
-
2018/19
|
12
|
-
2017/18
|
13
|
-
2016/17
|
14
|
-
2015/16
|
15
|
-
2014/15
|
16
|
-
2013/14
|
17
|
-
2012/13
|
18
|
-
2011/12
|
19
|
-
2010/11
|
20
|
-
2009/10
|
21
|
-
2008/09
|
22
|
-
2007/08
|
23
|
-
2006/07
|
24
|
-
2005/06
|
25
|
-
2004/05
|
26
|
-
2003/04
|
27
|
-
2002/03
|
28
|
-
2001/02
|
29
|
-
2000/01
|
30
|
-
|
31
|
-
# -- years only --
|
32
|
-
|
33
|
-
2022
|
34
|
-
2021
|
35
|
-
2020
|
36
|
-
2019
|
37
|
-
2018
|
38
|
-
2017
|
39
|
-
2016
|
40
|
-
2015
|
41
|
-
2014
|
42
|
-
2013
|
43
|
-
2012
|
44
|
-
2011
|
45
|
-
2010
|
46
|
-
2009
|
47
|
-
2008
|
48
|
-
2007
|
49
|
-
2006
|
50
|
-
2005
|
51
|
-
2004
|
52
|
-
2003
|
53
|
-
2002
|
54
|
-
2001
|
55
|
-
2000
|
56
|
-
|
57
|
-
|
58
|
-
# e.g. Liga MX has two (complete) seasons in *one* year e.g. Clausura 2013 n Apertura 2013
|
59
|
-
### for 2013.1 use 2013_I 2013-I 2013.I n 2013-II 2013.II or 2013.A n 2013.B - why? why not??
|
60
|
-
|
61
|
-
2015.1
|
62
|
-
2015.2
|
63
|
-
2014.1
|
64
|
-
2014.2
|
65
|
-
2013.1
|
66
|
-
2013.2
|
67
|
-
2012.1
|
68
|
-
2012.2
|
69
|
-
2011.1
|
70
|
-
2011.2
|
71
|
-
2010.1
|
72
|
-
2010.2
|
73
|
-
|
74
|
-
|