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/Manifest.txt CHANGED
@@ -4,10 +4,15 @@ README.markdown
4
4
  Rakefile
5
5
  bin/sportdb
6
6
  db/at/2011_12/bl.rb
7
+ db/at/2011_12/bl.txt
8
+ db/at/2011_12/bl_fixtures.rb
7
9
  db/at/2011_12/cup.rb
8
10
  db/at/2012_13/bl.rb
9
11
  db/at/2012_13/bl.txt
12
+ db/at/2012_13/bl_fixtures.rb
10
13
  db/at/2012_13/cup.rb
14
+ db/at/2012_13/cup.txt
15
+ db/at/2012_13/cup_fixtures.rb
11
16
  db/at/teams.rb
12
17
  db/cl/2011_12/cl.rb
13
18
  db/cl/2011_12/el.rb
@@ -32,7 +37,10 @@ db/ro/l1_2012_13.rb
32
37
  db/ro/teams.rb
33
38
  db/world/quali_2012_13.rb
34
39
  db/world/quali_2012_13_c.rb
40
+ db/world/quali_2012_13_c.txt
41
+ db/world/quali_2012_13_fixtures.rb
35
42
  db/world/quali_2012_13_i.rb
43
+ db/world/quali_2012_13_i.txt
36
44
  lib/sportdb.rb
37
45
  lib/sportdb/cli/opts.rb
38
46
  lib/sportdb/cli/runner.rb
data/db/at/2011_12/bl.rb CHANGED
@@ -12,111 +12,19 @@ bl = Event.create!( key: 'at.2011/12',
12
12
  title: 'Österr. Bundesliga 2011/12',
13
13
  start_at: Time.cet('2012-04-07 00:00') )
14
14
 
15
- salzburg = Team.find_by_key!( 'salzburg' )
16
- rapid = Team.find_by_key!( 'rapid' )
17
- admira = Team.find_by_key!( 'admira' )
18
- austria = Team.find_by_key!( 'austria' )
19
- sturm = Team.find_by_key!( 'sturm' )
20
- ried = Team.find_by_key!( 'ried' )
21
- wacker = Team.find_by_key!( 'wacker' )
22
- mattersburg = Team.find_by_key!( 'mattersburg' )
23
- neustadt = Team.find_by_key!( 'neustadt' )
24
- ksv = Team.find_by_key!( 'ksv' )
25
-
26
- bl.teams << salzburg
27
- bl.teams << rapid
28
- bl.teams << admira
29
- bl.teams << austria
30
- bl.teams << sturm
31
- bl.teams << ried
32
- bl.teams << wacker
33
- bl.teams << mattersburg
34
- bl.teams << neustadt
35
- bl.teams << ksv
36
-
37
-
38
- bl29 = Round.create!( event: bl, pos: 29, title: '29. Runde', start_at: Time.cet('2012-04-07'), title2: 'Sa+So 7.+8. April 2012' )
39
- bl30 = Round.create!( event: bl, pos: 30, title: '30. Runde', start_at: Time.cet('2012-04-14'), title2: 'Sa+So 14.+15. April 2012' )
40
- bl31 = Round.create!( event: bl, pos: 31, title: '31. Runde', start_at: Time.cet('2012-04-21'), title2: 'Sa+So 21.+22. April 2012' )
41
- bl32 = Round.create!( event: bl, pos: 32, title: '32. Runde', start_at: Time.cet('2012-04-28'), title2: 'Sa+So 28.+29. April 2012' )
42
- bl33 = Round.create!( event: bl, pos: 33, title: '33. Runde', start_at: Time.cet('2012-05-05'), title2: 'Sa 5. Mai 2012' )
43
- bl34 = Round.create!( event: bl, pos: 34, title: '34. Runde', start_at: Time.cet('2012-05-10'), title2: 'Do 10. Mai 2012' )
44
- bl35 = Round.create!( event: bl, pos: 35, title: '35. Runde', start_at: Time.cet('2012-05-13'), title2: 'So 13. Mai 2012' )
45
- bl36 = Round.create!( event: bl, pos: 36, title: '36. Runde', start_at: Time.cet('2012-05-17'), title2: 'Do 17. Mai 2012' )
46
-
47
-
48
- games_bl29 = [
49
- [ salzburg, [2, 0], wacker, Time.cet('2012-04-07 16:00') ],
50
- [ ried, [0, 1], austria, Time.cet('2012-04-07 18:30') ],
51
- [ ksv, [2, 3], admira, Time.cet('2012-04-07 18:30') ],
52
- [ rapid, [2, 1], neustadt, Time.cet('2012-04-07 18:30') ],
53
- [ mattersburg, [0, 2], sturm, Time.cet('2012-04-08 16:00') ]
54
- ]
55
-
56
- games_bl30 = [
57
- [ neustadt, [0, 0], ksv, Time.cet('2012-04-14 16:00') ],
58
- [ admira, [1, 1], wacker, Time.cet('2012-04-14 18:30') ],
59
- [ sturm, [2, 2], salzburg, Time.cet('2012-04-14 18:30') ],
60
- [ ried, [2, 0], mattersburg, Time.cet('2012-04-14 18:30') ],
61
- [ austria, [0, 0], rapid, Time.cet('2012-04-15 16:00') ]
62
- ]
63
-
64
- games_bl31 = [
65
- [ wacker, [2, 0], neustadt, Time.cet('2012-04-21 16:00') ],
66
- [ ksv, [1, 0], austria, Time.cet('2012-04-21 18:30') ],
67
- [ mattersburg, [1, 2], admira, Time.cet('2012-04-21 18:30') ],
68
- [ salzburg, [2, 0], ried, Time.cet('2012-04-21 18:30') ],
69
- [ rapid, [1, 1], sturm, Time.cet('2012-04-22 16:00') ]
70
- ]
71
-
72
- games_bl32 = [
73
- [ austria, [3, 0], wacker, Time.cet('2012-04-28 16:00') ],
74
- [ neustadt, [1, 4], admira, Time.cet('2012-04-28 18:30') ],
75
- [ mattersburg, [0, 1], salzburg, Time.cet('2012-04-28 18:30') ],
76
- [ sturm, [2, 1], ksv, Time.cet('2012-04-28 18:30') ],
77
- [ ried, [2, 3], rapid, Time.cet('2012-04-29 16:00') ]
78
- ]
79
-
80
- games_bl33 = [
81
- [ neustadt, [0, 0], sturm, Time.cet('2012-05-05 16:00') ],
82
- [ admira, [3, 2], austria, Time.cet('2012-05-05 18:30') ],
83
- [ ksv, [0, 0], ried, Time.cet('2012-05-05 18:30') ],
84
- [ wacker, [3, 6], mattersburg, Time.cet('2012-05-05 18:30') ],
85
- [ rapid, [0, 1], salzburg, Time.cet('2012-05-06 16:00') ]
86
- ]
87
-
88
- games_bl34 = [
89
- [ salzburg, [2, 0], ksv, Time.cet('2012-05-10 18:30') ],
90
- [ austria, [3, 1], neustadt, Time.cet('2012-05-10 20:30') ],
91
- [ ried, [1, 1], wacker, Time.cet('2012-05-10 20:30') ],
92
- [ mattersburg, [0, 1], rapid, Time.cet('2012-05-10 20:30') ],
93
- [ sturm, [0, 3], admira, Time.cet('2012-05-10 20:30') ]
94
- ]
95
-
96
- games_bl35 = [
97
- [ ksv, [0,2], rapid, Time.cet('2012-05-13 16:00') ],
98
- [ wacker, [1,1], sturm, Time.cet('2012-05-13 16:00') ],
99
- [ neustadt, [1,5], salzburg, Time.cet('2012-05-13 16:00') ],
100
- [ admira, [1,1], ried, Time.cet('2012-05-13 16:00') ],
101
- [ austria, [1,0], mattersburg, Time.cet('2012-05-13 16:00') ]
102
- ]
103
-
104
- games_bl36 = [
105
- [ rapid, [2,0], wacker, Time.cet('2012-05-17 16:00') ],
106
- [ ried, [2,2], neustadt, Time.cet('2012-05-17 16:00') ],
107
- [ mattersburg, [2,0], ksv, Time.cet('2012-05-17 16:00') ],
108
- [ sturm, [3,1], austria, Time.cet('2012-05-17 16:00') ],
109
- [ salzburg, [2,0], admira, Time.cet('2012-05-17 16:00') ]
110
- ]
111
-
112
- Game.create_from_ary!( games_bl29, bl29 )
113
- Game.create_from_ary!( games_bl30, bl30 )
114
- Game.create_from_ary!( games_bl31, bl31 )
115
- Game.create_from_ary!( games_bl32, bl32 )
116
- Game.create_from_ary!( games_bl33, bl33 )
117
- Game.create_from_ary!( games_bl34, bl34 )
118
- Game.create_from_ary!( games_bl35, bl35 )
119
- Game.create_from_ary!( games_bl36, bl36 )
15
+ team_keys_bl = [
16
+ 'salzburg',
17
+ 'rapid',
18
+ 'admira',
19
+ 'austria',
20
+ 'sturm',
21
+ 'ried',
22
+ 'wacker',
23
+ 'mattersburg',
24
+ 'neustadt',
25
+ 'ksv' ]
26
+
27
+ bl.add_teams_from_ary!( team_keys_bl )
120
28
 
121
29
 
122
30
  Prop.create!( key: 'db.at.bl.2011/12.version', value: '1' )
@@ -0,0 +1,79 @@
1
+ ######################################
2
+ ## Oesterreichische Bundesliga 2011/12
3
+ ##
4
+ ## more info => http://bundesliga.at
5
+
6
+ # note: timezone for games (play_at) is *always* CET (central european time)
7
+
8
+
9
+ 29. Runde / Sa+So 7.+8. April 2012
10
+
11
+ salzburg 2:0 wacker 2012-04-07 16:00
12
+ ried 0:1 austria 2012-04-07 18:30
13
+ ksv 2:3 admira 2012-04-07 18:30
14
+ rapid 2:1 neustadt 2012-04-07 18:30
15
+ mattersburg 0:2 sturm 2012-04-08 16:00
16
+
17
+
18
+ 30. Runde / Sa+So 14.+15. April 2012
19
+
20
+ neustadt 0:0 ksv 2012-04-14 16:00
21
+ admira 1:1 wacker 2012-04-14 18:30
22
+ sturm 2:2 salzburg 2012-04-14 18:30
23
+ ried 2:0 mattersburg 2012-04-14 18:30
24
+ austria 0:0 rapid 2012-04-15 16:00
25
+
26
+
27
+ 31. Runde / Sa+So 21.+22. April 2012
28
+
29
+ wacker 2:0 neustadt 2012-04-21 16:00
30
+ ksv 1:0 austria 2012-04-21 18:30
31
+ mattersburg 1:2 admira 2012-04-21 18:30
32
+ salzburg 2:0 ried 2012-04-21 18:30
33
+ rapid 1:1 sturm 2012-04-22 16:00
34
+
35
+
36
+ 32. Runde / Sa+So 28.+29. April 2012
37
+
38
+ austria 3:0 wacker 2012-04-28 16:00
39
+ neustadt 1:4 admira 2012-04-28 18:30
40
+ mattersburg 0:1 salzburg 2012-04-28 18:30
41
+ sturm 2:1 ksv 2012-04-28 18:30
42
+ ried 2:3 rapid 2012-04-29 16:00
43
+
44
+
45
+ 33. Runde / Sa 5. Mai 2012
46
+
47
+ neustadt 0:0 sturm 2012-05-05 16:00
48
+ admira 3:2 austria 2012-05-05 18:30
49
+ ksv 0:0 ried 2012-05-05 18:30
50
+ wacker 3:6 mattersburg 2012-05-05 18:30
51
+ rapid 0:1 salzburg 2012-05-06 16:00
52
+
53
+
54
+ 34. Runde / Do 10. Mai 2012
55
+
56
+ salzburg 2:0 ksv 2012-05-10 18:30
57
+ austria 3:1 neustadt 2012-05-10 20:30
58
+ ried 1:1 wacker 2012-05-10 20:30
59
+ mattersburg 0:1 rapid 2012-05-10 20:30
60
+ sturm 0:3 admira 2012-05-10 20:30
61
+
62
+
63
+ 35. Runde / So 13. Mai 2012
64
+
65
+ ksv 0:2 rapid 2012-05-13 16:00
66
+ wacker 1:1 sturm 2012-05-13 16:00
67
+ neustadt 1:5 salzburg 2012-05-13 16:00
68
+ admira 1:1 ried 2012-05-13 16:00
69
+ austria 1:0 mattersburg 2012-05-13 16:00
70
+
71
+
72
+ 36. Runde / Do 17. Mai 2012
73
+
74
+ rapid 2:0 wacker 2012-05-17 16:00
75
+ ried 2:2 neustadt 2012-05-17 16:00
76
+ mattersburg 2:0 ksv 2012-05-17 16:00
77
+ sturm 3:1 austria 2012-05-17 16:00
78
+ salzburg 2:0 admira 2012-05-17 16:00
79
+
@@ -0,0 +1,113 @@
1
+ # encoding: utf-8
2
+
3
+ ####################################################################
4
+ # generiert am 2012-10-27 17:33:00 +0200
5
+ # using sportdb 0.4.2 on Ruby 1.9.3 (2012-02-16) [i686-linux]
6
+ ####################################################################
7
+
8
+
9
+ ###########################################
10
+ # Österr. Bundesliga 2011/12
11
+
12
+
13
+
14
+ ev = Event.find_by_key!( 'at.2011/12' )
15
+
16
+ salzburg = Team.find_by_key!( 'salzburg' )
17
+ rapid = Team.find_by_key!( 'rapid' )
18
+ admira = Team.find_by_key!( 'admira' )
19
+ austria = Team.find_by_key!( 'austria' )
20
+ sturm = Team.find_by_key!( 'sturm' )
21
+ ried = Team.find_by_key!( 'ried' )
22
+ wacker = Team.find_by_key!( 'wacker' )
23
+ mattersburg = Team.find_by_key!( 'mattersburg' )
24
+ neustadt = Team.find_by_key!( 'neustadt' )
25
+ ksv = Team.find_by_key!( 'ksv' )
26
+
27
+
28
+ r29 = Round.create!( event: ev, pos: 29, title: '29. Runde', start_at: Time.utc('2012-04-07 16:00'))
29
+ r30 = Round.create!( event: ev, pos: 30, title: '30. Runde', start_at: Time.utc('2012-04-14 16:00'))
30
+ r31 = Round.create!( event: ev, pos: 31, title: '31. Runde', start_at: Time.utc('2012-04-21 16:00'))
31
+ r32 = Round.create!( event: ev, pos: 32, title: '32. Runde', start_at: Time.utc('2012-04-28 16:00'))
32
+ r33 = Round.create!( event: ev, pos: 33, title: '33. Runde', start_at: Time.utc('2012-05-05 16:00'))
33
+ r34 = Round.create!( event: ev, pos: 34, title: '34. Runde', start_at: Time.utc('2012-05-10 18:30'))
34
+ r35 = Round.create!( event: ev, pos: 35, title: '35. Runde', start_at: Time.utc('2012-05-13 16:00'))
35
+ r36 = Round.create!( event: ev, pos: 36, title: '36. Runde', start_at: Time.utc('2012-05-17 16:00'))
36
+
37
+
38
+ games29 = [
39
+ [ salzburg, [2,0], wacker, Time.utc('2012-04-07 16:00') ],
40
+ [ ried, [0,1], austria, Time.utc('2012-04-07 18:30') ],
41
+ [ ksv, [2,3], admira, Time.utc('2012-04-07 18:30') ],
42
+ [ rapid, [2,1], neustadt, Time.utc('2012-04-07 18:30') ],
43
+ [ mattersburg, [0,2], sturm, Time.utc('2012-04-08 16:00') ],
44
+ ]
45
+
46
+ games30 = [
47
+ [ neustadt, [0,0], ksv, Time.utc('2012-04-14 16:00') ],
48
+ [ admira, [1,1], wacker, Time.utc('2012-04-14 18:30') ],
49
+ [ sturm, [2,2], salzburg, Time.utc('2012-04-14 18:30') ],
50
+ [ ried, [2,0], mattersburg, Time.utc('2012-04-14 18:30') ],
51
+ [ austria, [0,0], rapid, Time.utc('2012-04-15 16:00') ],
52
+ ]
53
+
54
+ games31 = [
55
+ [ wacker, [2,0], neustadt, Time.utc('2012-04-21 16:00') ],
56
+ [ ksv, [1,0], austria, Time.utc('2012-04-21 18:30') ],
57
+ [ mattersburg, [1,2], admira, Time.utc('2012-04-21 18:30') ],
58
+ [ salzburg, [2,0], ried, Time.utc('2012-04-21 18:30') ],
59
+ [ rapid, [1,1], sturm, Time.utc('2012-04-22 16:00') ],
60
+ ]
61
+
62
+ games32 = [
63
+ [ austria, [3,0], wacker, Time.utc('2012-04-28 16:00') ],
64
+ [ neustadt, [1,4], admira, Time.utc('2012-04-28 18:30') ],
65
+ [ mattersburg, [0,1], salzburg, Time.utc('2012-04-28 18:30') ],
66
+ [ sturm, [2,1], ksv, Time.utc('2012-04-28 18:30') ],
67
+ [ ried, [2,3], rapid, Time.utc('2012-04-29 16:00') ],
68
+ ]
69
+
70
+ games33 = [
71
+ [ neustadt, [0,0], sturm, Time.utc('2012-05-05 16:00') ],
72
+ [ admira, [3,2], austria, Time.utc('2012-05-05 18:30') ],
73
+ [ ksv, [0,0], ried, Time.utc('2012-05-05 18:30') ],
74
+ [ wacker, [3,6], mattersburg, Time.utc('2012-05-05 18:30') ],
75
+ [ rapid, [0,1], salzburg, Time.utc('2012-05-06 16:00') ],
76
+ ]
77
+
78
+ games34 = [
79
+ [ salzburg, [2,0], ksv, Time.utc('2012-05-10 18:30') ],
80
+ [ austria, [3,1], neustadt, Time.utc('2012-05-10 20:30') ],
81
+ [ ried, [1,1], wacker, Time.utc('2012-05-10 20:30') ],
82
+ [ mattersburg, [0,1], rapid, Time.utc('2012-05-10 20:30') ],
83
+ [ sturm, [0,3], admira, Time.utc('2012-05-10 20:30') ],
84
+ ]
85
+
86
+ games35 = [
87
+ [ ksv, [0,2], rapid, Time.utc('2012-05-13 16:00') ],
88
+ [ wacker, [1,1], sturm, Time.utc('2012-05-13 16:00') ],
89
+ [ neustadt, [1,5], salzburg, Time.utc('2012-05-13 16:00') ],
90
+ [ admira, [1,1], ried, Time.utc('2012-05-13 16:00') ],
91
+ [ austria, [1,0], mattersburg, Time.utc('2012-05-13 16:00') ],
92
+ ]
93
+
94
+ games36 = [
95
+ [ rapid, [2,0], wacker, Time.utc('2012-05-17 16:00') ],
96
+ [ ried, [2,2], neustadt, Time.utc('2012-05-17 16:00') ],
97
+ [ mattersburg, [2,0], ksv, Time.utc('2012-05-17 16:00') ],
98
+ [ sturm, [3,1], austria, Time.utc('2012-05-17 16:00') ],
99
+ [ salzburg, [2,0], admira, Time.utc('2012-05-17 16:00') ],
100
+ ]
101
+
102
+
103
+
104
+ Game.create_from_ary!( games29, r29 )
105
+ Game.create_from_ary!( games30, r30 )
106
+ Game.create_from_ary!( games31, r31 )
107
+ Game.create_from_ary!( games32, r32 )
108
+ Game.create_from_ary!( games33, r33 )
109
+ Game.create_from_ary!( games34, r34 )
110
+ Game.create_from_ary!( games35, r35 )
111
+ Game.create_from_ary!( games36, r36 )
112
+
113
+ Prop.create!( key: 'db.at.2011/12.fixtures.version', value: '1' )
data/db/at/2012_13/bl.rb CHANGED
@@ -12,236 +12,20 @@ bl = Event.create!( key: 'at_bl_2012_13',
12
12
  title: 'Österr. Bundesliga 2012/13',
13
13
  start_at: Time.cet('2012-07-21 00:00') )
14
14
 
15
- salzburg = Team.find_by_key!( 'salzburg' )
16
- rapid = Team.find_by_key!( 'rapid' )
17
- admira = Team.find_by_key!( 'admira' )
18
- austria = Team.find_by_key!( 'austria' )
19
- sturm = Team.find_by_key!( 'sturm' )
20
- ried = Team.find_by_key!( 'ried' )
21
- wacker = Team.find_by_key!( 'wacker' )
22
- mattersburg = Team.find_by_key!( 'mattersburg' )
23
- neustadt = Team.find_by_key!( 'neustadt' )
24
- wac = Team.find_by_key!( 'wac' )
25
-
26
-
27
- bl.teams << salzburg
28
- bl.teams << rapid
29
- bl.teams << admira
30
- bl.teams << austria
31
- bl.teams << sturm
32
- bl.teams << ried
33
- bl.teams << wacker
34
- bl.teams << mattersburg
35
- bl.teams << neustadt
36
- bl.teams << wac
37
-
38
-
39
- bl01 = Round.create!( event: bl, pos: 1, title: '1. Runde', start_at: Time.cet('2012-07-21'), title2: 'Sa+So 21.+22. Jul 2012' )
40
- bl02 = Round.create!( event: bl, pos: 2, title: '2. Runde', start_at: Time.cet('2012-07-28'), title2: 'Sa+So 28.+29. Jul 2012' )
41
- bl03 = Round.create!( event: bl, pos: 3, title: '3. Runde', start_at: Time.cet('2012-08-04'), title2: 'Sa+So 4.+5. Aug 2012' )
42
- bl04 = Round.create!( event: bl, pos: 4, title: '4. Runde', start_at: Time.cet('2012-08-11'), title2: 'Sa 11. Aug 2012' )
43
- bl05 = Round.create!( event: bl, pos: 5, title: '5. Runde', start_at: Time.cet('2012-08-18'), title2: 'Sa 18. Aug 2012' )
44
- bl06 = Round.create!( event: bl, pos: 6, title: '6. Runde', start_at: Time.cet('2012-08-25'), title2: 'Sa 25. Aug 2012' )
45
- bl07 = Round.create!( event: bl, pos: 7, title: '7. Runde', start_at: Time.cet('2012-09-01'), title2: 'Sa 1. Sep 2012' )
46
- bl08 = Round.create!( event: bl, pos: 8, title: '8. Runde', start_at: Time.cet('2012-09-15'), title2: 'Sa 15. Sep 2012' )
47
- bl09 = Round.create!( event: bl, pos: 9, title: '9. Runde', start_at: Time.cet('2012-09-22'), title2: 'Sa 22. Sep 2012' )
48
- bl10 = Round.create!( event: bl, pos: 10, title: '10. Runde', start_at: Time.cet('2012-09-29'), title2: 'Sa 29. Sep 2012' )
49
- bl11 = Round.create!( event: bl, pos: 11, title: '11. Runde', start_at: Time.cet('2012-10-06'), title2: 'Sa 6. Okt 2012' )
50
- bl12 = Round.create!( event: bl, pos: 12, title: '12. Runde', start_at: Time.cet('2012-10-20'), title2: 'Sa 20. Okt 2012' )
51
- bl13 = Round.create!( event: bl, pos: 13, title: '13. Runde', start_at: Time.cet('2012-10-27'), title2: 'Sa 27. Okt 2012' )
52
- bl14 = Round.create!( event: bl, pos: 14, title: '14. Runde', start_at: Time.cet('2012-11-03'), title2: 'Sa 3. Nov 2012' )
53
- bl15 = Round.create!( event: bl, pos: 15, title: '15. Runde', start_at: Time.cet('2012-11-10'), title2: 'Sa 10. Nov 2012' )
54
- bl16 = Round.create!( event: bl, pos: 16, title: '16. Runde', start_at: Time.cet('2012-11-17'), title2: 'Sa 17. Nov 2012' )
55
- bl17 = Round.create!( event: bl, pos: 17, title: '17. Runde', start_at: Time.cet('2012-11-24'), title2: 'Sa 24. Nov 2012' )
56
- bl18 = Round.create!( event: bl, pos: 18, title: '18. Runde', start_at: Time.cet('2012-12-01'), title2: 'Sa 1. Dez 2012' )
57
- bl19 = Round.create!( event: bl, pos: 19, title: '19. Runde', start_at: Time.cet('2012-12-08'), title2: 'Sa 8. Dez 2012' )
58
- bl20 = Round.create!( event: bl, pos: 20, title: '20. Runde', start_at: Time.cet('2012-12-15'), title2: 'Sa 15. Dez 2012' )
59
-
60
-
61
- ## todo: fix game dates - do not use 00:00
62
-
63
- games_bl01 = [
64
- [ sturm, [0,2], salzburg, Time.cet('2012-07-21 16:00') ],
65
- [ rapid, [4,0], wacker, Time.cet('2012-07-21 18:30') ],
66
- [ mattersburg, [2,0], neustadt, Time.cet('2012-07-21 18:30') ],
67
- [ wac, [0,1], austria, Time.cet('2012-07-25 18:30') ], # NB: date changed
68
- [ admira, [0,2], ried, Time.cet('2012-07-22 16:00') ]
69
- ]
70
-
71
- games_bl02 = [
72
- [ neustadt, [0,1], rapid, Time.cet('2012-07-28 18:30') ],
73
- [ salzburg, [3,2], mattersburg, Time.cet('2012-07-28 18:30') ],
74
- [ austria, [0,1], sturm, Time.cet('2012-07-28 18:30') ],
75
- [ wacker, [1,2], admira, Time.cet('2012-07-29 16:00') ],
76
- [ ried, [0,2], wac, Time.cet('2012-07-29 18:30') ]
77
- ]
78
-
79
- games_bl03 = [
80
- [ ried, [2,0], wacker, Time.cet('2012-08-04 18:30') ],
81
- [ mattersburg, [3,1], sturm, Time.cet('2012-08-04 18:30') ],
82
- [ wac, [0,2], salzburg, Time.cet('2012-08-04 18:30') ],
83
- [ admira, [4,0], neustadt, Time.cet('2012-08-04 18:30') ],
84
- [ rapid, [0,3], austria, Time.cet('2012-08-05 16:00') ]
85
- ]
86
-
87
- games_bl04 = [
88
- [ neustadt, [2,3], ried, Time.cet('2012-08-11 00:00') ],
89
- [ sturm, [4,1], wac, Time.cet('2012-08-11 00:00') ],
90
- [ salzburg, [0,2], rapid, Time.cet('2012-08-11 00:00') ],
91
- [ austria, [1,0], admira, Time.cet('2012-08-11 00:00') ],
92
- [ wacker, [2,1], mattersburg, Time.cet('2012-08-11 00:00') ]
93
- ]
94
-
95
- games_bl05 = [
96
- [ ried, [0,1], austria, Time.cet('2012-08-18 00:00') ],
97
- [ rapid, [3,0], sturm, Time.cet('2012-08-18 00:00') ],
98
- [ wacker, [2,3], neustadt, Time.cet('2012-08-18 00:00') ],
99
- [ wac, [0,1], mattersburg, Time.cet('2012-08-18 00:00') ],
100
- [ admira, [4,4], salzburg, Time.cet('2012-08-18 00:00') ]
101
- ]
102
-
103
- games_bl06 = [
104
- [ sturm, [3,2], admira, Time.cet('2012-08-25 00:00') ],
105
- [ salzburg, [1,1], neustadt, Time.cet('2012-08-25 00:00') ],
106
- [ austria, [2,0], wacker, Time.cet('2012-08-25 00:00') ],
107
- [ mattersburg, [2,1], ried, Time.cet('2012-08-25 00:00') ],
108
- [ wac, [1,0], rapid, Time.cet('2012-08-25 00:00') ]
109
- ]
110
-
111
- games_bl07 = [
112
- [ ried, [0,1], sturm, Time.cet('2012-09-01 00:00') ],
113
- [ neustadt,[0,2], austria, Time.cet('2012-09-01 00:00') ],
114
- [ rapid, [3,0], mattersburg, Time.cet('2012-09-01 00:00') ],
115
- [ wacker, [0,4], salzburg, Time.cet('2012-09-01 00:00') ],
116
- [ admira, [1,1], wac, Time.cet('2012-09-01 00:00') ]
117
- ]
118
-
119
- games_bl08 = [
120
- [ sturm, [3,0], wacker, Time.cet('2012-09-15 00:00') ],
121
- [ salzburg, [1,1], ried, Time.cet('2012-09-15 00:00') ],
122
- [ rapid, [0,0], admira, Time.cet('2012-09-15 00:00') ],
123
- [ mattersburg, [2,4], austria, Time.cet('2012-09-15 00:00') ],
124
- [ wac, [6,0], neustadt, Time.cet('2012-09-15 00:00') ]
125
- ]
126
-
127
- games_bl09 = [
128
- [ ried, [0,2], rapid, Time.cet('2012-09-22 00:00') ],
129
- [ neustadt,[1,1], sturm, Time.cet('2012-09-22 00:00') ],
130
- [ austria, [0,1], salzburg, Time.cet('2012-09-22 00:00') ],
131
- [ wacker, [0,1], wac, Time.cet('2012-09-22 00:00') ],
132
- [ admira, [5,1], mattersburg, Time.cet('2012-09-22 00:00') ]
133
- ]
134
-
135
- games_bl10 = [
136
- [ salzburg, [3,2], sturm, Time.cet('2012-09-29 00:00') ],
137
- [ wacker, [0,2], rapid, Time.cet('2012-09-29 00:00') ],
138
- [ neustadt, [0,0], mattersburg, Time.cet('2012-09-29 00:00') ],
139
- [ austria, [1,1], wac, Time.cet('2012-09-29 00:00') ],
140
- [ ried, [1,1], admira, Time.cet('2012-09-29 00:00') ]
141
- ]
142
-
143
- games_bl11 = [
144
- [ wac, [2,5], ried, Time.cet('2012-10-06 00:00') ],
145
- [ rapid, [1,1], neustadt, Time.cet('2012-10-06 00:00') ],
146
- [ mattersburg, [1,3], salzburg, Time.cet('2012-10-06 00:00') ],
147
- [ sturm, [1,1], austria, Time.cet('2012-10-06 00:00') ],
148
- [ admira, [4,1], wacker, Time.cet('2012-10-06 00:00') ]
149
- ]
150
-
151
- games_bl12 = [
152
- [ wacker, [], ried, Time.cet('2012-10-20 00:00') ],
153
- [ austria, [], rapid, Time.cet('2012-10-20 00:00') ],
154
- [ sturm, [], mattersburg, Time.cet('2012-10-20 00:00') ],
155
- [ salzburg, [], wac, Time.cet('2012-10-20 00:00') ],
156
- [ neustadt, [], admira, Time.cet('2012-10-20 00:00') ]
157
- ]
158
-
159
- games_bl13 = [
160
- [ ried, [], neustadt, Time.cet('2012-10-27 00:00') ],
161
- [ wac, [], sturm, Time.cet('2012-10-27 00:00') ],
162
- [ rapid, [], salzburg, Time.cet('2012-10-27 00:00') ],
163
- [ admira, [], austria, Time.cet('2012-10-27 00:00') ],
164
- [ mattersburg, [], wacker, Time.cet('2012-10-27 00:00') ]
165
- ]
166
-
167
- games_bl14 = [
168
- [ austria, [], ried, Time.cet('2012-11-03 00:00') ],
169
- [ sturm, [], rapid, Time.cet('2012-11-03 00:00') ],
170
- [ neustadt, [], wacker, Time.cet('2012-11-03 00:00') ],
171
- [ mattersburg, [], wac, Time.cet('2012-11-03 00:00') ],
172
- [ salzburg, [], admira, Time.cet('2012-11-03 00:00') ]
173
- ]
174
-
175
- games_bl15 = [
176
- [ admira, [], sturm, Time.cet('2012-11-10 00:00') ],
177
- [ neustadt, [], salzburg, Time.cet('2012-11-10 00:00') ],
178
- [ wacker, [], austria, Time.cet('2012-11-10 00:00') ],
179
- [ ried, [], mattersburg, Time.cet('2012-11-10 00:00') ],
180
- [ rapid, [], wac, Time.cet('2012-11-10 00:00') ]
181
- ]
182
-
183
- games_bl16 = [
184
- [ sturm, [], ried, Time.cet('2012-11-17 00:00') ],
185
- [ austria, [], neustadt, Time.cet('2012-11-17 00:00') ],
186
- [ mattersburg,[], rapid, Time.cet('2012-11-17 00:00') ],
187
- [ salzburg, [], wacker, Time.cet('2012-11-17 00:00') ],
188
- [ wac, [], admira, Time.cet('2012-11-17 00:00') ]
189
- ]
190
-
191
- games_bl17 = [
192
- [ wacker, [], sturm, Time.cet('2012-11-24 00:00') ],
193
- [ ried, [], salzburg, Time.cet('2012-11-24 00:00') ],
194
- [ admira, [], rapid, Time.cet('2012-11-24 00:00') ],
195
- [ austria, [], mattersburg, Time.cet('2012-11-24 00:00') ],
196
- [ neustadt, [], wac, Time.cet('2012-11-24 00:00') ]
197
- ]
198
-
199
- games_bl18 = [
200
- [ rapid, [], ried, Time.cet('2012-12-01 00:00') ],
201
- [ sturm, [], neustadt, Time.cet('2012-12-01 00:00') ],
202
- [ salzburg, [], austria, Time.cet('2012-12-01 00:00') ],
203
- [ wac, [], wacker, Time.cet('2012-12-01 00:00') ],
204
- [ mattersburg, [], admira, Time.cet('2012-12-01 00:00') ]
205
- ]
206
-
207
- games_bl19 = [
208
- [ sturm, [], salzburg, Time.cet('2012-12-08 00:00') ],
209
- [ rapid, [], wacker, Time.cet('2012-12-08 00:00') ],
210
- [ mattersburg, [], neustadt, Time.cet('2012-12-08 00:00') ],
211
- [ wac, [], austria, Time.cet('2012-12-08 00:00') ],
212
- [ admira, [], ried, Time.cet('2012-12-08 00:00') ]
213
- ]
214
-
215
- games_bl20 = [
216
- [ ried, [], wac, Time.cet('2012-12-15 00:00') ],
217
- [ neustadt, [], rapid, Time.cet('2012-12-15 00:00') ],
218
- [ salzburg, [], mattersburg, Time.cet('2012-12-15 00:00') ],
219
- [ austria, [], sturm, Time.cet('2012-12-15 00:00') ],
220
- [ wacker, [], admira, Time.cet('2012-12-15 00:00') ]
221
- ]
222
-
223
-
224
-
225
- Game.create_from_ary!( games_bl01, bl01 )
226
- Game.create_from_ary!( games_bl02, bl02 )
227
- Game.create_from_ary!( games_bl03, bl03 )
228
- Game.create_from_ary!( games_bl04, bl04 )
229
- Game.create_from_ary!( games_bl05, bl05 )
230
- Game.create_from_ary!( games_bl06, bl06 )
231
- Game.create_from_ary!( games_bl07, bl07 )
232
- Game.create_from_ary!( games_bl08, bl08 )
233
- Game.create_from_ary!( games_bl09, bl09 )
234
- Game.create_from_ary!( games_bl10, bl10 )
235
- Game.create_from_ary!( games_bl11, bl11 )
236
- Game.create_from_ary!( games_bl12, bl12 )
237
- Game.create_from_ary!( games_bl13, bl13 )
238
- Game.create_from_ary!( games_bl14, bl14 )
239
- Game.create_from_ary!( games_bl15, bl15 )
240
- Game.create_from_ary!( games_bl16, bl16 )
241
- Game.create_from_ary!( games_bl17, bl17 )
242
- Game.create_from_ary!( games_bl18, bl18 )
243
- Game.create_from_ary!( games_bl19, bl19 )
244
- Game.create_from_ary!( games_bl20, bl20 )
245
-
246
-
247
- Prop.create!( key: 'db.at.bl.2012/13.version', value: '1' )
15
+ ## 10 Bundeliga Teams
16
+
17
+ team_keys_bl = [
18
+ 'salzburg',
19
+ 'rapid',
20
+ 'admira',
21
+ 'austria',
22
+ 'sturm',
23
+ 'ried',
24
+ 'wacker',
25
+ 'mattersburg',
26
+ 'neustadt',
27
+ 'wac' ]
28
+
29
+ bl.add_teams_from_ary!( team_keys_bl )
30
+
31
+ Prop.create!( key: 'db.at.2012/13.version', value: '1' )