sportdb 0.4.4 → 0.4.5
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.
- data/Manifest.txt +1 -0
- data/db/at/2011_12/bl.rb +3 -3
- data/db/at/2011_12/bl.txt +15 -15
- data/db/at/2011_12/cup.rb +2 -2
- data/db/at/2012_13/bl.rb +3 -3
- data/db/at/2012_13/cup.rb +3 -3
- data/db/at/2012_13/cup.txt +5 -5
- data/db/at/teams.rb +2 -5
- data/db/cl/2011_12/cl.rb +1 -1
- data/db/cl/2011_12/el.rb +1 -1
- data/db/cl/teams.rb +1 -0
- data/db/en/2012_13/pl.rb +1 -1
- data/db/euro/2012.rb +1 -1
- data/db/mx/apertura_2012.rb +23 -150
- data/db/mx/apertura_2012.txt +106 -0
- data/db/ro/l1_2012_13.rb +4 -2
- data/lib/sportdb/schema.rb +29 -0
- data/lib/sportdb/version.rb +1 -1
- metadata +6 -4
data/Manifest.txt
CHANGED
data/db/at/2011_12/bl.rb
CHANGED
|
@@ -19,12 +19,12 @@ team_keys_bl = [
|
|
|
19
19
|
'austria',
|
|
20
20
|
'sturm',
|
|
21
21
|
'ried',
|
|
22
|
-
'
|
|
22
|
+
'innsbruck',
|
|
23
23
|
'mattersburg',
|
|
24
|
-
'
|
|
24
|
+
'wrneustadt',
|
|
25
25
|
'ksv' ]
|
|
26
26
|
|
|
27
27
|
bl.add_teams_from_ary!( team_keys_bl )
|
|
28
28
|
|
|
29
29
|
|
|
30
|
-
Prop.create!( key: 'db.at.
|
|
30
|
+
Prop.create!( key: 'db.at.2011/12.version', value: '1' )
|
data/db/at/2011_12/bl.txt
CHANGED
|
@@ -8,17 +8,17 @@
|
|
|
8
8
|
|
|
9
9
|
29. Runde / Sa+So 7.+8. April 2012
|
|
10
10
|
|
|
11
|
-
salzburg 2:0
|
|
11
|
+
salzburg 2:0 innsbruck 2012-04-07 16:00
|
|
12
12
|
ried 0:1 austria 2012-04-07 18:30
|
|
13
13
|
ksv 2:3 admira 2012-04-07 18:30
|
|
14
|
-
rapid 2:1
|
|
14
|
+
rapid 2:1 wrneustadt 2012-04-07 18:30
|
|
15
15
|
mattersburg 0:2 sturm 2012-04-08 16:00
|
|
16
16
|
|
|
17
17
|
|
|
18
18
|
30. Runde / Sa+So 14.+15. April 2012
|
|
19
19
|
|
|
20
|
-
|
|
21
|
-
admira 1:1
|
|
20
|
+
wrneustadt 0:0 ksv 2012-04-14 16:00
|
|
21
|
+
admira 1:1 innsbruck 2012-04-14 18:30
|
|
22
22
|
sturm 2:2 salzburg 2012-04-14 18:30
|
|
23
23
|
ried 2:0 mattersburg 2012-04-14 18:30
|
|
24
24
|
austria 0:0 rapid 2012-04-15 16:00
|
|
@@ -26,7 +26,7 @@ austria 0:0 rapid 2012-04-15 16:00
|
|
|
26
26
|
|
|
27
27
|
31. Runde / Sa+So 21.+22. April 2012
|
|
28
28
|
|
|
29
|
-
|
|
29
|
+
innsbruck 2:0 wrneustadt 2012-04-21 16:00
|
|
30
30
|
ksv 1:0 austria 2012-04-21 18:30
|
|
31
31
|
mattersburg 1:2 admira 2012-04-21 18:30
|
|
32
32
|
salzburg 2:0 ried 2012-04-21 18:30
|
|
@@ -35,8 +35,8 @@ rapid 1:1 sturm 2012-04-22 16:00
|
|
|
35
35
|
|
|
36
36
|
32. Runde / Sa+So 28.+29. April 2012
|
|
37
37
|
|
|
38
|
-
austria 3:0
|
|
39
|
-
|
|
38
|
+
austria 3:0 innsbruck 2012-04-28 16:00
|
|
39
|
+
wrneustadt 1:4 admira 2012-04-28 18:30
|
|
40
40
|
mattersburg 0:1 salzburg 2012-04-28 18:30
|
|
41
41
|
sturm 2:1 ksv 2012-04-28 18:30
|
|
42
42
|
ried 2:3 rapid 2012-04-29 16:00
|
|
@@ -44,18 +44,18 @@ ried 2:3 rapid 2012-04-29 16:00
|
|
|
44
44
|
|
|
45
45
|
33. Runde / Sa 5. Mai 2012
|
|
46
46
|
|
|
47
|
-
|
|
47
|
+
wrneustadt 0:0 sturm 2012-05-05 16:00
|
|
48
48
|
admira 3:2 austria 2012-05-05 18:30
|
|
49
49
|
ksv 0:0 ried 2012-05-05 18:30
|
|
50
|
-
|
|
50
|
+
innsbruck 3:6 mattersburg 2012-05-05 18:30
|
|
51
51
|
rapid 0:1 salzburg 2012-05-06 16:00
|
|
52
52
|
|
|
53
53
|
|
|
54
54
|
34. Runde / Do 10. Mai 2012
|
|
55
55
|
|
|
56
56
|
salzburg 2:0 ksv 2012-05-10 18:30
|
|
57
|
-
austria 3:1
|
|
58
|
-
ried 1:1
|
|
57
|
+
austria 3:1 wrneustadt 2012-05-10 20:30
|
|
58
|
+
ried 1:1 innsbruck 2012-05-10 20:30
|
|
59
59
|
mattersburg 0:1 rapid 2012-05-10 20:30
|
|
60
60
|
sturm 0:3 admira 2012-05-10 20:30
|
|
61
61
|
|
|
@@ -63,16 +63,16 @@ sturm 0:3 admira 2012-05-10 20:30
|
|
|
63
63
|
35. Runde / So 13. Mai 2012
|
|
64
64
|
|
|
65
65
|
ksv 0:2 rapid 2012-05-13 16:00
|
|
66
|
-
|
|
67
|
-
|
|
66
|
+
innsbruck 1:1 sturm 2012-05-13 16:00
|
|
67
|
+
wrneustadt 1:5 salzburg 2012-05-13 16:00
|
|
68
68
|
admira 1:1 ried 2012-05-13 16:00
|
|
69
69
|
austria 1:0 mattersburg 2012-05-13 16:00
|
|
70
70
|
|
|
71
71
|
|
|
72
72
|
36. Runde / Do 17. Mai 2012
|
|
73
73
|
|
|
74
|
-
rapid 2:0
|
|
75
|
-
ried 2:2
|
|
74
|
+
rapid 2:0 innsbruck 2012-05-17 16:00
|
|
75
|
+
ried 2:2 wrneustadt 2012-05-17 16:00
|
|
76
76
|
mattersburg 2:0 ksv 2012-05-17 16:00
|
|
77
77
|
sturm 3:1 austria 2012-05-17 16:00
|
|
78
78
|
salzburg 2:0 admira 2012-05-17 16:00
|
data/db/at/2011_12/cup.rb
CHANGED
|
@@ -16,8 +16,8 @@ ried = Team.find_by_key!( 'ried' )
|
|
|
16
16
|
salzburg = Team.find_by_key!( 'salzburg' )
|
|
17
17
|
austria = Team.find_by_key!( 'austria' )
|
|
18
18
|
rapid = Team.find_by_key!( 'rapid' )
|
|
19
|
-
|
|
20
|
-
|
|
19
|
+
innsbruck = Team.find_by_key!( 'innsbruck' )
|
|
20
|
+
wrneustadt = Team.find_by_key!( 'wrneustadt')
|
|
21
21
|
ksv = Team.find_by_key!( 'ksv' )
|
|
22
22
|
mattersburg = Team.find_by_key!( 'mattersburg' )
|
|
23
23
|
admira = Team.find_by_key!( 'admira' )
|
data/db/at/2012_13/bl.rb
CHANGED
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
## more info => http://bundesliga.at
|
|
9
9
|
|
|
10
10
|
|
|
11
|
-
bl = Event.create!( key: '
|
|
11
|
+
bl = Event.create!( key: 'at.2012/13',
|
|
12
12
|
title: 'Österr. Bundesliga 2012/13',
|
|
13
13
|
start_at: Time.cet('2012-07-21 00:00') )
|
|
14
14
|
|
|
@@ -21,9 +21,9 @@ team_keys_bl = [
|
|
|
21
21
|
'austria',
|
|
22
22
|
'sturm',
|
|
23
23
|
'ried',
|
|
24
|
-
'
|
|
24
|
+
'innsbruck',
|
|
25
25
|
'mattersburg',
|
|
26
|
-
'
|
|
26
|
+
'wrneustadt',
|
|
27
27
|
'wac' ]
|
|
28
28
|
|
|
29
29
|
bl.add_teams_from_ary!( team_keys_bl )
|
data/db/at/2012_13/cup.rb
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
##################################
|
|
4
4
|
### ÖFB Cup 2012/13
|
|
5
5
|
|
|
6
|
-
cup = Event.create!( key: '
|
|
6
|
+
cup = Event.create!( key: 'at.cup.2012/13',
|
|
7
7
|
title: 'ÖFB Cup 2012/13',
|
|
8
8
|
start_at: Time.cet( '2012-07-13 00:00' ) )
|
|
9
9
|
|
|
@@ -17,9 +17,9 @@ team_keys_bl = [
|
|
|
17
17
|
'austria',
|
|
18
18
|
'sturm',
|
|
19
19
|
'ried',
|
|
20
|
-
'
|
|
20
|
+
'innsbruck',
|
|
21
21
|
'mattersburg',
|
|
22
|
-
'
|
|
22
|
+
'wrneustadt',
|
|
23
23
|
'wac' ]
|
|
24
24
|
|
|
25
25
|
## 10 Erste Liga Teams
|
data/db/at/2012_13/cup.txt
CHANGED
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
fac 0:1 altach 2012-07-12 19:00
|
|
11
11
|
# hard 1:0 schwaz 2012-07-13 18:30
|
|
12
12
|
dsc 1:2 hartberg 2012-07-13 19:00
|
|
13
|
-
gratkorn 0:0 0:0nV 4:5iE
|
|
13
|
+
gratkorn 0:0 0:0nV 4:5iE innsbruck 2012-07-13 19:00
|
|
14
14
|
# pasching 2:1 austrias 2012-07-13 19:00
|
|
15
15
|
parndorf 0:3 admira 2012-07-13 19:00
|
|
16
16
|
voecklamarkt 3:4 lustenau 2012-07-13 19:00
|
|
@@ -37,7 +37,7 @@ retz 1:7 austrial 2012-07-14 18:00
|
|
|
37
37
|
bregenz 1:2 ksv 2012-07-14 18:30
|
|
38
38
|
# ardagger 2:2 2:3nV dornbirn 2012-07-14 19:00
|
|
39
39
|
kufstein 1:4 ried 2012-07-14 19:00
|
|
40
|
-
wolfurt 2:2 2:4nV
|
|
40
|
+
wolfurt 2:2 2:4nV wrneustadt 2012-07-15 10:30
|
|
41
41
|
heiligenkreuz 0:5 rapid 2012-07-15 18:00
|
|
42
42
|
|
|
43
43
|
|
|
@@ -52,8 +52,8 @@ austriak 0:0 2:0nV admira 2012-09-25 19:00
|
|
|
52
52
|
schwechat 0:5 sturm 2012-09-25 19:00
|
|
53
53
|
lask 2:0 groedig 2012-09-25 19:00
|
|
54
54
|
stjohann 0:3, lustenau 2012-09-25 19:00
|
|
55
|
-
sollenau 1:1 1:5nV
|
|
56
|
-
vsv 3:1
|
|
55
|
+
sollenau 1:1 1:5nV innsbruck 2012-09-25 19:00
|
|
56
|
+
vsv 3:1 wrneustadt 2012-09-25 19:00
|
|
57
57
|
dornbirn 2:3 austria 2012-09-25 20:30
|
|
58
58
|
badvoeslau 2:3 mattersburg 2012-09-26 16:00
|
|
59
59
|
stflorian 1:1 1:1nV 5:6iE ried 2012-09-26 19:00
|
|
@@ -66,7 +66,7 @@ gak 0:6 wac 2012-09-26 20:20
|
|
|
66
66
|
lask - mattersburg 2012-10-30 15:00
|
|
67
67
|
rapid - altach 2012-10-30 15:00
|
|
68
68
|
viktoria - ried 2012-10-30 15:00
|
|
69
|
-
sturm -
|
|
69
|
+
sturm - innsbruck 2012-10-30 15:00
|
|
70
70
|
pasching - austriak 2012-10-30 15:00
|
|
71
71
|
lustenau - wac 2012-10-30 15:00
|
|
72
72
|
kalsdorf - salzburg 2012-10-30 15:00
|
data/db/at/teams.rb
CHANGED
|
@@ -1,8 +1,5 @@
|
|
|
1
1
|
# encoding: utf-8
|
|
2
2
|
|
|
3
|
-
### fix:
|
|
4
|
-
# rename wacker to innsbruck
|
|
5
|
-
# neustadt to wrneustadt
|
|
6
3
|
|
|
7
4
|
bl = [
|
|
8
5
|
[ 'salzburg', 'FC RB Salzburg|RB Salzburg|Red Bull Salzburg', 'RBS' ],
|
|
@@ -11,9 +8,9 @@ bl = [
|
|
|
11
8
|
[ 'austria', 'FK Austria Wien|Austria Wien', 'FAK' ],
|
|
12
9
|
[ 'sturm', 'SK Sturm Graz|Sturm Graz', 'STU' ],
|
|
13
10
|
[ 'ried', 'SV Ried|SV Josko Ried|SV Josko Fenster Ried', 'RIE' ],
|
|
14
|
-
[ '
|
|
11
|
+
[ 'innsbruck', 'FC Wacker Innsbruck|FC Wacker|Wacker Innsbruck', 'IBK' ],
|
|
15
12
|
[ 'mattersburg', 'SV Mattersburg', 'SVM' ],
|
|
16
|
-
[ '
|
|
13
|
+
[ 'wrneustadt', 'SC Wiener Neustadt|Wiener Neustadt|Wr. Neustadt', 'WRN' ],
|
|
17
14
|
[ 'wac', 'Wolfsberger AC', 'WAC' ]
|
|
18
15
|
]
|
|
19
16
|
|
data/db/cl/2011_12/cl.rb
CHANGED
data/db/cl/2011_12/el.rb
CHANGED
data/db/cl/teams.rb
CHANGED
data/db/en/2012_13/pl.rb
CHANGED
data/db/euro/2012.rb
CHANGED
data/db/mx/apertura_2012.rb
CHANGED
|
@@ -3,158 +3,31 @@
|
|
|
3
3
|
# note: timezone for games (play_at) is *always* CST (central standard time / -6 hours ??)
|
|
4
4
|
|
|
5
5
|
|
|
6
|
-
mx = Event.create!( key: '
|
|
6
|
+
mx = Event.create!( key: 'mx.apertura.2012',
|
|
7
7
|
title: 'México Primera División Apertura 2012',
|
|
8
8
|
start_at: Time.cst('2012-07-20 00:00') )
|
|
9
9
|
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
mx.
|
|
32
|
-
mx.teams << atlante
|
|
33
|
-
mx.teams << atlas
|
|
34
|
-
mx.teams << chivas
|
|
35
|
-
mx.teams << cruzazul
|
|
36
|
-
mx.teams << jaguares
|
|
37
|
-
mx.teams << leon
|
|
38
|
-
mx.teams << monarcas
|
|
39
|
-
mx.teams << monterrey
|
|
40
|
-
mx.teams << pachuca
|
|
41
|
-
mx.teams << puebla
|
|
42
|
-
mx.teams << queretaro
|
|
43
|
-
mx.teams << sanluis
|
|
44
|
-
mx.teams << slaguna
|
|
45
|
-
mx.teams << tijuana
|
|
46
|
-
mx.teams << toluca
|
|
47
|
-
mx.teams << tigres
|
|
48
|
-
mx.teams << pumas
|
|
49
|
-
|
|
50
|
-
j1 = Round.create!( event: mx, pos: 1, title: 'Jornada 1', start_at: Time.cst('2012-07-20'), title2: '20, 21 y 22 de julio' )
|
|
51
|
-
j2 = Round.create!( event: mx, pos: 2, title: 'Jornada 2', start_at: Time.cst('2012-07-27'), title2: '27, 28 y 29 de julio' )
|
|
52
|
-
j3 = Round.create!( event: mx, pos: 3, title: 'Jornada 3', start_at: Time.cst('2012-08-03'), title2: '3, 4, y 5 de agosto' )
|
|
53
|
-
j4 = Round.create!( event: mx, pos: 4, title: 'Jornada 4', start_at: Time.cst('2012-08-10'), title2: '10, 11 y 12 de agosto' )
|
|
54
|
-
j5 = Round.create!( event: mx, pos: 5, title: 'Jornada 5', start_at: Time.cst('2012-08-17'), title2: '17, 18 y 19 de agosto' )
|
|
55
|
-
j6 = Round.create!( event: mx, pos: 6, title: 'Jornada 6', start_at: Time.cst('2012-08-24'), title2: '24, 25 y 26 de agosto' )
|
|
56
|
-
j7 = Round.create!( event: mx, pos: 7, title: 'Jornada 7', start_at: Time.cst('2012-08-31'), title2: '31 de agosto, 1 y 2 de septiembre' )
|
|
57
|
-
j8 = Round.create!( event: mx, pos: 8, title: 'Jornada 8', start_at: Time.cst('2012-09-14'), title2: '14, 15 y 16 de septiembre' )
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
games_j1 = [
|
|
61
|
-
[ jaguares, [], tigres, Time.cst('2012-07-20 19:30') ],
|
|
62
|
-
[ tijuana, [], puebla, Time.cst('2012-07-20 21:30') ],
|
|
63
|
-
[ cruzazul, [], monarcas, Time.cst('2012-07-21 17:00') ],
|
|
64
|
-
[ queretaro, [], leon, Time.cst('2012-07-21 17:00') ],
|
|
65
|
-
[ slaguna, [], sanluis, Time.cst('2012-07-21 19:00') ],
|
|
66
|
-
[ monterrey, [], america, Time.cst('2012-07-21 19:00') ],
|
|
67
|
-
[ atlas, [], pumas, Time.cst('2012-07-21 21:00') ],
|
|
68
|
-
[ toluca, [], chivas, Time.cst('2012-07-22 12:00') ],
|
|
69
|
-
[ atlante, [], pachuca, Time.cst('2012-07-22 18:00') ]]
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
games_j2 = [
|
|
73
|
-
[ monarcas, [], monterrey, Time.cst('2012-07-27 19:30') ],
|
|
74
|
-
[ leon, [], tijuana, Time.cst('2012-07-27 21:30') ],
|
|
75
|
-
[ america, [], jaguares, Time.cst('2012-07-28 17:00') ],
|
|
76
|
-
[ pachuca, [], atlas, Time.cst('2012-07-28 19:00') ],
|
|
77
|
-
[ tigres, [], atlante, Time.cst('2012-07-28 19:00') ],
|
|
78
|
-
[ sanluis, [], cruzazul, Time.cst('2012-07-28 21:00') ],
|
|
79
|
-
[ puebla, [], toluca, Time.cst('2012-07-29 12:00') ],
|
|
80
|
-
[ pumas, [], queretaro, Time.cst('2012-07-29 12:00') ],
|
|
81
|
-
[ chivas, [], slaguna, Time.cst('2012-07-29 17:00')]]
|
|
82
|
-
|
|
83
|
-
games_j3 = [
|
|
84
|
-
[ slaguna, [], puebla, Time.cst('2012-08-03 19:00') ],
|
|
85
|
-
[ tijuana, [], pumas, Time.cst('2012-08-03 19:30') ],
|
|
86
|
-
[ monarcas, [], sanluis, Time.cst('2012-08-03 21:30') ],
|
|
87
|
-
[ cruzazul, [], chivas, Time.cst('2012-08-04 17:00') ],
|
|
88
|
-
[ queretaro, [], pachuca, Time.cst('2012-08-04 17:00') ],
|
|
89
|
-
[ monterrey, [], jaguares, Time.cst('2012-08-04 19:00') ],
|
|
90
|
-
[ atlas, [], tigres, Time.cst('2012-08-04 21:00') ],
|
|
91
|
-
[ toluca, [], leon, Time.cst('2012-08-05 12:00') ],
|
|
92
|
-
[ atlante, [], america, Time.cst('2012-08-05 18:00') ]]
|
|
93
|
-
|
|
94
|
-
games_j4 = [
|
|
95
|
-
[ jaguares, [], atlante, Time.cst('2012-08-10 19:30') ],
|
|
96
|
-
[ leon, [], slaguna, Time.cst('2012-08-10 21:30') ],
|
|
97
|
-
[ america, [], atlas, Time.cst('2012-08-11 17:00') ],
|
|
98
|
-
[ pachuca, [], tijuana, Time.cst('2012-08-11 19:00') ],
|
|
99
|
-
[ tigres, [], queretaro, Time.cst('2012-08-11 19:00') ],
|
|
100
|
-
[ sanluis, [], monterrey, Time.cst('2012-08-11 21:00') ],
|
|
101
|
-
[ puebla, [], cruzazul, Time.cst('2012-08-12 12:00') ],
|
|
102
|
-
[ pumas, [], toluca, Time.cst('2012-08-12 12:00') ],
|
|
103
|
-
[ chivas, [], monarcas, Time.cst('2012-08-12 17:00') ]]
|
|
104
|
-
|
|
105
|
-
games_j5 = [
|
|
106
|
-
[ tijuana, [], tigres, Time.cst('2012-08-17 19:30') ],
|
|
107
|
-
[ monarcas, [], puebla, Time.cst('2012-08-17 21:30') ],
|
|
108
|
-
[ cruzazul, [], leon, Time.cst('2012-08-17 21:30') ],
|
|
109
|
-
[ queretaro, [], america, Time.cst('2012-08-18 17:00') ],
|
|
110
|
-
[ slaguna, [], pumas, Time.cst('2012-08-18 19:00') ],
|
|
111
|
-
[ monterrey, [], atlante, Time.cst('2012-08-18 19:00') ],
|
|
112
|
-
[ sanluis, [], chivas, Time.cst('2012-08-18 21:00') ],
|
|
113
|
-
[ atlas, [], jaguares, Time.cst('2012-08-18 21:00') ],
|
|
114
|
-
[ toluca, [], pachuca, Time.cst('2012-08-19 12:00') ]]
|
|
115
|
-
|
|
116
|
-
games_j6 = [
|
|
117
|
-
[ jaguares, [], queretaro, Time.cst('2012-08-24 19:30') ],
|
|
118
|
-
[ leon, [], monarcas, Time.cst('2012-08-24 21:30') ],
|
|
119
|
-
[ america, [], tijuana, Time.cst('2012-08-25 17:00') ],
|
|
120
|
-
[ pachuca, [], slaguna, Time.cst('2012-08-25 19:00') ],
|
|
121
|
-
[ tigres, [], toluca, Time.cst('2012-08-25 19:00') ],
|
|
122
|
-
[ puebla, [], sanluis, Time.cst('2012-08-26 12:00') ],
|
|
123
|
-
[ pumas, [], cruzazul, Time.cst('2012-08-26 12:00') ],
|
|
124
|
-
[ chivas, [], monterrey, Time.cst('2012-08-26 17:00') ],
|
|
125
|
-
[ atlante, [], atlas, Time.cst('2012-08-26 18:00') ]]
|
|
126
|
-
|
|
127
|
-
games_j7 = [
|
|
128
|
-
[ tijuana, [], jaguares, Time.cst('2012-08-31 19:30') ],
|
|
129
|
-
[ monarcas, [], pumas, Time.cst('2012-08-31 21:30') ],
|
|
130
|
-
[ cruzazul, [], pachuca, Time.cst('2012-09-01 17:00') ],
|
|
131
|
-
[ queretaro, [], atlante, Time.cst('2012-09-01 17:00') ],
|
|
132
|
-
[ slaguna, [], tigres, Time.cst('2012-09-01 19:00') ],
|
|
133
|
-
[ monterrey, [], atlas, Time.cst('2012-09-01 19:00') ],
|
|
134
|
-
[ sanluis, [], leon, Time.cst('2012-09-01 21:00') ],
|
|
135
|
-
[ toluca, [], america, Time.cst('2012-09-02 12:00') ],
|
|
136
|
-
[ chivas, [], puebla, Time.cst('2012-09-02 17:00') ]]
|
|
137
|
-
|
|
138
|
-
games_j8 = [
|
|
139
|
-
[ jaguares, [], toluca, Time.cst('2012-09-14 19:30') ],
|
|
140
|
-
[ pachuca, [], monarcas, Time.cst('2012-09-14 19:30') ],
|
|
141
|
-
[ leon, [], chivas, Time.cst('2012-09-14 21:30') ],
|
|
142
|
-
[ america, [], slaguna, Time.cst('2012-09-15 17:00') ],
|
|
143
|
-
[ tigres, [], cruzazul, Time.cst('2012-09-15 19:00') ],
|
|
144
|
-
[ atlas, [], queretaro, Time.cst('2012-09-15 21:00') ],
|
|
145
|
-
[ puebla, [], monterrey, Time.cst('2012-09-16 12:00') ],
|
|
146
|
-
[ pumas, [], sanluis, Time.cst('2012-09-16 12:00') ],
|
|
147
|
-
[ atlante, [], tijuana, Time.cst('2012-09-16 18:00') ]]
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
Game.create_from_ary!( games_j1, j1 )
|
|
151
|
-
Game.create_from_ary!( games_j2, j2 )
|
|
152
|
-
Game.create_from_ary!( games_j3, j3 )
|
|
153
|
-
Game.create_from_ary!( games_j4, j4 )
|
|
154
|
-
Game.create_from_ary!( games_j5, j5 )
|
|
155
|
-
Game.create_from_ary!( games_j6, j6 )
|
|
156
|
-
Game.create_from_ary!( games_j7, j7 )
|
|
157
|
-
Game.create_from_ary!( games_j8, j8 )
|
|
158
|
-
|
|
10
|
+
team_keys_mx = [
|
|
11
|
+
'america',
|
|
12
|
+
'atlante',
|
|
13
|
+
'atlas',
|
|
14
|
+
'chivas',
|
|
15
|
+
'cruzazul',
|
|
16
|
+
'jaguares',
|
|
17
|
+
'leon',
|
|
18
|
+
'monarcas',
|
|
19
|
+
'monterrey',
|
|
20
|
+
'pachuca',
|
|
21
|
+
'puebla',
|
|
22
|
+
'queretaro',
|
|
23
|
+
'sanluis',
|
|
24
|
+
'slaguna',
|
|
25
|
+
'tijuana',
|
|
26
|
+
'toluca',
|
|
27
|
+
'tigres',
|
|
28
|
+
'pumas'
|
|
29
|
+
]
|
|
30
|
+
|
|
31
|
+
mx.add_teams_from_ary!( team_keys_mx )
|
|
159
32
|
|
|
160
33
|
Prop.create!( key: 'db.mx.apertura.2012.version', value: '1' )
|
|
@@ -0,0 +1,106 @@
|
|
|
1
|
+
|
|
2
|
+
## todo: use Time.cst('2012-07-27 19:30') for timezone
|
|
3
|
+
## todo: add jornada for rounds as option
|
|
4
|
+
|
|
5
|
+
1 Runde / Jornada 1 // 20, 21 y 22 de julio
|
|
6
|
+
|
|
7
|
+
jaguares - tigres 2012-07-20 19:30
|
|
8
|
+
tijuana - puebla 2012-07-20 21:30
|
|
9
|
+
cruzazul - monarcas 2012-07-21 17:00
|
|
10
|
+
queretaro - leon 2012-07-21 17:00
|
|
11
|
+
slaguna - sanluis 2012-07-21 19:00
|
|
12
|
+
monterrey - america 2012-07-21 19:00
|
|
13
|
+
atlas - pumas 2012-07-21 21:00
|
|
14
|
+
toluca - chivas 2012-07-22 12:00
|
|
15
|
+
atlante - pachuca 2012-07-22 18:00
|
|
16
|
+
|
|
17
|
+
|
|
18
|
+
2 Runde / Jornada 2 // 27, 28 y 29 de julio
|
|
19
|
+
|
|
20
|
+
monarcas - monterrey 2012-07-27 19:30
|
|
21
|
+
leon - tijuana 2012-07-27 21:30
|
|
22
|
+
america - jaguares 2012-07-28 17:00
|
|
23
|
+
pachuca - atlas 2012-07-28 19:00
|
|
24
|
+
tigres - atlante 2012-07-28 19:00
|
|
25
|
+
sanluis - cruzazul 2012-07-28 21:00
|
|
26
|
+
puebla - toluca 2012-07-29 12:00
|
|
27
|
+
pumas - queretaro 2012-07-29 12:00
|
|
28
|
+
chivas - slaguna 2012-07-29 17:00
|
|
29
|
+
|
|
30
|
+
|
|
31
|
+
3 Runde / Jornada 3 // 3, 4, y 5 de agosto
|
|
32
|
+
|
|
33
|
+
slaguna - puebla 2012-08-03 19:00
|
|
34
|
+
tijuana - pumas 2012-08-03 19:30
|
|
35
|
+
monarcas - sanluis 2012-08-03 21:30
|
|
36
|
+
cruzazul - chivas 2012-08-04 17:00
|
|
37
|
+
queretaro - pachuca 2012-08-04 17:00
|
|
38
|
+
monterrey - jaguares 2012-08-04 19:00
|
|
39
|
+
atlas - tigres 2012-08-04 21:00
|
|
40
|
+
toluca - leon 2012-08-05 12:00
|
|
41
|
+
atlante - america 2012-08-05 18:00
|
|
42
|
+
|
|
43
|
+
|
|
44
|
+
4 Runde / Jornada 4 // 10, 11 y 12 de agosto
|
|
45
|
+
|
|
46
|
+
jaguares - atlante 2012-08-10 19:30
|
|
47
|
+
leon - slaguna 2012-08-10 21:30
|
|
48
|
+
america - atlas 2012-08-11 17:00
|
|
49
|
+
pachuca - tijuana 2012-08-11 19:00
|
|
50
|
+
tigres - queretaro 2012-08-11 19:00
|
|
51
|
+
sanluis - monterrey 2012-08-11 21:00
|
|
52
|
+
puebla - cruzazul 2012-08-12 12:00
|
|
53
|
+
pumas - toluca 2012-08-12 12:00
|
|
54
|
+
chivas - monarcas 2012-08-12 17:00
|
|
55
|
+
|
|
56
|
+
|
|
57
|
+
5 Runde / Jornada 5 // 17, 18 y 19 de agosto
|
|
58
|
+
|
|
59
|
+
tijuana - tigres 2012-08-17 19:30
|
|
60
|
+
monarcas - puebla 2012-08-17 21:30
|
|
61
|
+
cruzazul - leon 2012-08-17 21:30
|
|
62
|
+
queretaro - america 2012-08-18 17:00
|
|
63
|
+
slaguna - pumas 2012-08-18 19:00
|
|
64
|
+
monterrey - atlante 2012-08-18 19:00
|
|
65
|
+
sanluis - chivas 2012-08-18 21:00
|
|
66
|
+
atlas - jaguares 2012-08-18 21:00
|
|
67
|
+
toluca - pachuca 2012-08-19 12:00
|
|
68
|
+
|
|
69
|
+
|
|
70
|
+
6 Runde / Jornada 6 // 24, 25 y 26 de agosto
|
|
71
|
+
|
|
72
|
+
jaguares - queretaro 2012-08-24 19:30
|
|
73
|
+
leon - monarcas 2012-08-24 21:30
|
|
74
|
+
america - tijuana 2012-08-25 17:00
|
|
75
|
+
pachuca - slaguna 2012-08-25 19:00
|
|
76
|
+
tigres - toluca 2012-08-25 19:00
|
|
77
|
+
puebla - sanluis 2012-08-26 12:00
|
|
78
|
+
pumas - cruzazul 2012-08-26 12:00
|
|
79
|
+
chivas - monterrey 2012-08-26 17:00
|
|
80
|
+
atlante - atlas 2012-08-26 18:00
|
|
81
|
+
|
|
82
|
+
|
|
83
|
+
7 Runde / Jornada 7 // 31 de agosto, 1 y 2 de septiembre
|
|
84
|
+
|
|
85
|
+
tijuana - jaguares 2012-08-31 19:30
|
|
86
|
+
monarcas - pumas 2012-08-31 21:30
|
|
87
|
+
cruzazul - pachuca 2012-09-01 17:00
|
|
88
|
+
queretaro - atlante 2012-09-01 17:00
|
|
89
|
+
slaguna - tigres 2012-09-01 19:00
|
|
90
|
+
monterrey - atlas 2012-09-01 19:00
|
|
91
|
+
sanluis - leon 2012-09-01 21:00
|
|
92
|
+
toluca - america 2012-09-02 12:00
|
|
93
|
+
chivas - puebla 2012-09-02 17:00
|
|
94
|
+
|
|
95
|
+
|
|
96
|
+
8 Runde / Jornada 8 // 14, 15 y 16 de septiembre
|
|
97
|
+
|
|
98
|
+
jaguares - toluca 2012-09-14 19:30
|
|
99
|
+
pachuca - monarcas 2012-09-14 19:30
|
|
100
|
+
leon - chivas 2012-09-14 21:30
|
|
101
|
+
america - slaguna 2012-09-15 17:00
|
|
102
|
+
tigres - cruzazul 2012-09-15 19:00
|
|
103
|
+
atlas - queretaro 2012-09-15 21:00
|
|
104
|
+
puebla - monterrey 2012-09-16 12:00
|
|
105
|
+
pumas - sanluis 2012-09-16 12:00
|
|
106
|
+
atlante - tijuana 2012-09-16 18:00
|
data/db/ro/l1_2012_13.rb
CHANGED
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
## todo: check key dinamo or rapid may be already taken!!
|
|
13
13
|
|
|
14
14
|
|
|
15
|
-
l1 = Event.create!( key: '
|
|
15
|
+
l1 = Event.create!( key: 'ro.2012/13',
|
|
16
16
|
title: 'Romania Liga 1 2012/13',
|
|
17
17
|
start_at: Time.eet('2012-07-01 00:00') )
|
|
18
18
|
|
|
@@ -56,6 +56,8 @@ l1.teams << u_cluj
|
|
|
56
56
|
l1.teams << viitorul_constanta
|
|
57
57
|
|
|
58
58
|
|
|
59
|
+
### fix/todo: move to plain text fixtures - start here
|
|
60
|
+
|
|
59
61
|
l101 = Round.create!( event: l1, pos: 1, title: '1. Runda', start_at: Time.eet('2012-07-20') )
|
|
60
62
|
l102 = Round.create!( event: l1, pos: 2, title: '2. Runda', start_at: Time.eet('2012-07-28') )
|
|
61
63
|
l103 = Round.create!( event: l1, pos: 3, title: '3. Runda', start_at: Time.eet('2012-08-03') )
|
|
@@ -131,4 +133,4 @@ Game.create_from_ary!( games_l104, l104 )
|
|
|
131
133
|
Game.create_from_ary!( games_l105, l105 )
|
|
132
134
|
|
|
133
135
|
|
|
134
|
-
Prop.create!( key: 'db.ro.
|
|
136
|
+
Prop.create!( key: 'db.ro.2012/13.version', value: '1' )
|
data/lib/sportdb/schema.rb
CHANGED
|
@@ -56,6 +56,8 @@ create_table :rounds do |t|
|
|
|
56
56
|
t.string :title, :null => false
|
|
57
57
|
t.string :title2
|
|
58
58
|
t.integer :pos, :null => false
|
|
59
|
+
## todo/fix: rename to knockout???
|
|
60
|
+
## add new table stage/stages for grouping rounds in group rounds and playoff rounds, for example???
|
|
59
61
|
t.boolean :playoff, :null => false, :default => false # "regular" season (group) games or post-season (playoff) knockouts (k.o's)
|
|
60
62
|
t.datetime :start_at, :null => false
|
|
61
63
|
t.datetime :end_at # todo: make it required e.g. :null => false
|
|
@@ -125,6 +127,33 @@ end
|
|
|
125
127
|
add_index :groups_teams, [:group_id,:team_id], :unique => true
|
|
126
128
|
add_index :groups_teams, :group_id
|
|
127
129
|
|
|
130
|
+
|
|
131
|
+
### todo: add models and some seed data
|
|
132
|
+
|
|
133
|
+
create_table :seasons do |t|
|
|
134
|
+
t.string :key, :null => false
|
|
135
|
+
t.string :title, :null => false # e.g. 2011/12, 2012/13 ### what to do w/ 2012? for world cup etc?
|
|
136
|
+
t.timestamps
|
|
137
|
+
end
|
|
138
|
+
|
|
139
|
+
create_table :leagues do |t|
|
|
140
|
+
t.string :key, :null => false
|
|
141
|
+
t.string :title, :null => false # e.g. Premier League, Deutsche Bundesliga, World Cup, Champions League, etc.
|
|
142
|
+
t.references :country, :null => false ### todo: create "virtual" country for international leagues e.g. use int? or world (ww?)/europe (eu)/etc. similar? already taken??
|
|
143
|
+
t.boolean :club, :null => false, :default => false # club teams or national teams?
|
|
144
|
+
## todo: add t.boolean :national flag? for national teams?
|
|
145
|
+
t.boolean :international, :null => false, :default => false # national league or international?
|
|
146
|
+
## t.boolean :cup ## or regular season league??
|
|
147
|
+
t.timestamps
|
|
148
|
+
end
|
|
149
|
+
|
|
150
|
+
create_table :badges do |t|
|
|
151
|
+
t.references :team, :null => false
|
|
152
|
+
t.references :event, :null => false # event => league+season
|
|
153
|
+
t.string :title, :null => false # Meister, Weltmeister, Europameister, Cupsieger, Vize-Meister, Aufsteiger, Absteiger, etc.
|
|
154
|
+
t.timestamps
|
|
155
|
+
end
|
|
156
|
+
|
|
128
157
|
end # block Schema.define
|
|
129
158
|
|
|
130
159
|
|
data/lib/sportdb/version.rb
CHANGED
metadata
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: sportdb
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
hash:
|
|
4
|
+
hash: 5
|
|
5
5
|
prerelease:
|
|
6
6
|
segments:
|
|
7
7
|
- 0
|
|
8
8
|
- 4
|
|
9
|
-
-
|
|
10
|
-
version: 0.4.
|
|
9
|
+
- 5
|
|
10
|
+
version: 0.4.5
|
|
11
11
|
platform: ruby
|
|
12
12
|
authors:
|
|
13
13
|
- Gerald Bauer
|
|
@@ -15,7 +15,7 @@ autorequire:
|
|
|
15
15
|
bindir: bin
|
|
16
16
|
cert_chain: []
|
|
17
17
|
|
|
18
|
-
date: 2012-10-
|
|
18
|
+
date: 2012-10-30 00:00:00 Z
|
|
19
19
|
dependencies:
|
|
20
20
|
- !ruby/object:Gem::Dependency
|
|
21
21
|
name: activerecord
|
|
@@ -75,6 +75,7 @@ extra_rdoc_files:
|
|
|
75
75
|
- db/at/2012_13/cup.txt
|
|
76
76
|
- db/de/2012_13/bl.txt
|
|
77
77
|
- db/en/2012_13/pl.txt
|
|
78
|
+
- db/mx/apertura_2012.txt
|
|
78
79
|
- db/world/quali_2012_13_c.txt
|
|
79
80
|
- db/world/quali_2012_13_i.txt
|
|
80
81
|
files:
|
|
@@ -110,6 +111,7 @@ files:
|
|
|
110
111
|
- db/euro/2012.rb
|
|
111
112
|
- db/euro/teams.rb
|
|
112
113
|
- db/mx/apertura_2012.rb
|
|
114
|
+
- db/mx/apertura_2012.txt
|
|
113
115
|
- db/mx/teams.rb
|
|
114
116
|
- db/nfl/teams.rb
|
|
115
117
|
- db/nhl/teams.rb
|