sportdb 0.4.5 → 0.5.0
Sign up to get free protection for your applications and to get access to all the features.
- data/Manifest.txt +12 -0
- data/db/at/2011_12/bl.rb +3 -1
- data/db/at/2011_12/cup.rb +3 -1
- data/db/at/2012_13/bl.rb +3 -1
- data/db/at/2012_13/cup.rb +3 -1
- data/db/at/2012_13/cup.txt +5 -6
- data/db/at/badges.rb +22 -0
- data/db/cl/2011_12/cl.rb +3 -1
- data/db/cl/2011_12/el.rb +3 -1
- data/db/cl/2012_13/cl.rb +3 -1
- data/db/cl/badges.rb +68 -0
- data/db/cl/teams.rb +0 -1
- data/db/countries.rb +39 -5
- data/db/de/2012_13/bl.rb +3 -1
- data/db/en/2012_13/pl.rb +3 -1
- data/db/euro/2008.rb +60 -0
- data/db/euro/2008.txt +109 -0
- data/db/euro/2012.rb +3 -1
- data/db/euro/teams.rb +32 -15
- data/db/leagues.rb +25 -0
- data/db/mx/apertura_2012.rb +3 -1
- data/db/ro/l1_2012_13.rb +3 -1
- data/db/seasons.rb +21 -0
- data/db/world/2010.rb +189 -0
- data/db/world/2010.txt +208 -0
- data/db/world/quali_2012_13.rb +3 -1
- data/db/world/teams.rb +84 -0
- data/lib/sportdb/cli/runner.rb +4 -2
- data/lib/sportdb/models/badge.rb +12 -0
- data/lib/sportdb/models/country.rb +3 -5
- data/lib/sportdb/models/event.rb +3 -0
- data/lib/sportdb/models/event_team.rb +3 -5
- data/lib/sportdb/models/game.rb +3 -6
- data/lib/sportdb/models/group_team.rb +3 -5
- data/lib/sportdb/models/league.rb +17 -0
- data/lib/sportdb/models/prop.rb +3 -5
- data/lib/sportdb/models/round.rb +2 -4
- data/lib/sportdb/models/season.rb +11 -0
- data/lib/sportdb/models/team.rb +6 -6
- data/lib/sportdb/schema.rb +11 -5
- data/lib/sportdb/version.rb +1 -1
- data/lib/sportdb.rb +7 -0
- metadata +18 -4
data/Manifest.txt
CHANGED
@@ -13,10 +13,12 @@ db/at/2012_13/bl_fixtures.rb
|
|
13
13
|
db/at/2012_13/cup.rb
|
14
14
|
db/at/2012_13/cup.txt
|
15
15
|
db/at/2012_13/cup_fixtures.rb
|
16
|
+
db/at/badges.rb
|
16
17
|
db/at/teams.rb
|
17
18
|
db/cl/2011_12/cl.rb
|
18
19
|
db/cl/2011_12/el.rb
|
19
20
|
db/cl/2012_13/cl.rb
|
21
|
+
db/cl/badges.rb
|
20
22
|
db/cl/teams.rb
|
21
23
|
db/countries.rb
|
22
24
|
db/de/2012_13/bl.rb
|
@@ -27,8 +29,11 @@ db/en/2012_13/pl.rb
|
|
27
29
|
db/en/2012_13/pl.txt
|
28
30
|
db/en/2012_13/pl_fixtures.rb
|
29
31
|
db/en/teams.rb
|
32
|
+
db/euro/2008.rb
|
33
|
+
db/euro/2008.txt
|
30
34
|
db/euro/2012.rb
|
31
35
|
db/euro/teams.rb
|
36
|
+
db/leagues.rb
|
32
37
|
db/mx/apertura_2012.rb
|
33
38
|
db/mx/apertura_2012.txt
|
34
39
|
db/mx/teams.rb
|
@@ -36,24 +41,31 @@ db/nfl/teams.rb
|
|
36
41
|
db/nhl/teams.rb
|
37
42
|
db/ro/l1_2012_13.rb
|
38
43
|
db/ro/teams.rb
|
44
|
+
db/seasons.rb
|
45
|
+
db/world/2010.rb
|
46
|
+
db/world/2010.txt
|
39
47
|
db/world/quali_2012_13.rb
|
40
48
|
db/world/quali_2012_13_c.rb
|
41
49
|
db/world/quali_2012_13_c.txt
|
42
50
|
db/world/quali_2012_13_fixtures.rb
|
43
51
|
db/world/quali_2012_13_i.rb
|
44
52
|
db/world/quali_2012_13_i.txt
|
53
|
+
db/world/teams.rb
|
45
54
|
lib/sportdb.rb
|
46
55
|
lib/sportdb/cli/opts.rb
|
47
56
|
lib/sportdb/cli/runner.rb
|
48
57
|
lib/sportdb/loader.rb
|
58
|
+
lib/sportdb/models/badge.rb
|
49
59
|
lib/sportdb/models/country.rb
|
50
60
|
lib/sportdb/models/event.rb
|
51
61
|
lib/sportdb/models/event_team.rb
|
52
62
|
lib/sportdb/models/game.rb
|
53
63
|
lib/sportdb/models/group.rb
|
54
64
|
lib/sportdb/models/group_team.rb
|
65
|
+
lib/sportdb/models/league.rb
|
55
66
|
lib/sportdb/models/prop.rb
|
56
67
|
lib/sportdb/models/round.rb
|
68
|
+
lib/sportdb/models/season.rb
|
57
69
|
lib/sportdb/models/team.rb
|
58
70
|
lib/sportdb/reader.rb
|
59
71
|
lib/sportdb/schema.rb
|
data/db/at/2011_12/bl.rb
CHANGED
@@ -10,7 +10,9 @@
|
|
10
10
|
|
11
11
|
bl = Event.create!( key: 'at.2011/12',
|
12
12
|
title: 'Österr. Bundesliga 2011/12',
|
13
|
-
start_at: Time.cet('2012-04-07 00:00')
|
13
|
+
start_at: Time.cet('2012-04-07 00:00'),
|
14
|
+
league: League.find_by_key!('at'),
|
15
|
+
season: Season.find_by_key!('2011/12'))
|
14
16
|
|
15
17
|
team_keys_bl = [
|
16
18
|
'salzburg',
|
data/db/at/2011_12/cup.rb
CHANGED
@@ -8,7 +8,9 @@
|
|
8
8
|
|
9
9
|
ofb = Event.create!( key: 'at.cup.2011/12',
|
10
10
|
title: 'ÖFB Cup 2011/12',
|
11
|
-
start_at: Time.cet( '2011-10-10 17:00' )
|
11
|
+
start_at: Time.cet( '2011-10-10 17:00' ),
|
12
|
+
league: League.find_by_key!('at.cup'),
|
13
|
+
season: Season.find_by_key!('2011/12'))
|
12
14
|
|
13
15
|
|
14
16
|
sturm = Team.find_by_key!( 'sturm' )
|
data/db/at/2012_13/bl.rb
CHANGED
@@ -10,7 +10,9 @@
|
|
10
10
|
|
11
11
|
bl = Event.create!( key: 'at.2012/13',
|
12
12
|
title: 'Österr. Bundesliga 2012/13',
|
13
|
-
start_at: Time.cet('2012-07-21 00:00')
|
13
|
+
start_at: Time.cet('2012-07-21 00:00'),
|
14
|
+
league: League.find_by_key!('at'),
|
15
|
+
season: Season.find_by_key!('2012/13'))
|
14
16
|
|
15
17
|
## 10 Bundeliga Teams
|
16
18
|
|
data/db/at/2012_13/cup.rb
CHANGED
@@ -5,7 +5,9 @@
|
|
5
5
|
|
6
6
|
cup = Event.create!( key: 'at.cup.2012/13',
|
7
7
|
title: 'ÖFB Cup 2012/13',
|
8
|
-
start_at: Time.cet( '2012-07-13 00:00' )
|
8
|
+
start_at: Time.cet( '2012-07-13 00:00' ),
|
9
|
+
league: League.find_by_key!('at.cup'),
|
10
|
+
season: Season.find_by_key!('2012/13'))
|
9
11
|
|
10
12
|
|
11
13
|
## 10 Bundeliga Teams
|
data/db/at/2012_13/cup.txt
CHANGED
@@ -63,17 +63,16 @@ gak 0:6 wac 2012-09-26 20:20
|
|
63
63
|
|
64
64
|
3. Runde / Achtelfinale - Di+Mi 30.+31. Okt 2012
|
65
65
|
|
66
|
-
lask
|
66
|
+
lask 7:6 mattersburg 2012-10-30 15:00
|
67
67
|
rapid - altach 2012-10-30 15:00
|
68
|
-
viktoria
|
69
|
-
sturm
|
70
|
-
pasching
|
71
|
-
lustenau
|
68
|
+
viktoria 0:1 ried 2012-10-30 15:00
|
69
|
+
sturm 1:2 innsbruck 2012-10-30 15:00
|
70
|
+
pasching 2:1 austriak 2012-10-30 15:00
|
71
|
+
lustenau 1:2 wac 2012-10-30 15:00
|
72
72
|
kalsdorf - salzburg 2012-10-30 15:00
|
73
73
|
vsv - austria 2012-10-30 15:00
|
74
74
|
|
75
75
|
|
76
|
-
|
77
76
|
4. Runde / Viertelfinale - Di+Mi 16.+17. April 2013
|
78
77
|
|
79
78
|
|
data/db/at/badges.rb
ADDED
@@ -0,0 +1,22 @@
|
|
1
|
+
# encoding: utf-8
|
2
|
+
|
3
|
+
salzburg = Team.find_by_key!('salzburg')
|
4
|
+
wac = Team.find_by_key!('wac')
|
5
|
+
|
6
|
+
Badge.create!( team: salzburg,
|
7
|
+
title: 'Meister',
|
8
|
+
league: League.find_by_key!('at'),
|
9
|
+
season: Season.find_by_key!('2011/12') )
|
10
|
+
|
11
|
+
Badge.create!( team: salzburg,
|
12
|
+
title: 'Cupsieger',
|
13
|
+
league: League.find_by_key!('at.cup'),
|
14
|
+
season: Season.find_by_key!('2011/12') )
|
15
|
+
|
16
|
+
Badge.create!( team: wac,
|
17
|
+
title: 'Aufsteiger',
|
18
|
+
league: League.find_by_key!('at'),
|
19
|
+
season: Season.find_by_key!('2011/12') )
|
20
|
+
|
21
|
+
|
22
|
+
Prop.create!( key: 'db.at.badges.version', value: '1' )
|
data/db/cl/2011_12/cl.rb
CHANGED
@@ -7,7 +7,9 @@
|
|
7
7
|
|
8
8
|
cl = Event.create!( key: 'cl.2011/12',
|
9
9
|
title: 'Champions League 2011/12',
|
10
|
-
start_at: Time.cet( '2011-10-10 17:00' )
|
10
|
+
start_at: Time.cet( '2011-10-10 17:00' ),
|
11
|
+
league: League.find_by_key!('cl'),
|
12
|
+
season: Season.find_by_key!('2011/12'))
|
11
13
|
|
12
14
|
|
13
15
|
inter = Team.find_by_key!( 'inter' )
|
data/db/cl/2011_12/el.rb
CHANGED
@@ -7,7 +7,9 @@
|
|
7
7
|
|
8
8
|
el = Event.create!( key: 'el.2011/12',
|
9
9
|
title: 'Europa League 2011/12',
|
10
|
-
start_at: Time.cet( '2011-10-10 17:00' )
|
10
|
+
start_at: Time.cet( '2011-10-10 17:00' ),
|
11
|
+
league: League.find_by_key!('el'),
|
12
|
+
season: Season.find_by_key!('2011/12'))
|
11
13
|
|
12
14
|
az = Team.find_by_key!( 'az' )
|
13
15
|
valencia = Team.find_by_key!( 'valencia' )
|
data/db/cl/2012_13/cl.rb
CHANGED
@@ -7,7 +7,9 @@
|
|
7
7
|
|
8
8
|
cl = Event.create!( key: 'cl.2012/13',
|
9
9
|
title: 'Champions League 2012/13',
|
10
|
-
start_at: Time.cet( '2012-09-18 18:30' )
|
10
|
+
start_at: Time.cet( '2012-09-18 18:30' ),
|
11
|
+
league: League.find_by_key!('cl'),
|
12
|
+
season: Season.find_by_key!('2012/13'))
|
11
13
|
|
12
14
|
porto = Team.find_by_key!( 'porto' )
|
13
15
|
kiew = Team.find_by_key!( 'kiew' )
|
data/db/cl/badges.rb
ADDED
@@ -0,0 +1,68 @@
|
|
1
|
+
# encoding: utf-8
|
2
|
+
|
3
|
+
chelsea = Team.find_by_key!( 'chelsea' )
|
4
|
+
barcelona = Team.find_by_key!( 'barcelona' )
|
5
|
+
inter = Team.find_by_key!( 'inter' )
|
6
|
+
manunited = Team.find_by_key!( 'manunited' )
|
7
|
+
|
8
|
+
atletico = Team.find_by_key!( 'atletico' )
|
9
|
+
porto = Team.find_by_key!( 'porto' )
|
10
|
+
donezk = Team.find_by_key!( 'donezk' )
|
11
|
+
zenit = Team.find_by_key!( 'zenit' )
|
12
|
+
|
13
|
+
|
14
|
+
Badge.create!( team: chelsea,
|
15
|
+
title: 'Winner', # use Champion??
|
16
|
+
league: League.find_by_key!('cl'),
|
17
|
+
season: Season.find_by_key!('2011/12') )
|
18
|
+
|
19
|
+
Badge.create!( team: barcelona,
|
20
|
+
title: 'Winner',
|
21
|
+
league: League.find_by_key!('cl'),
|
22
|
+
season: Season.find_by_key!('2010/11') )
|
23
|
+
|
24
|
+
Badge.create!( team: inter,
|
25
|
+
title: 'Winner',
|
26
|
+
league: League.find_by_key!('cl'),
|
27
|
+
season: Season.find_by_key!('2009/10') )
|
28
|
+
|
29
|
+
Badge.create!( team: barcelona,
|
30
|
+
title: 'Winner',
|
31
|
+
league: League.find_by_key!('cl'),
|
32
|
+
season: Season.find_by_key!('2008/09') )
|
33
|
+
|
34
|
+
Badge.create!( team: manunited,
|
35
|
+
title: 'Winner',
|
36
|
+
league: League.find_by_key!('cl'),
|
37
|
+
season: Season.find_by_key!('2007/08') )
|
38
|
+
|
39
|
+
|
40
|
+
Badge.create!( team: atletico,
|
41
|
+
title: 'Winner',
|
42
|
+
league: League.find_by_key!('el'),
|
43
|
+
season: Season.find_by_key!('2011/12') )
|
44
|
+
|
45
|
+
Badge.create!( team: porto,
|
46
|
+
title: 'Winner',
|
47
|
+
league: League.find_by_key!('el'),
|
48
|
+
season: Season.find_by_key!('2010/11') )
|
49
|
+
|
50
|
+
Badge.create!( team: atletico,
|
51
|
+
title: 'Winner',
|
52
|
+
league: League.find_by_key!('el'),
|
53
|
+
season: Season.find_by_key!('2009/10') )
|
54
|
+
|
55
|
+
Badge.create!( team: donezk,
|
56
|
+
title: 'Winner',
|
57
|
+
league: League.find_by_key!('el'),
|
58
|
+
season: Season.find_by_key!('2008/09') )
|
59
|
+
|
60
|
+
Badge.create!( team: zenit,
|
61
|
+
title: 'Winner',
|
62
|
+
league: League.find_by_key!('el'),
|
63
|
+
season: Season.find_by_key!('2007/08') )
|
64
|
+
|
65
|
+
|
66
|
+
|
67
|
+
Prop.create!( key: 'db.cl.badges.version', value: '1' )
|
68
|
+
Prop.create!( key: 'db.el.badges.version', value: '1' )
|
data/db/cl/teams.rb
CHANGED
data/db/countries.rb
CHANGED
@@ -42,25 +42,59 @@ countries = [
|
|
42
42
|
[ 'ie', 'Irland', 'IRL' ],
|
43
43
|
[ 'it', 'Italien', 'ITA' ],
|
44
44
|
[ 'kz', 'Kasachstan', 'KAZ' ],
|
45
|
-
[ 'mt', 'Malta', 'MLT' ],
|
45
|
+
## [ 'mt', 'Malta', 'MLT' ],
|
46
46
|
[ 'nl', 'Niederlande', 'NED' ], # NB: ISO (NLD) <> FIFA (NED)
|
47
47
|
[ 'pl', 'Polen', 'POL' ],
|
48
48
|
[ 'pt', 'Portugal', 'POR' ], # NB: ISO (PRT) <> FIFA (POR)
|
49
49
|
[ 'ro', 'Rumänien', 'ROU' ],
|
50
|
+
[ 'rs', 'Serbien', 'SRB' ],
|
50
51
|
[ 'ru', 'Russland', 'RUS' ],
|
51
52
|
[ 'sc', 'Schottland', 'SCO' ], # NB: FIFA (SCO); not a valid iso country/internet domain - it's uk - what to use - anything better?
|
52
53
|
[ 'se', 'Schweden', 'SWE' ],
|
54
|
+
[ 'si', 'Slowenien', 'SVN' ],
|
55
|
+
[ 'sk', 'Slowakei', 'SVK' ],
|
53
56
|
[ 'tr', 'Türkei', 'TUR' ],
|
54
57
|
[ 'ua', 'Ukraine', 'UKR' ],
|
58
|
+
|
59
|
+
##############
|
60
|
+
## south america
|
55
61
|
|
62
|
+
[ 'ar', 'Argentinien', 'ARG' ],
|
63
|
+
[ 'br', 'Brasilien', 'BRA' ],
|
64
|
+
[ 'cl', 'Chile', 'CHI' ],
|
65
|
+
[ 'py', 'Paraguay', 'PAR' ],
|
66
|
+
[ 'uy', 'Uruguay', 'URU' ],
|
67
|
+
|
56
68
|
#####################
|
57
|
-
#### north/central
|
69
|
+
#### north/central america & caribbean islands
|
58
70
|
|
59
|
-
## [ 'ar', 'Argentinien', 'ARG' ],
|
60
|
-
## [ 'br', 'Brasilien', 'BRA' ],
|
61
71
|
[ 'ca', 'Kanada', 'CAN' ],
|
62
72
|
[ 'mx', 'Mexiko', 'MEX' ],
|
63
|
-
[ 'us', 'United States', 'USA' ]
|
73
|
+
[ 'us', 'United States', 'USA' ],
|
74
|
+
[ 'hn', 'Honduras', 'HON' ],
|
75
|
+
|
76
|
+
########################
|
77
|
+
## africa
|
78
|
+
|
79
|
+
[ 'dz', 'Algerien', 'ALG' ],
|
80
|
+
[ 'ci', 'Elfenbeinküste', 'CIV' ],
|
81
|
+
[ 'gh', 'Ghana', 'GHA' ],
|
82
|
+
[ 'cm', 'Kamerun', 'CMR' ],
|
83
|
+
[ 'ng', 'Nigeria', 'NGA' ],
|
84
|
+
[ 'za', 'Südafrika', 'RSA' ],
|
85
|
+
|
86
|
+
#############################
|
87
|
+
## asia w/ australia
|
88
|
+
|
89
|
+
[ 'au', 'Australien', 'AUS' ],
|
90
|
+
[ 'jp', 'Japan', 'JPN' ],
|
91
|
+
[ 'kp', 'Nordkorea', 'PRK' ],
|
92
|
+
[ 'kr', 'Südkorea', 'KOR' ],
|
93
|
+
|
94
|
+
###############################
|
95
|
+
## oceania
|
96
|
+
|
97
|
+
[ 'nz', 'Neuseeland', 'NZL' ]
|
64
98
|
]
|
65
99
|
|
66
100
|
|
data/db/de/2012_13/bl.rb
CHANGED
@@ -10,7 +10,9 @@
|
|
10
10
|
|
11
11
|
bl = Event.create!( key: 'de.2012/13',
|
12
12
|
title: 'Deutsche Bundesliga 2012/13',
|
13
|
-
start_at: Time.cet('2012-07-21 00:00')
|
13
|
+
start_at: Time.cet('2012-07-21 00:00'),
|
14
|
+
league: League.find_by_key!('de'),
|
15
|
+
season: Season.find_by_key!('2012/13') )
|
14
16
|
|
15
17
|
team_keys_bl = [
|
16
18
|
'bayern',
|
data/db/en/2012_13/pl.rb
CHANGED
@@ -9,7 +9,9 @@
|
|
9
9
|
|
10
10
|
pl = Event.create!( key: 'en.2012/13',
|
11
11
|
title: 'Premier League 2012/13',
|
12
|
-
start_at: Time.utc('2012-08-18 12:00')
|
12
|
+
start_at: Time.utc('2012-08-18 12:00'),
|
13
|
+
league: League.find_by_key!('en'),
|
14
|
+
season: Season.find_by_key!('2012/13'))
|
13
15
|
|
14
16
|
team_keys_pl = [
|
15
17
|
'chelsea',
|
data/db/euro/2008.rb
ADDED
@@ -0,0 +1,60 @@
|
|
1
|
+
# encoding: utf-8
|
2
|
+
|
3
|
+
# note: timezone for games (play_at) is *always* CET (central european time)
|
4
|
+
|
5
|
+
#########################################################
|
6
|
+
## Euro 2008 Austria-Switzerland (7 June - 29 June)
|
7
|
+
|
8
|
+
# see http://en.wikipedia.org/wiki/UEFA_Euro_2008
|
9
|
+
# or http://de.wikipedia.org/wiki/Fußball-Europameisterschaft_2008
|
10
|
+
|
11
|
+
|
12
|
+
## 16 teams
|
13
|
+
## 31 games
|
14
|
+
## 22 days
|
15
|
+
|
16
|
+
euro = Event.create!( key: 'euro.2008',
|
17
|
+
title: 'Euro 2008',
|
18
|
+
start_at: Time.cet( '2008-06-07 18:00' ),
|
19
|
+
league: League.find_by_key!('euro'),
|
20
|
+
season: Season.find_by_key!('2008'))
|
21
|
+
|
22
|
+
|
23
|
+
euro.add_teams_from_ary!([
|
24
|
+
'sui',
|
25
|
+
'aut',
|
26
|
+
'gre',
|
27
|
+
'ned',
|
28
|
+
'cro',
|
29
|
+
'ita',
|
30
|
+
'cze',
|
31
|
+
'swe',
|
32
|
+
'rou',
|
33
|
+
'ger',
|
34
|
+
'por',
|
35
|
+
'esp',
|
36
|
+
'pol',
|
37
|
+
'fra',
|
38
|
+
'tur',
|
39
|
+
'rus'
|
40
|
+
])
|
41
|
+
|
42
|
+
euroa = Group.create!( event: euro, pos: 1, title: 'Gruppe A' )
|
43
|
+
eurob = Group.create!( event: euro, pos: 2, title: 'Gruppe B' )
|
44
|
+
euroc = Group.create!( event: euro, pos: 3, title: 'Gruppe C' )
|
45
|
+
eurod = Group.create!( event: euro, pos: 4, title: 'Gruppe D' )
|
46
|
+
|
47
|
+
euroa.add_teams_from_ary!(['sui', 'cze', 'por', 'tur'])
|
48
|
+
|
49
|
+
eurob.add_teams_from_ary!(['aut', 'cro', 'ger', 'pol'])
|
50
|
+
|
51
|
+
euroc.add_teams_from_ary!(['ned', 'ita', 'rou', 'fra'])
|
52
|
+
|
53
|
+
eurod.add_teams_from_ary!(['gre', 'swe', 'esp', 'rus'])
|
54
|
+
|
55
|
+
|
56
|
+
Prop.create!( key: 'db.euro.2008.version', value: '1' )
|
57
|
+
|
58
|
+
|
59
|
+
|
60
|
+
|
data/db/euro/2008.txt
ADDED
@@ -0,0 +1,109 @@
|
|
1
|
+
#########################################################
|
2
|
+
## Euro 2008 Austria-Switzerland (7 June - 29 June)
|
3
|
+
|
4
|
+
|
5
|
+
### todo/fix: windows only error??
|
6
|
+
## sportdb/reader.rb:261:in `=~': incompatible encoding regexp match (UTF-8 regexp with
|
7
|
+
## CP850 string) (Encoding::CompatibilityError)
|
8
|
+
|
9
|
+
|
10
|
+
##################
|
11
|
+
## Gruppenphase / Group stage
|
12
|
+
|
13
|
+
#########
|
14
|
+
# Gruppe A
|
15
|
+
|
16
|
+
1. Spieltag
|
17
|
+
|
18
|
+
2008-06-07 18:00 Schweiz - Tschechien 0:1
|
19
|
+
2008-06-07 20:45 Portugal - Türkei 2:0
|
20
|
+
|
21
|
+
5. Spieltag
|
22
|
+
|
23
|
+
2008-06-11 18:00 Tschechien - Portugal 1:3
|
24
|
+
2008-06-11 20:45 Schweiz - Türkei 1:2
|
25
|
+
|
26
|
+
9. Spieltag
|
27
|
+
|
28
|
+
2008-06-15 20:45 Schweiz - Portugal 2:0
|
29
|
+
2008-06-15 20:45 Türkei - Tschechien 3:2
|
30
|
+
|
31
|
+
|
32
|
+
#######
|
33
|
+
# Gruppe B
|
34
|
+
|
35
|
+
2. Spieltag
|
36
|
+
|
37
|
+
2008-06-08 18:00 Österreich - Kroatien 0:1
|
38
|
+
2008-06-08 20:45 Deutschland - Polen 2:0
|
39
|
+
|
40
|
+
6. Spieltag
|
41
|
+
|
42
|
+
2008-06-12 18:00 Kroatien - Deutschland 2:1
|
43
|
+
2008-06-12 20:45 Österreich - Polen 1:1
|
44
|
+
|
45
|
+
10. Spieltag
|
46
|
+
|
47
|
+
2008-06-16 20:45 Polen - Kroatien 0:1
|
48
|
+
2008-06-16 20:45 Österreich - Deutschland 0:1
|
49
|
+
|
50
|
+
|
51
|
+
###########
|
52
|
+
# Gruppe C
|
53
|
+
|
54
|
+
3. Spieltag
|
55
|
+
|
56
|
+
2008-06-09 18:00 Rumänien - Frankreich 0:0
|
57
|
+
2008-06-09 20:45 Niederlande - Italien 3:0
|
58
|
+
|
59
|
+
7. Spieltag
|
60
|
+
|
61
|
+
2008-06-13 18:00 Italien - Rumänien 1:1
|
62
|
+
2008-06-13 20:45 Niederlande - Frankreich 4:1
|
63
|
+
|
64
|
+
11. Spieltag
|
65
|
+
|
66
|
+
2008-06-17 20:45 Niederlande - Rumänien 2:0
|
67
|
+
2008-06-17 20:45 Frankreich - Italien 0:2
|
68
|
+
|
69
|
+
|
70
|
+
############
|
71
|
+
# Gruppe D
|
72
|
+
|
73
|
+
4. Spieltag
|
74
|
+
|
75
|
+
2008-06-10 18:00 Spanien - Russland 4:1
|
76
|
+
2008-06-10 20:45 Griechenland - Schweden 0:2
|
77
|
+
|
78
|
+
8. Spieltag
|
79
|
+
|
80
|
+
2008-06-14 18:00 Schweden - Spanien 1:2
|
81
|
+
2008-06-14 20:45 Griechenland - Russland 0:1
|
82
|
+
|
83
|
+
12. Spieltag
|
84
|
+
|
85
|
+
2008-06-18 20:45 Griechenland - Spanien 1:2
|
86
|
+
2008-06-18 20:45 Russland - Schweden 2:0
|
87
|
+
|
88
|
+
|
89
|
+
#################
|
90
|
+
# Finalrunde / Knockout phase
|
91
|
+
|
92
|
+
|
93
|
+
13. Runde // Viertelfinale / Quarter-finals
|
94
|
+
|
95
|
+
Do 2008-06-19 20:45 Portugal - Deutschland 2:3
|
96
|
+
Fr 2008-06-20 20:45 Kroatien - Türkei 1:3iE 1:1nV 0:0
|
97
|
+
Sa 2008-06-21 20:45 Niederlande - Russland 1:3nV 1:1
|
98
|
+
So 2008-06-22 20:45 Spanien - Italien 4:2iE 0:0nV 0:0
|
99
|
+
|
100
|
+
14. Runde // Halbfinale / Semi-finals
|
101
|
+
|
102
|
+
Mi 2008-06-25 20:45 Deutschland - Türkei 3:2
|
103
|
+
Do 2008-06-26 20:45 Russland - Spanien 0:3
|
104
|
+
|
105
|
+
|
106
|
+
15. Runde // Finale / Final
|
107
|
+
|
108
|
+
So 2008-06-29 20:45 Deutschland - Spanien 0:1
|
109
|
+
|
data/db/euro/2012.rb
CHANGED
@@ -11,7 +11,9 @@
|
|
11
11
|
|
12
12
|
euro = Event.create!( key: 'euro.2012',
|
13
13
|
title: 'Euro 2012',
|
14
|
-
start_at: Time.cet( '2012-06-07 17:00' )
|
14
|
+
start_at: Time.cet( '2012-06-07 17:00' ),
|
15
|
+
league: League.find_by_key!('euro'),
|
16
|
+
season: Season.find_by_key!('2012'))
|
15
17
|
|
16
18
|
pol = Team.find_by_key!( 'pol' )
|
17
19
|
gre = Team.find_by_key!( 'gre' )
|
data/db/euro/teams.rb
CHANGED
@@ -24,33 +24,50 @@ by = Country.find_by_key!( 'by' )
|
|
24
24
|
fi = Country.find_by_key!( 'fi' )
|
25
25
|
ge = Country.find_by_key!( 'ge' )
|
26
26
|
|
27
|
+
ch = Country.find_by_key!( 'ch' )
|
28
|
+
rs = Country.find_by_key!( 'rs' )
|
29
|
+
si = Country.find_by_key!( 'si' )
|
30
|
+
sk = Country.find_by_key!( 'sk' )
|
31
|
+
|
32
|
+
tr = Country.find_by_key!( 'tr' )
|
33
|
+
ro = Country.find_by_key!( 'ro' )
|
34
|
+
|
27
35
|
|
28
36
|
teams = [
|
29
|
-
[ 'pol', 'Polen', 'POL', pl ],
|
30
|
-
[ 'gre', 'Griechenland', 'GRE', gr ],
|
31
|
-
[ 'rus', 'Russland', 'RUS', ru ],
|
32
|
-
[ 'cze', 'Tschechien', 'CZE', cz ],
|
33
|
-
[ 'ned', 'Niederlande', 'NED', nl ],
|
34
|
-
[ 'den', 'Dänemark', 'DEN', dk ],
|
35
|
-
[ 'ger', 'Deutschland', 'GER', de ],
|
37
|
+
[ 'pol', 'Polen|Poland', 'POL', pl ],
|
38
|
+
[ 'gre', 'Griechenland|Greece', 'GRE', gr ],
|
39
|
+
[ 'rus', 'Russland|Russia', 'RUS', ru ],
|
40
|
+
[ 'cze', 'Tschechien|Czech Republic', 'CZE', cz ],
|
41
|
+
[ 'ned', 'Niederlande|Netherlands', 'NED', nl ],
|
42
|
+
[ 'den', 'Dänemark|Daenemark', 'DEN', dk ],
|
43
|
+
[ 'ger', 'Deutschland|Germany', 'GER', de ],
|
36
44
|
[ 'por', 'Portugal', 'POR', pt ],
|
37
|
-
[ 'esp', 'Spanien', 'ESP', es ],
|
38
|
-
[ 'ita', 'Italien', 'ITA', it ],
|
45
|
+
[ 'esp', 'Spanien|Spain', 'ESP', es ],
|
46
|
+
[ 'ita', 'Italien|Italy', 'ITA', it ],
|
39
47
|
[ 'irl', 'Irland', 'IRL', ie ],
|
40
|
-
[ 'cro', 'Kroatien', 'CRO', hr ],
|
48
|
+
[ 'cro', 'Kroatien|Croatia', 'CRO', hr ],
|
41
49
|
[ 'ukr', 'Ukraine', 'UKR', ua ],
|
42
|
-
[ 'swe', 'Schweden', 'SWE', se ],
|
43
|
-
[ 'fra', 'Frankreich', 'FRA', fr ],
|
50
|
+
[ 'swe', 'Schweden|Sweden', 'SWE', se ],
|
51
|
+
[ 'fra', 'Frankreich|France', 'FRA', fr ],
|
44
52
|
[ 'eng', 'England', 'ENG', en ],
|
45
53
|
|
46
54
|
## some more teams for wm quali
|
47
55
|
|
48
|
-
[ 'fro', 'Färöer|Färöer Inseln',
|
56
|
+
[ 'fro', 'Färöer|Färöer Inseln', 'FRO', fo ],
|
49
57
|
[ 'kaz', 'Kasachstan', 'KAZ', kz ],
|
50
|
-
[ 'aut', 'Österreich', 'AUT', at ],
|
58
|
+
[ 'aut', 'Österreich|Oesterreich|Austria', 'AUT', at ],
|
51
59
|
[ 'blr', 'Weißrussland', 'BLR', by ],
|
52
60
|
[ 'fin', 'Finnland', 'FIN', fi ],
|
53
|
-
[ 'geo', 'Georgien', 'GEO', ge ]
|
61
|
+
[ 'geo', 'Georgien', 'GEO', ge ],
|
62
|
+
|
63
|
+
## some more teams for wm 2010
|
64
|
+
|
65
|
+
[ 'sui', 'Schweiz|Switzerland', 'SUI', ch ],
|
66
|
+
[ 'srb', 'Serbien', 'SRB', rs ],
|
67
|
+
[ 'svn', 'Slowenien', 'SVN', si ],
|
68
|
+
[ 'svk', 'Slowakei', 'SVK', sk ],
|
69
|
+
[ 'tur', 'Türkei|Turkey', 'TUR', tr ],
|
70
|
+
[ 'rou', 'Rumänien|Romania', 'ROU', ro ],
|
54
71
|
]
|
55
72
|
|
56
73
|
|
data/db/leagues.rb
ADDED
@@ -0,0 +1,25 @@
|
|
1
|
+
# encoding: utf-8
|
2
|
+
|
3
|
+
League.create!( key: 'at', title: 'Österr. Bundesliga', club: true )
|
4
|
+
League.create!( key: 'at.cup', title: 'ÖFB Cup', club: true )
|
5
|
+
|
6
|
+
League.create!( key: 'cl', title: 'Champions League', club: true )
|
7
|
+
League.create!( key: 'el', title: 'Europa League', club: true )
|
8
|
+
|
9
|
+
League.create!( key: 'de', title: 'Deutsche Bundesliga', club: true )
|
10
|
+
League.create!( key: 'en', title: 'English Premier League', club: true )
|
11
|
+
League.create!( key: 'ro', title: 'Romania Liga 1', club: true )
|
12
|
+
|
13
|
+
League.create!( key: 'mx.apertura', title: 'México Primera División Apertura', club: true )
|
14
|
+
|
15
|
+
|
16
|
+
|
17
|
+
League.create!( key: 'euro', title: 'Euro', club: false )
|
18
|
+
|
19
|
+
League.create!( key: 'wm', title: 'World Cup', club: false ) ## change key to world??
|
20
|
+
League.create!( key: 'wmq', title: 'World Cup Quali', club: false )
|
21
|
+
|
22
|
+
|
23
|
+
|
24
|
+
|
25
|
+
Prop.create!( key: 'db.leagues.version', value: '1' )
|
data/db/mx/apertura_2012.rb
CHANGED
@@ -5,7 +5,9 @@
|
|
5
5
|
|
6
6
|
mx = Event.create!( key: 'mx.apertura.2012',
|
7
7
|
title: 'México Primera División Apertura 2012',
|
8
|
-
start_at: Time.cst('2012-07-20 00:00')
|
8
|
+
start_at: Time.cst('2012-07-20 00:00'),
|
9
|
+
league: League.find_by_key!( 'mx.apertura'),
|
10
|
+
season: Season.find_by_key!( '2012'))
|
9
11
|
|
10
12
|
team_keys_mx = [
|
11
13
|
'america',
|
data/db/ro/l1_2012_13.rb
CHANGED
@@ -14,7 +14,9 @@
|
|
14
14
|
|
15
15
|
l1 = Event.create!( key: 'ro.2012/13',
|
16
16
|
title: 'Romania Liga 1 2012/13',
|
17
|
-
start_at: Time.eet('2012-07-01 00:00')
|
17
|
+
start_at: Time.eet('2012-07-01 00:00'),
|
18
|
+
league: League.find_by_key!('ro'),
|
19
|
+
season: Season.find_by_key!('2012/13') )
|
18
20
|
|
19
21
|
astra = Team.find_by_key!( 'astra' )
|
20
22
|
ceahlau = Team.find_by_key!( 'ceahlau' )
|