sportdb 0.3.0 → 0.3.1

Sign up to get free protection for your applications and to get access to all the features.
data/History.markdown CHANGED
@@ -1,3 +1,8 @@
1
+ ### 0.3.1 / 2012-10-14
2
+
3
+ * Move models into its own namespace, that is, SportDB::Models
4
+ * Add ActiveRecord logging for --verbose option
5
+
1
6
  ### 0.3.0 / 2012-10-07
2
7
 
3
8
  * Add --delete option to delete all records
data/Manifest.txt CHANGED
@@ -12,16 +12,34 @@ db/cl/2011_12/cl.rb
12
12
  db/cl/2011_12/el.rb
13
13
  db/cl/2012_13/cl.rb
14
14
  db/cl/teams.rb
15
+ db/countries.rb
16
+ db/de/2012_13/bl.rb
17
+ db/de/teams.rb
18
+ db/en/2012_13/pl.rb
19
+ db/en/teams.rb
15
20
  db/euro/2012.rb
16
21
  db/euro/teams.rb
17
22
  db/mx/apertura_2012.rb
18
23
  db/mx/teams.rb
24
+ db/nhl/teams.rb
25
+ db/ro/l1_2012_13.rb
26
+ db/ro/teams.rb
19
27
  db/world/quali_2012_13.rb
28
+ db/world/quali_2012_13_c.rb
29
+ db/world/quali_2012_13_i.rb
20
30
  lib/sportdb.rb
21
31
  lib/sportdb/cli/opts.rb
22
32
  lib/sportdb/cli/runner.rb
23
33
  lib/sportdb/loader.rb
24
- lib/sportdb/models.rb
34
+ lib/sportdb/models/country.rb
35
+ lib/sportdb/models/event.rb
36
+ lib/sportdb/models/event_team.rb
37
+ lib/sportdb/models/game.rb
38
+ lib/sportdb/models/group.rb
39
+ lib/sportdb/models/group_team.rb
40
+ lib/sportdb/models/prop.rb
41
+ lib/sportdb/models/round.rb
42
+ lib/sportdb/models/team.rb
25
43
  lib/sportdb/schema.rb
26
44
  lib/sportdb/utils.rb
27
45
  lib/sportdb/version.rb
data/Rakefile CHANGED
@@ -17,9 +17,18 @@ Hoe.spec 'sportdb' do
17
17
  self.readme_file = 'README.markdown'
18
18
  self.history_file = 'History.markdown'
19
19
 
20
- end
20
+ self.extra_deps = [
21
+ ['activerecord', '>= 3.2.8'], # NB: will include activesupport,etc.
22
+ ['sqlite3', '>= 1.3.6']
23
+ ]
24
+
25
+ self.post_install_message =<<EOS
26
+ ******************************************************************************
27
+
28
+ Questions? Comments? Send them along to the mailing list.
29
+ https://groups.google.com/group/opensport
21
30
 
22
- ## todo: add depends for
23
- ## - activerecord
24
- ## - ar-sqlite?
25
- ## - activesupport
31
+ ******************************************************************************
32
+ EOS
33
+
34
+ end
data/db/at/2011_12/bl.rb CHANGED
@@ -8,9 +8,9 @@
8
8
  ##
9
9
  ## more info => http://bundesliga.at
10
10
 
11
- bl = Event.create!( :key => 'at_bl_2011_12',
12
- :title => 'Österr. Bundesliga 2011/12',
13
- :start_at => Time.cet('2012-04-07 00:00') )
11
+ bl = Event.create!( key: 'at.2011/12',
12
+ title: 'Österr. Bundesliga 2011/12',
13
+ start_at: Time.cet('2012-04-07 00:00') )
14
14
 
15
15
  salzburg = Team.find_by_key!( 'salzburg' )
16
16
  rapid = Team.find_by_key!( 'rapid' )
@@ -35,78 +35,78 @@ bl.teams << neustadt
35
35
  bl.teams << ksv
36
36
 
37
37
 
38
- bl29 = Round.create!( :event => bl, :pos => 29, :title => '29. Runde', :title2 => '7.+8. April 2012' )
39
- bl30 = Round.create!( :event => bl, :pos => 30, :title => '30. Runde', :title2 => '14.+15. April 2012' )
40
- bl31 = Round.create!( :event => bl, :pos => 31, :title => '31. Runde', :title2 => '21.+22. April 2012' )
41
- bl32 = Round.create!( :event => bl, :pos => 32, :title => '32. Runde', :title2 => '28.+29. April 2012' )
42
- bl33 = Round.create!( :event => bl, :pos => 33, :title => '33. Runde', :title2 => '5. Mai 2012' )
43
- bl34 = Round.create!( :event => bl, :pos => 34, :title => '34. Runde', :title2 => '10. Mai 2012' )
44
- bl35 = Round.create!( :event => bl, :pos => 35, :title => '35. Runde', :title2 => '13. Mai 2012' )
45
- bl36 = Round.create!( :event => bl, :pos => 36, :title => '36. Runde', :title2 => '17. Mai 2012' )
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
46
 
47
47
 
48
48
  games_bl29 = [
49
- [ 1, salzburg, [2, 0], wacker, Time.cet('2012-04-07 16:00') ],
50
- [ 2, ried, [0, 1], austria, Time.cet('2012-04-07 18:30') ],
51
- [ 3, ksv, [2, 3], admira, Time.cet('2012-04-07 18:30') ],
52
- [ 4, rapid, [2, 1], neustadt, Time.cet('2012-04-07 18:30') ],
53
- [ 5, mattersburg, [0, 2], sturm, Time.cet('2012-04-08 16:00') ]
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
54
  ]
55
55
 
56
56
  games_bl30 = [
57
- [ 1, neustadt, [0, 0], ksv, Time.cet('2012-04-14 16:00') ],
58
- [ 2, admira, [1, 1], wacker, Time.cet('2012-04-14 18:30') ],
59
- [ 3, sturm, [2, 2], salzburg, Time.cet('2012-04-14 18:30') ],
60
- [ 4, ried, [2, 0], mattersburg, Time.cet('2012-04-14 18:30') ],
61
- [ 5, austria, [0, 0], rapid, Time.cet('2012-04-15 16:00') ]
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
62
  ]
63
63
 
64
64
  games_bl31 = [
65
- [ 1, wacker, [2, 0], neustadt, Time.cet('2012-04-21 16:00') ],
66
- [ 2, ksv, [1, 0], austria, Time.cet('2012-04-21 18:30') ],
67
- [ 3, mattersburg, [1, 2], admira, Time.cet('2012-04-21 18:30') ],
68
- [ 4, salzburg, [2, 0], ried, Time.cet('2012-04-21 18:30') ],
69
- [ 5, rapid, [1, 1], sturm, Time.cet('2012-04-22 16:00') ]
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
70
  ]
71
71
 
72
72
  games_bl32 = [
73
- [ 1, austria, [3, 0], wacker, Time.cet('2012-04-28 16:00') ],
74
- [ 2, neustadt, [1, 4], admira, Time.cet('2012-04-28 18:30') ],
75
- [ 3, mattersburg, [0, 1], salzburg, Time.cet('2012-04-28 18:30') ],
76
- [ 4, sturm, [2, 1], ksv, Time.cet('2012-04-28 18:30') ],
77
- [ 5, ried, [2, 3], rapid, Time.cet('2012-04-29 16:00') ]
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
78
  ]
79
79
 
80
80
  games_bl33 = [
81
- [ 1, neustadt, [0, 0], sturm, Time.cet('2012-05-05 16:00') ],
82
- [ 2, admira, [3, 2], austria, Time.cet('2012-05-05 18:30') ],
83
- [ 3, ksv, [0, 0], ried, Time.cet('2012-05-05 18:30') ],
84
- [ 4, wacker, [3, 6], mattersburg, Time.cet('2012-05-05 18:30') ],
85
- [ 5, rapid, [0, 1], salzburg, Time.cet('2012-05-06 16:00') ]
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
86
  ]
87
87
 
88
88
  games_bl34 = [
89
- [ 1, salzburg, [2, 0], ksv, Time.cet('2012-05-10 18:30') ],
90
- [ 2, austria, [3, 1], neustadt, Time.cet('2012-05-10 20:30') ],
91
- [ 3, ried, [1, 1], wacker, Time.cet('2012-05-10 20:30') ],
92
- [ 4, mattersburg, [0, 1], rapid, Time.cet('2012-05-10 20:30') ],
93
- [ 5, sturm, [0, 3], admira, Time.cet('2012-05-10 20:30') ]
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
94
  ]
95
95
 
96
96
  games_bl35 = [
97
- [ 1, ksv, [0,2], rapid, Time.cet('2012-05-13 16:00') ],
98
- [ 2, wacker, [1,1], sturm, Time.cet('2012-05-13 16:00') ],
99
- [ 3, neustadt, [1,5], salzburg, Time.cet('2012-05-13 16:00') ],
100
- [ 4, admira, [1,1], ried, Time.cet('2012-05-13 16:00') ],
101
- [ 5, austria, [1,0], mattersburg, Time.cet('2012-05-13 16:00') ]
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
102
  ]
103
103
 
104
104
  games_bl36 = [
105
- [ 1, rapid, [2,0], wacker, Time.cet('2012-05-17 16:00') ],
106
- [ 2, ried, [2,2], neustadt, Time.cet('2012-05-17 16:00') ],
107
- [ 3, mattersburg, [2,0], ksv, Time.cet('2012-05-17 16:00') ],
108
- [ 4, sturm, [3,1], austria, Time.cet('2012-05-17 16:00') ],
109
- [ 5, salzburg, [2,0], admira, Time.cet('2012-05-17 16:00') ]
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
110
  ]
111
111
 
112
112
  Game.create_from_ary!( games_bl29, bl29 )
@@ -119,5 +119,4 @@ Game.create_from_ary!( games_bl35, bl35 )
119
119
  Game.create_from_ary!( games_bl36, bl36 )
120
120
 
121
121
 
122
- Prop.create!( :key => 'db.at.bl.2011/12.version', :value => '1' )
123
-
122
+ Prop.create!( key: 'db.at.bl.2011/12.version', value: '1' )
data/db/at/2011_12/cup.rb CHANGED
@@ -6,7 +6,9 @@
6
6
  ##################################
7
7
  ### ÖFB Cup 2011/12
8
8
 
9
- ofb = Event.create!( :key => 'at_cup_2011_12', :title => 'ÖFB Cup 2011/12', :start_at => Time.cet( '2011-10-10 17:00' ) )
9
+ ofb = Event.create!( key: 'at.cup.2011/12',
10
+ title: 'ÖFB Cup 2011/12',
11
+ start_at: Time.cet( '2011-10-10 17:00' ) )
10
12
 
11
13
 
12
14
  sturm = Team.find_by_key!( 'sturm' )
@@ -35,24 +37,24 @@ ofb.teams << juniors
35
37
  ofb.teams << austrial
36
38
  ofb.teams << austria
37
39
 
38
- ofb8 = Round.create!( :event => ofb, :pos => 1, :title => 'Viertelfinale', :title2 => '10.+11. April 2012' )
39
- ofb4 = Round.create!( :event => ofb, :pos => 2, :title => 'Halbfinale', :title2 => '1.+2. Mai 2012' )
40
- ofb1 = Round.create!( :event => ofb, :pos => 3, :title => 'Finale', :title2 => '20. Mai 2012' )
40
+ ofb8 = Round.create!( event: ofb, pos: 1, title: 'Viertelfinale', start_at: Time.cet( '2012-04-10' ), title2: 'Di+Mi 10.+11. April 2012' )
41
+ ofb4 = Round.create!( event: ofb, pos: 2, title: 'Halbfinale', start_at: Time.cet( '2012-05-01' ), title2: 'Di+Mi 1.+2. Mai 2012' )
42
+ ofb1 = Round.create!( event: ofb, pos: 3, title: 'Finale', start_at: Time.cet( '2012-05-20' ), title2: 'So 20. Mai 2012' )
41
43
 
42
44
  games_ofb8 = [
43
- [ 1, groedig, [2, 3], ried, Time.cet('2012-04-10 18:00') ],
44
- [ 2, austrial, [1, 2], austria, Time.cet('2012-04-11 18:00') ],
45
- [ 3, sturm, [2, 2, 2, 4], hartberg, Time.cet('2012-04-11 19:00') ],
46
- [ 4, salzburg, [4, 1], juniors, Time.cet('2012-04-11 19:00') ]
45
+ [ groedig, [2, 3], ried, Time.cet('2012-04-10 18:00') ],
46
+ [ austrial, [1, 2], austria, Time.cet('2012-04-11 18:00') ],
47
+ [ sturm, [2, 2, 2, 4], hartberg, Time.cet('2012-04-11 19:00') ],
48
+ [ salzburg, [4, 1], juniors, Time.cet('2012-04-11 19:00') ]
47
49
  ]
48
50
 
49
51
  games_ofb4 = [
50
- [ 1, hartberg, [0, 1], salzburg, Time.cet('2012-05-01 18:00') ],
51
- [ 2, ried, [2, 0], austria, Time.cet('2012-05-02 20:30') ]
52
+ [ hartberg, [0, 1], salzburg, Time.cet('2012-05-01 18:00') ],
53
+ [ ried, [2, 0], austria, Time.cet('2012-05-02 20:30') ]
52
54
  ]
53
55
 
54
56
  games_ofb1 = [
55
- [ 1, salzburg, [3,0], ried, Time.cet('2012-05-20 16:00') ]
57
+ [ salzburg, [3,0], ried, Time.cet('2012-05-20 16:00') ]
56
58
  ]
57
59
 
58
60
  Game.create_knockouts_from_ary!( games_ofb8, ofb8 )
@@ -60,4 +62,4 @@ Game.create_knockouts_from_ary!( games_ofb4, ofb4 )
60
62
  Game.create_knockouts_from_ary!( games_ofb1, ofb1 )
61
63
 
62
64
 
63
- Prop.create!( :key => 'db.at.cup.2011/12.version', :value => '1' )
65
+ Prop.create!( key: 'db.at.cup.2011/12.version', value: '1' )
data/db/at/2012_13/bl.rb CHANGED
@@ -8,9 +8,9 @@
8
8
  ## more info => http://bundesliga.at
9
9
 
10
10
 
11
- bl = Event.create!( :key => 'at_bl_2012_13',
12
- :title => 'Österr. Bundesliga 2012/13',
13
- :start_at => Time.cet('2012-07-21 00:00') )
11
+ bl = Event.create!( key: 'at_bl_2012_13',
12
+ title: 'Österr. Bundesliga 2012/13',
13
+ start_at: Time.cet('2012-07-21 00:00') )
14
14
 
15
15
  salzburg = Team.find_by_key!( 'salzburg' )
16
16
  rapid = Team.find_by_key!( 'rapid' )
@@ -36,186 +36,188 @@ bl.teams << neustadt
36
36
  bl.teams << wac
37
37
 
38
38
 
39
- bl01 = Round.create!( :event => bl, :pos => 1, :title => '1. Runde', :title2 => '21.+22. Jul 2012' )
40
- bl02 = Round.create!( :event => bl, :pos => 2, :title => '2. Runde', :title2 => '28.+29. Jul 2012' )
41
- bl03 = Round.create!( :event => bl, :pos => 3, :title => '3. Runde', :title2 => '4.+5. Aug 2012' )
42
- bl04 = Round.create!( :event => bl, :pos => 4, :title => '4. Runde', :title2 => '11. Aug 2012' )
43
- bl05 = Round.create!( :event => bl, :pos => 5, :title => '5. Runde', :title2 => '18. Aug 2012' )
44
- bl06 = Round.create!( :event => bl, :pos => 6, :title => '6. Runde', :title2 => '25. Aug 2012' )
45
- bl07 = Round.create!( :event => bl, :pos => 7, :title => '7. Runde', :title2 => '1. Sep 2012' )
46
- bl08 = Round.create!( :event => bl, :pos => 8, :title => '8. Runde', :title2 => '15. Sep 2012' )
47
- bl09 = Round.create!( :event => bl, :pos => 9, :title => '9. Runde', :title2 => '22. Sep 2012' )
48
- bl10 = Round.create!( :event => bl, :pos => 10, :title => '10. Runde', :title2 => '29. Sep 2012' )
49
- bl11 = Round.create!( :event => bl, :pos => 11, :title => '11. Runde', :title2 => '6. Okt 2012' )
50
- bl12 = Round.create!( :event => bl, :pos => 12, :title => '12. Runde', :title2 => '20. Okt 2012' )
51
- bl13 = Round.create!( :event => bl, :pos => 13, :title => '13. Runde', :title2 => '27. Okt 2012' )
52
- bl14 = Round.create!( :event => bl, :pos => 14, :title => '14. Runde', :title2 => '3. Nov 2012' )
53
- bl15 = Round.create!( :event => bl, :pos => 15, :title => '15. Runde', :title2 => '10. Nov 2012' )
54
- bl16 = Round.create!( :event => bl, :pos => 16, :title => '16. Runde', :title2 => '17. Nov 2012' )
55
- bl17 = Round.create!( :event => bl, :pos => 17, :title => '17. Runde', :title2 => '24. Nov 2012' )
56
- bl18 = Round.create!( :event => bl, :pos => 18, :title => '18. Runde', :title2 => '1. Dez 2012' )
57
- bl19 = Round.create!( :event => bl, :pos => 19, :title => '19. Runde', :title2 => '8. Dez 2012' )
58
- bl20 = Round.create!( :event => bl, :pos => 20, :title => '20. Runde', :title2 => '15. Dez 2012' )
59
-
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
60
62
 
61
63
  games_bl01 = [
62
- [ 1, sturm, [], salzburg, Time.cet('2012-07-21 16:00') ],
63
- [ 2, rapid, [], wacker, Time.cet('2012-07-21 18:30') ],
64
- [ 3, mattersburg, [], neustadt, Time.cet('2012-07-21 18:30') ],
65
- [ 4, wac, [], austria, Time.cet('2012-07-21 18:30') ],
66
- [ 5, admira, [], ried, Time.cet('2012-07-22 16:00') ]
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') ]
67
69
  ]
68
70
 
69
71
  games_bl02 = [
70
- [ 1, neustadt, [], rapid, Time.cet('2012-07-28 18:30') ],
71
- [ 2, salzburg, [], mattersburg, Time.cet('2012-07-28 18:30') ],
72
- [ 3, austria, [], sturm, Time.cet('2012-07-28 18:30') ],
73
- [ 4, wacker, [], admira, Time.cet('2012-07-29 16:00') ],
74
- [ 5, ried, [], wac, Time.cet('2012-07-29 18:30') ]
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') ]
75
77
  ]
76
78
 
77
79
  games_bl03 = [
78
- [ 1, ried, [], wacker, Time.cet('2012-08-04 18:30') ],
79
- [ 2, mattersburg, [], sturm, Time.cet('2012-08-04 18:30') ],
80
- [ 3, wac, [], salzburg, Time.cet('2012-08-04 18:30') ],
81
- [ 4, admira, [], neustadt, Time.cet('2012-08-04 18:30') ],
82
- [ 5, rapid, [], austria, Time.cet('2012-08-05 16:00') ]
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') ]
83
85
  ]
84
86
 
85
87
  games_bl04 = [
86
- [ 1, neustadt, [], ried, Time.cet('2012-08-11 00:00') ],
87
- [ 2, sturm, [], wac, Time.cet('2012-08-11 00:00') ],
88
- [ 3, salzburg, [], rapid, Time.cet('2012-08-11 00:00') ],
89
- [ 4, austria, [], admira, Time.cet('2012-08-11 00:00') ],
90
- [ 5, wacker, [], mattersburg, Time.cet('2012-08-11 00:00') ]
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') ]
91
93
  ]
92
94
 
93
95
  games_bl05 = [
94
- [ 1, ried, [], austria, Time.cet('2012-08-18 00:00') ],
95
- [ 2, rapid, [], sturm, Time.cet('2012-08-18 00:00') ],
96
- [ 3, wacker, [], neustadt, Time.cet('2012-08-18 00:00') ],
97
- [ 4, wac, [], mattersburg, Time.cet('2012-08-18 00:00') ],
98
- [ 5, admira, [], salzburg, Time.cet('2012-08-18 00:00') ]
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') ]
99
101
  ]
100
102
 
101
103
  games_bl06 = [
102
- [ 1, sturm, [], admira, Time.cet('2012-08-25 00:00') ],
103
- [ 2, salzburg, [], neustadt, Time.cet('2012-08-25 00:00') ],
104
- [ 3, austria, [], wacker, Time.cet('2012-08-25 00:00') ],
105
- [ 4, mattersburg, [], ried, Time.cet('2012-08-25 00:00') ],
106
- [ 5, wac, [], rapid, Time.cet('2012-08-25 00:00') ]
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') ]
107
109
  ]
108
110
 
109
111
  games_bl07 = [
110
- [ 1, ried, [], sturm, Time.cet('2012-09-01 00:00') ],
111
- [ 2, neustadt,[], austria, Time.cet('2012-09-01 00:00') ],
112
- [ 3, rapid, [], mattersburg, Time.cet('2012-09-01 00:00') ],
113
- [ 4, wacker, [], salzburg, Time.cet('2012-09-01 00:00') ],
114
- [ 5, admira, [], wac, Time.cet('2012-09-01 00:00') ]
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') ]
115
117
  ]
116
118
 
117
119
  games_bl08 = [
118
- [ 1, sturm, [], wacker, Time.cet('2012-09-15 00:00') ],
119
- [ 2, salzburg, [], ried, Time.cet('2012-09-15 00:00') ],
120
- [ 3, rapid, [], admira, Time.cet('2012-09-15 00:00') ],
121
- [ 4, mattersburg, [], austria, Time.cet('2012-09-15 00:00') ],
122
- [ 5, wac, [], neustadt, Time.cet('2012-09-15 00:00') ]
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') ]
123
125
  ]
124
126
 
125
127
  games_bl09 = [
126
- [ 1, ried, [], rapid, Time.cet('2012-09-22 00:00') ],
127
- [ 2, neustadt,[], sturm, Time.cet('2012-09-22 00:00') ],
128
- [ 3, austria, [], salzburg, Time.cet('2012-09-22 00:00') ],
129
- [ 4, wacker, [], wac, Time.cet('2012-09-22 00:00') ],
130
- [ 5, admira, [], mattersburg, Time.cet('2012-09-22 00:00') ]
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') ]
131
133
  ]
132
134
 
133
135
  games_bl10 = [
134
- [ 1, salzburg, [], sturm, Time.cet('2012-09-29 00:00') ],
135
- [ 2, wacker, [], rapid, Time.cet('2012-09-29 00:00') ],
136
- [ 3, neustadt, [], mattersburg, Time.cet('2012-09-29 00:00') ],
137
- [ 4, austria, [], wac, Time.cet('2012-09-29 00:00') ],
138
- [ 5, ried, [], admira, Time.cet('2012-09-29 00:00') ]
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') ]
139
141
  ]
140
142
 
141
143
  games_bl11 = [
142
- [ 1, wac, [], ried, Time.cet('2012-10-06 00:00') ],
143
- [ 2, rapid, [], neustadt, Time.cet('2012-10-06 00:00') ],
144
- [ 3, mattersburg, [], salzburg, Time.cet('2012-10-06 00:00') ],
145
- [ 4, sturm, [], austria, Time.cet('2012-10-06 00:00') ],
146
- [ 5, admira, [], wacker, Time.cet('2012-10-06 00:00') ]
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') ]
147
149
  ]
148
150
 
149
151
  games_bl12 = [
150
- [ 1, wacker, [], ried, Time.cet('2012-10-20 00:00') ],
151
- [ 2, austria, [], rapid, Time.cet('2012-10-20 00:00') ],
152
- [ 3, sturm, [], mattersburg, Time.cet('2012-10-20 00:00') ],
153
- [ 4, salzburg, [], wac, Time.cet('2012-10-20 00:00') ],
154
- [ 5, neustadt, [], admira, Time.cet('2012-10-20 00:00') ]
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') ]
155
157
  ]
156
158
 
157
159
  games_bl13 = [
158
- [ 1, ried, [], neustadt, Time.cet('2012-10-27 00:00') ],
159
- [ 2, wac, [], sturm, Time.cet('2012-10-27 00:00') ],
160
- [ 3, rapid, [], salzburg, Time.cet('2012-10-27 00:00') ],
161
- [ 4, admira, [], austria, Time.cet('2012-10-27 00:00') ],
162
- [ 5, mattersburg, [], wacker, Time.cet('2012-10-27 00:00') ]
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') ]
163
165
  ]
164
166
 
165
167
  games_bl14 = [
166
- [ 1, austria, [], ried, Time.cet('2012-11-03 00:00') ],
167
- [ 2, sturm, [], rapid, Time.cet('2012-11-03 00:00') ],
168
- [ 3, neustadt, [], wacker, Time.cet('2012-11-03 00:00') ],
169
- [ 4, mattersburg, [], wac, Time.cet('2012-11-03 00:00') ],
170
- [ 5, salzburg, [], admira, Time.cet('2012-11-03 00:00') ]
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') ]
171
173
  ]
172
174
 
173
175
  games_bl15 = [
174
- [ 1, admira, [], sturm, Time.cet('2012-11-10 00:00') ],
175
- [ 2, neustadt, [], salzburg, Time.cet('2012-11-10 00:00') ],
176
- [ 3, wacker, [], austria, Time.cet('2012-11-10 00:00') ],
177
- [ 4, ried, [], mattersburg, Time.cet('2012-11-10 00:00') ],
178
- [ 5, rapid, [], wac, Time.cet('2012-11-10 00:00') ]
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') ]
179
181
  ]
180
182
 
181
183
  games_bl16 = [
182
- [ 1, sturm, [], ried, Time.cet('2012-11-17 00:00') ],
183
- [ 2, austria, [], neustadt, Time.cet('2012-11-17 00:00') ],
184
- [ 3, mattersburg,[], rapid, Time.cet('2012-11-17 00:00') ],
185
- [ 4, salzburg, [], wacker, Time.cet('2012-11-17 00:00') ],
186
- [ 5, wac, [], admira, Time.cet('2012-11-17 00:00') ]
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') ]
187
189
  ]
188
190
 
189
191
  games_bl17 = [
190
- [ 1, wacker, [], sturm, Time.cet('2012-11-24 00:00') ],
191
- [ 2, ried, [], salzburg, Time.cet('2012-11-24 00:00') ],
192
- [ 3, admira, [], rapid, Time.cet('2012-11-24 00:00') ],
193
- [ 4, austria, [], mattersburg, Time.cet('2012-11-24 00:00') ],
194
- [ 5, neustadt, [], wac, Time.cet('2012-11-24 00:00') ]
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') ]
195
197
  ]
196
198
 
197
199
  games_bl18 = [
198
- [ 1, rapid, [], ried, Time.cet('2012-12-01 00:00') ],
199
- [ 2, sturm, [], neustadt, Time.cet('2012-12-01 00:00') ],
200
- [ 3, salzburg, [], austria, Time.cet('2012-12-01 00:00') ],
201
- [ 4, wac, [], wacker, Time.cet('2012-12-01 00:00') ],
202
- [ 5, mattersburg, [], admira, Time.cet('2012-12-01 00:00') ]
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') ]
203
205
  ]
204
206
 
205
207
  games_bl19 = [
206
- [ 1, sturm, [], salzburg, Time.cet('2012-12-08 00:00') ],
207
- [ 2, rapid, [], wacker, Time.cet('2012-12-08 00:00') ],
208
- [ 3, mattersburg, [], neustadt, Time.cet('2012-12-08 00:00') ],
209
- [ 4, wac, [], austria, Time.cet('2012-12-08 00:00') ],
210
- [ 5, admira, [], ried, Time.cet('2012-12-08 00:00') ]
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') ]
211
213
  ]
212
214
 
213
215
  games_bl20 = [
214
- [ 1, ried, [], wac, Time.cet('2012-12-15 00:00') ],
215
- [ 2, neustadt, [], rapid, Time.cet('2012-12-15 00:00') ],
216
- [ 3, salzburg, [], mattersburg, Time.cet('2012-12-15 00:00') ],
217
- [ 4, austria, [], sturm, Time.cet('2012-12-15 00:00') ],
218
- [ 5, wacker, [], admira, Time.cet('2012-12-15 00:00') ]
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') ]
219
221
  ]
220
222
 
221
223
 
@@ -242,4 +244,4 @@ Game.create_from_ary!( games_bl19, bl19 )
242
244
  Game.create_from_ary!( games_bl20, bl20 )
243
245
 
244
246
 
245
- Prop.create!( :key => 'db.at.bl.2012/13.version', :value => '1' )
247
+ Prop.create!( key: 'db.at.bl.2012/13.version', value: '1' )