sportdb 0.9.7 → 1.0.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.
Files changed (76) hide show
  1. data/Manifest.txt +12 -55
  2. data/Rakefile +11 -10
  3. data/bin/sportdb +1 -2
  4. data/config/fixtures.de.yml +42 -0
  5. data/config/fixtures.en.yml +52 -0
  6. data/config/fixtures.es.yml +44 -0
  7. data/config/fixtures.pt.yml +44 -0
  8. data/lib/sportdb/cli/main.rb +189 -0
  9. data/lib/sportdb/cli/opts.rb +15 -69
  10. data/lib/sportdb/data/fixtures.rb +205 -0
  11. data/lib/sportdb/{keys.rb → data/keys.rb} +9 -2
  12. data/lib/sportdb/data/models.rb +43 -0
  13. data/lib/sportdb/deleter.rb +27 -0
  14. data/lib/sportdb/lang.rb +265 -0
  15. data/lib/sportdb/models/event.rb +0 -34
  16. data/lib/sportdb/reader.rb +322 -78
  17. data/lib/sportdb/stats.rb +28 -0
  18. data/lib/sportdb/utils.rb +90 -13
  19. data/lib/sportdb/version.rb +1 -1
  20. data/lib/sportdb.rb +49 -198
  21. data/tasks/test.rb +163 -0
  22. metadata +46 -71
  23. data/data/america/2011.rb +0 -36
  24. data/data/america/2011.txt +0 -110
  25. data/data/america/2011.yml +0 -30
  26. data/data/america/teams.txt +0 -26
  27. data/data/at/2011_12/bl.rb +0 -30
  28. data/data/at/2011_12/bl.txt +0 -79
  29. data/data/at/2011_12/cup.rb +0 -66
  30. data/data/at/2012_13/bl.rb +0 -33
  31. data/data/at/2012_13/bl.txt +0 -198
  32. data/data/at/2012_13/cup.rb +0 -111
  33. data/data/at/2012_13/cup.txt +0 -89
  34. data/data/at/badges.rb +0 -22
  35. data/data/at/teams.txt +0 -88
  36. data/data/cl/2011_12/cl.rb +0 -88
  37. data/data/cl/2011_12/el.rb +0 -65
  38. data/data/cl/2012_13/cl.rb +0 -324
  39. data/data/cl/badges.rb +0 -68
  40. data/data/cl/teams.txt +0 -46
  41. data/data/copa/sud_2012_13.rb +0 -38
  42. data/data/copa/sud_2012_13.txt +0 -49
  43. data/data/copa/teams.txt +0 -35
  44. data/data/de/2012_13/bl.rb +0 -38
  45. data/data/de/2012_13/bl.txt +0 -216
  46. data/data/de/teams.txt +0 -23
  47. data/data/en/2012_13/pl.rb +0 -39
  48. data/data/en/2012_13/pl.txt +0 -291
  49. data/data/en/teams.txt +0 -26
  50. data/data/es/teams.txt +0 -8
  51. data/data/euro/2008.rb +0 -30
  52. data/data/euro/2008.txt +0 -114
  53. data/data/euro/2012.rb +0 -25
  54. data/data/euro/2012.txt +0 -114
  55. data/data/euro/teams.txt +0 -36
  56. data/data/leagues.rb +0 -68
  57. data/data/mx/apertura_2012.rb +0 -35
  58. data/data/mx/apertura_2012.txt +0 -106
  59. data/data/mx/teams.txt +0 -20
  60. data/data/nfl/teams.txt +0 -46
  61. data/data/nhl/teams.txt +0 -40
  62. data/data/ro/l1_2012_13.rb +0 -137
  63. data/data/ro/teams.txt +0 -26
  64. data/data/seasons.rb +0 -22
  65. data/data/world/2010.rb +0 -93
  66. data/data/world/2010.txt +0 -215
  67. data/data/world/quali_2012_13_america.rb +0 -25
  68. data/data/world/quali_2012_13_america.txt +0 -41
  69. data/data/world/quali_2012_13_europe.rb +0 -32
  70. data/data/world/quali_2012_13_europe_c.txt +0 -85
  71. data/data/world/quali_2012_13_europe_i.txt +0 -74
  72. data/data/world/teams.txt +0 -25
  73. data/lib/sportdb/cli/runner.rb +0 -147
  74. data/lib/sportdb/loader.rb +0 -82
  75. data/lib/sportdb/templater.rb +0 -81
  76. data/templates/fixtures.rb.erb +0 -51
@@ -1,324 +0,0 @@
1
- # encoding: utf-8
2
-
3
- # note: timezone for games (play_at) is *always* CET (central european time)
4
-
5
- #################################
6
- ## Champions League 2012/13
7
-
8
- cl = Event.create!( league: League.find_by_key!('cl'),
9
- season: Season.find_by_key!('2012/13'),
10
- start_at: Time.cet( '2012-09-18 18:30' ),
11
- team3: false )
12
-
13
- porto = Team.find_by_key!( 'porto' )
14
- kiew = Team.find_by_key!( 'kiew' )
15
- paris = Team.find_by_key!( 'paris' )
16
- zagreb = Team.find_by_key!( 'zagreb' )
17
-
18
- arsenal = Team.find_by_key!( 'arsenal' )
19
- schalke = Team.find_by_key!( 'schalke' )
20
- olympiacos = Team.find_by_key!( 'olympiacos' )
21
- montpellier = Team.find_by_key!( 'montpellier' )
22
-
23
- milan = Team.find_by_key!( 'milan' )
24
- zenit = Team.find_by_key!( 'zenit' )
25
- anderlecht = Team.find_by_key!( 'anderlecht' )
26
- malaga = Team.find_by_key!( 'malaga' )
27
-
28
- madrid = Team.find_by_key!( 'madrid' )
29
- mancity = Team.find_by_key!( 'mancity' )
30
- ajax = Team.find_by_key!( 'ajax' )
31
- dortmund = Team.find_by_key!( 'dortmund' )
32
-
33
- chelsea = Team.find_by_key!( 'chelsea' )
34
- donezk = Team.find_by_key!( 'donezk' )
35
- juventus = Team.find_by_key!( 'juventus' )
36
- nordsjalland = Team.find_by_key!( 'nordsjalland' )
37
-
38
- bayern = Team.find_by_key!( 'bayern' )
39
- valencia = Team.find_by_key!( 'valencia' )
40
- lille = Team.find_by_key!( 'lille' )
41
- borissow = Team.find_by_key!( 'borissow' )
42
-
43
- barcelona = Team.find_by_key!( 'barcelona' )
44
- benfica = Team.find_by_key!( 'benfica' )
45
- spartak = Team.find_by_key!( 'spartak' )
46
- celtic = Team.find_by_key!( 'celtic' )
47
-
48
- manunited = Team.find_by_key!( 'manunited' )
49
- braga = Team.find_by_key!( 'braga' )
50
- galatasaray = Team.find_by_key!( 'galatasaray' )
51
- cluj = Team.find_by_key!( 'cluj' )
52
-
53
-
54
-
55
- cl.teams << porto
56
- cl.teams << kiew
57
- cl.teams << paris
58
- cl.teams << zagreb
59
-
60
- cl.teams << arsenal
61
- cl.teams << schalke
62
- cl.teams << olympiacos
63
- cl.teams << montpellier
64
-
65
- cl.teams << milan
66
- cl.teams << zenit
67
- cl.teams << anderlecht
68
- cl.teams << malaga
69
-
70
- cl.teams << madrid
71
- cl.teams << mancity
72
- cl.teams << ajax
73
- cl.teams << dortmund
74
-
75
- cl.teams << chelsea
76
- cl.teams << donezk
77
- cl.teams << juventus
78
- cl.teams << nordsjalland
79
-
80
- cl.teams << bayern
81
- cl.teams << valencia
82
- cl.teams << lille
83
- cl.teams << borissow
84
-
85
- cl.teams << barcelona
86
- cl.teams << benfica
87
- cl.teams << spartak
88
- cl.teams << celtic
89
-
90
- cl.teams << manunited
91
- cl.teams << braga
92
- cl.teams << galatasaray
93
- cl.teams << cluj
94
-
95
-
96
- cla = Group.create!( event: cl, pos: 1, title: 'Gruppe A' )
97
- clb = Group.create!( event: cl, pos: 2, title: 'Gruppe B' )
98
- clc = Group.create!( event: cl, pos: 3, title: 'Gruppe C' )
99
- cld = Group.create!( event: cl, pos: 4, title: 'Gruppe D' )
100
- cle = Group.create!( event: cl, pos: 5, title: 'Gruppe E' )
101
- clf = Group.create!( event: cl, pos: 6, title: 'Gruppe F' )
102
- clg = Group.create!( event: cl, pos: 7, title: 'Gruppe G' )
103
- clh = Group.create!( event: cl, pos: 8, title: 'Gruppe H' )
104
-
105
- #################################
106
- # Gruppe A
107
-
108
- cla.teams << porto
109
- cla.teams << kiew
110
- cla.teams << paris
111
- cla.teams << zagreb
112
-
113
-
114
- #################################
115
- # Gruppe B
116
-
117
- clb.teams << arsenal
118
- clb.teams << schalke
119
- clb.teams << olympiacos
120
- clb.teams << montpellier
121
-
122
-
123
- #################################
124
- # Gruppe C
125
-
126
- clc.teams << milan
127
- clc.teams << zenit
128
- clc.teams << anderlecht
129
- clc.teams << malaga
130
-
131
- #################################
132
- # Gruppe D
133
-
134
- cld.teams << madrid
135
- cld.teams << mancity
136
- cld.teams << ajax
137
- cld.teams << dortmund
138
-
139
-
140
- #################################
141
- # Gruppe E
142
-
143
- cle.teams << chelsea
144
- cle.teams << donezk
145
- cle.teams << juventus
146
- cle.teams << nordsjalland
147
-
148
-
149
- #################################
150
- # Gruppe F
151
-
152
- clf.teams << bayern
153
- clf.teams << valencia
154
- clf.teams << lille
155
- clf.teams << borissow
156
-
157
-
158
- #################################
159
- # Gruppe G
160
-
161
- clg.teams << barcelona
162
- clg.teams << benfica
163
- clg.teams << spartak
164
- clg.teams << celtic
165
-
166
-
167
- #################################
168
- # Gruppe H
169
-
170
- clh.teams << manunited
171
- clh.teams << braga
172
- clh.teams << galatasaray
173
- clh.teams << cluj
174
-
175
-
176
- clr1 = Round.create!( event: cl, pos: 1, title: 'Spieltag 1', start_at: Time.cet( '2012-09-18' ), title2: 'Di./Mi., 18.+19. Sep 2012' )
177
- clr2 = Round.create!( event: cl, pos: 2, title: 'Spieltag 2', start_at: Time.cet( '2012-10-02' ), title2: 'Di./Mi., 2.+3. Okt 2012' )
178
- clr3 = Round.create!( event: cl, pos: 3, title: 'Spieltag 3', start_at: Time.cet( '2012-10-23' ), title2: 'Di./Mi., 23.+24. Okt 2012' )
179
- clr4 = Round.create!( event: cl, pos: 4, title: 'Spieltag 4', start_at: Time.cet( '2012-11-06' ), title2: 'Di./Mi., 6.+7. Nov 2012' )
180
- clr5 = Round.create!( event: cl, pos: 5, title: 'Spieltag 5', start_at: Time.cet( '2012-11-20' ), title2: 'Di./Mi., 20.+21. Nov 2012' )
181
- clr6 = Round.create!( event: cl, pos: 6, title: 'Spieltag 6', start_at: Time.cet( '2012-12-04' ), title2: 'Di./Mi., 4.+5. Dez 2012' )
182
-
183
- cl16 = Round.create!( event: cl, pos: 7, title: 'Achtelfinale', start_at: Time.cet( '2013-02-12' ), title2: 'Di./Mi., 12.+13./19.+20. Feb 2013' )
184
- cl16_2 = Round.create!( event: cl, pos: 8, title: 'Achtelfinale Rückspiele', start_at: Time.cet( '2013-03-05' ), title2: 'Di./Mi., 5.+6./12.+13. Mär 2013' )
185
- cl8 = Round.create!( event: cl, pos: 9, title: 'Viertelfinale', start_at: Time.cet( '2013-04-02' ), title2: 'Di./Mi., 2.+3. Apr 2013' )
186
- cl8_2 = Round.create!( event: cl, pos: 10, title: 'Viertelfinale Rückspiele', start_at: Time.cet( '2013-04-09' ), title2: 'Di./Mi., 9.+10. Apr 2013' )
187
- cl4 = Round.create!( event: cl, pos: 11, title: 'Halbfinale', start_at: Time.cet( '2013-04-23' ), title2: 'Di./Mi., 23.+24. Apr 2013' )
188
- cl4_2 = Round.create!( event: cl, pos: 12, title: 'Halbfinale Rückspiele', start_at: Time.cet( '2013-04-30' ), title2: 'Di./Mi., 30. Apr/1. Mai 2013' )
189
- cl1 = Round.create!( event: cl, pos: 13, title: 'Finale', start_at: Time.cet( '2013-05-25' ), title2: 'Sa. 25. Mai 2013' )
190
-
191
-
192
- games_cla = [
193
- [[ 1, zagreb, [0,2], porto, Time.cet('2012-09-18 20:45'), clr1 ],
194
- [ 2, porto, [3,0], zagreb, Time.cet('2012-11-21 20:45'), clr5 ]],
195
- [[ 2, paris, [4,1], kiew, Time.cet('2012-09-18 20:45'), clr1 ],
196
- [ 1, kiew, [0,2], paris, Time.cet('2012-11-21 20:45'), clr5 ]],
197
- [[ 1, kiew, [2,0], zagreb, Time.cet('2012-10-03 20:45'), clr2 ],
198
- [ 2, zagreb, [1,1], kiew, Time.cet('2012-12-04 20:45'), clr6 ]],
199
- [[ 2, porto, [1,0], paris, Time.cet('2012-10-03 20:45'), clr2 ],
200
- [ 1, paris, [2,1], porto, Time.cet('2012-12-04 20:45'), clr6 ]],
201
- [[ 1, porto, [3,2], kiew, Time.cet('2012-10-24 20:45'), clr3 ],
202
- [ 1, kiew, [0,0], porto, Time.cet('2012-11-06 20:45'), clr4 ]],
203
- [[ 2, zagreb, [0,2], paris, Time.cet('2012-10-24 20:45'), clr3 ],
204
- [ 2, paris, [4,0], zagreb, Time.cet('2012-11-06 20:45'), clr4 ]]
205
- ]
206
-
207
- games_clb = [
208
- [[ 3, montpellier, [1,2], arsenal, Time.cet('2012-09-18 20:45'), clr1 ],
209
- [ 4, arsenal, [2,0], montpellier, Time.cet('2012-11-21 20:45'), clr5 ]],
210
- [[ 4, olympiacos, [1,2], schalke, Time.cet('2012-09-18 20:45'), clr1 ],
211
- [ 3, schalke, [1,0], olympiacos, Time.cet('2012-11-21 20:45'), clr5 ]],
212
- [[ 3, arsenal, [3,1], olympiacos, Time.cet('2012-10-03 20:45'), clr2 ],
213
- [ 3, olympiacos, [2,1], arsenal, Time.cet('2012-12-04 20:45'), clr6 ]],
214
- [[ 4, schalke, [2,2], montpellier, Time.cet('2012-10-03 20:45'), clr2 ],
215
- [ 4, montpellier, [1,1], schalke, Time.cet('2012-12-04 20:45'), clr6 ]],
216
- [[ 3, arsenal, [0,2], schalke, Time.cet('2012-10-24 20:45'), clr3 ],
217
- [ 3, schalke, [2,2], arsenal, Time.cet('2012-11-06 20:45'), clr4 ]],
218
- [[ 4, montpellier, [1,2], olympiacos, Time.cet('2012-10-24 20:45'), clr3 ],
219
- [ 4, olympiacos, [3,1], montpellier, Time.cet('2012-11-06 20:45'), clr4 ]]
220
- ]
221
-
222
- games_clc = [
223
- [[ 5, malaga, [3,0], zenit, Time.cet('2012-09-18 20:45'), clr1 ],
224
- [ 5, zenit, [2,2], malaga, Time.cet('2012-11-21 18:00'), clr5 ]],
225
- [[ 6, milan, [0,0], anderlecht, Time.cet('2012-09-18 20:45'), clr1 ],
226
- [ 6, anderlecht, [1,3], milan, Time.cet('2012-11-21 20:45'), clr5 ]],
227
- [[ 5, zenit, [2,3], milan, Time.cet('2012-10-03 18:00'), clr2 ],
228
- [ 5, milan, [0,1], zenit, Time.cet('2012-12-04 20:45'), clr6 ]],
229
- [[ 6, anderlecht, [0,3], malaga, Time.cet('2012-10-03 20:45'), clr2 ],
230
- [ 6, malaga, [2,2], anderlecht, Time.cet('2012-12-04 20:45'), clr6 ]],
231
- [[ 5, zenit, [1,0], anderlecht, Time.cet('2012-10-24 18:00'), clr3 ],
232
- [ 5, anderlecht, [1,0], zenit, Time.cet('2012-11-06 20:45'), clr4 ]],
233
- [[ 6, malaga, [1,0], milan, Time.cet('2012-10-24 20:45'), clr3 ],
234
- [ 6, milan, [1,1], malaga, Time.cet('2012-11-06 20:45'), clr4 ]]
235
- ]
236
-
237
- games_cld = [
238
- [[ 7, madrid, [3,2], mancity, Time.cet('2012-09-18 20:45'), clr1 ],
239
- [ 7, mancity, [1,1], madrid, Time.cet('2012-11-21 20:45'), clr5 ]],
240
- [[ 8, dortmund, [1,0], ajax, Time.cet('2012-09-18 20:45'), clr1 ],
241
- [ 8, ajax, [1,4], dortmund, Time.cet('2012-11-21 20:45'), clr5 ]],
242
- [[ 7, ajax, [1,4], madrid, Time.cet('2012-10-03 20:45'), clr2 ],
243
- [ 8, madrid, [4,1], ajax, Time.cet('2012-12-04 20:45'), clr6 ]],
244
- [[ 8, mancity, [1,1], dortmund, Time.cet('2012-10-03 20:45'), clr2 ],
245
- [ 7, dortmund, [1,0], mancity, Time.cet('2012-12-04 20:45'), clr6 ]],
246
- [[ 7, dortmund, [2,1], madrid, Time.cet('2012-10-24 20:45'), clr3 ],
247
- [ 8, madrid, [2,2], dortmund, Time.cet('2012-11-06 20:45'), clr4 ]],
248
- [[ 8, ajax, [3,1], mancity, Time.cet('2012-10-24 20:45'), clr3 ],
249
- [ 7, mancity, [2,2], ajax, Time.cet('2012-11-06 20:45'), clr4 ]]
250
- ]
251
-
252
-
253
- games_cle = [
254
- [[ 9, chelsea, [2,2], juventus, Time.cet('2012-09-19 20:45'), clr1 ],
255
- [ 9, juventus, [3,0], chelsea, Time.cet('2012-11-20 20:45'), clr5 ]],
256
- [[ 10, donezk, [2,0], nordsjalland, Time.cet('2012-09-19 20:45'), clr1 ],
257
- [ 10, nordsjalland, [2,5], donezk, Time.cet('2012-11-20 20:45'), clr5 ]],
258
- [[ 9, nordsjalland, [0,4], chelsea, Time.cet('2012-10-02 20:45'), clr2 ],
259
- [ 9, chelsea, [6,1], nordsjalland, Time.cet('2012-12-05 20:45'), clr6 ]],
260
- [[ 10, juventus, [1,1], donezk, Time.cet('2012-10-02 20:45'), clr2 ],
261
- [ 10, donezk, [0,1], juventus, Time.cet('2012-12-05 20:45'), clr6 ]],
262
- [[ 9, donezk, [2,1], chelsea, Time.cet('2012-10-23 20:45'), clr3 ],
263
- [ 9, chelsea, [3,2], donezk, Time.cet('2012-11-07 20:45'), clr4 ]],
264
- [[ 10, nordsjalland, [1,1], juventus, Time.cet('2012-10-23 20:45'), clr3 ],
265
- [ 10, juventus, [4,0], nordsjalland, Time.cet('2012-11-07 20:45'), clr4 ]]
266
- ]
267
-
268
- games_clf = [
269
- [[ 11, bayern, [2,1], valencia, Time.cet('2012-09-19 20:45'), clr1 ],
270
- [ 11, valencia, [1,1], bayern, Time.cet('2012-11-20 20:45'), clr5 ]],
271
- [[ 12, lille, [1,3], borissow, Time.cet('2012-09-19 20:45'), clr1 ],
272
- [ 12, borissow, [0,2], lille, Time.cet('2012-11-20 20:45'), clr5 ]],
273
- [[ 11, borissow, [3,1], bayern, Time.cet('2012-10-02 20:45'), clr2 ],
274
- [ 12, bayern, [4,1], borissow, Time.cet('2012-12-05 20:45'), clr6 ]],
275
- [[ 12, valencia, [2,0], lille, Time.cet('2012-10-02 20:45'), clr2 ],
276
- [ 11, lille, [0,1], valencia, Time.cet('2012-12-05 20:45'), clr6 ]],
277
- [[ 11, lille, [0,1], bayern, Time.cet('2012-10-23 20:45'), clr3 ],
278
- [ 11, bayern, [6,1], lille, Time.cet('2012-11-07 20:45'), clr4 ]],
279
- [[ 12, borissow, [0,3], valencia, Time.cet('2012-10-23 20:45'), clr3 ],
280
- [ 12, valencia, [4,2], borissow, Time.cet('2012-11-07 20:45'), clr4 ]]
281
- ]
282
-
283
- games_clg = [
284
- [[ 13, celtic, [0,0], benfica, Time.cet('2012-09-19 20:45'), clr1 ],
285
- [ 14, benfica, [2,1], celtic, Time.cet('2012-11-20 20:45'), clr5 ]],
286
- [[ 14, barcelona, [3,2], spartak, Time.cet('2012-09-19 20:45'), clr1 ],
287
- [ 13, spartak, [0,3], barcelona, Time.cet('2012-11-20 18:00'), clr5 ]],
288
- [[ 13, spartak, [2,3], celtic, Time.cet('2012-10-02 18:00'), clr2 ],
289
- [ 14, celtic, [2,1], spartak, Time.cet('2012-12-05 20:45'), clr6 ]],
290
- [[ 14, benfica, [0,2], barcelona, Time.cet('2012-10-02 20:45'), clr2 ],
291
- [ 13, barcelona, [0,0], benfica, Time.cet('2012-12-05 20:45'), clr6 ]],
292
- [[ 13, spartak, [2,1], benfica, Time.cet('2012-10-23 18:00'), clr3 ],
293
- [ 14, benfica, [2,0], spartak, Time.cet('2012-11-07 20:45'), clr4 ]],
294
- [[ 14, barcelona, [2,1], celtic, Time.cet('2012-10-23 20:45'), clr3 ],
295
- [ 13, celtic, [2,1], barcelona, Time.cet('2012-11-07 20:45'), clr4 ]]
296
- ]
297
-
298
- games_clh = [
299
- [[ 15, manunited, [1,0], galatasaray, Time.cet('2012-09-19 20:45'), clr1 ],
300
- [ 15, galatasaray, [1,0], manunited, Time.cet('2012-11-20 20:45'), clr5 ]],
301
- [[ 16, braga, [0,2], cluj, Time.cet('2012-09-19 20:45'), clr1 ],
302
- [ 16, cluj, [3,1], braga, Time.cet('2012-11-20 20:45'), clr5 ]],
303
- [[ 15, cluj, [1,2], manunited, Time.cet('2012-10-02 20:45'), clr2 ],
304
- [ 16, manunited, [0,1], cluj, Time.cet('2012-12-05 20:45'), clr6 ]],
305
- [[ 16, galatasaray, [0,2], braga, Time.cet('2012-10-02 20:45'), clr2 ],
306
- [ 15, braga, [1,2], galatasaray, Time.cet('2012-12-05 20:45'), clr6 ]],
307
- [[ 15, manunited, [3,2], braga, Time.cet('2012-10-23 20:45'), clr3 ],
308
- [ 15, braga, [1,3], manunited, Time.cet('2012-11-07 20:45'), clr4 ]],
309
- [[ 16, galatasaray, [1,1], cluj, Time.cet('2012-10-23 20:45'), clr3 ],
310
- [ 16, cluj, [1,3], galatasaray, Time.cet('2012-11-07 20:45'), clr4 ]]
311
- ]
312
-
313
- Game.create_pairs_from_ary_for_group!( games_cla, cla )
314
- Game.create_pairs_from_ary_for_group!( games_clb, clb )
315
- Game.create_pairs_from_ary_for_group!( games_clc, clc )
316
- Game.create_pairs_from_ary_for_group!( games_cld, cld )
317
- Game.create_pairs_from_ary_for_group!( games_cle, cle )
318
- Game.create_pairs_from_ary_for_group!( games_clf, clf )
319
- Game.create_pairs_from_ary_for_group!( games_clg, clg )
320
- Game.create_pairs_from_ary_for_group!( games_clh, clh )
321
-
322
-
323
- ## The End
324
- #################
data/data/cl/badges.rb DELETED
@@ -1,68 +0,0 @@
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
- ## The End
68
- #################
data/data/cl/teams.txt DELETED
@@ -1,46 +0,0 @@
1
- # encoding: utf-8
2
-
3
- #### NB:
4
- ## use en/teams.rb for English Teams
5
- ## use es/teams.rb for Spanish Teams
6
- ## use de/teams.rb for German Teams
7
- ## use at/teams.rb for Austrian Teams
8
-
9
-
10
- porto, FC Porto, pt, city:porto
11
- benfica, Benfica Lissabon|Benfica Lis., pt, city:lisboa
12
- braga, Sporting Braga, pt, city:braga
13
- sporting, Sporting Lisboa, pt, city:lisboa
14
-
15
- milan, AC Mailand|AC Milan, it, city:milano
16
- inter, FC Internazionale Milano, it, city:milano
17
- napoli, SSC Napoli, it, city:napoli
18
- juventus, Juventus Turin, it, city:torino
19
-
20
- paris, Paris St. Germain|Paris S.Germai|Paris Saint Germain, fr, city:paris
21
- montpellier, HSC Montpellier|Montpellier, fr, city:montpellier
22
- lille, OSC Lille|Lille OSC, fr, city:lille
23
- marseille, Olympique Marseille, fr, city:marseille
24
-
25
- kiew, Dynamo Kiew|FC Dynamo Kiew|Dynamo Kiev, ua, city:kiev
26
- donezk, Schachtjor Donezk|Shakhtar Don.|Shakhtar Donetsk, ua, city:donetsk
27
- metalist, FC Metalist Kharkiv, ua, city:kharkov
28
-
29
- zenit, Zenit St. Petersburg|Zenit Petersb.|FC Zenit St Petersburg, ru, city:stpetersburg
30
- spartak, Spartak Moskau|Spartak Moscow, ru, city:moskva
31
- moskva, PFC CSKA Moskva, ru, city:moskva
32
-
33
- anderlecht, RSC Anderlecht, be, city:brussel
34
-
35
- ajax, Ajax Amsterdam, nl, city:amsterdam
36
- az, AZ Alkmaar, nl, city:alkmaar
37
-
38
- zagreb, Dinamo Zagreb|NK Dinamo Zagreb, hr, city:zagreb
39
- olympiacos, Olympiakos Piräus|Olympiakos P., gr, city:piraeus
40
- nordsjalland, FC Nordsjælland|Nordsjaelland, dk, city:farum
41
- borissow, BATE Borissow|Bate Borisov, by, city:borisov
42
- celtic, Celtic Glasgow, sc, city:glasgow
43
- galatasaray, Galatasaray|Galatasaray Istanbul, tr, city:istanbul
44
- cluj, CFR Cluj, ro, city:cluj
45
- basel, FC Basel 1893, ch, city:basel
46
- apoel, APOEL Nikosia, cy, city:nikosia
@@ -1,38 +0,0 @@
1
- # encoding: utf-8
2
-
3
- #################################
4
- ## Copa Sudamericana 2012/13
5
-
6
- ###
7
- ## fix: time zone and times??
8
-
9
-
10
- sud = Event.create!( league: League.find_by_key!('copa.sud'),
11
- season: Season.find_by_key!('2012/13'),
12
- start_at: Time.cet( '2012-08-03 12:00' ))
13
-
14
-
15
- team_keys_sud = [
16
- 'tigre',
17
- 'colon',
18
- 'independiente',
19
- 'saopaulo',
20
- 'gremio',
21
- 'palmeiras',
22
- 'atleticogo',
23
- 'udechile',
24
- 'cduc',
25
- 'millonarios',
26
- 'quito',
27
- 'emelec',
28
- 'loja',
29
- 'barcelonasc',
30
- 'liverpoolfc',
31
- 'porteno'
32
- ]
33
-
34
-
35
- sud.add_teams_from_ary!( team_keys_sud )
36
-
37
- ## The End
38
- #################
@@ -1,49 +0,0 @@
1
- #################################
2
- ## Copa Sudamericana 2012/13
3
-
4
- ###
5
- ## fix: time zone and times??
6
-
7
-
8
- 1. Runde // Achtelfinale - Hinspiele
9
-
10
- 2012-09-26 12:00 Deportivo Quito 2:0 CA Tigre
11
- 2012-09-26 12:00 Independiente 2:1 Liverpool FC Montevideo
12
- 2012-09-27 12:00 Barcelona SC Guayaquil 0:1 Grêmio
13
- 2012-09-27 12:00 LDU de Loja 1:1 São Paulo FC
14
- 2012-09-28 12:00 CA Colón 1:2 Cerro Porteño
15
- 2012-10-03 12:00 U. de Chile 2:2 CS Emelec
16
- 2012-10-03 12:00 Palmeiras 3:1 Millonarios Bogotá
17
- 2012-10-04 12:00 Universidad Católica 2:0 Atlético Goianiense
18
-
19
-
20
- 2. Runde // Achtelfinale - Rückspiele
21
-
22
- 2012-10-24 12:00 Atlético Goianiense 3:1 Universidad Católica
23
- 2012-10-24 12:00 Millonarios Bogotá 3:0 Palmeiras
24
- 2012-10-24 12:00 Cerro Porteño 2:1 CA Colón
25
- 2012-10-25 12:00 Grêmio 2:1 Barcelona SC Guayaquil
26
- 2012-10-25 12:00 São Paulo FC 0:0 LDU de Loja
27
- 2012-10-26 12:00 CS Emelec 0:1 U. de Chile
28
- 2012-10-26 12:00 CA Tigre 4:0 Deportivo Quito
29
- 2012-10-26 12:00 Liverpool FC Montevideo 1:2 Independiente
30
-
31
-
32
- 3. Runde // Viertelfinale - Hinspiele
33
-
34
- 2012-10-31 12:00 Grêmio 1:0 Millonarios Bogotá
35
- 2012-11-01 12:00 Cerro Porteño 1:0 CA Tigre
36
- 2012-11-01 12:00 U. de Chile 0:2 São Paulo FC
37
- 2012-11-02 12:00 Independiente 2:2 Universidad Católica
38
-
39
-
40
- 4. Runde // Viertelfinale - Rückspiele
41
-
42
- 2012-11-07 12:00 CA Tigre 4:2 Cerro Porteño
43
- 2012-11-07 12:00 São Paulo FC 5:0 U. de Chile
44
- 2012-11-07 12:00 Universidad Católica 2:1 Independiente
45
- 2012-11-07 12:00 Millonarios - Grêmio
46
-
47
-
48
-
49
-
data/data/copa/teams.txt DELETED
@@ -1,35 +0,0 @@
1
- # encoding: utf-8
2
-
3
-
4
- tigre, Club Atlético Tigre|CA Tigre|Tigre, ar
5
- colon, CA Colón|Club Atlético Colón (Santa Fe), ar
6
- independiente, Independiente|CA Independiente de Avellaneda, ar
7
- bocajuniors, Club Atlético Boca Juniors|Boca Juniors, ar
8
- velez, Club Atlético Vélez Sarsfield|CA Vélez, ar
9
-
10
- saopaulo, São Paulo FC|São Paulo|FC São Paulo|São Paulo SP, br
11
- gremio, Grêmio Porto Alegre|Grêmio|Grêmio RS, br
12
- palmeiras, SE Palmeiras São Paulo|SE Palmeiras|Palmeiras|Palmeiras SP, br
13
- atleticogo, Atlético Goianiense|Atlético GO, br
14
- corinthians, Corinthians São Paulo|Corinthians|Corinthians SP, br
15
- santos, FC Santos|Santos|Santos SP, br
16
- internacional, Internacional Porto Alegre|Internacional|Internacional RS, br
17
- fluminense, Fluminense Rio de Janeiro|Fluminense|Fluminense RJ, br
18
- flamengo, Flamengo Rio de Janeiro|Flamengo|Flamengo RJ, br
19
- vascodegama, Vasco da Gama Rio de Janeiro|Vasco|Vasco Da Gama RJ, br
20
-
21
- udechile, Universidad de Chile|U. de Chile|Club Universidad de Chile, cl
22
- cduc, Universidad Católica|CDUC|CD Universidad Católica, cl
23
-
24
- millonarios, Millonarios Bogotá|Millonarios|Millonarios FC, co
25
- atleticonacional, Atlético Nacional, co
26
-
27
- quito, Deportivo Quito|Club Deportivo Quito, ec
28
- emelec, CS Emelec|Emelec|Club Sport Emelec, ec
29
- loja, LDU Loja|LDU de Loja|Liga de Loja, ec
30
- barcelonasc, Barcelona SC Guayaquil|Barcelona SC|Barcelona Guayaquil, ec
31
-
32
- liverpoolfc, Liverpool FC Montevideo|Liverpool FC|Liverpool Fútbol Club|Liverpool Montevideo, uy
33
-
34
- porteno, Cerro Porteño|Club Cerro Porteño, py
35
- libertad, Club Libertad Asunción|Libertad|Libertad Ascunción, py
@@ -1,38 +0,0 @@
1
- # encoding: utf-8
2
-
3
- # note: timezone for games (play_at) is *always* CET (central european time)
4
-
5
- ######################################
6
- ## Deutsche Bundesliga 2012/13
7
- ##
8
- ## more info => http://bundesliga.de
9
-
10
-
11
- bl = Event.create!( league: League.find_by_key!('de'),
12
- season: Season.find_by_key!('2012/13'),
13
- start_at: Time.cet('2012-07-21 00:00'))
14
-
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
- ## The End
38
- #################