sportdb 0.9.7 → 1.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/Manifest.txt +12 -55
- data/Rakefile +11 -10
- data/bin/sportdb +1 -2
- data/config/fixtures.de.yml +42 -0
- data/config/fixtures.en.yml +52 -0
- data/config/fixtures.es.yml +44 -0
- data/config/fixtures.pt.yml +44 -0
- data/lib/sportdb/cli/main.rb +189 -0
- data/lib/sportdb/cli/opts.rb +15 -69
- data/lib/sportdb/data/fixtures.rb +205 -0
- data/lib/sportdb/{keys.rb → data/keys.rb} +9 -2
- data/lib/sportdb/data/models.rb +43 -0
- data/lib/sportdb/deleter.rb +27 -0
- data/lib/sportdb/lang.rb +265 -0
- data/lib/sportdb/models/event.rb +0 -34
- data/lib/sportdb/reader.rb +322 -78
- data/lib/sportdb/stats.rb +28 -0
- data/lib/sportdb/utils.rb +90 -13
- data/lib/sportdb/version.rb +1 -1
- data/lib/sportdb.rb +49 -198
- data/tasks/test.rb +163 -0
- metadata +46 -71
- data/data/america/2011.rb +0 -36
- data/data/america/2011.txt +0 -110
- data/data/america/2011.yml +0 -30
- data/data/america/teams.txt +0 -26
- data/data/at/2011_12/bl.rb +0 -30
- data/data/at/2011_12/bl.txt +0 -79
- data/data/at/2011_12/cup.rb +0 -66
- data/data/at/2012_13/bl.rb +0 -33
- data/data/at/2012_13/bl.txt +0 -198
- data/data/at/2012_13/cup.rb +0 -111
- data/data/at/2012_13/cup.txt +0 -89
- data/data/at/badges.rb +0 -22
- data/data/at/teams.txt +0 -88
- data/data/cl/2011_12/cl.rb +0 -88
- data/data/cl/2011_12/el.rb +0 -65
- data/data/cl/2012_13/cl.rb +0 -324
- data/data/cl/badges.rb +0 -68
- data/data/cl/teams.txt +0 -46
- data/data/copa/sud_2012_13.rb +0 -38
- data/data/copa/sud_2012_13.txt +0 -49
- data/data/copa/teams.txt +0 -35
- data/data/de/2012_13/bl.rb +0 -38
- data/data/de/2012_13/bl.txt +0 -216
- data/data/de/teams.txt +0 -23
- data/data/en/2012_13/pl.rb +0 -39
- data/data/en/2012_13/pl.txt +0 -291
- data/data/en/teams.txt +0 -26
- data/data/es/teams.txt +0 -8
- data/data/euro/2008.rb +0 -30
- data/data/euro/2008.txt +0 -114
- data/data/euro/2012.rb +0 -25
- data/data/euro/2012.txt +0 -114
- data/data/euro/teams.txt +0 -36
- data/data/leagues.rb +0 -68
- data/data/mx/apertura_2012.rb +0 -35
- data/data/mx/apertura_2012.txt +0 -106
- data/data/mx/teams.txt +0 -20
- data/data/nfl/teams.txt +0 -46
- data/data/nhl/teams.txt +0 -40
- data/data/ro/l1_2012_13.rb +0 -137
- data/data/ro/teams.txt +0 -26
- data/data/seasons.rb +0 -22
- data/data/world/2010.rb +0 -93
- data/data/world/2010.txt +0 -215
- data/data/world/quali_2012_13_america.rb +0 -25
- data/data/world/quali_2012_13_america.txt +0 -41
- data/data/world/quali_2012_13_europe.rb +0 -32
- data/data/world/quali_2012_13_europe_c.txt +0 -85
- data/data/world/quali_2012_13_europe_i.txt +0 -74
- data/data/world/teams.txt +0 -25
- data/lib/sportdb/cli/runner.rb +0 -147
- data/lib/sportdb/loader.rb +0 -82
- data/lib/sportdb/templater.rb +0 -81
- data/templates/fixtures.rb.erb +0 -51
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: sportdb
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 23
|
5
5
|
prerelease:
|
6
6
|
segments:
|
7
|
+
- 1
|
7
8
|
- 0
|
8
|
-
-
|
9
|
-
|
10
|
-
version: 0.9.7
|
9
|
+
- 0
|
10
|
+
version: 1.0.0
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Gerald Bauer
|
@@ -15,7 +15,7 @@ autorequire:
|
|
15
15
|
bindir: bin
|
16
16
|
cert_chain: []
|
17
17
|
|
18
|
-
date:
|
18
|
+
date: 2013-02-20 00:00:00 Z
|
19
19
|
dependencies:
|
20
20
|
- !ruby/object:Gem::Dependency
|
21
21
|
name: worlddb
|
@@ -25,18 +25,34 @@ dependencies:
|
|
25
25
|
requirements:
|
26
26
|
- - ~>
|
27
27
|
- !ruby/object:Gem::Version
|
28
|
-
hash:
|
28
|
+
hash: 21
|
29
29
|
segments:
|
30
|
+
- 1
|
30
31
|
- 0
|
31
|
-
-
|
32
|
-
|
33
|
-
version: 0.6.8
|
32
|
+
- 1
|
33
|
+
version: 1.0.1
|
34
34
|
type: :runtime
|
35
35
|
version_requirements: *id001
|
36
36
|
- !ruby/object:Gem::Dependency
|
37
|
-
name:
|
37
|
+
name: commander
|
38
38
|
prerelease: false
|
39
39
|
requirement: &id002 !ruby/object:Gem::Requirement
|
40
|
+
none: false
|
41
|
+
requirements:
|
42
|
+
- - ~>
|
43
|
+
- !ruby/object:Gem::Version
|
44
|
+
hash: 61
|
45
|
+
segments:
|
46
|
+
- 4
|
47
|
+
- 1
|
48
|
+
- 3
|
49
|
+
version: 4.1.3
|
50
|
+
type: :runtime
|
51
|
+
version_requirements: *id002
|
52
|
+
- !ruby/object:Gem::Dependency
|
53
|
+
name: rdoc
|
54
|
+
prerelease: false
|
55
|
+
requirement: &id003 !ruby/object:Gem::Requirement
|
40
56
|
none: false
|
41
57
|
requirements:
|
42
58
|
- - ~>
|
@@ -47,11 +63,11 @@ dependencies:
|
|
47
63
|
- 10
|
48
64
|
version: "3.10"
|
49
65
|
type: :development
|
50
|
-
version_requirements: *
|
66
|
+
version_requirements: *id003
|
51
67
|
- !ruby/object:Gem::Dependency
|
52
68
|
name: hoe
|
53
69
|
prerelease: false
|
54
|
-
requirement: &
|
70
|
+
requirement: &id004 !ruby/object:Gem::Requirement
|
55
71
|
none: false
|
56
72
|
requirements:
|
57
73
|
- - ~>
|
@@ -62,7 +78,7 @@ dependencies:
|
|
62
78
|
- 3
|
63
79
|
version: "3.3"
|
64
80
|
type: :development
|
65
|
-
version_requirements: *
|
81
|
+
version_requirements: *id004
|
66
82
|
description: sportdb - sport.db command line tool
|
67
83
|
email: opensport@googlegroups.com
|
68
84
|
executables:
|
@@ -77,62 +93,19 @@ files:
|
|
77
93
|
- README.md
|
78
94
|
- Rakefile
|
79
95
|
- bin/sportdb
|
80
|
-
-
|
81
|
-
-
|
82
|
-
-
|
83
|
-
-
|
84
|
-
- data/at/2011_12/bl.rb
|
85
|
-
- data/at/2011_12/bl.txt
|
86
|
-
- data/at/2011_12/cup.rb
|
87
|
-
- data/at/2012_13/bl.rb
|
88
|
-
- data/at/2012_13/bl.txt
|
89
|
-
- data/at/2012_13/cup.rb
|
90
|
-
- data/at/2012_13/cup.txt
|
91
|
-
- data/at/badges.rb
|
92
|
-
- data/at/teams.txt
|
93
|
-
- data/cl/2011_12/cl.rb
|
94
|
-
- data/cl/2011_12/el.rb
|
95
|
-
- data/cl/2012_13/cl.rb
|
96
|
-
- data/cl/badges.rb
|
97
|
-
- data/cl/teams.txt
|
98
|
-
- data/copa/sud_2012_13.rb
|
99
|
-
- data/copa/sud_2012_13.txt
|
100
|
-
- data/copa/teams.txt
|
101
|
-
- data/de/2012_13/bl.rb
|
102
|
-
- data/de/2012_13/bl.txt
|
103
|
-
- data/de/teams.txt
|
104
|
-
- data/en/2012_13/pl.rb
|
105
|
-
- data/en/2012_13/pl.txt
|
106
|
-
- data/en/teams.txt
|
107
|
-
- data/es/teams.txt
|
108
|
-
- data/euro/2008.rb
|
109
|
-
- data/euro/2008.txt
|
110
|
-
- data/euro/2012.rb
|
111
|
-
- data/euro/2012.txt
|
112
|
-
- data/euro/teams.txt
|
113
|
-
- data/leagues.rb
|
114
|
-
- data/mx/apertura_2012.rb
|
115
|
-
- data/mx/apertura_2012.txt
|
116
|
-
- data/mx/teams.txt
|
117
|
-
- data/nfl/teams.txt
|
118
|
-
- data/nhl/teams.txt
|
119
|
-
- data/ro/l1_2012_13.rb
|
120
|
-
- data/ro/teams.txt
|
121
|
-
- data/seasons.rb
|
122
|
-
- data/world/2010.rb
|
123
|
-
- data/world/2010.txt
|
124
|
-
- data/world/quali_2012_13_america.rb
|
125
|
-
- data/world/quali_2012_13_america.txt
|
126
|
-
- data/world/quali_2012_13_europe.rb
|
127
|
-
- data/world/quali_2012_13_europe_c.txt
|
128
|
-
- data/world/quali_2012_13_europe_i.txt
|
129
|
-
- data/world/teams.txt
|
96
|
+
- config/fixtures.de.yml
|
97
|
+
- config/fixtures.en.yml
|
98
|
+
- config/fixtures.es.yml
|
99
|
+
- config/fixtures.pt.yml
|
130
100
|
- lib/sportdb.rb
|
101
|
+
- lib/sportdb/cli/main.rb
|
131
102
|
- lib/sportdb/cli/opts.rb
|
132
|
-
- lib/sportdb/cli/runner.rb
|
133
103
|
- lib/sportdb/console.rb
|
134
|
-
- lib/sportdb/
|
135
|
-
- lib/sportdb/
|
104
|
+
- lib/sportdb/data/fixtures.rb
|
105
|
+
- lib/sportdb/data/keys.rb
|
106
|
+
- lib/sportdb/data/models.rb
|
107
|
+
- lib/sportdb/deleter.rb
|
108
|
+
- lib/sportdb/lang.rb
|
136
109
|
- lib/sportdb/models/badge.rb
|
137
110
|
- lib/sportdb/models/city.rb
|
138
111
|
- lib/sportdb/models/country.rb
|
@@ -150,10 +123,10 @@ files:
|
|
150
123
|
- lib/sportdb/models/team.rb
|
151
124
|
- lib/sportdb/reader.rb
|
152
125
|
- lib/sportdb/schema.rb
|
153
|
-
- lib/sportdb/
|
126
|
+
- lib/sportdb/stats.rb
|
154
127
|
- lib/sportdb/utils.rb
|
155
128
|
- lib/sportdb/version.rb
|
156
|
-
-
|
129
|
+
- tasks/test.rb
|
157
130
|
homepage: https://github.com/geraldb/sport.db.ruby
|
158
131
|
licenses:
|
159
132
|
- Public Domain
|
@@ -175,10 +148,12 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
175
148
|
requirements:
|
176
149
|
- - ">="
|
177
150
|
- !ruby/object:Gem::Version
|
178
|
-
hash:
|
151
|
+
hash: 55
|
179
152
|
segments:
|
180
|
-
-
|
181
|
-
|
153
|
+
- 1
|
154
|
+
- 9
|
155
|
+
- 2
|
156
|
+
version: 1.9.2
|
182
157
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
183
158
|
none: false
|
184
159
|
requirements:
|
data/data/america/2011.rb
DELETED
@@ -1,36 +0,0 @@
|
|
1
|
-
# encoding: utf-8
|
2
|
-
|
3
|
-
## fix: change time zone to ??
|
4
|
-
|
5
|
-
##################################
|
6
|
-
## Copa América 2011 (Argentina)
|
7
|
-
#
|
8
|
-
# more info -> http://en.wikipedia.org/wiki/2011_Copa_América
|
9
|
-
# -> http://de.wikipedia.org/wiki/Copa_América_2011
|
10
|
-
|
11
|
-
copa = Event.create!( league: League.find_by_key!('america'),
|
12
|
-
season: Season.find_by_key!('2011'),
|
13
|
-
start_at: Time.cet( '2011-07-01 12:00' ) )
|
14
|
-
|
15
|
-
|
16
|
-
##############
|
17
|
-
# 12 Teams
|
18
|
-
|
19
|
-
copa.add_teams_from_ary!([
|
20
|
-
'arg', # Argentien
|
21
|
-
'col', # Kolumbien
|
22
|
-
'uru', # Uruguay
|
23
|
-
'bra', # Brasilien
|
24
|
-
'mex', # Mexiko
|
25
|
-
'ecu', # Ecuador
|
26
|
-
'chi', # Chile
|
27
|
-
'par', # Paraguay
|
28
|
-
'per', # Peru
|
29
|
-
'ven', # Venezuela
|
30
|
-
'bol', # Bolvien
|
31
|
-
'crc' # Costa Rica
|
32
|
-
])
|
33
|
-
|
34
|
-
|
35
|
-
## The End
|
36
|
-
#################
|
data/data/america/2011.txt
DELETED
@@ -1,110 +0,0 @@
|
|
1
|
-
##################################
|
2
|
-
## Copa América 2011 (Argentina)
|
3
|
-
#
|
4
|
-
|
5
|
-
##################
|
6
|
-
#### Groups
|
7
|
-
|
8
|
-
Gruppe A | ARG COL BOL CRC
|
9
|
-
Gruppe B | BRA PAR VEN ECU
|
10
|
-
Gruppe C | URU CHI PER MEX
|
11
|
-
|
12
|
-
|
13
|
-
################
|
14
|
-
## Gruppe A
|
15
|
-
|
16
|
-
1. Spieltag / Gruppe A
|
17
|
-
|
18
|
-
2011-07-01 21:45 Argentinien - Bolivien 1:1
|
19
|
-
|
20
|
-
2. Spieltag / Gruppe A
|
21
|
-
|
22
|
-
2011-07-02 15:30 Kolumbien - Costa Rica 1:0
|
23
|
-
|
24
|
-
5. Spieltag / Gruppe A
|
25
|
-
|
26
|
-
2011-07-06 21:45 Argentinien - Kolumbien 0:0
|
27
|
-
|
28
|
-
6. Spieltag / Gruppe A
|
29
|
-
|
30
|
-
2011-07-07 19:15 Bolivien - Costa Rica 0:2
|
31
|
-
|
32
|
-
9. Spieltag / Gruppe A
|
33
|
-
|
34
|
-
2011-07-10 16:00 Kolumbien - Bolivien 2:0
|
35
|
-
|
36
|
-
10. Spieltag / Gruppe A
|
37
|
-
|
38
|
-
2011-07-11 21:45 Argentinien - Costa Rica 3:0
|
39
|
-
|
40
|
-
|
41
|
-
################
|
42
|
-
## Gruppe B
|
43
|
-
|
44
|
-
3. Spieltag / Gruppe B
|
45
|
-
|
46
|
-
2011-07-03 16:00 Brasilien - Venezuela 0:0
|
47
|
-
2011-07-03 18:30 Paraguay - Ecuador 0:0
|
48
|
-
|
49
|
-
8. Spieltag / Gruppe B
|
50
|
-
|
51
|
-
2011-07-09 16:00 Brasilien - Paraguay 2:2
|
52
|
-
2011-07-09 18:30 Venezuela - Ecuador 1:0
|
53
|
-
|
54
|
-
12. Spieltag / Gruppe B
|
55
|
-
|
56
|
-
2011-07-13 19:15 Paraguay - Venezuela 3:3
|
57
|
-
2011-07-13 21:45 Brasilien - Ecuador 4:2
|
58
|
-
|
59
|
-
|
60
|
-
################
|
61
|
-
## Gruppe C
|
62
|
-
|
63
|
-
4. Spieltag / Gruppe C
|
64
|
-
|
65
|
-
2011-07-04 19:15 Uruguay - Peru 1:1
|
66
|
-
2011-07-04 21:45 Chile - Mexiko 2:1
|
67
|
-
|
68
|
-
7. Spieltag / Gruppe C
|
69
|
-
|
70
|
-
2011-07-08 19:15 Uruguay - Chile 1:1
|
71
|
-
2011-07-08 21:45 Peru - Mexiko 1:0
|
72
|
-
|
73
|
-
11. Spieltag / Gruppe C
|
74
|
-
|
75
|
-
2011-07-12 19:45 Chile - Peru 1:0
|
76
|
-
2011-07-12 21:45 Uruguay - Mexiko 1:0
|
77
|
-
|
78
|
-
##############
|
79
|
-
# Viertelfinale
|
80
|
-
|
81
|
-
13. Runde // Viertelfinale // Knockout
|
82
|
-
|
83
|
-
2011-07-16 16:00 Kolumbien - Peru 0:0 0:2nV
|
84
|
-
2011-07-16 19:15 Argentinien - Uruguay 1:1 1:1nV 4:5iE
|
85
|
-
2011-07-17 16:00 Brasilien - Paraguay 0:0 0:0nV 0:2iE
|
86
|
-
2011-07-17 19:15 Chile - Venezuela 1:2
|
87
|
-
|
88
|
-
|
89
|
-
###############
|
90
|
-
# Halbfinale
|
91
|
-
|
92
|
-
14. Runde // Halbfinale // Knockout
|
93
|
-
|
94
|
-
2011-07-19 21:45 Peru - Uruguay 0:2
|
95
|
-
2011-07-20 21:45 Paraguay - Venezuela 0:0 0:0nV 5:3iE
|
96
|
-
|
97
|
-
|
98
|
-
####################
|
99
|
-
# Spiel um Platz 3
|
100
|
-
|
101
|
-
15. Runde // Spiel um Platz 3 // Knockout
|
102
|
-
|
103
|
-
2011-07-23 16:00 Peru - Venezuela 4:1
|
104
|
-
|
105
|
-
#################
|
106
|
-
# Finale
|
107
|
-
|
108
|
-
16. Runde // Finale // Knockout
|
109
|
-
|
110
|
-
2011-07-24 16:00 Uruguay - Paraguay 3:0
|
data/data/america/2011.yml
DELETED
@@ -1,30 +0,0 @@
|
|
1
|
-
##################################
|
2
|
-
## Copa América 2011 (Argentina)
|
3
|
-
#
|
4
|
-
# more info -> http://en.wikipedia.org/wiki/2011_Copa_América
|
5
|
-
# -> http://de.wikipedia.org/wiki/Copa_América_2011
|
6
|
-
|
7
|
-
## fix: change time zone to ??
|
8
|
-
|
9
|
-
|
10
|
-
league: america
|
11
|
-
season: 2011
|
12
|
-
start_at: 2011-07-01 12:00
|
13
|
-
|
14
|
-
##############
|
15
|
-
# 12 Teams (fifa three-letter country codes)
|
16
|
-
#
|
17
|
-
# - Argentien
|
18
|
-
# - Kolumbien
|
19
|
-
# - Uruguay
|
20
|
-
# - Brasilien
|
21
|
-
# - Mexiko
|
22
|
-
# - Ecuador
|
23
|
-
# - Chile
|
24
|
-
# - Paraguay
|
25
|
-
# - Peru
|
26
|
-
# - Venezuela
|
27
|
-
# - Bolvien
|
28
|
-
# - Costa Rica
|
29
|
-
|
30
|
-
teams: arg, col, uru, bra, mex, ecu, chi, par, per, ven, bol, crc
|
data/data/america/teams.txt
DELETED
@@ -1,26 +0,0 @@
|
|
1
|
-
# encoding: utf-8
|
2
|
-
|
3
|
-
##############
|
4
|
-
## south america
|
5
|
-
|
6
|
-
arg, Argentinien, ARG, ar
|
7
|
-
bra, Brasilien, BRA, br
|
8
|
-
chi, Chile, CHI, cl
|
9
|
-
par, Paraguay, PAR, py
|
10
|
-
uru, Uruguay, URU, uy
|
11
|
-
col, Kolumbien, COL, co
|
12
|
-
ecu, Ecuador, ECU, ec
|
13
|
-
per, Peru, PER, pe
|
14
|
-
ven, Venezuela, VEN, ve
|
15
|
-
bol, Bolivien, BOL, bo
|
16
|
-
|
17
|
-
|
18
|
-
#####################
|
19
|
-
#### north/central america & caribbean islands
|
20
|
-
|
21
|
-
mex, Mexiko|México, MEX, mx
|
22
|
-
usa, Vereinigte Staaten|United States, USA, us
|
23
|
-
hon, Honduras, HON, hn
|
24
|
-
crc, Costa Rica, CRC, cr
|
25
|
-
slv, El Salvador, SLV, sv
|
26
|
-
guy, Guyana, GUY, gy
|
data/data/at/2011_12/bl.rb
DELETED
@@ -1,30 +0,0 @@
|
|
1
|
-
# encoding: utf-8
|
2
|
-
|
3
|
-
# note: timezone for games (play_at) is *always* CET (central european time)
|
4
|
-
|
5
|
-
|
6
|
-
######################################
|
7
|
-
## Oesterreichische Bundesliga 2011/12
|
8
|
-
##
|
9
|
-
## more info => http://bundesliga.at
|
10
|
-
|
11
|
-
bl = Event.create!( league: League.find_by_key!('at'),
|
12
|
-
season: Season.find_by_key!('2011/12'),
|
13
|
-
start_at: Time.cet('2012-04-07 00:00'))
|
14
|
-
|
15
|
-
team_keys_bl = [
|
16
|
-
'salzburg',
|
17
|
-
'rapid',
|
18
|
-
'admira',
|
19
|
-
'austria',
|
20
|
-
'sturm',
|
21
|
-
'ried',
|
22
|
-
'innsbruck',
|
23
|
-
'mattersburg',
|
24
|
-
'wrneustadt',
|
25
|
-
'ksv' ]
|
26
|
-
|
27
|
-
bl.add_teams_from_ary!( team_keys_bl )
|
28
|
-
|
29
|
-
## The End
|
30
|
-
#################
|
data/data/at/2011_12/bl.txt
DELETED
@@ -1,79 +0,0 @@
|
|
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
|
-
RB Salzburg 2:0 FC Wacker Innsbruck 2012-04-07 16:00
|
12
|
-
SV Ried 0:1 Austria Wien 2012-04-07 18:30
|
13
|
-
Kapfenberger SV 2:3 Admira Wacker 2012-04-07 18:30
|
14
|
-
Rapid Wien 2:1 SC Wiener Neustadt 2012-04-07 18:30
|
15
|
-
SV Mattersburg 0:2 Sturm Graz 2012-04-08 16:00
|
16
|
-
|
17
|
-
|
18
|
-
30. Runde / Sa+So 14.+15. April 2012
|
19
|
-
|
20
|
-
SC Wiener Neustadt 0:0 Kapfenberger SV 2012-04-14 16:00
|
21
|
-
Admira Wacker 1:1 FC Wacker Innsbruck 2012-04-14 18:30
|
22
|
-
Sturm Graz 2:2 RB Salzburg 2012-04-14 18:30
|
23
|
-
SV Ried 2:0 SV Mattersburg 2012-04-14 18:30
|
24
|
-
Austria Wien 0:0 Rapid Wien 2012-04-15 16:00
|
25
|
-
|
26
|
-
|
27
|
-
31. Runde / Sa+So 21.+22. April 2012
|
28
|
-
|
29
|
-
FC Wacker Innsbruck 2:0 SC Wiener Neustadt 2012-04-21 16:00
|
30
|
-
Kapfenberger SV 1:0 Austria Wien 2012-04-21 18:30
|
31
|
-
SV Mattersburg 1:2 Admira Wacker 2012-04-21 18:30
|
32
|
-
RB Salzburg 2:0 SV Ried 2012-04-21 18:30
|
33
|
-
Rapid Wien 1:1 Sturm Graz 2012-04-22 16:00
|
34
|
-
|
35
|
-
|
36
|
-
32. Runde / Sa+So 28.+29. April 2012
|
37
|
-
|
38
|
-
Austria Wien 3:0 FC Wacker Innsbruck 2012-04-28 16:00
|
39
|
-
SC Wiener Neustadt 1:4 Admira Wacker 2012-04-28 18:30
|
40
|
-
SV Mattersburg 0:1 RB Salzburg 2012-04-28 18:30
|
41
|
-
Sturm Graz 2:1 Kapfenberger SV 2012-04-28 18:30
|
42
|
-
SV Ried 2:3 Rapid Wien 2012-04-29 16:00
|
43
|
-
|
44
|
-
|
45
|
-
33. Runde / Sa 5. Mai 2012
|
46
|
-
|
47
|
-
SC Wiener Neustadt 0:0 Sturm Graz 2012-05-05 16:00
|
48
|
-
Admira Wacker 3:2 Austria Wien 2012-05-05 18:30
|
49
|
-
Kapfenberger SV 0:0 SV Ried 2012-05-05 18:30
|
50
|
-
FC Wacker Innsbruck 3:6 SV Mattersburg 2012-05-05 18:30
|
51
|
-
Rapid Wien 0:1 RB Salzburg 2012-05-06 16:00
|
52
|
-
|
53
|
-
|
54
|
-
34. Runde / Do 10. Mai 2012
|
55
|
-
|
56
|
-
RB Salzburg 2:0 Kapfenberger SV 2012-05-10 18:30
|
57
|
-
Austria Wien 3:1 SC Wiener Neustadt 2012-05-10 20:30
|
58
|
-
SV Ried 1:1 FC Wacker Innsbruck 2012-05-10 20:30
|
59
|
-
SV Mattersburg 0:1 Rapid Wien 2012-05-10 20:30
|
60
|
-
Sturm Graz 0:3 Admira Wacker 2012-05-10 20:30
|
61
|
-
|
62
|
-
|
63
|
-
35. Runde / So 13. Mai 2012
|
64
|
-
|
65
|
-
Kapfenberger SV 0:2 Rapid Wien 2012-05-13 16:00
|
66
|
-
FC Wacker Innsbruck 1:1 Sturm Graz 2012-05-13 16:00
|
67
|
-
SC Wiener Neustadt 1:5 RB Salzburg 2012-05-13 16:00
|
68
|
-
Admira Wacker 1:1 SV Ried 2012-05-13 16:00
|
69
|
-
Austria Wien 1:0 SV Mattersburg 2012-05-13 16:00
|
70
|
-
|
71
|
-
|
72
|
-
36. Runde / Do 17. Mai 2012
|
73
|
-
|
74
|
-
Rapid Wien 2:0 FC Wacker Innsbruck 2012-05-17 16:00
|
75
|
-
SV Ried 2:2 SC Wiener Neustadt 2012-05-17 16:00
|
76
|
-
SV Mattersburg 2:0 Kapfenberger SV 2012-05-17 16:00
|
77
|
-
Sturm Graz 3:1 Austria Wien 2012-05-17 16:00
|
78
|
-
RB Salzburg 2:0 Admira Wacker 2012-05-17 16:00
|
79
|
-
|
data/data/at/2011_12/cup.rb
DELETED
@@ -1,66 +0,0 @@
|
|
1
|
-
# encoding: utf-8
|
2
|
-
|
3
|
-
# note: timezone for games (play_at) is *always* CET (central european time)
|
4
|
-
|
5
|
-
|
6
|
-
##################################
|
7
|
-
### ÖFB Cup 2011/12
|
8
|
-
|
9
|
-
ofb = Event.create!( league: League.find_by_key!('at.cup'),
|
10
|
-
season: Season.find_by_key!('2011/12'),
|
11
|
-
start_at: Time.cet( '2011-10-10 17:00' ),
|
12
|
-
team3: false ) # no game for 3rd/4th place
|
13
|
-
|
14
|
-
|
15
|
-
sturm = Team.find_by_key!( 'sturm' )
|
16
|
-
ried = Team.find_by_key!( 'ried' )
|
17
|
-
salzburg = Team.find_by_key!( 'salzburg' )
|
18
|
-
austria = Team.find_by_key!( 'austria' )
|
19
|
-
rapid = Team.find_by_key!( 'rapid' )
|
20
|
-
innsbruck = Team.find_by_key!( 'innsbruck' )
|
21
|
-
wrneustadt = Team.find_by_key!( 'wrneustadt')
|
22
|
-
ksv = Team.find_by_key!( 'ksv' )
|
23
|
-
mattersburg = Team.find_by_key!( 'mattersburg' )
|
24
|
-
admira = Team.find_by_key!( 'admira' )
|
25
|
-
|
26
|
-
|
27
|
-
hartberg = Team.find_by_key!( 'hartberg' )
|
28
|
-
groedig = Team.find_by_key!( 'groedig' )
|
29
|
-
juniors = Team.find_by_key!( 'juniors' )
|
30
|
-
austrial = Team.find_by_key!( 'austrial' )
|
31
|
-
|
32
|
-
ofb.teams << sturm
|
33
|
-
ofb.teams << hartberg
|
34
|
-
ofb.teams << groedig
|
35
|
-
ofb.teams << ried
|
36
|
-
ofb.teams << salzburg
|
37
|
-
ofb.teams << juniors
|
38
|
-
ofb.teams << austrial
|
39
|
-
ofb.teams << austria
|
40
|
-
|
41
|
-
ofb8 = Round.create!( event: ofb, pos: 1, title: 'Viertelfinale', start_at: Time.cet( '2012-04-10' ), title2: 'Di+Mi 10.+11. April 2012' )
|
42
|
-
ofb4 = Round.create!( event: ofb, pos: 2, title: 'Halbfinale', start_at: Time.cet( '2012-05-01' ), title2: 'Di+Mi 1.+2. Mai 2012' )
|
43
|
-
ofb1 = Round.create!( event: ofb, pos: 3, title: 'Finale', start_at: Time.cet( '2012-05-20' ), title2: 'So 20. Mai 2012' )
|
44
|
-
|
45
|
-
games_ofb8 = [
|
46
|
-
[ groedig, [2, 3], ried, Time.cet('2012-04-10 18:00') ],
|
47
|
-
[ austrial, [1, 2], austria, Time.cet('2012-04-11 18:00') ],
|
48
|
-
[ sturm, [2, 2, 2, 4], hartberg, Time.cet('2012-04-11 19:00') ],
|
49
|
-
[ salzburg, [4, 1], juniors, Time.cet('2012-04-11 19:00') ]
|
50
|
-
]
|
51
|
-
|
52
|
-
games_ofb4 = [
|
53
|
-
[ hartberg, [0, 1], salzburg, Time.cet('2012-05-01 18:00') ],
|
54
|
-
[ ried, [2, 0], austria, Time.cet('2012-05-02 20:30') ]
|
55
|
-
]
|
56
|
-
|
57
|
-
games_ofb1 = [
|
58
|
-
[ salzburg, [3,0], ried, Time.cet('2012-05-20 16:00') ]
|
59
|
-
]
|
60
|
-
|
61
|
-
Game.create_knockouts_from_ary!( games_ofb8, ofb8 )
|
62
|
-
Game.create_knockouts_from_ary!( games_ofb4, ofb4 )
|
63
|
-
Game.create_knockouts_from_ary!( games_ofb1, ofb1 )
|
64
|
-
|
65
|
-
## The End
|
66
|
-
#################
|
data/data/at/2012_13/bl.rb
DELETED
@@ -1,33 +0,0 @@
|
|
1
|
-
# encoding: utf-8
|
2
|
-
|
3
|
-
# note: timezone for games (play_at) is *always* CET (central european time)
|
4
|
-
|
5
|
-
######################################
|
6
|
-
## Oesterreichische Bundesliga 2012/13
|
7
|
-
##
|
8
|
-
## more info => http://bundesliga.at
|
9
|
-
|
10
|
-
|
11
|
-
bl = Event.create!( league: League.find_by_key!('at'),
|
12
|
-
season: Season.find_by_key!('2012/13'),
|
13
|
-
start_at: Time.cet('2012-07-21 00:00'))
|
14
|
-
|
15
|
-
## 10 Bundeliga Teams
|
16
|
-
|
17
|
-
team_keys_bl = [
|
18
|
-
'salzburg',
|
19
|
-
'rapid',
|
20
|
-
'admira',
|
21
|
-
'austria',
|
22
|
-
'sturm',
|
23
|
-
'ried',
|
24
|
-
'innsbruck',
|
25
|
-
'mattersburg',
|
26
|
-
'wrneustadt',
|
27
|
-
'wac' ]
|
28
|
-
|
29
|
-
bl.add_teams_from_ary!( team_keys_bl )
|
30
|
-
|
31
|
-
|
32
|
-
## The End
|
33
|
-
#################
|