sportdb 1.8.8 → 1.8.9
Sign up to get free protection for your applications and to get access to all the features.
- data/Manifest.txt +12 -0
- data/lib/sportdb.rb +6 -1
- data/lib/sportdb/readers/game.rb +1 -1
- data/lib/sportdb/version.rb +1 -1
- data/test/data/at-austria/2013_14/bl.txt +216 -0
- data/test/data/at-austria/2013_14/bl.yml +30 -0
- data/test/data/at-austria/2013_14/bl_ii.txt +150 -0
- data/test/data/at-austria/2013_14/el.txt +4 -0
- data/test/data/at-austria/2013_14/el.yml +25 -0
- data/test/data/at-austria/leagues.txt +11 -0
- data/test/data/at-austria/setups/2013_14.txt +17 -0
- data/test/data/at-austria/setups/all.txt +17 -0
- data/test/data/at-austria/setups/teams.txt +5 -0
- data/test/data/at-austria/teams.txt +75 -0
- data/test/data/at-austria/teams_2.txt +34 -0
- data/test/helper.rb +12 -0
- data/test/test_reader.rb +54 -0
- metadata +34 -21
data/Manifest.txt
CHANGED
@@ -99,11 +99,23 @@ lib/sportdb/utils_round.rb
|
|
99
99
|
lib/sportdb/utils_scores.rb
|
100
100
|
lib/sportdb/utils_teams.rb
|
101
101
|
lib/sportdb/version.rb
|
102
|
+
test/data/at-austria/2013_14/bl.txt
|
103
|
+
test/data/at-austria/2013_14/bl.yml
|
104
|
+
test/data/at-austria/2013_14/bl_ii.txt
|
105
|
+
test/data/at-austria/2013_14/el.txt
|
106
|
+
test/data/at-austria/2013_14/el.yml
|
107
|
+
test/data/at-austria/leagues.txt
|
108
|
+
test/data/at-austria/setups/2013_14.txt
|
109
|
+
test/data/at-austria/setups/all.txt
|
110
|
+
test/data/at-austria/setups/teams.txt
|
111
|
+
test/data/at-austria/teams.txt
|
112
|
+
test/data/at-austria/teams_2.txt
|
102
113
|
test/helper.rb
|
103
114
|
test/test_changes.rb
|
104
115
|
test/test_cursor.rb
|
105
116
|
test/test_date.rb
|
106
117
|
test/test_lang.rb
|
118
|
+
test/test_reader.rb
|
107
119
|
test/test_round.rb
|
108
120
|
test/test_scores.rb
|
109
121
|
test/test_utils.rb
|
data/lib/sportdb.rb
CHANGED
@@ -118,11 +118,16 @@ module SportDb
|
|
118
118
|
def self.config_path
|
119
119
|
"#{root}/config"
|
120
120
|
end
|
121
|
-
|
121
|
+
|
122
122
|
def self.data_path
|
123
123
|
"#{root}/data"
|
124
124
|
end
|
125
125
|
|
126
|
+
def self.test_data_path
|
127
|
+
"#{root}/test/data"
|
128
|
+
end
|
129
|
+
|
130
|
+
|
126
131
|
def self.lang
|
127
132
|
# todo/fix: find a better way for single instance ??
|
128
133
|
# will get us ruby warning: instance variable @lang not initialized => find a better way!!!
|
data/lib/sportdb/readers/game.rb
CHANGED
data/lib/sportdb/version.rb
CHANGED
@@ -0,0 +1,216 @@
|
|
1
|
+
######################################
|
2
|
+
# Österreichische Bundesliga 2013/14
|
3
|
+
|
4
|
+
|
5
|
+
1. Runde // Sa+So 20.+21. Jul 2013
|
6
|
+
|
7
|
+
(Sa) 20.07. 16.30 Austria Wien 2:0 FC Admira Wacker
|
8
|
+
(Sa) 20.07. 19.00 SC Wiener Neustadt 1:5 RB Salzburg
|
9
|
+
(Sa) 20.07. 19.00 SV Grödig 0:0 SV Ried
|
10
|
+
(Sa) 20.07. 19.00 Wolfsberger AC 2:2 Rapid Wien
|
11
|
+
|
12
|
+
(So) 21.07. 16.30 FC Wacker Innsbruck 2:2 Sturm Graz
|
13
|
+
|
14
|
+
|
15
|
+
2. Runde // Sa+So 27.+28. Jul 2013
|
16
|
+
|
17
|
+
(Sa) 27.07. 16.30 Rapid Wien 4:0 SC Wiener Neustadt
|
18
|
+
(Sa) 27.07. 19.00 FC Admira Wacker 1:2 FC Wacker Innsbruck
|
19
|
+
(Sa) 27.07. 19.00 SV Ried 1:0 Wolfsberger AC
|
20
|
+
(Sa) 27.07. 19.00 RB Salzburg 5:1 Austria Wien
|
21
|
+
|
22
|
+
(So) 28.07. 16.30 Sturm Graz 0:2 SV Grödig
|
23
|
+
|
24
|
+
|
25
|
+
3. Runde // Sa.+So. 3.+4. Aug 2013
|
26
|
+
|
27
|
+
(Sa) 03.08. 16.30 SC Wiener Neustadt 2:1 Wolfsberger AC
|
28
|
+
(Sa) 03.08. 19.00 SV Grödig 7:1 FC Admira Wacker
|
29
|
+
(Sa) 03.08. 19.00 FC Wacker Innsbruck 1:1 RB Salzburg
|
30
|
+
(Sa) 03.08. 19.00 Austria Wien 3:3 SV Ried
|
31
|
+
|
32
|
+
(So) 04.08. 16.30 Sturm Graz 2:4 Rapid Wien
|
33
|
+
|
34
|
+
|
35
|
+
4. Runde // Sa.+So. 10.+11. Aug 2013
|
36
|
+
|
37
|
+
(Sa) 10.08. 16.30 Wolfsberger AC 1:1 FC Wacker Innsbruck
|
38
|
+
(Sa) 10.08. 19.00 SV Ried 1:1 SC Wiener Neustadt
|
39
|
+
(Sa) 10.08. 19.00 RB Salzburg 4:1 SV Grödig
|
40
|
+
(Sa) 10.08. 19.00 FC Admira Wacker 1:1 Sturm Graz
|
41
|
+
|
42
|
+
(So) 11.08. 16.30 Rapid Wien 0:0 Austria Wien
|
43
|
+
|
44
|
+
|
45
|
+
5. Runde // Sa.+So. 17.+18. Aug 2013
|
46
|
+
|
47
|
+
(Sa) 17.08. 16.30 Sturm Graz 1:1 RB Salzburg
|
48
|
+
(Sa) 17.08. 19.00 SV Grödig 4:3 Wolfsberger AC
|
49
|
+
(Sa) 17.08. 19.00 FC Wacker Innsbruck 2:3 SV Ried
|
50
|
+
(Sa) 17.08. 19.00 Austria Wien 5:0 SC Wiener Neustadt
|
51
|
+
|
52
|
+
(So) 18.08. 16.30 FC Admira Wacker 2:0 Rapid Wien
|
53
|
+
|
54
|
+
|
55
|
+
6. Runde // Sa.+So.
|
56
|
+
|
57
|
+
(Sa) 24.08. 16.30 SV Ried 3:0 Sturm Graz
|
58
|
+
(Sa) 24.08. 19.00 SC Wiener Neustadt 1:1 FC Wacker Innsbruck
|
59
|
+
(Sa) 24.08. 16.30 Wolfsberger AC 1:4 Austria Wien
|
60
|
+
|
61
|
+
(So) 25.08. 19.00 Rapid Wien 0:1 SV Grödig
|
62
|
+
(So) 25.08. 19.00 RB Salzburg 1:0 FC Admira Wacker
|
63
|
+
|
64
|
+
|
65
|
+
7. Runde // Sa.+So.
|
66
|
+
|
67
|
+
(Sa) 31.08. 16.30 Sturm Graz 4:2 Wolfsberger AC
|
68
|
+
(Sa) 31.08. 19.00 SV Grödig 3:6 SC Wiener Neustadt
|
69
|
+
(Sa) 31.08. 19.00 Austria Wien 1:1 FC Wacker Innsbruck
|
70
|
+
(Sa) 31.08. 19.00 FC Admira Wacker 1:4 SV Ried
|
71
|
+
|
72
|
+
(So) 01.09. 16.30 RB Salzburg 1:1 Rapid Wien
|
73
|
+
|
74
|
+
|
75
|
+
8. Runde // Sa.+So.
|
76
|
+
|
77
|
+
(Sa) 14.09. FC Wacker Innsbruck 0:4 Rapid Wien
|
78
|
+
(Sa) 14.09. Wolfsberger AC 3:1 FC Admira Wacker
|
79
|
+
(Sa) 14.09. SC Wiener Neustadt 1:3 Sturm Graz
|
80
|
+
(Sa) 14.09. Austria Wien 2:3 SV Grödig
|
81
|
+
|
82
|
+
(So) 15.09. SV Ried 0:5 RB Salzburg
|
83
|
+
|
84
|
+
|
85
|
+
9. Runde // Sa.+So.
|
86
|
+
|
87
|
+
(Sa) 21.09. SV Grödig 3:3 FC Wacker Innsbruck
|
88
|
+
(Sa) 21.09. Sturm Graz 1:2 Austria Wien
|
89
|
+
(Sa) 21.09. FC Admira Wacker 0:3 SC Wiener Neustadt
|
90
|
+
|
91
|
+
(So) 22.09. Rapid Wien 2:0 SV Ried
|
92
|
+
(So) 22.09. RB Salzburg 2:2 Wolfsberger AC
|
93
|
+
|
94
|
+
|
95
|
+
10. Runde // Sa.+So.
|
96
|
+
|
97
|
+
(Sa) 28.09. SV Ried 4:2 SV Grödig
|
98
|
+
(Sa) 28.09. Sturm Graz 1:0 FC Wacker Innsbruck
|
99
|
+
(Sa) 28.09. Rapid Wien 2:4 Wolfsberger AC
|
100
|
+
(Sa) 28.09. FC Admira Wacker 1:0 Austria Wien
|
101
|
+
|
102
|
+
(So) 29.09. RB Salzburg 8:1 SC Wiener Neustadt
|
103
|
+
|
104
|
+
|
105
|
+
11. Runde // Sa.+So.
|
106
|
+
|
107
|
+
(Sa) 05.10. Wolfsberger AC 1:1 SV Ried
|
108
|
+
(Sa) 05.10. SV Grödig 0:1 Sturm Graz
|
109
|
+
(Sa) 05.10. FC Wacker Innsbruck 3:3 FC Admira Wacker
|
110
|
+
|
111
|
+
(So) 06.10. Austria Wien 1:2 RB Salzburg
|
112
|
+
(So) 06.10. SC Wiener Neustadt 0:0 Rapid Wien
|
113
|
+
|
114
|
+
|
115
|
+
12. Runde // Sa.+So.
|
116
|
+
|
117
|
+
(Sa) 19.10. FC Admira Wacker 0:4 SV Grödig
|
118
|
+
(Sa) 19.10. RB Salzburg 6:0 FC Wacker Innsbruck
|
119
|
+
(Sa) 19.10. Wolfsberger AC 1:1 SC Wiener Neustadt
|
120
|
+
(Sa) 19.10. SV Ried 1:1 Austria Wien
|
121
|
+
|
122
|
+
(So) 20.10. Rapid Wien 2:2 Sturm Graz
|
123
|
+
|
124
|
+
|
125
|
+
13. Runde // Sa.+So.
|
126
|
+
|
127
|
+
(Sa) 26.10. SC Wiener Neustadt 3:3 SV Ried
|
128
|
+
(Sa) 26.10. FC Wacker Innsbruck 1:2 Wolfsberger AC
|
129
|
+
(Sa) 26.10. Sturm Graz 0:2 FC Admira Wacker
|
130
|
+
|
131
|
+
(So) 27.10. Austria Wien 0:1 Rapid Wien
|
132
|
+
(So) 27.10. SV Grödig 0:3 RB Salzburg
|
133
|
+
|
134
|
+
|
135
|
+
14. Runde // Sa.+So.
|
136
|
+
|
137
|
+
(Sa) 02.11. Wolfsberger AC 1:1 SV Grödig
|
138
|
+
(Sa) 02.11. SV Ried 4:0 FC Wacker Innsbruck
|
139
|
+
(Sa) 02.11. RB Salzburg 1:0 Sturm Graz
|
140
|
+
(Sa) 02.11. Rapid Wien 4:2 FC Admira Wacker
|
141
|
+
|
142
|
+
(So) 03.11. SC Wiener Neustadt 0:3 Austria Wien
|
143
|
+
|
144
|
+
|
145
|
+
15. Runde // Sa.+So.
|
146
|
+
|
147
|
+
(Sa) 09.11. Austria Wien 1:0 Wolfsberger AC
|
148
|
+
(Sa) 09.11. FC Wacker Innsbruck 4:0 SC Wiener Neustadt
|
149
|
+
|
150
|
+
(So) 10.11. SV Grödig 2:2 Rapid Wien
|
151
|
+
(So) 10.11. FC Admira Wacker 3:1 RB Salzburg
|
152
|
+
|
153
|
+
09.11. => 27.11. Sturm Graz 2:0 SV Ried
|
154
|
+
|
155
|
+
|
156
|
+
16. Runde // Sa.+So.
|
157
|
+
|
158
|
+
(Sa) 23.11. SC Wiener Neustadt 0:2 SV Grödig
|
159
|
+
(Sa) 23.11. FC Wacker Innsbruck 0:5 Austria Wien
|
160
|
+
(Sa) 23.11. SV Ried 2:2 FC Admira Wacker
|
161
|
+
|
162
|
+
(So) 24.11. Rapid Wien 2:1 RB Salzburg
|
163
|
+
|
164
|
+
23.11. => 11.12. Wolfsberger AC 2:1 Sturm Graz
|
165
|
+
|
166
|
+
|
167
|
+
17. Runde // Sa.+So.
|
168
|
+
|
169
|
+
(Sa) 30.11. FC Admira Wacker 3:0 Wolfsberger AC
|
170
|
+
(Sa) 30.11. Sturm Graz 2:3 SC Wiener Neustadt
|
171
|
+
(Sa) 30.11. SV Grödig 1:0 Austria Wien
|
172
|
+
|
173
|
+
(So) 01.12. RB Salzburg 4:0 SV Ried
|
174
|
+
(So) 01.12. Rapid Wien 3:0 FC Wacker Innsbruck
|
175
|
+
|
176
|
+
|
177
|
+
18. Runde // Di.+Mi.
|
178
|
+
|
179
|
+
(Di) 03.12. Austria Wien 3:2 Sturm Graz
|
180
|
+
|
181
|
+
(Mi) 04.12. FC Wacker Innsbruck 5:3 SV Grödig
|
182
|
+
(Mi) 04.12. SV Ried 2:0 Rapid Wien
|
183
|
+
(Mi) 04.12. Wolfsberger AC 1:2 RB Salzburg
|
184
|
+
(Mi) 04.12. SC Wiener Neustadt 1:0 FC Admira Wacker
|
185
|
+
|
186
|
+
|
187
|
+
19. Runde // Sa.+So.
|
188
|
+
|
189
|
+
(Sa) 07.12. SV Grödig 3:0 SV Ried
|
190
|
+
(Sa) 07.12. FC Wacker Innsbruck 0:1 Sturm Graz
|
191
|
+
(Sa) 07.12. Austria Wien 2:2 FC Admira Wacker
|
192
|
+
|
193
|
+
(So) 08.12. Wolfsberger AC 2:1 Rapid Wien
|
194
|
+
|
195
|
+
(Sa) 07.12. => 02.02.2014 SC Wiener Neustadt 1:5 RB Salzburg
|
196
|
+
|
197
|
+
|
198
|
+
20. Runde // Sa.+So.
|
199
|
+
|
200
|
+
(Sa) 14.12. SV Ried 1:3 Wolfsberger AC
|
201
|
+
(Sa) 14.12. Sturm Graz 2:2 SV Grödig
|
202
|
+
(Sa) 14.12. FC Admira Wacker 3:0 FC Wacker Innsbruck
|
203
|
+
|
204
|
+
(So) 15.12. RB Salzburg 4:0 Austria Wien
|
205
|
+
(So) 15.12. Rapid Wien 0:0 SC Wiener Neustadt
|
206
|
+
|
207
|
+
|
208
|
+
21. Runde // Di.+Mi.
|
209
|
+
|
210
|
+
(Di) 17.12. SV Grödig 2:1 FC Admira Wacker
|
211
|
+
|
212
|
+
(Mi) 18.12. FC Wacker Innsbruck 0:1 RB Salzburg
|
213
|
+
(Mi) 18.12. Sturm Graz 2:0 Rapid Wien
|
214
|
+
(Mi) 18.12. SC Wiener Neustadt 1:1 Wolfsberger AC
|
215
|
+
(Mi) 18.12. Austria Wien 1:1 SV Ried
|
216
|
+
|
@@ -0,0 +1,30 @@
|
|
1
|
+
######################################
|
2
|
+
# Österreichische Bundesliga 2013/14
|
3
|
+
|
4
|
+
|
5
|
+
league: at
|
6
|
+
season: 2013/14
|
7
|
+
start_at: 2013-07-20
|
8
|
+
|
9
|
+
|
10
|
+
# note: timezone for games (play_at) is *always* CET (central european time)
|
11
|
+
|
12
|
+
fixtures:
|
13
|
+
- bl
|
14
|
+
- bl_ii
|
15
|
+
|
16
|
+
|
17
|
+
########
|
18
|
+
# 10 Bundeliga Teams
|
19
|
+
|
20
|
+
teams:
|
21
|
+
- austria
|
22
|
+
- salzburg
|
23
|
+
- rapid
|
24
|
+
- sturm
|
25
|
+
- wac
|
26
|
+
- ried
|
27
|
+
- wrneustadt
|
28
|
+
- innsbruck
|
29
|
+
- admira
|
30
|
+
- groedig
|
@@ -0,0 +1,150 @@
|
|
1
|
+
######################################################
|
2
|
+
# Österreichische Bundesliga 2013/14 - Frühjahr
|
3
|
+
|
4
|
+
|
5
|
+
22. Runde // Sa.+So.
|
6
|
+
|
7
|
+
(Sa) 08.02. SV Ried 2:1 SC Wiener Neustadt
|
8
|
+
(Sa) 08.02. Wolfsberger AC 3:2 FC Wacker Innsbruck
|
9
|
+
(Sa) 08.02. RB Salzburg 6:0 SV Grödig
|
10
|
+
(Sa) 08.02. FC Admira Wacker 1:1 Sturm Graz
|
11
|
+
|
12
|
+
(So) 09.02. Rapid Wien 3:1 Austria Wien
|
13
|
+
|
14
|
+
|
15
|
+
23. Runde // Sa.+So.
|
16
|
+
|
17
|
+
(Sa) 15.02. SV Grödig 3:0 Wolfsberger AC
|
18
|
+
(Sa) 15.02. FC Wacker Innsbruck 1:1 SV Ried
|
19
|
+
(Sa) 15.02. Sturm Graz 1:4 RB Salzburg
|
20
|
+
(Sa) 15.02. Austria Wien 1:1 SC Wiener Neustadt
|
21
|
+
|
22
|
+
(So) 16.02. FC Admira Wacker 2:1 Rapid Wien
|
23
|
+
|
24
|
+
|
25
|
+
24. Runde // Sa.+So.
|
26
|
+
|
27
|
+
(Sa) 22.02. SV Ried 2:2 Sturm Graz
|
28
|
+
(Sa) 22.02. Wolfsberger AC 0:0 Austria Wien
|
29
|
+
(Sa) 22.02. Rapid Wien 0:0 SV Grödig
|
30
|
+
(Sa) 22.02. SC Wiener Neustadt 1:0 FC Wacker Innsbruck
|
31
|
+
|
32
|
+
(So) 23.02. RB Salzburg 6:1 FC Admira Wacker
|
33
|
+
|
34
|
+
|
35
|
+
25. Runde // Sa.+So.
|
36
|
+
|
37
|
+
(Sa) 01.03. SV Grödig 1:2 SC Wiener Neustadt
|
38
|
+
(Sa) 01.03. Sturm Graz 1:4 Wolfsberger AC
|
39
|
+
(Sa) 01.03. Austria Wien 2:1 FC Wacker Innsbruck
|
40
|
+
(Sa) 01.03. FC Admira Wacker 2:2 SV Ried
|
41
|
+
|
42
|
+
(So) 02.03. RB Salzburg 6:3 Rapid Wien
|
43
|
+
|
44
|
+
|
45
|
+
26. Runde // Sa.+So.
|
46
|
+
|
47
|
+
(Sa) 08.03. SV Ried 1:3 RB Salzburg
|
48
|
+
(Sa) 08.03. Wolfsberger AC 2:3 FC Admira Wacker
|
49
|
+
(Sa) 08.03. SC Wiener Neustadt 2:1 Sturm Graz
|
50
|
+
(Sa) 08.03. Austria Wien 2:0 SV Grödig
|
51
|
+
|
52
|
+
(So) 09.03. FC Wacker Innsbruck 1:1 Rapid Wien
|
53
|
+
|
54
|
+
|
55
|
+
27. Runde // Sa.+So.
|
56
|
+
|
57
|
+
(Sa) 15.03. SV Grödig 1:1 FC Wacker Innsbruck
|
58
|
+
(Sa) 15.03. Rapid Wien 1:0 SV Ried
|
59
|
+
(Sa) 15.03. FC Admira Wacker 3:0 SC Wiener Neustadt
|
60
|
+
(Sa) 15.03. Sturm Graz 1:1 Austria Wien
|
61
|
+
|
62
|
+
(So) 16.03. RB Salzburg 5:0 Wolfsberger AC
|
63
|
+
|
64
|
+
|
65
|
+
28. Runde // Sa.+So.
|
66
|
+
|
67
|
+
(Sa) 22.03. SV Ried 1:4 SV Grödig
|
68
|
+
(Sa) 22.03. Sturm Graz 3:1 FC Wacker Innsbruck
|
69
|
+
(Sa) 22.03. Rapid Wien 3:0 Wolfsberger AC
|
70
|
+
(Sa) 22.03. FC Admira Wacker 0:1 Austria Wien
|
71
|
+
|
72
|
+
(So) 23.03. RB Salzburg 5:0 SC Wiener Neustadt
|
73
|
+
|
74
|
+
|
75
|
+
29. Runde // Di.+Mi.
|
76
|
+
|
77
|
+
(Di) 25.03. FC Wacker Innsbruck 0:0 FC Admira Wacker
|
78
|
+
|
79
|
+
(Mi) 26.03. Wolfsberger AC 0:2 SV Ried
|
80
|
+
(Mi) 26.03. SV Grödig 0:6 Sturm Graz
|
81
|
+
(Mi) 26.03. SC Wiener Neustadt 0:3 Rapid Wien
|
82
|
+
(Mi) 26.03. Austria Wien 3:0 RB Salzburg
|
83
|
+
|
84
|
+
|
85
|
+
30. Runde // Sa.+So.
|
86
|
+
|
87
|
+
(Sa) 29.03. FC Admira Wacker 4:0 SV Grödig
|
88
|
+
(Sa) 29.03. RB Salzburg 0:0 FC Wacker Innsbruck
|
89
|
+
(Sa) 29.03. Rapid Wien 2:0 Sturm Graz
|
90
|
+
(Sa) 29.03. Wolfsberger AC 4:0 SC Wiener Neustadt
|
91
|
+
|
92
|
+
(So) 30.03. SV Ried 2:2 Austria Wien
|
93
|
+
|
94
|
+
|
95
|
+
31. Runde // Sa.+So.
|
96
|
+
|
97
|
+
(Sa) 05.04. SC Wiener Neustadt SV Ried
|
98
|
+
(Sa) 05.04. FC Wacker Innsbruck Wolfsberger AC
|
99
|
+
(Sa) 05.04. SV Grödig RB Salzburg
|
100
|
+
(Sa) 05.04. Sturm Graz FC Admira Wacker
|
101
|
+
|
102
|
+
(So) 06.04. Austria Wien Rapid Wien
|
103
|
+
|
104
|
+
|
105
|
+
32. Runde // Sa.+So.
|
106
|
+
|
107
|
+
(Sa) 12.04. Wolfsberger AC SV Grödig
|
108
|
+
(Sa) 12.04. SV Ried FC Wacker Innsbruck
|
109
|
+
(Sa) 12.04. RB Salzburg Sturm Graz
|
110
|
+
(Sa) 12.04. Rapid Wien FC Admira Wacker
|
111
|
+
|
112
|
+
(So) 13.04. SC Wiener Neustadt Austria Wien
|
113
|
+
|
114
|
+
|
115
|
+
33. Runde // Sa.+So.
|
116
|
+
|
117
|
+
(Sa) 19.04. Sturm Graz SV Ried
|
118
|
+
(Sa) 19.04. Austria Wien Wolfsberger AC
|
119
|
+
(Sa) 19.04. FC Wacker Innsbruck SC Wiener Neustadt
|
120
|
+
(Sa) 19.04. FC Admira Wacker RB Salzburg
|
121
|
+
|
122
|
+
(So) 20.04. SV Grödig Rapid Wien
|
123
|
+
|
124
|
+
|
125
|
+
34. Runde // Sa.+So.
|
126
|
+
|
127
|
+
(Sa) 26.04. SC Wiener Neustadt SV Grödig
|
128
|
+
(Sa) 26.04. Rapid Wien RB Salzburg
|
129
|
+
(Sa) 26.04. FC Wacker Innsbruck Austria Wien
|
130
|
+
(Sa) 26.04. SV Ried FC Admira Wacker
|
131
|
+
|
132
|
+
(So) 27.04. Wolfsberger AC Sturm Graz
|
133
|
+
|
134
|
+
|
135
|
+
35. Runde // Sa.+So.
|
136
|
+
|
137
|
+
(So) 04.05. RB Salzburg SV Ried
|
138
|
+
(So) 04.05. Rapid Wien FC Wacker Innsbruck
|
139
|
+
(So) 04.05. FC Admira Wacker Wolfsberger AC
|
140
|
+
(So) 04.05. Sturm Graz SC Wiener Neustadt
|
141
|
+
(So) 04.05. SV Grödig Austria Wien
|
142
|
+
|
143
|
+
|
144
|
+
36. Runde // Sa.+So.
|
145
|
+
|
146
|
+
(So) 11.05. FC Wacker Innsbruck SV Grödig
|
147
|
+
(So) 11.05. Austria Wien Sturm Graz
|
148
|
+
(So) 11.05. SV Ried Rapid Wien
|
149
|
+
(So) 11.05. Wolfsberger AC RB Salzburg
|
150
|
+
(So) 11.05. SC Wiener Neustadt FC Admira Wacker
|
@@ -0,0 +1,25 @@
|
|
1
|
+
################################################
|
2
|
+
# Österreichische Erste Liga (1. Liga) 2013/14
|
3
|
+
|
4
|
+
league: at.2
|
5
|
+
season: 2013/14
|
6
|
+
start_at: 2013-07-19
|
7
|
+
|
8
|
+
|
9
|
+
# note: timezone for games (play_at) is *always* CET (central european time)
|
10
|
+
|
11
|
+
|
12
|
+
########
|
13
|
+
# 10 Teams
|
14
|
+
|
15
|
+
teams:
|
16
|
+
- mattersburg
|
17
|
+
- ksv
|
18
|
+
- altach
|
19
|
+
- austrial
|
20
|
+
- stpoelten
|
21
|
+
- vienna
|
22
|
+
- hartberg
|
23
|
+
- horn
|
24
|
+
- parndorf
|
25
|
+
- liefering
|
@@ -0,0 +1,11 @@
|
|
1
|
+
|
2
|
+
at, Österr. Bundesliga
|
3
|
+
at.2, Österr. Erste Liga
|
4
|
+
at.cup, ÖFB Cup
|
5
|
+
|
6
|
+
# todo/check: use groups for West/Mitte/Ost??
|
7
|
+
# and just use at.3, Österr. Regionalliga
|
8
|
+
|
9
|
+
at.3.ost, Österr. Regionalliga Ost
|
10
|
+
at.3.mitte, Österr. Regionalliga Mitte
|
11
|
+
at.3.west, Österr. Regionalliga West
|
@@ -0,0 +1,75 @@
|
|
1
|
+
#######################
|
2
|
+
# Bundesliga 2013/14
|
3
|
+
|
4
|
+
# 10 Teams
|
5
|
+
|
6
|
+
# NB: 2013/14
|
7
|
+
#
|
8
|
+
# new team | SV Grödig
|
9
|
+
# old team (moved to teams_2) | SV Mattersburg
|
10
|
+
|
11
|
+
# NB: use three letter codes from bundesliga.at
|
12
|
+
|
13
|
+
|
14
|
+
[austria]
|
15
|
+
FK Austria Wien|Austria Wien, 1911, AUS
|
16
|
+
www.fk-austria.at
|
17
|
+
Fischhofgasse 12 // 1100 Wien
|
18
|
+
city:wien
|
19
|
+
|
20
|
+
[rapid]
|
21
|
+
SK Rapid Wien|Rapid Wien, 1899, RAP
|
22
|
+
www.skrapid.at
|
23
|
+
Keisslergasse 3 // 1140 Wien
|
24
|
+
city:wien
|
25
|
+
|
26
|
+
|
27
|
+
[admira]
|
28
|
+
FC Admira Wacker|Admira Wacker|FC Admira Wacker Mödling, 1905, ADM
|
29
|
+
www.admirawacker.at
|
30
|
+
Johann Steinböck Strasse 5b // 2344 Maria Enzersdorf
|
31
|
+
city:moedling
|
32
|
+
|
33
|
+
[wrneustadt]
|
34
|
+
SC Wiener Neustadt|Wiener Neustadt|Wr. Neustadt, 1908, WRN
|
35
|
+
www.scwn.at
|
36
|
+
Giltschwertgasse 81 // 2700 Wiener Neustadt
|
37
|
+
city:wrneustadt
|
38
|
+
|
39
|
+
|
40
|
+
[salzburg]
|
41
|
+
FC RB Salzburg|RB Salzburg|Red Bull Salzburg, 1933, RBS
|
42
|
+
www.redbulls.com/soccer/salzburg
|
43
|
+
Stadionstraße 2/3 // 5071 Wals-Siezenheim
|
44
|
+
city:salzburg
|
45
|
+
|
46
|
+
[groedig]
|
47
|
+
SV Grödig, 1948, SVG
|
48
|
+
www.sv-groedig.at
|
49
|
+
Prötschhofstrasse 26 // 5082 Grödig
|
50
|
+
city:groedig
|
51
|
+
|
52
|
+
|
53
|
+
[sturm]
|
54
|
+
SK Sturm Graz|Sturm Graz, 1909, STU
|
55
|
+
www.sksturm.at
|
56
|
+
Sternäckerweg 118 // 8042 Graz
|
57
|
+
city:graz
|
58
|
+
|
59
|
+
[wac]
|
60
|
+
Wolfsberger AC|RZ Pellets WAC, 1931, WAC
|
61
|
+
www.rzpelletswac.at
|
62
|
+
Don Bosco Weg 1 // 9400 Wolfsberg
|
63
|
+
city:wolfsberg
|
64
|
+
|
65
|
+
[ried]
|
66
|
+
SV Ried|SV Josko Ried|SV Josko Fenster Ried, 1912, RIE
|
67
|
+
www.svried.at
|
68
|
+
Volksfestplatz 2 // 4910 Ried im Innkreis
|
69
|
+
city:ried
|
70
|
+
|
71
|
+
[innsbruck]
|
72
|
+
FC Wacker Innsbruck|FC Wacker|Wacker Innsbruck, 1913, FCW
|
73
|
+
www.fc-wacker-innsbruck.at
|
74
|
+
Stadionstraße 1b // 6020 Innsbruck
|
75
|
+
city:innsbruck
|
@@ -0,0 +1,34 @@
|
|
1
|
+
########################
|
2
|
+
# Erste Liga 2013/14
|
3
|
+
#
|
4
|
+
# 10 Teams
|
5
|
+
|
6
|
+
# NB: use three letter codes from bundesliga.at
|
7
|
+
|
8
|
+
|
9
|
+
mattersburg, SV Mattersburg, Erste Liga/Bgld., MAT, city:mattersburg # from Bundesliga
|
10
|
+
|
11
|
+
altach, SCR Altach|SC Rheindorf Altach, Erste Liga/Vbg., ALT, city:altach
|
12
|
+
austrial, SC Austria Lustenau|Austria Lustenau, Erste Liga/Vbg., ALU, city:lustenau
|
13
|
+
stpoelten, SKN St. Pölten, Erste Liga/NÖ, SKN, city:stpoelten
|
14
|
+
ksv, Kapfenberger SV|Kapfenberger SV 1919|KSV 1919, Erste Liga/Stmk., KSV, city:kapfenberg
|
15
|
+
horn, SV Horn, Erste Liga/NÖ, SVH, city:horn
|
16
|
+
hartberg, TSV Hartberg, Erste Liga/Stmk., HTB, city:hartberg
|
17
|
+
vienna, Vienna FC 1894|First Vienna FC 1894, Erste Liga/Wien, VIE, city:wien
|
18
|
+
|
19
|
+
parndorf, SC/ESV Parndorf 1919|SC-ESV Parndorf 1919|SC/ESV Parndorf, Erste Liga/Bgld., PAR, city:parndorf # from Regionalliga Ost/Bgld.
|
20
|
+
|
21
|
+
liefering, FC Liefering, Erste Liga/Sbg., LIE, city:salzburg # from Regionalliga West - Liefering - Stadtteil von Salzburg
|
22
|
+
|
23
|
+
|
24
|
+
# NB: 2013/14
|
25
|
+
# bundesliga:
|
26
|
+
# - new team SV Mattersburg
|
27
|
+
# - old team (moved to teams.1) SV Grödig
|
28
|
+
#
|
29
|
+
# erste liga:
|
30
|
+
# - new team SC/ESV Parndorf 1919
|
31
|
+
# FC Liefering
|
32
|
+
# - old team (moved to teams.3) FC Blau-Weiß Linz
|
33
|
+
# FC Lustenau 1907
|
34
|
+
|
data/test/helper.rb
CHANGED
@@ -67,9 +67,21 @@ end
|
|
67
67
|
####
|
68
68
|
# Models shortcuts
|
69
69
|
|
70
|
+
Country = WorldDb::Model::Country
|
71
|
+
|
72
|
+
League = SportDb::Model::League
|
73
|
+
Event = SportDb::Model::Event
|
74
|
+
Team = SportDb::Model::Team
|
75
|
+
|
70
76
|
Game = SportDb::Model::Game
|
71
77
|
GameCursor = SportDb::Model::GameCursor
|
72
78
|
|
79
|
+
####
|
80
|
+
# Reader shortcuts
|
81
|
+
|
82
|
+
TeamReader = SportDb::TeamReader
|
83
|
+
LeagueReader = SportDb::LeagueReader
|
84
|
+
GameReader = SportDb::GameReader
|
73
85
|
|
74
86
|
|
75
87
|
setup_in_memory_db()
|
data/test/test_reader.rb
ADDED
@@ -0,0 +1,54 @@
|
|
1
|
+
# encoding: utf-8
|
2
|
+
|
3
|
+
require 'helper'
|
4
|
+
|
5
|
+
class TestReader < MiniTest::Unit::TestCase
|
6
|
+
|
7
|
+
def setup
|
8
|
+
WorldDb.delete!
|
9
|
+
SportDb.delete!
|
10
|
+
SportDb.read_builtin
|
11
|
+
end
|
12
|
+
|
13
|
+
def test_game_reader
|
14
|
+
at = Country.create!( key: 'at', name: 'Austria', code: 'AUT', pop: 1, area: 1)
|
15
|
+
|
16
|
+
teamreader = TeamReader.new( SportDb.test_data_path )
|
17
|
+
teamreader.read( 'at-austria/teams', country_id: at.id )
|
18
|
+
teamreader.read( 'at-austria/teams_2', country_id: at.id )
|
19
|
+
|
20
|
+
austria = Team.find_by_key!( 'austria' )
|
21
|
+
rapid = Team.find_by_key!( 'rapid' )
|
22
|
+
sturm = Team.find_by_key!( 'sturm' )
|
23
|
+
|
24
|
+
assert_equal 'FK Austria Wien', austria.title
|
25
|
+
assert_equal 'SK Rapid Wien', rapid.title
|
26
|
+
assert_equal 'SK Sturm Graz', sturm.title
|
27
|
+
|
28
|
+
assert_equal 'AUS', austria.code
|
29
|
+
assert_equal 'RAP', rapid.code
|
30
|
+
assert_equal 'STU', sturm.code
|
31
|
+
|
32
|
+
leaguereader = LeagueReader.new( SportDb.test_data_path )
|
33
|
+
leaguereader.read( 'at-austria/leagues', country_id: at.id )
|
34
|
+
|
35
|
+
at1 = League.find_by_key!( 'at' )
|
36
|
+
at2 = League.find_by_key!( 'at.2' )
|
37
|
+
atcup = League.find_by_key!( 'at.cup' )
|
38
|
+
|
39
|
+
assert_equal 'Österr. Bundesliga', at1.title
|
40
|
+
assert_equal 'Österr. Erste Liga', at2.title
|
41
|
+
assert_equal 'ÖFB Cup', atcup.title
|
42
|
+
|
43
|
+
gamereader = GameReader.new( SportDb.test_data_path )
|
44
|
+
gamereader.read( 'at-austria/2013_14/bl', country_id: at.id )
|
45
|
+
gamereader.read( 'at-austria/2013_14/el', country_id: at.id )
|
46
|
+
|
47
|
+
bl = Event.find_by_key!( 'at.2013/14' )
|
48
|
+
el = Event.find_by_key!( 'at.2.2013/14' )
|
49
|
+
|
50
|
+
assert_equal 10, bl.teams.count
|
51
|
+
assert_equal 10, el.teams.count
|
52
|
+
end
|
53
|
+
|
54
|
+
end # class TestReader
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: sportdb
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.8.
|
4
|
+
version: 1.8.9
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -13,7 +13,7 @@ date: 2014-04-05 00:00:00.000000000 Z
|
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: props
|
16
|
-
requirement: &
|
16
|
+
requirement: &83212550 !ruby/object:Gem::Requirement
|
17
17
|
none: false
|
18
18
|
requirements:
|
19
19
|
- - ! '>='
|
@@ -21,10 +21,10 @@ dependencies:
|
|
21
21
|
version: '0'
|
22
22
|
type: :runtime
|
23
23
|
prerelease: false
|
24
|
-
version_requirements: *
|
24
|
+
version_requirements: *83212550
|
25
25
|
- !ruby/object:Gem::Dependency
|
26
26
|
name: logutils
|
27
|
-
requirement: &
|
27
|
+
requirement: &83212160 !ruby/object:Gem::Requirement
|
28
28
|
none: false
|
29
29
|
requirements:
|
30
30
|
- - ! '>='
|
@@ -32,10 +32,10 @@ dependencies:
|
|
32
32
|
version: '0'
|
33
33
|
type: :runtime
|
34
34
|
prerelease: false
|
35
|
-
version_requirements: *
|
35
|
+
version_requirements: *83212160
|
36
36
|
- !ruby/object:Gem::Dependency
|
37
37
|
name: textutils
|
38
|
-
requirement: &
|
38
|
+
requirement: &83211780 !ruby/object:Gem::Requirement
|
39
39
|
none: false
|
40
40
|
requirements:
|
41
41
|
- - ! '>='
|
@@ -43,10 +43,10 @@ dependencies:
|
|
43
43
|
version: '0'
|
44
44
|
type: :runtime
|
45
45
|
prerelease: false
|
46
|
-
version_requirements: *
|
46
|
+
version_requirements: *83211780
|
47
47
|
- !ruby/object:Gem::Dependency
|
48
48
|
name: worlddb
|
49
|
-
requirement: &
|
49
|
+
requirement: &83211330 !ruby/object:Gem::Requirement
|
50
50
|
none: false
|
51
51
|
requirements:
|
52
52
|
- - ! '>='
|
@@ -54,10 +54,10 @@ dependencies:
|
|
54
54
|
version: 2.0.2
|
55
55
|
type: :runtime
|
56
56
|
prerelease: false
|
57
|
-
version_requirements: *
|
57
|
+
version_requirements: *83211330
|
58
58
|
- !ruby/object:Gem::Dependency
|
59
59
|
name: tagutils
|
60
|
-
requirement: &
|
60
|
+
requirement: &83211060 !ruby/object:Gem::Requirement
|
61
61
|
none: false
|
62
62
|
requirements:
|
63
63
|
- - ! '>='
|
@@ -65,10 +65,10 @@ dependencies:
|
|
65
65
|
version: '0'
|
66
66
|
type: :runtime
|
67
67
|
prerelease: false
|
68
|
-
version_requirements: *
|
68
|
+
version_requirements: *83211060
|
69
69
|
- !ruby/object:Gem::Dependency
|
70
70
|
name: fetcher
|
71
|
-
requirement: &
|
71
|
+
requirement: &83210570 !ruby/object:Gem::Requirement
|
72
72
|
none: false
|
73
73
|
requirements:
|
74
74
|
- - ! '>='
|
@@ -76,10 +76,10 @@ dependencies:
|
|
76
76
|
version: '0.3'
|
77
77
|
type: :runtime
|
78
78
|
prerelease: false
|
79
|
-
version_requirements: *
|
79
|
+
version_requirements: *83210570
|
80
80
|
- !ruby/object:Gem::Dependency
|
81
81
|
name: gli
|
82
|
-
requirement: &
|
82
|
+
requirement: &83210080 !ruby/object:Gem::Requirement
|
83
83
|
none: false
|
84
84
|
requirements:
|
85
85
|
- - ! '>='
|
@@ -87,10 +87,10 @@ dependencies:
|
|
87
87
|
version: 2.5.6
|
88
88
|
type: :runtime
|
89
89
|
prerelease: false
|
90
|
-
version_requirements: *
|
90
|
+
version_requirements: *83210080
|
91
91
|
- !ruby/object:Gem::Dependency
|
92
92
|
name: activerecord
|
93
|
-
requirement: &
|
93
|
+
requirement: &83209780 !ruby/object:Gem::Requirement
|
94
94
|
none: false
|
95
95
|
requirements:
|
96
96
|
- - ! '>='
|
@@ -98,10 +98,10 @@ dependencies:
|
|
98
98
|
version: '0'
|
99
99
|
type: :runtime
|
100
100
|
prerelease: false
|
101
|
-
version_requirements: *
|
101
|
+
version_requirements: *83209780
|
102
102
|
- !ruby/object:Gem::Dependency
|
103
103
|
name: rdoc
|
104
|
-
requirement: &
|
104
|
+
requirement: &83209410 !ruby/object:Gem::Requirement
|
105
105
|
none: false
|
106
106
|
requirements:
|
107
107
|
- - ~>
|
@@ -109,10 +109,10 @@ dependencies:
|
|
109
109
|
version: '3.10'
|
110
110
|
type: :development
|
111
111
|
prerelease: false
|
112
|
-
version_requirements: *
|
112
|
+
version_requirements: *83209410
|
113
113
|
- !ruby/object:Gem::Dependency
|
114
114
|
name: hoe
|
115
|
-
requirement: &
|
115
|
+
requirement: &83209070 !ruby/object:Gem::Requirement
|
116
116
|
none: false
|
117
117
|
requirements:
|
118
118
|
- - ~>
|
@@ -120,7 +120,7 @@ dependencies:
|
|
120
120
|
version: '3.3'
|
121
121
|
type: :development
|
122
122
|
prerelease: false
|
123
|
-
version_requirements: *
|
123
|
+
version_requirements: *83209070
|
124
124
|
description: sportdb - sport.db command line tool
|
125
125
|
email: opensport@googlegroups.com
|
126
126
|
executables:
|
@@ -230,11 +230,23 @@ files:
|
|
230
230
|
- lib/sportdb/utils_scores.rb
|
231
231
|
- lib/sportdb/utils_teams.rb
|
232
232
|
- lib/sportdb/version.rb
|
233
|
+
- test/data/at-austria/2013_14/bl.txt
|
234
|
+
- test/data/at-austria/2013_14/bl.yml
|
235
|
+
- test/data/at-austria/2013_14/bl_ii.txt
|
236
|
+
- test/data/at-austria/2013_14/el.txt
|
237
|
+
- test/data/at-austria/2013_14/el.yml
|
238
|
+
- test/data/at-austria/leagues.txt
|
239
|
+
- test/data/at-austria/setups/2013_14.txt
|
240
|
+
- test/data/at-austria/setups/all.txt
|
241
|
+
- test/data/at-austria/setups/teams.txt
|
242
|
+
- test/data/at-austria/teams.txt
|
243
|
+
- test/data/at-austria/teams_2.txt
|
233
244
|
- test/helper.rb
|
234
245
|
- test/test_changes.rb
|
235
246
|
- test/test_cursor.rb
|
236
247
|
- test/test_date.rb
|
237
248
|
- test/test_lang.rb
|
249
|
+
- test/test_reader.rb
|
238
250
|
- test/test_round.rb
|
239
251
|
- test/test_scores.rb
|
240
252
|
- test/test_utils.rb
|
@@ -285,4 +297,5 @@ test_files:
|
|
285
297
|
- test/test_scores.rb
|
286
298
|
- test/test_winner.rb
|
287
299
|
- test/test_utils.rb
|
300
|
+
- test/test_reader.rb
|
288
301
|
- test/test_changes.rb
|