sportdb 0.4.3 → 0.4.4

Sign up to get free protection for your applications and to get access to all the features.
data/db/de/2012_13/bl.rb CHANGED
@@ -12,46 +12,27 @@ bl = Event.create!( key: 'de.2012/13',
12
12
  title: 'Deutsche Bundesliga 2012/13',
13
13
  start_at: Time.cet('2012-07-21 00:00') )
14
14
 
15
-
16
- bayern = Team.find_by_key!( 'bayern' )
17
- frankfurt = Team.find_by_key!( 'frankfurt' )
18
- schalke = Team.find_by_key!( 'schalke' )
19
- dortmund = Team.find_by_key!( 'dortmund' )
20
- hannover = Team.find_by_key!( 'hannover' )
21
- leverkusen = Team.find_by_key!( 'leverkusen' )
22
- duesseldorf = Team.find_by_key!( 'duesseldorf' )
23
- hsv = Team.find_by_key!( 'hsv' )
24
- mainz = Team.find_by_key!( 'mainz' )
25
- mgladbach = Team.find_by_key!( 'mgladbach' )
26
- freiburg = Team.find_by_key!( 'freiburg' )
27
- bremen = Team.find_by_key!( 'bremen' )
28
- hoffenheim = Team.find_by_key!( 'hoffenheim' )
29
- nuernberg = Team.find_by_key!( 'nuernberg' )
30
- stuttgart = Team.find_by_key!( 'stuttgart' )
31
- augsburg = Team.find_by_key!( 'augsburg' )
32
- wolfsburg = Team.find_by_key!( 'wolfsburg' )
33
- fuerth = Team.find_by_key!( 'fuerth' )
34
-
35
-
36
-
37
- bl.teams << bayern
38
- bl.teams << frankfurt
39
- bl.teams << schalke
40
- bl.teams << dortmund
41
- bl.teams << hannover
42
- bl.teams << leverkusen
43
- bl.teams << duesseldorf
44
- bl.teams << hsv
45
- bl.teams << mainz
46
- bl.teams << mgladbach
47
- bl.teams << freiburg
48
- bl.teams << bremen
49
- bl.teams << hoffenheim
50
- bl.teams << nuernberg
51
- bl.teams << stuttgart
52
- bl.teams << augsburg
53
- bl.teams << wolfsburg
54
- bl.teams << fuerth
55
-
56
-
57
- Prop.create!( key: 'db.de.bl.2012/13.version', value: '1' )
15
+ team_keys_bl = [
16
+ 'bayern',
17
+ 'frankfurt',
18
+ 'schalke',
19
+ 'dortmund',
20
+ 'hannover',
21
+ 'leverkusen',
22
+ 'duesseldorf',
23
+ 'hsv',
24
+ 'mainz',
25
+ 'mgladbach',
26
+ 'freiburg',
27
+ 'bremen',
28
+ 'hoffenheim',
29
+ 'nuernberg',
30
+ 'stuttgart',
31
+ 'augsburg',
32
+ 'wolfsburg',
33
+ 'fuerth' ]
34
+
35
+ bl.add_teams_from_ary!( team_keys_bl )
36
+
37
+
38
+ Prop.create!( key: 'db.de.2012/13.version', value: '1' )
data/db/de/2012_13/bl.txt CHANGED
@@ -96,27 +96,27 @@
96
96
 
97
97
  8. Spieltag
98
98
 
99
- 19.10. 20:30 1899 Hoffenheim - Greuther Fürth
100
- 20.10. 15:30 E. Frankfurt - Hannover 96
101
- 20.10. 15:30 F. Düsseldorf - Bayern München
102
- 20.10. 15:30 Bor. Dortmund - FC Schalke 04
103
- 20.10. 15:30 Bay. Leverkusen - 1. FSV Mainz 05
104
- 20.10. 15:30 VfL Wolfsburg - SC Freiburg
105
- 20.10. 18:30 Werder Bremen - Bor. M'gladbach
106
- 21.10. 15:30 1. FC Nürnberg - FC Augsburg
107
- 21.10. 17:30 Hamburger SV - VfB Stuttgart
99
+ 19.10. 20:30 1899 Hoffenheim 3:3 Greuther Fürth
100
+ 20.10. 15:30 E. Frankfurt 3:1 Hannover 96
101
+ 20.10. 15:30 F. Düsseldorf 0:5 Bayern München
102
+ 20.10. 15:30 Bor. Dortmund 1:2 FC Schalke 04
103
+ 20.10. 15:30 Bay. Leverkusen 2:2 1. FSV Mainz 05
104
+ 20.10. 15:30 VfL Wolfsburg 0:2 SC Freiburg
105
+ 20.10. 18:30 Werder Bremen 4:0 Bor. M'gladbach
106
+ 21.10. 15:30 1. FC Nürnberg 0:0 FC Augsburg
107
+ 21.10. 17:30 Hamburger SV 0:1 VfB Stuttgart
108
108
 
109
109
  9. Spieltag
110
110
 
111
- 26.10. 20:30 FC Augsburg - Hamburger SV
112
- 27.10. 15:30 Greuther Fürth - Werder Bremen
113
- 27.10. 15:30 SC Freiburg - Bor. Dortmund
114
- 27.10. 15:30 FC Schalke 04 - 1. FC Nürnberg
115
- 27.10. 15:30 1. FSV Mainz 05 - 1899 Hoffenheim
116
- 27.10. 15:30 F. Düsseldorf - VfL Wolfsburg
117
- 28.10. 15:30 VfB Stuttgart - E. Frankfurt
118
- 28.10. 17:30 Hannover 96 - Bor. M'gladbach
119
- 28.10. 17:30 Bayern München - Bay. Leverkusen
111
+ 26.10. 20:30 FC Augsburg 0:2 Hamburger SV
112
+ 27.10. 15:30 Greuther Fürth 1:1 Werder Bremen
113
+ 27.10. 15:30 SC Freiburg 0:2 Bor. Dortmund
114
+ 27.10. 15:30 FC Schalke 04 1:0 1. FC Nürnberg
115
+ 27.10. 15:30 1. FSV Mainz 05 3:0 1899 Hoffenheim
116
+ 27.10. 15:30 F. Düsseldorf 1:4 VfL Wolfsburg
117
+ 28.10. 15:30 VfB Stuttgart 2:1 E. Frankfurt
118
+ 28.10. 17:30 Hannover 96 2:3 Bor. M'gladbach
119
+ 28.10. 17:30 Bayern München 1:2 Bay. Leverkusen
120
120
 
121
121
  10. Spieltag
122
122
 
@@ -1,8 +1,8 @@
1
1
  # encoding: utf-8
2
2
 
3
3
  ####################################################################
4
- # generiert am 2012-10-16 22:35:21 +0200
5
- # using sportdb 0.4.0 on Ruby 1.9.3 (2012-02-16) [i686-linux]
4
+ # generiert am 2012-10-27 17:39:53 +0200
5
+ # using sportdb 0.4.2 on Ruby 1.9.3 (2012-02-16) [i686-linux]
6
6
  ####################################################################
7
7
 
8
8
 
@@ -14,9 +14,9 @@
14
14
  ev = Event.find_by_key!( 'de.2012/13' )
15
15
 
16
16
  bayern = Team.find_by_key!( 'bayern' )
17
- frankfurt = Team.find_by_key!( 'frankfurt' )
18
17
  schalke = Team.find_by_key!( 'schalke' )
19
18
  dortmund = Team.find_by_key!( 'dortmund' )
19
+ frankfurt = Team.find_by_key!( 'frankfurt' )
20
20
  hannover = Team.find_by_key!( 'hannover' )
21
21
  leverkusen = Team.find_by_key!( 'leverkusen' )
22
22
  duesseldorf = Team.find_by_key!( 'duesseldorf' )
data/db/en/2012_13/pl.rb CHANGED
@@ -1,9 +1,9 @@
1
1
  # encoding: utf-8
2
2
 
3
3
  ###
4
- ## Premier League
5
- # more info -> http://premierleague.com (official site)
6
- # http://en.wikipedia.org/wiki/Premier_League
4
+ # Premier League
5
+ # - more info -> http://premierleague.com (official site)
6
+ # http://en.wikipedia.org/wiki/Premier_League
7
7
 
8
8
 
9
9
 
@@ -11,47 +11,29 @@ pl = Event.create!( key: 'en.2012/13',
11
11
  title: 'Premier League 2012/13',
12
12
  start_at: Time.utc('2012-08-18 12:00') )
13
13
 
14
- chelsea = Team.find_by_key!( 'chelsea' )
15
- manunited = Team.find_by_key!( 'manunited' )
16
- mancity = Team.find_by_key!( 'mancity' )
17
- everton = Team.find_by_key!( 'everton' )
18
- tottenham = Team.find_by_key!( 'tottenham' )
19
- westbrom = Team.find_by_key!( 'westbrom' )
20
- arsenal = Team.find_by_key!( 'arsenal' )
21
- westham = Team.find_by_key!( 'westham' )
22
- fulham = Team.find_by_key!( 'fulham' )
23
- newcastle = Team.find_by_key!( 'newcastle' )
24
- swansea = Team.find_by_key!( 'swansea' )
25
- stoke = Team.find_by_key!( 'stoke' )
26
- sunderland = Team.find_by_key!( 'sunderland' )
27
- liverpool = Team.find_by_key!( 'liverpool' )
28
- wigan = Team.find_by_key!( 'wigan' )
29
- astonvilla = Team.find_by_key!( 'astonvilla' )
30
- southampton = Team.find_by_key!( 'southampton' )
31
- reading = Team.find_by_key!( 'reading' )
32
- norwich = Team.find_by_key!( 'norwich' )
33
- qpr = Team.find_by_key!( 'qpr' )
34
-
35
-
36
- pl.teams << chelsea
37
- pl.teams << manunited
38
- pl.teams << mancity
39
- pl.teams << everton
40
- pl.teams << tottenham
41
- pl.teams << westbrom
42
- pl.teams << arsenal
43
- pl.teams << westham
44
- pl.teams << fulham
45
- pl.teams << newcastle
46
- pl.teams << swansea
47
- pl.teams << stoke
48
- pl.teams << sunderland
49
- pl.teams << liverpool
50
- pl.teams << wigan
51
- pl.teams << astonvilla
52
- pl.teams << southampton
53
- pl.teams << reading
54
- pl.teams << norwich
55
- pl.teams << qpr
14
+ team_keys_pl = [
15
+ 'chelsea',
16
+ 'manunited',
17
+ 'mancity',
18
+ 'everton',
19
+ 'tottenham',
20
+ 'westbrom',
21
+ 'arsenal',
22
+ 'westham',
23
+ 'fulham',
24
+ 'newcastle',
25
+ 'swansea',
26
+ 'stoke',
27
+ 'sunderland',
28
+ 'liverpool',
29
+ 'wigan',
30
+ 'astonvilla',
31
+ 'southampton',
32
+ 'reading',
33
+ 'norwich',
34
+ 'qpr']
35
+
36
+ pl.add_teams_from_ary!( team_keys_pl )
37
+
56
38
 
57
39
  Prop.create!( key: 'db.en.pl.2012/13.version', value: '1' )
data/db/en/2012_13/pl.txt CHANGED
@@ -105,28 +105,187 @@ Spieltag 7
105
105
 
106
106
  Spieltag 8
107
107
 
108
- 20.10. 12:45 Tottenham Hotspur - Chelsea FC
109
- 20.10. 15:00 Fulham FC - Aston Villa
110
- 20.10. 15:00 Liverpool FC - Reading FC
111
- 20.10. 15:00 Manchester United - Stoke City
112
- 20.10. 15:00 Swansea City - Wigan Athletic
113
- 20.10. 15:00 West Bromwich Albion - Manchester City
114
- 20.10. 15:00 West Ham United - Southampton FC
115
- 20.10. 17:30 Norwich City - Arsenal FC
116
-
117
- 21.10. 13:30 Sunderland AFC - Newcastle United
118
- 21.10. 16:00 Queens Park Rangers - Everton FC
108
+ 20.10. 12:45 Tottenham Hotspur - Chelsea FC 2:4
109
+ 20.10. 15:00 Fulham FC - Aston Villa 1:0
110
+ 20.10. 15:00 Liverpool FC - Reading FC 1:0
111
+ 20.10. 15:00 Manchester United - Stoke City 4:2
112
+ 20.10. 15:00 Swansea City - Wigan Athletic 2:1
113
+ 20.10. 15:00 West Bromwich Albion - Manchester City 1:2
114
+ 20.10. 15:00 West Ham United - Southampton FC 4:1
115
+ 20.10. 17:30 Norwich City - Arsenal FC 1:0
116
+
117
+ 21.10. 13:30 Sunderland AFC - Newcastle United 1:1
118
+ 21.10. 16:00 Queens Park Rangers - Everton FC 1:1
119
119
 
120
120
  Spieltag 9
121
121
 
122
- 27.10. 12:45 Everton FC - Liverpool FC
123
- 27.10. 15:00 Arsenal FC - Queens Park Rangers
124
- 27.10. 15:00 Reading FC - Fulham FC
125
- 27.10. 15:00 Stoke City - Sunderland AFC
126
- 27.10. 15:00 Wigan Athletic - West Ham United
127
- 27.10. 17:30 Manchester City - Swansea City
128
-
129
- 28.10. 13:30 Aston Villa - Norwich City
130
- 28.10. 15:00 Newcastle United - West Bromwich Albion
131
- 28.10. 15:00 Southampton FC - Tottenham Hotspur
132
- 28.10. 16:00 Chelsea FC - Manchester United
122
+ 27.10. 12:45 Everton FC - Liverpool FC 2:2
123
+ 27.10. 15:00 Arsenal FC - Queens Park Rangers 1:0
124
+ 27.10. 15:00 Reading FC - Fulham FC 3:3
125
+ 27.10. 15:00 Stoke City - Sunderland AFC 0:0
126
+ 27.10. 15:00 Wigan Athletic - West Ham United 2:1
127
+ 27.10. 17:30 Manchester City - Swansea City 1:0
128
+
129
+ 28.10. 13:30 Aston Villa - Norwich City 1:1
130
+ 28.10. 15:00 Newcastle United - West Bromwich Albion 2:1
131
+ 28.10. 15:00 Southampton FC - Tottenham Hotspur 1:2
132
+ 28.10. 16:00 Chelsea FC - Manchester United 2:3
133
+
134
+ Spieltag 10
135
+
136
+ 03.11. 13:45 (Sa) Manchester United - Arsenal FC
137
+ 03.11. 16:00 (Sa) Fulham FC - Everton FC
138
+ 03.11. 16:00 (Sa) Norwich City - Stoke City
139
+ 03.11. 16:00 (Sa) Sunderland AFC - Aston Villa
140
+ 03.11. 16:00 (Sa) Swansea City - Chelsea FC
141
+ 03.11. 16:00 (Sa) Tottenham Hotspur - Wigan Athletic
142
+ 03.11. 18:30 (Sa) West Ham United - Manchester City
143
+
144
+ 04.11. 14:30 (So) Queens Park Rangers - Reading FC
145
+ 04.11. 17:00 (So) Liverpool FC - Newcastle United
146
+
147
+ 05.11. 21:00 (Mo) West Bromwich Albion - Southampton FC
148
+
149
+
150
+ Spieltag 11
151
+
152
+ 10.11. 16:00 (Sa) Arsenal FC - Fulham FC
153
+ 10.11. 16:00 (Sa) Everton FC - Sunderland AFC
154
+ 10.11. 16:00 (Sa) Reading FC - Norwich City
155
+ 10.11. 16:00 (Sa) Southampton FC - Swansea City
156
+ 10.11. 16:00 (Sa) Stoke City - Queens Park Rangers
157
+ 10.11. 16:00 (Sa) Wigan Athletic - West Bromwich Albion
158
+ 10.11. 18:30 (Sa) Aston Villa - Manchester United
159
+
160
+ 11.11. 14:30 (So) Manchester City - Tottenham Hotspur
161
+ 11.11. 16:00 (So) Newcastle United - West Ham United
162
+ 11.11. 17:00 (So) Chelsea FC - Liverpool FC
163
+
164
+
165
+ Spieltag 12
166
+
167
+ 17.11. 13:45 (Sa) Arsenal FC - Tottenham Hotspur
168
+ 17.11. 16:00 (Sa) Liverpool FC - Wigan Athletic
169
+ 17.11. 16:00 (Sa) Manchester City - Aston Villa
170
+ 17.11. 16:00 (Sa) Newcastle United - Swansea City
171
+ 17.11. 16:00 (Sa) Queens Park Rangers - Southampton FC
172
+ 17.11. 16:00 (Sa) Reading FC - Everton FC
173
+ 17.11. 16:00 (Sa) West Bromwich Albion - Chelsea FC
174
+ 17.11. 18:30 (Sa) Norwich City - Manchester United
175
+
176
+ 18.11. 17:00 (So) Fulham FC - Sunderland AFC
177
+ 19.11. 21:00 (Mo) West Ham United - Stoke City
178
+
179
+
180
+ Spieltag 13
181
+
182
+ 24.11. 13:45 (Sa) Swansea City - Liverpool FC
183
+ 24.11. 16:00 (Sa) Everton FC - Norwich City
184
+ 24.11. 16:00 (Sa) Manchester United - Queens Park Rangers
185
+ 24.11. 16:00 (Sa) Southampton FC - Newcastle United
186
+ 24.11. 16:00 (Sa) Stoke City - Fulham FC
187
+ 24.11. 16:00 (Sa) Wigan Athletic - Reading FC
188
+ 24.11. 18:30 (Sa) Aston Villa - Arsenal FC
189
+
190
+ 25.11. 14:30 (So) Sunderland AFC - West Bromwich Albion
191
+ 25.11. 17:00 (So) Chelsea FC - Manchester City
192
+ 25.11. 17:00 (So) Tottenham Hotspur - West Ham United
193
+
194
+
195
+ Spieltag 14
196
+
197
+ 27.11. 20:45 (Di) Southampton FC - Norwich City
198
+ 27.11. 20:45 (Di) Stoke City - Newcastle United
199
+ 27.11. 20:45 (Di) Sunderland AFC - Queens Park Rangers
200
+ 27.11. 20:45 (Di) Swansea City - West Bromwich Albion
201
+ 27.11. 21:00 (Di) Aston Villa - Reading FC
202
+
203
+ 28.11. 20:45 (Mi) Tottenham Hotspur - Liverpool FC
204
+ 28.11. 20:45 (Mi) Chelsea FC - Fulham FC
205
+ 28.11. 20:45 (Mi) Everton FC - Arsenal FC
206
+ 28.11. 21:00 (Mi) Manchester United - West Ham United
207
+ 28.11. 21:00 (Mi) Wigan Athletic - Manchester City
208
+
209
+
210
+ Spieltag 15
211
+
212
+ 01.12. 00:00 (Sa) Arsenal FC - Swansea City
213
+ 01.12. 00:00 (Sa) Fulham FC - Tottenham Hotspur
214
+ 01.12. 00:00 (Sa) Liverpool FC - Southampton FC
215
+ 01.12. 00:00 (Sa) Manchester City - Everton FC
216
+ 01.12. 00:00 (Sa) Newcastle United - Wigan Athletic
217
+ 01.12. 00:00 (Sa) Norwich City - Sunderland AFC
218
+ 01.12. 00:00 (Sa) Queens Park Rangers - Aston Villa
219
+ 01.12. 00:00 (Sa) Reading FC - Manchester United
220
+ 01.12. 00:00 (Sa) West Bromwich Albion - Stoke City
221
+ 01.12. 00:00 (Sa) West Ham United - Chelsea FC
222
+
223
+
224
+ Spieltag 16
225
+
226
+ 08.12. 00:00 (Sa) Arsenal FC - West Bromwich Albion
227
+ 08.12. 00:00 (Sa) Aston Villa - Stoke City
228
+ 08.12. 00:00 (Sa) Fulham FC - Newcastle United
229
+ 08.12. 00:00 (Sa) Manchester City - Manchester United
230
+ 08.12. 00:00 (Sa) Southampton FC - Reading FC
231
+ 08.12. 00:00 (Sa) Sunderland AFC - Chelsea FC
232
+ 08.12. 00:00 (Sa) Swansea City - Norwich City
233
+ 08.12. 00:00 (Sa) West Ham United - Liverpool FC
234
+ 08.12. 00:00 (Sa) Wigan Athletic - Queens Park Rangers
235
+
236
+ 09.12. 00:00 (So) Everton FC - Tottenham Hotspur
237
+
238
+
239
+ Spieltag 17
240
+
241
+ 15.12. 00:00 (Sa) Chelsea FC - Southampton FC
242
+ 15.12. 00:00 (Sa) Liverpool FC - Aston Villa
243
+ 15.12. 00:00 (Sa) Manchester United - Sunderland AFC
244
+ 15.12. 00:00 (Sa) Newcastle United - Manchester City
245
+ 15.12. 00:00 (Sa) Norwich City - Wigan Athletic
246
+ 15.12. 00:00 (Sa) Queens Park Rangers - Fulham FC
247
+ 15.12. 00:00 (Sa) Reading FC - Arsenal FC
248
+ 15.12. 00:00 (Sa) Stoke City - Everton FC
249
+ 15.12. 00:00 (Sa) Tottenham Hotspur - Swansea City
250
+ 15.12. 00:00 (Sa) West Bromwich Albion - West Ham United
251
+
252
+
253
+ Spieltag 18
254
+
255
+ 22.12. 00:00 (Sa) Chelsea FC - Aston Villa
256
+ 22.12. 00:00 (Sa) Liverpool FC - Fulham FC
257
+ 22.12. 00:00 (Sa) Manchester City - Reading FC
258
+ 22.12. 00:00 (Sa) Newcastle United - Queens Park Rangers
259
+ 22.12. 00:00 (Sa) Southampton FC - Sunderland AFC
260
+ 22.12. 00:00 (Sa) Swansea City - Manchester United
261
+ 22.12. 00:00 (Sa) Tottenham Hotspur - Stoke City
262
+ 22.12. 00:00 (Sa) West Bromwich Albion - Norwich City
263
+ 22.12. 00:00 (Sa) West Ham United - Everton FC
264
+ 22.12. 00:00 (Sa) Wigan Athletic - Arsenal FC
265
+
266
+
267
+ Spieltag 19
268
+
269
+ 26.12. 00:00 (Mi) Arsenal FC - West Ham United
270
+ 26.12. 00:00 (Mi) Aston Villa - Tottenham Hotspur
271
+ 26.12. 00:00 (Mi) Everton FC - Wigan Athletic
272
+ 26.12. 00:00 (Mi) Fulham FC - Southampton FC
273
+ 26.12. 00:00 (Mi) Manchester United - Newcastle United
274
+ 26.12. 00:00 (Mi) Norwich City - Chelsea FC
275
+ 26.12. 00:00 (Mi) Queens Park Rangers - West Bromwich Albion
276
+ 26.12. 00:00 (Mi) Reading FC - Swansea City
277
+ 26.12. 00:00 (Mi) Stoke City - Liverpool FC
278
+ 26.12. 00:00 (Mi) Sunderland AFC - Manchester City
279
+
280
+ Spieltag 20
281
+
282
+ 29.12. 00:00 (Sa) Arsenal FC - Newcastle United
283
+ 29.12. 00:00 (Sa) Aston Villa - Wigan Athletic
284
+ 29.12. 00:00 (Sa) Everton FC - Chelsea FC
285
+ 29.12. 00:00 (Sa) Fulham FC - Swansea City
286
+ 29.12. 00:00 (Sa) Manchester United - West Bromwich Albion
287
+ 29.12. 00:00 (Sa) Norwich City - Manchester City
288
+ 29.12. 00:00 (Sa) Queens Park Rangers - Liverpool FC
289
+ 29.12. 00:00 (Sa) Reading FC - West Ham United
290
+ 29.12. 00:00 (Sa) Stoke City - Southampton FC
291
+ 29.12. 00:00 (Sa) Sunderland AFC - Tottenham Hotspur
@@ -10,18 +10,4 @@ world = Event.create!( key: 'wmq',
10
10
  title: 'World Cup Quali. Europe 2012/13',
11
11
  start_at: Time.cet( '2012-09-07 00:00' ))
12
12
 
13
-
14
- world1 = Round.create!( event: world, pos: 1, title: 'Quali 1. Spieltag', start_at: Time.cet( '2012-09-07' ), title2: 'Fr. 7. Sep 2012' )
15
- world2 = Round.create!( event: world, pos: 2, title: 'Quali 2. Spieltag', start_at: Time.cet( '2012-09-11' ), title2: 'Di. 11. Sep 2012' )
16
- world3 = Round.create!( event: world, pos: 3, title: 'Quali 3. Spieltag', start_at: Time.cet( '2012-10-12' ), title2: 'Fr. 12. Okt 2012' )
17
- world4 = Round.create!( event: world, pos: 4, title: 'Quali 4. Spieltag', start_at: Time.cet( '2012-10-16' ), title2: 'Di. 16. Okt 2012' )
18
- world5 = Round.create!( event: world, pos: 5, title: 'Quali 5. Spieltag', start_at: Time.cet( '2013-03-22' ), title2: 'Fr. 22. Mär 2013' )
19
- world6 = Round.create!( event: world, pos: 6, title: 'Quali 6. Spieltag', start_at: Time.cet( '2013-03-26' ), title2: 'Di. 26. Mär 2013' )
20
- world7 = Round.create!( event: world, pos: 7, title: 'Quali 7. Spieltag', start_at: Time.cet( '2013-06-07' ), title2: 'Fr. 7. Jun 2013' )
21
- world8 = Round.create!( event: world, pos: 8, title: 'Quali 8. Spieltag', start_at: Time.cet( '2013-06-11' ), title2: 'Di. 11. Jun 2013' )
22
- world9 = Round.create!( event: world, pos: 9, title: 'Quali 9. Spieltag', start_at: Time.cet( '2013-09-06' ), title2: 'Fr. 6. Sep 2013' )
23
- world10 = Round.create!( event: world, pos: 10, title: 'Quali 10. Spieltag', start_at: Time.cet( '2013-09-10' ), title2: 'Di. 10. Sep 2013' )
24
- world11 = Round.create!( event: world, pos: 11, title: 'Quali 11. Spieltag', start_at: Time.cet( '2013-10-11' ), title2: 'Fr. 11. Okt 2013' )
25
- world12 = Round.create!( event: world, pos: 12, title: 'Quali 12. Spieltag', start_at: Time.cet( '2013-10-15' ), title2: 'Di. 15. Okt 2013' )
26
-
27
13
  Prop.create!( key: 'db.world.quali.2012/13.version', value: '1' )
@@ -1,127 +1,26 @@
1
1
  # encoding: utf-8
2
2
 
3
- # note: timezone for games (play_at) is *always* CET (central european time)
4
-
5
3
  ###########################################
6
4
  ## WM 2014 - Qualification Europe Group C
5
+ #
6
+ # note: for teams see seeds/euro/teams.rb
7
7
 
8
8
  world = Event.find_by_key!( 'wmq' )
9
9
 
10
- world1 = Round.find_by_event_id_and_pos!( world.id, 1 ) # 7. Sep 2012
11
- world2 = Round.find_by_event_id_and_pos!( world.id, 2 ) # 11. """"""
12
- world3 = Round.find_by_event_id_and_pos!( world.id, 3 ) # 12. Okt 2012
13
- world4 = Round.find_by_event_id_and_pos!( world.id, 4 ) # 16. """""""
14
- world5 = Round.find_by_event_id_and_pos!( world.id, 5 ) # 22. Mär 2013
15
- world6 = Round.find_by_event_id_and_pos!( world.id, 6 ) # 26. """"""
16
- world7 = Round.find_by_event_id_and_pos!( world.id, 7 ) # 7. Jun 2013
17
- world8 = Round.find_by_event_id_and_pos!( world.id, 8 ) # 11. """""""
18
- world9 = Round.find_by_event_id_and_pos!( world.id, 9 ) # 6. Sep 2013
19
- world10 = Round.find_by_event_id_and_pos!( world.id, 10 ) # 10. """""""
20
- world11 = Round.find_by_event_id_and_pos!( world.id, 11 ) # 11. Okt 2013
21
- world12 = Round.find_by_event_id_and_pos!( world.id, 12 ) # 15. """"""""
22
-
23
-
10
+ team_keys_worldc = [
11
+ 'ger',
12
+ 'fro',
13
+ 'irl',
14
+ 'kaz',
15
+ 'aut',
16
+ 'swe' ]
24
17
 
25
-
26
- #################################3
27
- # Gruppe C
28
-
29
- # note: for teams see seeds/euro/teams.rb
30
-
31
- ger = Team.find_by_key!( 'ger' )
32
- fro = Team.find_by_key!( 'fro' )
33
- irl = Team.find_by_key!( 'irl' )
34
- kaz = Team.find_by_key!( 'kaz' )
35
- aut = Team.find_by_key!( 'aut' )
36
- swe = Team.find_by_key!( 'swe' )
18
+ world.add_teams_from_ary!( team_keys_worldc )
37
19
 
38
20
 
39
21
  worldc = Group.create!( event: world, pos: 3, title: 'Gruppe C' )
40
22
 
41
- worldc.teams << ger
42
- worldc.teams << fro
43
- worldc.teams << irl
44
- worldc.teams << kaz
45
- worldc.teams << aut
46
- worldc.teams << swe
47
-
48
-
49
-
50
- world.teams << ger
51
- world.teams << fro
52
- world.teams << irl
53
- world.teams << kaz
54
- world.teams << aut
55
- world.teams << swe
56
-
57
-
58
- games_world1c = [
59
- [ 1, ger, [3,0], fro, Time.cet( '2012-09-07 00:00' ) ],
60
- [ 2, kaz, [1,2], irl, Time.cet( '2012-09-07 00:00' ) ]]
61
-
62
- games_world2c = [
63
- [ 3, aut, [1,2], ger, Time.cet( '2012-09-11 00:00' ) ],
64
- [ 4, swe, [2,0], kaz, Time.cet( '2012-09-11 00:00' ) ]]
65
-
66
- games_world3c = [
67
- [ 5, irl, [1,6], ger, Time.cet( '2012-10-12 20:45' ) ],
68
- [ 6, fro, [1,2], swe, Time.cet( '2012-10-12 18:00' ) ],
69
- [ 7, kaz, [0,0], aut, Time.cet( '2012-10-12 18:00' ) ]]
70
-
71
- games_world4c = [
72
- [ 8, ger, [], swe, Time.cet( '2012-10-16 20:45' ) ],
73
- [ 9, fro, [], irl, Time.cet( '2012-10-16 20:00' ) ],
74
- [ 10, aut, [], kaz, Time.cet( '2012-10-16 20:30' ) ]]
75
-
76
- games_world5c = [
77
- [ 11, kaz, [], ger, Time.cet( '2013-03-22 00:00' ) ],
78
- [ 12, aut, [], fro, Time.cet( '2013-03-22 00:00' ) ],
79
- [ 13, swe, [], irl, Time.cet( '2013-03-22 00:00' ) ]]
80
-
81
- games_world6c = [
82
- [ 14, ger, [], kaz, Time.cet( '2013-03-26 00:00' ) ],
83
- [ 15, irl, [], aut, Time.cet( '2013-03-26 00:00' ) ]]
84
-
85
- games_world7c = [
86
- [ 16, irl, [], fro, Time.cet( '2013-06-07 00:00' ) ],
87
- [ 17, aut, [], swe, Time.cet( '2013-06-07 00:00' ) ]]
88
-
89
- games_world8c = [
90
- [ 18, swe, [], fro, Time.cet( '2013-06-11 00:00' ) ]]
91
-
92
- games_world9c = [
93
- [ 19, ger, [], aut, Time.cet( '2013-09-06 00:00' ) ],
94
- [ 20, kaz, [], fro, Time.cet( '2013-09-06 00:00' ) ],
95
- [ 21, irl, [], swe, Time.cet( '2013-09-06 00:00' ) ]]
96
-
97
- games_world10c = [
98
- [ 22, fro, [], ger, Time.cet( '2013-09-10 00:00' ) ],
99
- [ 23, aut, [], irl, Time.cet( '2013-09-10 00:00' ) ],
100
- [ 24, kaz, [], swe, Time.cet( '2013-09-10 00:00' ) ]]
101
-
102
- games_world11c = [
103
- [ 25, ger, [], irl, Time.cet( '2013-10-11 00:00' ) ],
104
- [ 26, fro, [], kaz, Time.cet( '2013-10-11 00:00' ) ],
105
- [ 27, swe, [], aut, Time.cet( '2013-10-11 00:00' ) ]]
106
-
107
- games_world12c = [
108
- [ 28, swe, [], ger, Time.cet( '2013-10-15 00:00' ) ],
109
- [ 29, fro, [], aut, Time.cet( '2013-10-15 00:00' ) ],
110
- [ 30, irl, [], kaz, Time.cet( '2013-10-15 00:00' ) ]]
111
-
112
-
113
- Game.create_from_ary!( games_world1c, world1 )
114
- Game.create_from_ary!( games_world2c, world2 )
115
- Game.create_from_ary!( games_world3c, world3 )
116
- Game.create_from_ary!( games_world4c, world4 )
117
- Game.create_from_ary!( games_world5c, world5 )
118
- Game.create_from_ary!( games_world6c, world6 )
119
- Game.create_from_ary!( games_world7c, world7 )
120
- Game.create_from_ary!( games_world8c, world8 )
121
- Game.create_from_ary!( games_world9c, world9 )
122
- Game.create_from_ary!( games_world10c, world10 )
123
- Game.create_from_ary!( games_world11c, world11 )
124
- Game.create_from_ary!( games_world12c, world12 )
23
+ worldc.add_teams_from_ary!( team_keys_worldc )
125
24
 
126
25
 
127
26
  Prop.create!( key: 'db.world.quali.2012/13.c.version', value: '1' )
@@ -0,0 +1,83 @@
1
+ ###########################################
2
+ ## WM 2014 - Qualification Europe Group C
3
+
4
+
5
+ # note: timezone for games (play_at) is *always* CET (central european time)
6
+
7
+
8
+ 1. Spieltag - Fr. 7. Sep 2012
9
+
10
+ (1) ger 3:0 fro 2012-09-07 15:00
11
+ (2) kaz 1:2 irl 2012-09-07 15:00
12
+
13
+
14
+ 2. Spieltag - Di. 11. Sep 2012
15
+
16
+ (3) aut 1:2 ger 2012-09-11 15:00
17
+ (4) swe 2:0 kaz 2012-09-11 15:00
18
+
19
+
20
+ 3. Spieltag - Fr. 12. Okt 2012
21
+
22
+ (5) irl 1:6 ger 2012-10-12 20:45
23
+ (6) fro 1:2 swe 2012-10-12 18:00
24
+ (7) kaz 0:0 aut 2012-10-12 18:00
25
+
26
+
27
+ 4. Spieltag - Di. 16. Okt 2012
28
+
29
+ (8) ger 4:4 swe 2012-10-16 20:45
30
+ (9) fro 1:4 irl 2012-10-16 20:00
31
+ (10) aut 4:0 kaz 2012-10-16 20:30
32
+
33
+
34
+ 5. Spieltag - Fr. 22. Mär 2013
35
+
36
+ (11) kaz - ger 2013-03-22 15:00
37
+ (12) aut - fro 2013-03-22 15:00
38
+ (13) swe - irl 2013-03-22 15:00
39
+
40
+
41
+ 6. Spieltag - Di. 26. Mär 2013
42
+
43
+ (14) ger - kaz 2013-03-26 15:00
44
+ (15) irl - aut 2013-03-26 15:00
45
+
46
+
47
+ 7. Spieltag - Fr. 7. Jun 2013
48
+
49
+ (16) irl - fro 2013-06-07 15:00
50
+ (17) aut - swe 2013-06-07 15:00
51
+
52
+
53
+ 8. Spieltag - Di. 11. Jun 2013
54
+
55
+ (18) swe - fro 2013-06-11 15:00
56
+
57
+
58
+ 9. Spieltag - Fr. 6. Sep 2013
59
+
60
+ (19) ger - aut 2013-09-06 15:00
61
+ (20) kaz - fro 2013-09-06 15:00
62
+ (21) irl - swe 2013-09-06 15:00
63
+
64
+
65
+ 10. Spieltag - Di. 10. Sep 2013
66
+
67
+ (22) fro - ger 2013-09-10 15:00
68
+ (23) aut - irl 2013-09-10 15:00
69
+ (24) kaz - swe 2013-09-10 15:00
70
+
71
+
72
+ 11. Spieltag - Fr. 11. Okt 2013
73
+
74
+ (25) ger - irl 2013-10-11 15:00
75
+ (26) fro - kaz 2013-10-11 15:00
76
+ (27) swe - aut 2013-10-11 15:00
77
+
78
+
79
+ 12. Spieltag - Di. 15. Okt 2013
80
+
81
+ (28) swe - ger 2013-10-15 15:00
82
+ (29) fro - aut 2013-10-15 15:00
83
+ (30) irl - kaz 2013-10-15 15:00