sportdb 0.4.0 → 0.4.1
Sign up to get free protection for your applications and to get access to all the features.
- data/Manifest.txt +6 -0
- data/db/at/2012_13/bl.txt +167 -0
- data/db/at/teams.rb +16 -11
- data/db/cl/teams.rb +44 -39
- data/db/de/2012_13/bl.rb +0 -118
- data/db/de/2012_13/bl.txt +216 -0
- data/db/de/2012_13/bl_fixtures.rb +279 -0
- data/db/de/teams.rb +18 -18
- data/db/en/2012_13/pl.rb +48 -0
- data/db/en/2012_13/pl.txt +132 -0
- data/db/en/2012_13/pl_fixtures.rb +178 -0
- data/db/en/teams.rb +20 -20
- data/db/euro/teams.rb +1 -1
- data/db/nfl/teams.rb +57 -0
- data/lib/sportdb/reader.rb +3 -3
- data/lib/sportdb/version.rb +1 -1
- metadata +13 -4
data/db/de/teams.rb
CHANGED
@@ -8,24 +8,24 @@
|
|
8
8
|
## nb: three letter codes (tags) taken from official bundesliga.de site
|
9
9
|
|
10
10
|
teams = [
|
11
|
-
[ 'bayern', 'FC Bayern
|
12
|
-
[ '
|
13
|
-
[ '
|
14
|
-
[ '
|
15
|
-
[ 'hannover', 'Hannover 96',
|
16
|
-
[ 'leverkusen', 'Bayer 04 Leverkusen', 'B04' ],
|
17
|
-
[ 'duesseldorf', 'Fortuna Düsseldorf',
|
18
|
-
[ 'hsv', 'Hamburger SV',
|
19
|
-
[ 'mainz', '1. FSV Mainz 05',
|
20
|
-
[ 'mgladbach', "Borussia M'gladbach", 'BMG' ],
|
21
|
-
[ 'freiburg', 'SC Freiburg',
|
22
|
-
[ 'bremen', 'Werder Bremen',
|
23
|
-
[ 'hoffenheim', '1899 Hoffenheim',
|
24
|
-
[ 'nuernberg', '1 FC Nürnberg',
|
25
|
-
[ 'stuttgart', 'VfB Stuttgart',
|
26
|
-
[ 'augsburg', 'FC Augsburg',
|
27
|
-
[ 'wolfsburg', 'VfL Wolfsburg',
|
28
|
-
[ 'fuerth', 'Greuther Fürth',
|
11
|
+
[ 'bayern', 'FC Bayern München|Bayern München|Bayern München GER', 'FCB' ],
|
12
|
+
[ 'schalke', 'FC Schalke 04|FC Schalke 04 GER', 'S04' ],
|
13
|
+
[ 'dortmund', 'Borussia Dortmund|Bor. Dortmund|Bor. Dortmund GER', 'BVB' ],
|
14
|
+
[ 'frankfurt', 'Eintracht Frankfurt|E. Frankfurt', 'FFM' ],
|
15
|
+
[ 'hannover', 'Hannover 96', 'H96' ],
|
16
|
+
[ 'leverkusen', 'Bayer 04 Leverkusen|Bay. Leverkusen', 'B04' ],
|
17
|
+
[ 'duesseldorf', 'Fortuna Düsseldorf|F. Düsseldorf', 'F95' ],
|
18
|
+
[ 'hsv', 'Hamburger SV', 'HSV' ],
|
19
|
+
[ 'mainz', '1. FSV Mainz 05', 'M05' ],
|
20
|
+
[ 'mgladbach', "Borussia M'gladbach|Bor. M'gladbach", 'BMG' ],
|
21
|
+
[ 'freiburg', 'SC Freiburg', 'SCF' ],
|
22
|
+
[ 'bremen', 'Werder Bremen', 'BRE' ],
|
23
|
+
[ 'hoffenheim', '1899 Hoffenheim', 'HOF' ],
|
24
|
+
[ 'nuernberg', '1. FC Nürnberg', 'FCN' ],
|
25
|
+
[ 'stuttgart', 'VfB Stuttgart', 'VFB' ],
|
26
|
+
[ 'augsburg', 'FC Augsburg', 'FCA' ],
|
27
|
+
[ 'wolfsburg', 'VfL Wolfsburg', 'WOB' ],
|
28
|
+
[ 'fuerth', 'Greuther Fürth', 'SGF' ]
|
29
29
|
]
|
30
30
|
|
31
31
|
de = Country.find_by_key!( 'de' )
|
data/db/en/2012_13/pl.rb
CHANGED
@@ -7,3 +7,51 @@
|
|
7
7
|
|
8
8
|
|
9
9
|
|
10
|
+
pl = Event.create!( key: 'en.2012/13',
|
11
|
+
title: 'Premier League 2012/13',
|
12
|
+
start_at: Time.utc('2012-08-18 12:00') )
|
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
|
56
|
+
|
57
|
+
Prop.create!( key: 'db.en.pl.2012/13.version', value: '1' )
|
@@ -0,0 +1,132 @@
|
|
1
|
+
###
|
2
|
+
## Premier League
|
3
|
+
# more info -> http://premierleague.com (official site)
|
4
|
+
# http://en.wikipedia.org/wiki/Premier_League
|
5
|
+
|
6
|
+
Spieltag 1
|
7
|
+
|
8
|
+
18.08. 15:00 Arsenal FC - Sunderland AFC 0:0
|
9
|
+
18.08. 15:00 Fulham FC - Norwich City 5:0
|
10
|
+
18.08. 15:00 Queens Park Rangers - Swansea City 0:5
|
11
|
+
18.08. 15:00 Reading FC - Stoke City 1:1
|
12
|
+
18.08. 15:00 West Bromwich Albion - Liverpool FC 3:0
|
13
|
+
18.08. 15:00 West Ham United - Aston Villa 1:0
|
14
|
+
18.08. 17:30 Newcastle United - Tottenham Hotspur 2:1
|
15
|
+
|
16
|
+
19.08. 13:30 Wigan Athletic - Chelsea FC 0:2
|
17
|
+
19.08. 16:00 Manchester City - Southampton FC 3:2
|
18
|
+
|
19
|
+
20.08. 20:00 Everton FC - Manchester United 1:0
|
20
|
+
|
21
|
+
Spieltag 2
|
22
|
+
|
23
|
+
## todo: check status of this game why set to 0:0 and 00:00 ??
|
24
|
+
25.08. 00:00 Sunderland AFC - Reading FC 0:0
|
25
|
+
|
26
|
+
25.08. 12:45 Swansea City - West Ham United 3:0
|
27
|
+
25.08. 15:00 Aston Villa - Everton FC 1:3
|
28
|
+
25.08. 15:00 Manchester United - Fulham FC 3:2
|
29
|
+
25.08. 15:00 Norwich City - Queens Park Rangers 1:1
|
30
|
+
25.08. 15:00 Southampton FC - Wigan Athletic 0:2
|
31
|
+
25.08. 15:00 Tottenham Hotspur - West Bromwich Albion 1:1
|
32
|
+
25.08. 17:30 Chelsea FC - Newcastle United 2:0
|
33
|
+
|
34
|
+
26.08. 13:30 Stoke City - Arsenal FC 0:0
|
35
|
+
26.08. 16:00 Liverpool FC - Manchester City 2:2
|
36
|
+
|
37
|
+
Spieltag 3
|
38
|
+
|
39
|
+
22.08. 19:45 Chelsea FC - Reading FC 4:2
|
40
|
+
01.09. 12:45 West Ham United - Fulham FC 3:0
|
41
|
+
01.09. 15:00 Swansea City - Sunderland AFC 2:2
|
42
|
+
01.09. 15:00 Tottenham Hotspur - Norwich City 1:1
|
43
|
+
01.09. 15:00 West Bromwich Albion - Everton FC 2:0
|
44
|
+
01.09. 15:00 Wigan Athletic - Stoke City 2:2
|
45
|
+
01.09. 17:30 Manchester City - Queens Park Rangers 3:1
|
46
|
+
02.09. 13:30 Liverpool FC - Arsenal FC 0:2
|
47
|
+
02.09. 16:00 Newcastle United - Aston Villa 1:1
|
48
|
+
02.09. 16:00 Southampton FC - Manchester United 2:3
|
49
|
+
|
50
|
+
Spieltag 4
|
51
|
+
|
52
|
+
15.09. 12:45 Norwich City - West Ham United 0:0
|
53
|
+
15.09. 15:00 Arsenal FC - Southampton FC 6:1
|
54
|
+
15.09. 15:00 Aston Villa - Swansea City 2:0
|
55
|
+
15.09. 15:00 Fulham FC - West Bromwich Albion 3:0
|
56
|
+
15.09. 15:00 Manchester United - Wigan Athletic 4:0
|
57
|
+
15.09. 15:00 Queens Park Rangers - Chelsea FC 0:0
|
58
|
+
15.09. 15:00 Stoke City - Manchester City 1:1
|
59
|
+
15.09. 17:30 Sunderland AFC - Liverpool FC 1:1
|
60
|
+
16.09. 16:00 Reading FC - Tottenham Hotspur 1:3
|
61
|
+
17.09. 20:00 Everton FC - Newcastle United 2:2
|
62
|
+
|
63
|
+
Spieltag 5
|
64
|
+
|
65
|
+
22.09. 12:45 Swansea City - Everton FC 0:3
|
66
|
+
22.09. 15:00 Chelsea FC - Stoke City 1:0
|
67
|
+
22.09. 15:00 Southampton FC - Aston Villa 4:1
|
68
|
+
22.09. 15:00 West Bromwich Albion - Reading FC 1:0
|
69
|
+
22.09. 15:00 West Ham United - Sunderland AFC 1:1
|
70
|
+
22.09. 15:00 Wigan Athletic - Fulham FC 1:2
|
71
|
+
|
72
|
+
23.09. 13:30 Liverpool FC - Manchester United 1:2
|
73
|
+
23.09. 15:00 Newcastle United - Norwich City 1:0
|
74
|
+
23.09. 16:00 Manchester City - Arsenal FC 1:1
|
75
|
+
23.09. 16:00 Tottenham Hotspur - Queens Park Rangers 2:1
|
76
|
+
|
77
|
+
Spieltag 6
|
78
|
+
|
79
|
+
29.09. 12:45 Arsenal FC - Chelsea FC 1:2
|
80
|
+
29.09. 15:00 Everton FC - Southampton FC 3:1
|
81
|
+
29.09. 15:00 Fulham FC - Manchester City 1:2
|
82
|
+
29.09. 15:00 Norwich City - Liverpool FC 2:5
|
83
|
+
29.09. 15:00 Reading FC - Newcastle United 2:2
|
84
|
+
29.09. 15:00 Stoke City - Swansea City 2:0
|
85
|
+
29.09. 15:00 Sunderland AFC - Wigan Athletic 1:0
|
86
|
+
29.09. 17:30 Manchester United - Tottenham Hotspur 2:3
|
87
|
+
|
88
|
+
30.09. 16:00 Aston Villa - West Bromwich Albion 1:1
|
89
|
+
|
90
|
+
01.10. 20:00 Queens Park Rangers - West Ham United 1:2
|
91
|
+
|
92
|
+
Spieltag 7
|
93
|
+
|
94
|
+
06.10. 12:45 Manchester City - Sunderland AFC 3:0
|
95
|
+
06.10. 15:00 Chelsea FC - Norwich City 4:1
|
96
|
+
06.10. 15:00 Swansea City - Reading FC 2:2
|
97
|
+
06.10. 15:00 West Bromwich Albion - Queens Park Rangers 3:2
|
98
|
+
06.10. 15:00 Wigan Athletic - Everton FC 2:2
|
99
|
+
06.10. 17:30 West Ham United - Arsenal FC 1:3
|
100
|
+
|
101
|
+
07.10. 13:30 Southampton FC - Fulham FC 2:2
|
102
|
+
07.10. 15:00 Liverpool FC - Stoke City 0:0
|
103
|
+
07.10. 15:00 Tottenham Hotspur - Aston Villa 2:0
|
104
|
+
07.10. 16:00 Newcastle United - Manchester United 0:3
|
105
|
+
|
106
|
+
Spieltag 8
|
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
|
119
|
+
|
120
|
+
Spieltag 9
|
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
|
@@ -0,0 +1,178 @@
|
|
1
|
+
# encoding: utf-8
|
2
|
+
|
3
|
+
####################################################################
|
4
|
+
# generiert am 2012-10-16 19:52:25 +0200
|
5
|
+
# using sportdb 0.4.0 on Ruby 1.9.2 (2011-07-09) [i386-mingw32]
|
6
|
+
####################################################################
|
7
|
+
|
8
|
+
|
9
|
+
###########################################
|
10
|
+
# Premier League 2012/13
|
11
|
+
|
12
|
+
|
13
|
+
|
14
|
+
ev = Event.find_by_key!( 'en.2012/13' )
|
15
|
+
|
16
|
+
chelsea = Team.find_by_key!( 'chelsea' )
|
17
|
+
manunited = Team.find_by_key!( 'manunited' )
|
18
|
+
mancity = Team.find_by_key!( 'mancity' )
|
19
|
+
everton = Team.find_by_key!( 'everton' )
|
20
|
+
tottenham = Team.find_by_key!( 'tottenham' )
|
21
|
+
westbrom = Team.find_by_key!( 'westbrom' )
|
22
|
+
arsenal = Team.find_by_key!( 'arsenal' )
|
23
|
+
westham = Team.find_by_key!( 'westham' )
|
24
|
+
fulham = Team.find_by_key!( 'fulham' )
|
25
|
+
newcastle = Team.find_by_key!( 'newcastle' )
|
26
|
+
swansea = Team.find_by_key!( 'swansea' )
|
27
|
+
stoke = Team.find_by_key!( 'stoke' )
|
28
|
+
sunderland = Team.find_by_key!( 'sunderland' )
|
29
|
+
liverpool = Team.find_by_key!( 'liverpool' )
|
30
|
+
wigan = Team.find_by_key!( 'wigan' )
|
31
|
+
astonvilla = Team.find_by_key!( 'astonvilla' )
|
32
|
+
southampton = Team.find_by_key!( 'southampton' )
|
33
|
+
reading = Team.find_by_key!( 'reading' )
|
34
|
+
norwich = Team.find_by_key!( 'norwich' )
|
35
|
+
qpr = Team.find_by_key!( 'qpr' )
|
36
|
+
|
37
|
+
|
38
|
+
r01 = Round.create!( event: ev, pos: 1, title: '1. Runde', start_at: Time.utc('2012-08-18 15:00'))
|
39
|
+
r02 = Round.create!( event: ev, pos: 2, title: '2. Runde', start_at: Time.utc('2012-08-25 00:00'))
|
40
|
+
r03 = Round.create!( event: ev, pos: 3, title: '3. Runde', start_at: Time.utc('2012-08-22 19:45'))
|
41
|
+
r04 = Round.create!( event: ev, pos: 4, title: '4. Runde', start_at: Time.utc('2012-09-15 12:45'))
|
42
|
+
r05 = Round.create!( event: ev, pos: 5, title: '5. Runde', start_at: Time.utc('2012-09-22 12:45'))
|
43
|
+
r06 = Round.create!( event: ev, pos: 6, title: '6. Runde', start_at: Time.utc('2012-09-29 12:45'))
|
44
|
+
r07 = Round.create!( event: ev, pos: 7, title: '7. Runde', start_at: Time.utc('2012-10-06 12:45'))
|
45
|
+
r08 = Round.create!( event: ev, pos: 8, title: '8. Runde', start_at: Time.utc('2012-10-20 12:45'))
|
46
|
+
r09 = Round.create!( event: ev, pos: 9, title: '9. Runde', start_at: Time.utc('2012-10-27 12:45'))
|
47
|
+
|
48
|
+
|
49
|
+
games01 = [
|
50
|
+
[ arsenal, [0,0], sunderland, Time.utc('2012-08-18 15:00') ],
|
51
|
+
[ fulham, [5,0], norwich, Time.utc('2012-08-18 15:00') ],
|
52
|
+
[ qpr, [0,5], swansea, Time.utc('2012-08-18 15:00') ],
|
53
|
+
[ reading, [1,1], stoke, Time.utc('2012-08-18 15:00') ],
|
54
|
+
[ westbrom, [3,0], liverpool, Time.utc('2012-08-18 15:00') ],
|
55
|
+
[ westham, [1,0], astonvilla, Time.utc('2012-08-18 15:00') ],
|
56
|
+
[ newcastle, [2,1], tottenham, Time.utc('2012-08-18 17:30') ],
|
57
|
+
[ wigan, [0,2], chelsea, Time.utc('2012-08-19 13:30') ],
|
58
|
+
[ mancity, [3,2], southampton, Time.utc('2012-08-19 16:00') ],
|
59
|
+
[ everton, [1,0], manunited, Time.utc('2012-08-20 20:00') ],
|
60
|
+
]
|
61
|
+
|
62
|
+
games02 = [
|
63
|
+
[ sunderland, [0,0], reading, Time.utc('2012-08-25 00:00') ],
|
64
|
+
[ swansea, [3,0], westham, Time.utc('2012-08-25 12:45') ],
|
65
|
+
[ astonvilla, [1,3], everton, Time.utc('2012-08-25 15:00') ],
|
66
|
+
[ manunited, [3,2], fulham, Time.utc('2012-08-25 15:00') ],
|
67
|
+
[ norwich, [1,1], qpr, Time.utc('2012-08-25 15:00') ],
|
68
|
+
[ southampton, [0,2], wigan, Time.utc('2012-08-25 15:00') ],
|
69
|
+
[ tottenham, [1,1], westbrom, Time.utc('2012-08-25 15:00') ],
|
70
|
+
[ chelsea, [2,0], newcastle, Time.utc('2012-08-25 17:30') ],
|
71
|
+
[ stoke, [0,0], arsenal, Time.utc('2012-08-26 13:30') ],
|
72
|
+
[ liverpool, [2,2], mancity, Time.utc('2012-08-26 16:00') ],
|
73
|
+
]
|
74
|
+
|
75
|
+
games03 = [
|
76
|
+
[ chelsea, [4,2], reading, Time.utc('2012-08-22 19:45') ],
|
77
|
+
[ westham, [3,0], fulham, Time.utc('2012-09-01 12:45') ],
|
78
|
+
[ swansea, [2,2], sunderland, Time.utc('2012-09-01 15:00') ],
|
79
|
+
[ tottenham, [1,1], norwich, Time.utc('2012-09-01 15:00') ],
|
80
|
+
[ westbrom, [2,0], everton, Time.utc('2012-09-01 15:00') ],
|
81
|
+
[ wigan, [2,2], stoke, Time.utc('2012-09-01 15:00') ],
|
82
|
+
[ mancity, [3,1], qpr, Time.utc('2012-09-01 17:30') ],
|
83
|
+
[ liverpool, [0,2], arsenal, Time.utc('2012-09-02 13:30') ],
|
84
|
+
[ newcastle, [1,1], astonvilla, Time.utc('2012-09-02 16:00') ],
|
85
|
+
[ southampton, [2,3], manunited, Time.utc('2012-09-02 16:00') ],
|
86
|
+
]
|
87
|
+
|
88
|
+
games04 = [
|
89
|
+
[ norwich, [0,0], westham, Time.utc('2012-09-15 12:45') ],
|
90
|
+
[ arsenal, [6,1], southampton, Time.utc('2012-09-15 15:00') ],
|
91
|
+
[ astonvilla, [2,0], swansea, Time.utc('2012-09-15 15:00') ],
|
92
|
+
[ fulham, [3,0], westbrom, Time.utc('2012-09-15 15:00') ],
|
93
|
+
[ manunited, [4,0], wigan, Time.utc('2012-09-15 15:00') ],
|
94
|
+
[ qpr, [0,0], chelsea, Time.utc('2012-09-15 15:00') ],
|
95
|
+
[ stoke, [1,1], mancity, Time.utc('2012-09-15 15:00') ],
|
96
|
+
[ sunderland, [1,1], liverpool, Time.utc('2012-09-15 17:30') ],
|
97
|
+
[ reading, [1,3], tottenham, Time.utc('2012-09-16 16:00') ],
|
98
|
+
[ everton, [2,2], newcastle, Time.utc('2012-09-17 20:00') ],
|
99
|
+
]
|
100
|
+
|
101
|
+
games05 = [
|
102
|
+
[ swansea, [0,3], everton, Time.utc('2012-09-22 12:45') ],
|
103
|
+
[ chelsea, [1,0], stoke, Time.utc('2012-09-22 15:00') ],
|
104
|
+
[ southampton, [4,1], astonvilla, Time.utc('2012-09-22 15:00') ],
|
105
|
+
[ westbrom, [1,0], reading, Time.utc('2012-09-22 15:00') ],
|
106
|
+
[ westham, [1,1], sunderland, Time.utc('2012-09-22 15:00') ],
|
107
|
+
[ wigan, [1,2], fulham, Time.utc('2012-09-22 15:00') ],
|
108
|
+
[ liverpool, [1,2], manunited, Time.utc('2012-09-23 13:30') ],
|
109
|
+
[ newcastle, [1,0], norwich, Time.utc('2012-09-23 15:00') ],
|
110
|
+
[ mancity, [1,1], arsenal, Time.utc('2012-09-23 16:00') ],
|
111
|
+
[ tottenham, [2,1], qpr, Time.utc('2012-09-23 16:00') ],
|
112
|
+
]
|
113
|
+
|
114
|
+
games06 = [
|
115
|
+
[ arsenal, [1,2], chelsea, Time.utc('2012-09-29 12:45') ],
|
116
|
+
[ everton, [3,1], southampton, Time.utc('2012-09-29 15:00') ],
|
117
|
+
[ fulham, [1,2], mancity, Time.utc('2012-09-29 15:00') ],
|
118
|
+
[ norwich, [2,5], liverpool, Time.utc('2012-09-29 15:00') ],
|
119
|
+
[ reading, [2,2], newcastle, Time.utc('2012-09-29 15:00') ],
|
120
|
+
[ stoke, [2,0], swansea, Time.utc('2012-09-29 15:00') ],
|
121
|
+
[ sunderland, [1,0], wigan, Time.utc('2012-09-29 15:00') ],
|
122
|
+
[ manunited, [2,3], tottenham, Time.utc('2012-09-29 17:30') ],
|
123
|
+
[ astonvilla, [1,1], westbrom, Time.utc('2012-09-30 16:00') ],
|
124
|
+
[ qpr, [1,2], westham, Time.utc('2012-10-01 20:00') ],
|
125
|
+
]
|
126
|
+
|
127
|
+
games07 = [
|
128
|
+
[ mancity, [3,0], sunderland, Time.utc('2012-10-06 12:45') ],
|
129
|
+
[ chelsea, [4,1], norwich, Time.utc('2012-10-06 15:00') ],
|
130
|
+
[ swansea, [2,2], reading, Time.utc('2012-10-06 15:00') ],
|
131
|
+
[ westbrom, [3,2], qpr, Time.utc('2012-10-06 15:00') ],
|
132
|
+
[ wigan, [2,2], everton, Time.utc('2012-10-06 15:00') ],
|
133
|
+
[ westham, [1,3], arsenal, Time.utc('2012-10-06 17:30') ],
|
134
|
+
[ southampton, [2,2], fulham, Time.utc('2012-10-07 13:30') ],
|
135
|
+
[ liverpool, [0,0], stoke, Time.utc('2012-10-07 15:00') ],
|
136
|
+
[ tottenham, [2,0], astonvilla, Time.utc('2012-10-07 15:00') ],
|
137
|
+
[ newcastle, [0,3], manunited, Time.utc('2012-10-07 16:00') ],
|
138
|
+
]
|
139
|
+
|
140
|
+
games08 = [
|
141
|
+
[ tottenham, [], chelsea, Time.utc('2012-10-20 12:45') ],
|
142
|
+
[ fulham, [], astonvilla, Time.utc('2012-10-20 15:00') ],
|
143
|
+
[ liverpool, [], reading, Time.utc('2012-10-20 15:00') ],
|
144
|
+
[ manunited, [], stoke, Time.utc('2012-10-20 15:00') ],
|
145
|
+
[ swansea, [], wigan, Time.utc('2012-10-20 15:00') ],
|
146
|
+
[ westbrom, [], mancity, Time.utc('2012-10-20 15:00') ],
|
147
|
+
[ westham, [], southampton, Time.utc('2012-10-20 15:00') ],
|
148
|
+
[ norwich, [], arsenal, Time.utc('2012-10-20 17:30') ],
|
149
|
+
[ sunderland, [], newcastle, Time.utc('2012-10-21 13:30') ],
|
150
|
+
[ qpr, [], everton, Time.utc('2012-10-21 16:00') ],
|
151
|
+
]
|
152
|
+
|
153
|
+
games09 = [
|
154
|
+
[ everton, [], liverpool, Time.utc('2012-10-27 12:45') ],
|
155
|
+
[ arsenal, [], qpr, Time.utc('2012-10-27 15:00') ],
|
156
|
+
[ reading, [], fulham, Time.utc('2012-10-27 15:00') ],
|
157
|
+
[ stoke, [], sunderland, Time.utc('2012-10-27 15:00') ],
|
158
|
+
[ wigan, [], westham, Time.utc('2012-10-27 15:00') ],
|
159
|
+
[ mancity, [], swansea, Time.utc('2012-10-27 17:30') ],
|
160
|
+
[ astonvilla, [], norwich, Time.utc('2012-10-28 13:30') ],
|
161
|
+
[ newcastle, [], westbrom, Time.utc('2012-10-28 15:00') ],
|
162
|
+
[ southampton, [], tottenham, Time.utc('2012-10-28 15:00') ],
|
163
|
+
[ chelsea, [], manunited, Time.utc('2012-10-28 16:00') ],
|
164
|
+
]
|
165
|
+
|
166
|
+
|
167
|
+
|
168
|
+
Game.create_from_ary!( games01, r01 )
|
169
|
+
Game.create_from_ary!( games02, r02 )
|
170
|
+
Game.create_from_ary!( games03, r03 )
|
171
|
+
Game.create_from_ary!( games04, r04 )
|
172
|
+
Game.create_from_ary!( games05, r05 )
|
173
|
+
Game.create_from_ary!( games06, r06 )
|
174
|
+
Game.create_from_ary!( games07, r07 )
|
175
|
+
Game.create_from_ary!( games08, r08 )
|
176
|
+
Game.create_from_ary!( games09, r09 )
|
177
|
+
|
178
|
+
Prop.create!( key: 'db.en.2012/13.fixtures.version', value: '1' )
|
data/db/en/teams.rb
CHANGED
@@ -10,26 +10,26 @@
|
|
10
10
|
## nb: three letter codes (tags) taken from official premierleague.com site
|
11
11
|
|
12
12
|
teams = [
|
13
|
-
[ 'chelsea', 'Chelsea',
|
14
|
-
[ 'manunited', 'Manchester United',
|
15
|
-
[ 'mancity', 'Manchester City',
|
16
|
-
[ '
|
17
|
-
[ '
|
18
|
-
[ '
|
19
|
-
[ '
|
20
|
-
[ 'westham', 'West Ham United',
|
21
|
-
[ 'fulham', 'Fulham',
|
22
|
-
[ 'newcastle', 'Newcastle United',
|
23
|
-
[ 'swansea', 'Swansea City',
|
24
|
-
[ 'stoke', 'Stoke City',
|
25
|
-
[ 'sunderland', 'Sunderland',
|
26
|
-
[ 'liverpool', 'Liverpool',
|
27
|
-
[ 'wigan', 'Wigan Athletic',
|
28
|
-
[ 'astonvilla', 'Aston Villa',
|
29
|
-
[ 'southampton', 'Southampton',
|
30
|
-
[ 'reading', 'Reading',
|
31
|
-
[ 'norwich', 'Norwich City',
|
32
|
-
[ 'qpr', 'Queens Park Rangers',
|
13
|
+
[ 'chelsea', 'Chelsea|Chelsea FC|FC Chelsea|FC Chelsea ENG', 'CHE' ],
|
14
|
+
[ 'manunited', 'Manchester United|Man Utd|Manchester U. ENG', 'MUN' ],
|
15
|
+
[ 'mancity', 'Manchester City|Man City|Man. City ENG', 'MCI' ],
|
16
|
+
[ 'arsenal', 'Arsenal|Arsenal FC|FC Arsenal|FC Arsenal ENG', 'ARS' ],
|
17
|
+
[ 'everton', 'Everton|Everton FC|FC Everton', 'EVE' ],
|
18
|
+
[ 'tottenham', 'Tottenham Hotspur|Tottenham', 'TOT' ],
|
19
|
+
[ 'westbrom', 'West Bromwich Albion|West Brom', 'WBA' ],
|
20
|
+
[ 'westham', 'West Ham United|West Ham', 'WHU' ],
|
21
|
+
[ 'fulham', 'Fulham|Fulham FC|FC Fulham', 'FUL' ],
|
22
|
+
[ 'newcastle', 'Newcastle United|Newcastle', 'NEW' ],
|
23
|
+
[ 'swansea', 'Swansea City|Swansea', 'SWA' ],
|
24
|
+
[ 'stoke', 'Stoke City|Stoke', 'STK' ],
|
25
|
+
[ 'sunderland', 'Sunderland|Sunderland AFC|AFC Sunderland', 'SUN' ],
|
26
|
+
[ 'liverpool', 'Liverpool|Liverpool FC|FC Liverpool', 'LIV' ],
|
27
|
+
[ 'wigan', 'Wigan Athletic|Wigan', 'WIG' ],
|
28
|
+
[ 'astonvilla', 'Aston Villa', 'AVL' ],
|
29
|
+
[ 'southampton', 'Southampton|Southampton FC|FC Southampton', 'SOU' ],
|
30
|
+
[ 'reading', 'Reading|Reading FC|FC Reading', 'RDG' ],
|
31
|
+
[ 'norwich', 'Norwich City|Norwich', 'NOR' ],
|
32
|
+
[ 'qpr', 'Queens Park Rangers', 'QPR' ]]
|
33
33
|
|
34
34
|
|
35
35
|
en = Country.find_by_key!( 'en' )
|