sportdb 0.9.2 → 0.9.3
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/{History.markdown → History.md} +0 -0
- data/Manifest.txt +52 -52
- data/{README.markdown → README.md} +0 -0
- data/Rakefile +20 -4
- data/{db → data}/america/2011.rb +0 -0
- data/{db → data}/america/2011.txt +0 -0
- data/{db → data}/america/2011.yml +0 -0
- data/{db → data}/america/teams.txt +0 -0
- data/{db → data}/at/2011_12/bl.rb +0 -0
- data/{db → data}/at/2011_12/bl.txt +0 -0
- data/{db → data}/at/2011_12/cup.rb +0 -0
- data/{db → data}/at/2012_13/bl.rb +0 -0
- data/{db → data}/at/2012_13/bl.txt +51 -20
- data/{db → data}/at/2012_13/cup.rb +0 -0
- data/{db → data}/at/2012_13/cup.txt +0 -0
- data/{db → data}/at/badges.rb +0 -0
- data/{db → data}/at/teams.txt +0 -0
- data/{db → data}/cl/2011_12/cl.rb +0 -0
- data/{db → data}/cl/2011_12/el.rb +0 -0
- data/{db → data}/cl/2012_13/cl.rb +32 -32
- data/{db → data}/cl/badges.rb +0 -0
- data/{db → data}/cl/teams.txt +0 -0
- data/{db → data}/copa/sud_2012_13.rb +0 -0
- data/{db → data}/copa/sud_2012_13.txt +0 -0
- data/{db → data}/copa/teams.txt +0 -0
- data/{db → data}/de/2012_13/bl.rb +0 -0
- data/{db → data}/de/2012_13/bl.txt +0 -0
- data/{db → data}/de/teams.txt +0 -0
- data/{db → data}/en/2012_13/pl.rb +0 -0
- data/{db → data}/en/2012_13/pl.txt +0 -0
- data/{db → data}/en/teams.txt +0 -0
- data/{db → data}/es/teams.txt +0 -0
- data/{db → data}/euro/2008.rb +0 -0
- data/{db → data}/euro/2008.txt +0 -0
- data/{db → data}/euro/2012.rb +0 -0
- data/{db → data}/euro/2012.txt +0 -0
- data/{db → data}/euro/teams.txt +0 -0
- data/{db → data}/leagues.rb +0 -0
- data/{db → data}/mx/apertura_2012.rb +0 -0
- data/{db → data}/mx/apertura_2012.txt +0 -0
- data/{db → data}/mx/teams.txt +0 -0
- data/data/nfl/teams.txt +46 -0
- data/data/nhl/teams.txt +40 -0
- data/{db → data}/ro/l1_2012_13.rb +0 -0
- data/{db → data}/ro/teams.txt +0 -0
- data/{db → data}/seasons.rb +0 -0
- data/{db → data}/world/2010.rb +0 -0
- data/{db → data}/world/2010.txt +0 -0
- data/{db → data}/world/quali_2012_13_america.rb +0 -0
- data/{db → data}/world/quali_2012_13_america.txt +0 -0
- data/{db → data}/world/quali_2012_13_europe.rb +0 -0
- data/{db → data}/world/quali_2012_13_europe_c.txt +0 -0
- data/{db → data}/world/quali_2012_13_europe_i.txt +0 -0
- data/{db → data}/world/teams.txt +0 -0
- data/lib/sportdb/reader.rb +56 -0
- data/lib/sportdb/version.rb +1 -1
- metadata +72 -96
- data/db/nfl/teams.rb +0 -58
- data/db/nhl/teams.txt +0 -40
File without changes
|
data/Manifest.txt
CHANGED
@@ -1,58 +1,58 @@
|
|
1
|
-
History.
|
1
|
+
History.md
|
2
2
|
Manifest.txt
|
3
|
-
README.
|
3
|
+
README.md
|
4
4
|
Rakefile
|
5
5
|
bin/sportdb
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
|
42
|
-
|
43
|
-
|
44
|
-
|
45
|
-
|
46
|
-
|
47
|
-
|
48
|
-
|
49
|
-
|
50
|
-
|
51
|
-
|
52
|
-
|
53
|
-
|
54
|
-
|
55
|
-
|
6
|
+
data/america/2011.rb
|
7
|
+
data/america/2011.txt
|
8
|
+
data/america/2011.yml
|
9
|
+
data/america/teams.txt
|
10
|
+
data/at/2011_12/bl.rb
|
11
|
+
data/at/2011_12/bl.txt
|
12
|
+
data/at/2011_12/cup.rb
|
13
|
+
data/at/2012_13/bl.rb
|
14
|
+
data/at/2012_13/bl.txt
|
15
|
+
data/at/2012_13/cup.rb
|
16
|
+
data/at/2012_13/cup.txt
|
17
|
+
data/at/badges.rb
|
18
|
+
data/at/teams.txt
|
19
|
+
data/cl/2011_12/cl.rb
|
20
|
+
data/cl/2011_12/el.rb
|
21
|
+
data/cl/2012_13/cl.rb
|
22
|
+
data/cl/badges.rb
|
23
|
+
data/cl/teams.txt
|
24
|
+
data/copa/sud_2012_13.rb
|
25
|
+
data/copa/sud_2012_13.txt
|
26
|
+
data/copa/teams.txt
|
27
|
+
data/de/2012_13/bl.rb
|
28
|
+
data/de/2012_13/bl.txt
|
29
|
+
data/de/teams.txt
|
30
|
+
data/en/2012_13/pl.rb
|
31
|
+
data/en/2012_13/pl.txt
|
32
|
+
data/en/teams.txt
|
33
|
+
data/es/teams.txt
|
34
|
+
data/euro/2008.rb
|
35
|
+
data/euro/2008.txt
|
36
|
+
data/euro/2012.rb
|
37
|
+
data/euro/2012.txt
|
38
|
+
data/euro/teams.txt
|
39
|
+
data/leagues.rb
|
40
|
+
data/mx/apertura_2012.rb
|
41
|
+
data/mx/apertura_2012.txt
|
42
|
+
data/mx/teams.txt
|
43
|
+
data/nfl/teams.txt
|
44
|
+
data/nhl/teams.txt
|
45
|
+
data/ro/l1_2012_13.rb
|
46
|
+
data/ro/teams.txt
|
47
|
+
data/seasons.rb
|
48
|
+
data/world/2010.rb
|
49
|
+
data/world/2010.txt
|
50
|
+
data/world/quali_2012_13_america.rb
|
51
|
+
data/world/quali_2012_13_america.txt
|
52
|
+
data/world/quali_2012_13_europe.rb
|
53
|
+
data/world/quali_2012_13_europe_c.txt
|
54
|
+
data/world/quali_2012_13_europe_i.txt
|
55
|
+
data/world/teams.txt
|
56
56
|
lib/sportdb.rb
|
57
57
|
lib/sportdb/cli/opts.rb
|
58
58
|
lib/sportdb/cli/runner.rb
|
File without changes
|
data/Rakefile
CHANGED
@@ -1,6 +1,15 @@
|
|
1
1
|
require 'hoe'
|
2
2
|
require './lib/sportdb/version.rb'
|
3
3
|
|
4
|
+
## NB: plugin (hoe-manifest) not required; just used for future testing/development
|
5
|
+
Hoe::plugin :manifest # more options for manifests (in the future; not yet)
|
6
|
+
|
7
|
+
###########
|
8
|
+
#### NB: if you try this script at home
|
9
|
+
# you need to create a (symbolic) link to the sport.db fixtures
|
10
|
+
# e.g. use ln -s ../sport.db data or similar
|
11
|
+
|
12
|
+
|
4
13
|
Hoe.spec 'sportdb' do
|
5
14
|
|
6
15
|
self.version = SportDB::VERSION
|
@@ -8,21 +17,28 @@ Hoe.spec 'sportdb' do
|
|
8
17
|
self.summary = 'sportdb - sport.db command line tool'
|
9
18
|
self.description = summary
|
10
19
|
|
11
|
-
self.urls = ['
|
20
|
+
self.urls = ['https://github.com/geraldb/sport.db.ruby']
|
12
21
|
|
13
22
|
self.author = 'Gerald Bauer'
|
14
23
|
self.email = 'opensport@googlegroups.com'
|
15
24
|
|
16
25
|
# switch extension to .markdown for gihub formatting
|
17
|
-
|
18
|
-
self.
|
26
|
+
# -- NB: auto-changed when included in manifest
|
27
|
+
# self.readme_file = 'README.md'
|
28
|
+
# self.history_file = 'History.md'
|
19
29
|
|
20
30
|
self.extra_deps = [
|
21
31
|
['activerecord', '~> 3.2'], # NB: will include activesupport,etc.
|
22
|
-
['worlddb', '~> 0.
|
32
|
+
['worlddb', '~> 0.6.8']
|
23
33
|
### ['sqlite3', '~> 1.3'] # NB: install on your own; remove dependency
|
24
34
|
]
|
25
35
|
|
36
|
+
self.licenses = ['Public Domain']
|
37
|
+
|
38
|
+
self.spec_extras = {
|
39
|
+
:required_ruby_version => '>= 1.9.2'
|
40
|
+
}
|
41
|
+
|
26
42
|
self.post_install_message =<<EOS
|
27
43
|
******************************************************************************
|
28
44
|
|
data/{db → data}/america/2011.rb
RENAMED
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
@@ -126,35 +126,35 @@
|
|
126
126
|
|
127
127
|
16. Runde - Sa 17. Nov 2012
|
128
128
|
|
129
|
-
17.11. 16:00 RB Salzburg
|
130
|
-
17.11. 16:00 FK Austria Wien
|
131
|
-
17.11. 16:00 SV Mattersburg
|
132
|
-
17.11. 16:00 SK Sturm Graz
|
133
|
-
17.11. 16:00 Wolfsberger AC
|
129
|
+
17.11. 16:00 RB Salzburg 2:0 FC Wacker
|
130
|
+
17.11. 16:00 FK Austria Wien 3:0 Wiener Neustadt
|
131
|
+
17.11. 16:00 SV Mattersburg 0:3 SK Rapid Wien
|
132
|
+
17.11. 16:00 SK Sturm Graz 3:1 SV Ried
|
133
|
+
17.11. 16:00 Wolfsberger AC 1:1 Admira Wacker
|
134
134
|
|
135
135
|
17. Runde - Sa 24. Nov 2012
|
136
136
|
|
137
|
-
24.11. 16:00 FC Wacker
|
138
|
-
24.11. 16:00 Admira Wacker
|
139
|
-
24.11. 16:00 FK Austria Wien
|
140
|
-
24.11. 16:00 SV Ried
|
141
|
-
24.11. 16:00 Wiener Neustadt
|
137
|
+
24.11. 16:00 FC Wacker 0:3 SK Sturm Graz
|
138
|
+
24.11. 16:00 Admira Wacker 0:2 SK Rapid Wien
|
139
|
+
24.11. 16:00 FK Austria Wien 3:1 SV Mattersburg
|
140
|
+
24.11. 16:00 SV Ried 3:1 RB Salzburg
|
141
|
+
24.11. 16:00 Wiener Neustadt 2:1 Wolfsberger AC
|
142
142
|
|
143
143
|
18. Runde - Sa 1. Dez 2012
|
144
144
|
|
145
|
-
01.12. 16:00 SK Sturm Graz
|
146
|
-
01.12. 16:00 SK Rapid Wien
|
147
|
-
01.12. 16:00 RB Salzburg
|
148
|
-
01.12. 16:00 SV Mattersburg
|
149
|
-
01.12. 16:00 Wolfsberger AC
|
145
|
+
01.12. 16:00 SK Sturm Graz 3:1 Wiener Neustadt
|
146
|
+
01.12. 16:00 SK Rapid Wien 4:3 SV Ried
|
147
|
+
01.12. 16:00 RB Salzburg 0:0 FK Austria Wien
|
148
|
+
01.12. 16:00 SV Mattersburg 3:0 Admira Wacker
|
149
|
+
01.12. 16:00 Wolfsberger AC 2:2 FC Wacker
|
150
150
|
|
151
151
|
19. Runde - Sa 8. Dez 2012
|
152
152
|
|
153
|
-
08.12. 16:00 SV Mattersburg
|
154
|
-
08.12. 16:00 Admira Wacker
|
155
|
-
08.12. 16:00 SK Rapid Wien
|
156
|
-
08.12. 16:00 SK Sturm Graz
|
157
|
-
08.12. 16:00 Wolfsberger AC
|
153
|
+
08.12. 16:00 SV Mattersburg 1:0 Wiener Neustadt
|
154
|
+
08.12. 16:00 Admira Wacker 0:3 SV Ried
|
155
|
+
08.12. 16:00 SK Rapid Wien 2:1 FC Wacker
|
156
|
+
08.12. 16:00 SK Sturm Graz 1:1 RB Salzburg
|
157
|
+
08.12. 16:00 Wolfsberger AC 3:6 FK Austria Wien
|
158
158
|
|
159
159
|
20. Runde - Sa 15. Dez 2012
|
160
160
|
|
@@ -165,3 +165,34 @@
|
|
165
165
|
15.12. 16:00 SV Ried - Wolfsberger AC
|
166
166
|
|
167
167
|
|
168
|
+
21. Runde - Sa 16. Feb 2013
|
169
|
+
|
170
|
+
2013-02-16 12:00 SV Ried - FC Wacker Innsbruck
|
171
|
+
2013-02-16 12:00 Rapid Wien - Austria Wien
|
172
|
+
2013-02-16 12:00 SV Mattersburg - Sturm Graz
|
173
|
+
2013-02-16 12:00 Wolfsberger AC - RB Salzburg
|
174
|
+
2013-02-16 12:00 FC Admira Wacker - SC Wiener Neustadt
|
175
|
+
|
176
|
+
22. Runde - Sa 23. Feb 2013
|
177
|
+
|
178
|
+
2013-02-23 12:00 SC Wiener Neustadt - SV Ried
|
179
|
+
2013-02-23 12:00 Sturm Graz - Wolfsberger AC
|
180
|
+
2013-02-23 12:00 RB Salzburg - Rapid Wien
|
181
|
+
2013-02-23 12:00 Austria Wien - FC Admira Wacker
|
182
|
+
2013-02-23 12:00 FC Wacker Innsbruck - SV Mattersburg
|
183
|
+
|
184
|
+
23. Runde - Di 26. Feb 2013
|
185
|
+
|
186
|
+
2013-02-26 12:00 SV Ried - Austria Wien
|
187
|
+
2013-02-26 12:00 Rapid Wien - Sturm Graz
|
188
|
+
2013-02-26 12:00 FC Wacker Innsbruck - SC Wiener Neustadt
|
189
|
+
2013-02-26 12:00 Wolfsberger AC - SV Mattersburg
|
190
|
+
2013-02-26 12:00 FC Admira Wacker - RB Salzburg
|
191
|
+
|
192
|
+
24. Runde - Sa 02. Mar 2013
|
193
|
+
|
194
|
+
2013-03-02 12:00 Sturm Graz - FC Admira Wacker
|
195
|
+
2013-03-02 12:00 RB Salzburg - SC Wiener Neustadt
|
196
|
+
2013-03-02 12:00 Austria Wien - FC Wacker Innsbruck
|
197
|
+
2013-03-02 12:00 SV Mattersburg - SV Ried
|
198
|
+
2013-03-02 12:00 Wolfsberger AC - Rapid Wien
|
File without changes
|
File without changes
|
data/{db → data}/at/badges.rb
RENAMED
File without changes
|
data/{db → data}/at/teams.txt
RENAMED
File without changes
|
File without changes
|
File without changes
|
@@ -191,13 +191,13 @@ cl1 = Round.create!( event: cl, pos: 13, title: 'Finale', s
|
|
191
191
|
|
192
192
|
games_cla = [
|
193
193
|
[[ 1, zagreb, [0,2], porto, Time.cet('2012-09-18 20:45'), clr1 ],
|
194
|
-
[ 2, porto, [], zagreb, Time.cet('2012-11-21 20:45'), clr5 ]],
|
194
|
+
[ 2, porto, [3,0], zagreb, Time.cet('2012-11-21 20:45'), clr5 ]],
|
195
195
|
[[ 2, paris, [4,1], kiew, Time.cet('2012-09-18 20:45'), clr1 ],
|
196
|
-
[ 1, kiew, [], paris, Time.cet('2012-11-21 20:45'), clr5 ]],
|
196
|
+
[ 1, kiew, [0,2], paris, Time.cet('2012-11-21 20:45'), clr5 ]],
|
197
197
|
[[ 1, kiew, [2,0], zagreb, Time.cet('2012-10-03 20:45'), clr2 ],
|
198
|
-
[ 2, zagreb, [], kiew, Time.cet('2012-12-04 20:45'), clr6 ]],
|
198
|
+
[ 2, zagreb, [1,1], kiew, Time.cet('2012-12-04 20:45'), clr6 ]],
|
199
199
|
[[ 2, porto, [1,0], paris, Time.cet('2012-10-03 20:45'), clr2 ],
|
200
|
-
[ 1, paris, [], porto, Time.cet('2012-12-04 20:45'), clr6 ]],
|
200
|
+
[ 1, paris, [2,1], porto, Time.cet('2012-12-04 20:45'), clr6 ]],
|
201
201
|
[[ 1, porto, [3,2], kiew, Time.cet('2012-10-24 20:45'), clr3 ],
|
202
202
|
[ 1, kiew, [0,0], porto, Time.cet('2012-11-06 20:45'), clr4 ]],
|
203
203
|
[[ 2, zagreb, [0,2], paris, Time.cet('2012-10-24 20:45'), clr3 ],
|
@@ -206,13 +206,13 @@ games_cla = [
|
|
206
206
|
|
207
207
|
games_clb = [
|
208
208
|
[[ 3, montpellier, [1,2], arsenal, Time.cet('2012-09-18 20:45'), clr1 ],
|
209
|
-
[ 4, arsenal, [], montpellier, Time.cet('2012-11-21 20:45'), clr5 ]],
|
209
|
+
[ 4, arsenal, [2,0], montpellier, Time.cet('2012-11-21 20:45'), clr5 ]],
|
210
210
|
[[ 4, olympiacos, [1,2], schalke, Time.cet('2012-09-18 20:45'), clr1 ],
|
211
|
-
[ 3, schalke, [], olympiacos, Time.cet('2012-11-21 20:45'), clr5 ]],
|
211
|
+
[ 3, schalke, [1,0], olympiacos, Time.cet('2012-11-21 20:45'), clr5 ]],
|
212
212
|
[[ 3, arsenal, [3,1], olympiacos, Time.cet('2012-10-03 20:45'), clr2 ],
|
213
|
-
[ 3, olympiacos, [], arsenal, Time.cet('2012-12-04 20:45'), clr6 ]],
|
213
|
+
[ 3, olympiacos, [2,1], arsenal, Time.cet('2012-12-04 20:45'), clr6 ]],
|
214
214
|
[[ 4, schalke, [2,2], montpellier, Time.cet('2012-10-03 20:45'), clr2 ],
|
215
|
-
[ 4, montpellier, [], schalke, Time.cet('2012-12-04 20:45'), clr6 ]],
|
215
|
+
[ 4, montpellier, [1,1], schalke, Time.cet('2012-12-04 20:45'), clr6 ]],
|
216
216
|
[[ 3, arsenal, [0,2], schalke, Time.cet('2012-10-24 20:45'), clr3 ],
|
217
217
|
[ 3, schalke, [2,2], arsenal, Time.cet('2012-11-06 20:45'), clr4 ]],
|
218
218
|
[[ 4, montpellier, [1,2], olympiacos, Time.cet('2012-10-24 20:45'), clr3 ],
|
@@ -221,13 +221,13 @@ games_clb = [
|
|
221
221
|
|
222
222
|
games_clc = [
|
223
223
|
[[ 5, malaga, [3,0], zenit, Time.cet('2012-09-18 20:45'), clr1 ],
|
224
|
-
[ 5, zenit, [], malaga, Time.cet('2012-11-21 18:00'), clr5 ]],
|
224
|
+
[ 5, zenit, [2,2], malaga, Time.cet('2012-11-21 18:00'), clr5 ]],
|
225
225
|
[[ 6, milan, [0,0], anderlecht, Time.cet('2012-09-18 20:45'), clr1 ],
|
226
|
-
[ 6, anderlecht, [], milan, Time.cet('2012-11-21 20:45'), clr5 ]],
|
226
|
+
[ 6, anderlecht, [1,3], milan, Time.cet('2012-11-21 20:45'), clr5 ]],
|
227
227
|
[[ 5, zenit, [2,3], milan, Time.cet('2012-10-03 18:00'), clr2 ],
|
228
|
-
[ 5, milan, [], zenit, Time.cet('2012-12-04 20:45'), clr6 ]],
|
228
|
+
[ 5, milan, [0,1], zenit, Time.cet('2012-12-04 20:45'), clr6 ]],
|
229
229
|
[[ 6, anderlecht, [0,3], malaga, Time.cet('2012-10-03 20:45'), clr2 ],
|
230
|
-
[ 6, malaga, [], anderlecht, Time.cet('2012-12-04 20:45'), clr6 ]],
|
230
|
+
[ 6, malaga, [2,2], anderlecht, Time.cet('2012-12-04 20:45'), clr6 ]],
|
231
231
|
[[ 5, zenit, [1,0], anderlecht, Time.cet('2012-10-24 18:00'), clr3 ],
|
232
232
|
[ 5, anderlecht, [1,0], zenit, Time.cet('2012-11-06 20:45'), clr4 ]],
|
233
233
|
[[ 6, malaga, [1,0], milan, Time.cet('2012-10-24 20:45'), clr3 ],
|
@@ -236,13 +236,13 @@ games_clc = [
|
|
236
236
|
|
237
237
|
games_cld = [
|
238
238
|
[[ 7, madrid, [3,2], mancity, Time.cet('2012-09-18 20:45'), clr1 ],
|
239
|
-
[ 7, mancity, [], madrid, Time.cet('2012-11-21 20:45'), clr5 ]],
|
239
|
+
[ 7, mancity, [1,1], madrid, Time.cet('2012-11-21 20:45'), clr5 ]],
|
240
240
|
[[ 8, dortmund, [1,0], ajax, Time.cet('2012-09-18 20:45'), clr1 ],
|
241
|
-
[ 8, ajax, [], dortmund, Time.cet('2012-11-21 20:45'), clr5 ]],
|
241
|
+
[ 8, ajax, [1,4], dortmund, Time.cet('2012-11-21 20:45'), clr5 ]],
|
242
242
|
[[ 7, ajax, [1,4], madrid, Time.cet('2012-10-03 20:45'), clr2 ],
|
243
|
-
[ 8, madrid, [], ajax, Time.cet('2012-12-04 20:45'), clr6 ]],
|
243
|
+
[ 8, madrid, [4,1], ajax, Time.cet('2012-12-04 20:45'), clr6 ]],
|
244
244
|
[[ 8, mancity, [1,1], dortmund, Time.cet('2012-10-03 20:45'), clr2 ],
|
245
|
-
[ 7, dortmund, [], mancity, Time.cet('2012-12-04 20:45'), clr6 ]],
|
245
|
+
[ 7, dortmund, [1,0], mancity, Time.cet('2012-12-04 20:45'), clr6 ]],
|
246
246
|
[[ 7, dortmund, [2,1], madrid, Time.cet('2012-10-24 20:45'), clr3 ],
|
247
247
|
[ 8, madrid, [2,2], dortmund, Time.cet('2012-11-06 20:45'), clr4 ]],
|
248
248
|
[[ 8, ajax, [3,1], mancity, Time.cet('2012-10-24 20:45'), clr3 ],
|
@@ -252,13 +252,13 @@ games_cld = [
|
|
252
252
|
|
253
253
|
games_cle = [
|
254
254
|
[[ 9, chelsea, [2,2], juventus, Time.cet('2012-09-19 20:45'), clr1 ],
|
255
|
-
[ 9, juventus, [], chelsea, Time.cet('2012-11-20 20:45'), clr5 ]],
|
255
|
+
[ 9, juventus, [3,0], chelsea, Time.cet('2012-11-20 20:45'), clr5 ]],
|
256
256
|
[[ 10, donezk, [2,0], nordsjalland, Time.cet('2012-09-19 20:45'), clr1 ],
|
257
|
-
[ 10, nordsjalland, [], donezk, Time.cet('2012-11-20 20:45'), clr5 ]],
|
257
|
+
[ 10, nordsjalland, [2,5], donezk, Time.cet('2012-11-20 20:45'), clr5 ]],
|
258
258
|
[[ 9, nordsjalland, [0,4], chelsea, Time.cet('2012-10-02 20:45'), clr2 ],
|
259
|
-
[ 9, chelsea, [], nordsjalland, Time.cet('2012-12-05 20:45'), clr6 ]],
|
259
|
+
[ 9, chelsea, [6,1], nordsjalland, Time.cet('2012-12-05 20:45'), clr6 ]],
|
260
260
|
[[ 10, juventus, [1,1], donezk, Time.cet('2012-10-02 20:45'), clr2 ],
|
261
|
-
[ 10, donezk, [], juventus, Time.cet('2012-12-05 20:45'), clr6 ]],
|
261
|
+
[ 10, donezk, [0,1], juventus, Time.cet('2012-12-05 20:45'), clr6 ]],
|
262
262
|
[[ 9, donezk, [2,1], chelsea, Time.cet('2012-10-23 20:45'), clr3 ],
|
263
263
|
[ 9, chelsea, [3,2], donezk, Time.cet('2012-11-07 20:45'), clr4 ]],
|
264
264
|
[[ 10, nordsjalland, [1,1], juventus, Time.cet('2012-10-23 20:45'), clr3 ],
|
@@ -267,13 +267,13 @@ games_cle = [
|
|
267
267
|
|
268
268
|
games_clf = [
|
269
269
|
[[ 11, bayern, [2,1], valencia, Time.cet('2012-09-19 20:45'), clr1 ],
|
270
|
-
[ 11, valencia, [], bayern, Time.cet('2012-11-20 20:45'), clr5 ]],
|
270
|
+
[ 11, valencia, [1,1], bayern, Time.cet('2012-11-20 20:45'), clr5 ]],
|
271
271
|
[[ 12, lille, [1,3], borissow, Time.cet('2012-09-19 20:45'), clr1 ],
|
272
|
-
[ 12, borissow, [], lille, Time.cet('2012-11-20 20:45'), clr5 ]],
|
272
|
+
[ 12, borissow, [0,2], lille, Time.cet('2012-11-20 20:45'), clr5 ]],
|
273
273
|
[[ 11, borissow, [3,1], bayern, Time.cet('2012-10-02 20:45'), clr2 ],
|
274
|
-
[ 12, bayern, [], borissow, Time.cet('2012-12-05 20:45'), clr6 ]],
|
274
|
+
[ 12, bayern, [4,1], borissow, Time.cet('2012-12-05 20:45'), clr6 ]],
|
275
275
|
[[ 12, valencia, [2,0], lille, Time.cet('2012-10-02 20:45'), clr2 ],
|
276
|
-
[ 11, lille, [], valencia, Time.cet('2012-12-05 20:45'), clr6 ]],
|
276
|
+
[ 11, lille, [0,1], valencia, Time.cet('2012-12-05 20:45'), clr6 ]],
|
277
277
|
[[ 11, lille, [0,1], bayern, Time.cet('2012-10-23 20:45'), clr3 ],
|
278
278
|
[ 11, bayern, [6,1], lille, Time.cet('2012-11-07 20:45'), clr4 ]],
|
279
279
|
[[ 12, borissow, [0,3], valencia, Time.cet('2012-10-23 20:45'), clr3 ],
|
@@ -282,13 +282,13 @@ games_clf = [
|
|
282
282
|
|
283
283
|
games_clg = [
|
284
284
|
[[ 13, celtic, [0,0], benfica, Time.cet('2012-09-19 20:45'), clr1 ],
|
285
|
-
[ 14, benfica, [], celtic, Time.cet('2012-11-20 20:45'), clr5 ]],
|
285
|
+
[ 14, benfica, [2,1], celtic, Time.cet('2012-11-20 20:45'), clr5 ]],
|
286
286
|
[[ 14, barcelona, [3,2], spartak, Time.cet('2012-09-19 20:45'), clr1 ],
|
287
|
-
[ 13, spartak, [], barcelona, Time.cet('2012-11-20 18:00'), clr5 ]],
|
287
|
+
[ 13, spartak, [0,3], barcelona, Time.cet('2012-11-20 18:00'), clr5 ]],
|
288
288
|
[[ 13, spartak, [2,3], celtic, Time.cet('2012-10-02 18:00'), clr2 ],
|
289
|
-
[ 14, celtic, [], spartak, Time.cet('2012-12-05 20:45'), clr6 ]],
|
289
|
+
[ 14, celtic, [2,1], spartak, Time.cet('2012-12-05 20:45'), clr6 ]],
|
290
290
|
[[ 14, benfica, [0,2], barcelona, Time.cet('2012-10-02 20:45'), clr2 ],
|
291
|
-
[ 13, barcelona, [], benfica, Time.cet('2012-12-05 20:45'), clr6 ]],
|
291
|
+
[ 13, barcelona, [0,0], benfica, Time.cet('2012-12-05 20:45'), clr6 ]],
|
292
292
|
[[ 13, spartak, [2,1], benfica, Time.cet('2012-10-23 18:00'), clr3 ],
|
293
293
|
[ 14, benfica, [2,0], spartak, Time.cet('2012-11-07 20:45'), clr4 ]],
|
294
294
|
[[ 14, barcelona, [2,1], celtic, Time.cet('2012-10-23 20:45'), clr3 ],
|
@@ -297,13 +297,13 @@ games_clg = [
|
|
297
297
|
|
298
298
|
games_clh = [
|
299
299
|
[[ 15, manunited, [1,0], galatasaray, Time.cet('2012-09-19 20:45'), clr1 ],
|
300
|
-
[ 15, galatasaray, [], manunited, Time.cet('2012-11-20 20:45'), clr5 ]],
|
300
|
+
[ 15, galatasaray, [1,0], manunited, Time.cet('2012-11-20 20:45'), clr5 ]],
|
301
301
|
[[ 16, braga, [0,2], cluj, Time.cet('2012-09-19 20:45'), clr1 ],
|
302
|
-
[ 16, cluj, [], braga, Time.cet('2012-11-20 20:45'), clr5 ]],
|
302
|
+
[ 16, cluj, [3,1], braga, Time.cet('2012-11-20 20:45'), clr5 ]],
|
303
303
|
[[ 15, cluj, [1,2], manunited, Time.cet('2012-10-02 20:45'), clr2 ],
|
304
|
-
[ 16, manunited, [], cluj, Time.cet('2012-12-05 20:45'), clr6 ]],
|
304
|
+
[ 16, manunited, [0,1], cluj, Time.cet('2012-12-05 20:45'), clr6 ]],
|
305
305
|
[[ 16, galatasaray, [0,2], braga, Time.cet('2012-10-02 20:45'), clr2 ],
|
306
|
-
[ 15, braga, [], galatasaray, Time.cet('2012-12-05 20:45'), clr6 ]],
|
306
|
+
[ 15, braga, [1,2], galatasaray, Time.cet('2012-12-05 20:45'), clr6 ]],
|
307
307
|
[[ 15, manunited, [3,2], braga, Time.cet('2012-10-23 20:45'), clr3 ],
|
308
308
|
[ 15, braga, [1,3], manunited, Time.cet('2012-11-07 20:45'), clr4 ]],
|
309
309
|
[[ 16, galatasaray, [1,1], cluj, Time.cet('2012-10-23 20:45'), clr3 ],
|
data/{db → data}/cl/badges.rb
RENAMED
File without changes
|
data/{db → data}/cl/teams.txt
RENAMED
File without changes
|
File without changes
|
File without changes
|
data/{db → data}/copa/teams.txt
RENAMED
File without changes
|
File without changes
|
File without changes
|
data/{db → data}/de/teams.txt
RENAMED
File without changes
|
File without changes
|
File without changes
|
data/{db → data}/en/teams.txt
RENAMED
File without changes
|
data/{db → data}/es/teams.txt
RENAMED
File without changes
|
data/{db → data}/euro/2008.rb
RENAMED
File without changes
|
data/{db → data}/euro/2008.txt
RENAMED
File without changes
|
data/{db → data}/euro/2012.rb
RENAMED
File without changes
|
data/{db → data}/euro/2012.txt
RENAMED
File without changes
|
data/{db → data}/euro/teams.txt
RENAMED
File without changes
|
data/{db → data}/leagues.rb
RENAMED
File without changes
|
File without changes
|
File without changes
|
data/{db → data}/mx/teams.txt
RENAMED
File without changes
|
data/data/nfl/teams.txt
ADDED
@@ -0,0 +1,46 @@
|
|
1
|
+
# encoding: utf-8
|
2
|
+
|
3
|
+
######################################
|
4
|
+
## NFL Teams 2012
|
5
|
+
|
6
|
+
|
7
|
+
nyjets, New York Jets|Jets, AFC East, NYJ, city:newyork
|
8
|
+
newengland, New England Patriots|New England|Patriots, AFC East, NE_, city:boston
|
9
|
+
bufbills, Buffalo Bills|Buffalo|Bills, AFC East, BUF, city:buffalo
|
10
|
+
miami, Miami Dolphins|Miami|Dolphins, AFC East, MIA, city:miami
|
11
|
+
|
12
|
+
baltimore, Baltimore Ravens|Ravens, AFC North, BAL, city:baltimore
|
13
|
+
cincinnati, Cincinnati Bengals|Bengals, AFC North, CIN, city:cincinnati
|
14
|
+
steelers, Pittsburgh Steelers|Steelers, AFC North, PIT, city:pittsburgh
|
15
|
+
cleveland, Cleveland Browns|Browns, AFC North, CLE, city:cleveland
|
16
|
+
|
17
|
+
houston, Houston Texans|Texans, AFC South, HOU, city:houston
|
18
|
+
indianapolis, Indianapolis Colts|Colts, AFC South, IND, city:indianapolis
|
19
|
+
tennessee, Tennessee Titans|Titans, AFC South, TEN, city:nashville
|
20
|
+
jacksonville, Jacksonville Jaguars|Jaguars, AFC South, JAC, city:jacksonville
|
21
|
+
|
22
|
+
sandiego, San Diego Chargers|San Diego|Chargers, AFC West, SD_, city:sandiego
|
23
|
+
denver, Denver Broncos|Denver|Broncos, AFC West, DEN, city:denver
|
24
|
+
oakland, Oakland Raiders|Oakland|Raiders, AFC West, OAK, city:oakland
|
25
|
+
kansascity, Kansas City Chiefs|Kansas City|Chiefs, AFC West, KC_, city:kansascity
|
26
|
+
|
27
|
+
nygiants, New York Giants|Giants, NFC East, NYG, city:newyork
|
28
|
+
phieagles, Philadelphia Eagles|Eagles, NFC East, PHI, city:philadelphia
|
29
|
+
dalcowboys, Dallas Cowboys|Cowboys, NFC East, DAL, city:dallas
|
30
|
+
washington, Washington Redskins|Redskins, NFC East, WAS, city:washington
|
31
|
+
|
32
|
+
chibears, Chicago Bears|Bears, NFC North, CHI, city:chicago
|
33
|
+
greenbay, Green Bay Packers|Packers, NFC North, GB_, city:greenbay
|
34
|
+
minnesota, Minnesota Vikings|Vikings, NFC North, MIN, city:minneapolis
|
35
|
+
detlions, Detroit Lions|Lions, NFC North, DET, city:detroit
|
36
|
+
|
37
|
+
|
38
|
+
atlanta, Atlanta Falcons|Falcons, NFC South, ATL, city:atlanta
|
39
|
+
tbbuccaneers, Tampa Bay Buccaneers|Buccaneers, NFC South, TB_, city:tampa
|
40
|
+
neworleans, New Orleans Saints|Saints, NFC South, NO_, city:neworleans
|
41
|
+
carpnathers, Carolina Panthers|Panthers, NFC South, CAR, city:charlotte
|
42
|
+
|
43
|
+
sf49ers, San Francisco 49ers|49ers, NFC West, SF_, city:sanfrancisco
|
44
|
+
seattle, Seattle Seahawks|Seahawks, NFC West, SEA, city:seattle
|
45
|
+
arizona, Arizona Cardinals|Cardinals, NFC West, ARI, city:phoenix
|
46
|
+
stlrams, St. Louis Rams|Rams, NFC West, STL, city:stlouis
|
data/data/nhl/teams.txt
ADDED
@@ -0,0 +1,40 @@
|
|
1
|
+
# encoding: utf-8
|
2
|
+
|
3
|
+
######################################
|
4
|
+
## NHL Teams 2012
|
5
|
+
|
6
|
+
njdevils, New Jersey Devils, East/Atlantic, NJD, us, city:newark
|
7
|
+
nyislanders, New York Islanders, East/Atlantic, NYI, us, city:newyork
|
8
|
+
nyrangers, New York Rangers, East/Atlantic, NYR, us, city:newyork
|
9
|
+
phiflyers, Philadelphia Flyers, East/Atlantic, PHI, us, city:philadelphia
|
10
|
+
pitpenguins, Pittsburgh Penguins, East/Atlantic, PIT, us, city:pittsburgh
|
11
|
+
|
12
|
+
bosbruis, Boston Bruis, East/Northeast, BOS, us, city:boston
|
13
|
+
bufabres, Buffalo Sabres, East/Northeast, BUF, us, city:buffalo
|
14
|
+
montreal, Montreal Canadiens, East/Northeast, MTL, ca, city:montreal
|
15
|
+
ottawa, Ottawa Senators, East/Northeast, OTT, ca, city:ottawa
|
16
|
+
toronto, Toronto Maple Leafs, East/Northeast, TOR, ca, city:toronto
|
17
|
+
|
18
|
+
carhurricanes, Carolina Hurricanes, East/Southeast, CAR, us, city:raleigh
|
19
|
+
florida, Florida Panthers, East/Southeast, FLA, us, city:miami
|
20
|
+
tblightning, Tampa Bay Lightning, East/Southeast, TBL, us, city:tampa
|
21
|
+
wshcapitals, Washington Capitals, East/Southeast, WSH, us, city:washington
|
22
|
+
winnipeg, Winnipeg Jets, East/Southeast, WPG, ca, city:winnipeg
|
23
|
+
|
24
|
+
chiblackhawks, Chicago Blackhawks, West/Central, CHI, us, city:chicago
|
25
|
+
columbus, Columbus Blue Jackets, West/Central, CLB, us, city:columbus
|
26
|
+
detredwings, Detroit Red Wings, West/Central, DET, us, city:detroit
|
27
|
+
nshpredators, Nashville Predators, West/Central, NSH, us, city:nashville
|
28
|
+
stlblues, St. Louis Blues, West/Central, STL, us, city:stlouis
|
29
|
+
|
30
|
+
calgary, Calgary Flames, West/Northwest, CGY, ca, city:calgary
|
31
|
+
colavalanche, Colorado Avalanche, West/Northwest, COL, us, city:denver
|
32
|
+
edmonton, Edmonton Oilers, West/Northwest, EDM, ca, city:edmonton
|
33
|
+
minwild, Minnesota Wild, West/Northwest, MIN, us, city:stpaul
|
34
|
+
vancouver, Vancouver Canucks, West/Northwest, VAN, ca, city:vancouver
|
35
|
+
|
36
|
+
anaheim, Anaheim Ducks, West/Pacific, ANA, us, city:anaheim
|
37
|
+
dalstars, Dallas Stars, West/Pacific, DAL, us, city:dallas
|
38
|
+
loskings, Los Angeles Kings, West/Pacific, LOS, us, city:losangeles
|
39
|
+
phxcoyotes, Phoenix Coyotes, West/Pacific, PHX, us, city:phoenix
|
40
|
+
sjsharks, San Jose Sharks, West/Pacific, SHS, us, city:sanjose
|
File without changes
|
data/{db → data}/ro/teams.txt
RENAMED
File without changes
|
data/{db → data}/seasons.rb
RENAMED
File without changes
|
data/{db → data}/world/2010.rb
RENAMED
File without changes
|
data/{db → data}/world/2010.txt
RENAMED
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
data/{db → data}/world/teams.txt
RENAMED
File without changes
|
data/lib/sportdb/reader.rb
CHANGED
@@ -2,6 +2,51 @@
|
|
2
2
|
|
3
3
|
module SportDB
|
4
4
|
|
5
|
+
|
6
|
+
##
|
7
|
+
## fix/todo: move to/merge into LineReader itself
|
8
|
+
|
9
|
+
class StringLineReader
|
10
|
+
|
11
|
+
def initialize( logger=nil, data )
|
12
|
+
if logger.nil?
|
13
|
+
@logger = Logger.new(STDOUT)
|
14
|
+
@logger.level = Logger::INFO
|
15
|
+
else
|
16
|
+
@logger = logger
|
17
|
+
end
|
18
|
+
|
19
|
+
@data = data
|
20
|
+
end
|
21
|
+
|
22
|
+
attr_reader :logger
|
23
|
+
|
24
|
+
|
25
|
+
def each_line
|
26
|
+
@data.each_line do |line|
|
27
|
+
|
28
|
+
if line =~ /^\s*#/
|
29
|
+
# skip komments and do NOT copy to result (keep comments secret!)
|
30
|
+
logger.debug 'skipping comment line'
|
31
|
+
next
|
32
|
+
end
|
33
|
+
|
34
|
+
if line =~ /^\s*$/
|
35
|
+
# kommentar oder leerzeile überspringen
|
36
|
+
logger.debug 'skipping blank line'
|
37
|
+
next
|
38
|
+
end
|
39
|
+
|
40
|
+
# remove leading and trailing whitespace
|
41
|
+
line = line.strip
|
42
|
+
|
43
|
+
yield( line )
|
44
|
+
end # each lines
|
45
|
+
end # method each_line
|
46
|
+
|
47
|
+
end
|
48
|
+
|
49
|
+
|
5
50
|
class Reader
|
6
51
|
|
7
52
|
## make models available in sportdb module by default with namespace
|
@@ -35,6 +80,17 @@ class Reader
|
|
35
80
|
end
|
36
81
|
|
37
82
|
|
83
|
+
def load_fixtures_from_string( event_key, text ) # load from string (e.g. passed in via web form)
|
84
|
+
|
85
|
+
## todo/fix: move code into LineReader e.g. use LineReader.fromString() - why? why not?
|
86
|
+
reader = StringLineReader.new( logger, text )
|
87
|
+
|
88
|
+
load_fixtures_worker( event_key, reader )
|
89
|
+
|
90
|
+
## fix add prop
|
91
|
+
### Prop.create!( key: "db.#{fixture_name_to_prop_key(name)}.version", value: "file.txt.#{File.mtime(path).strftime('%Y.%m.%d')}" )
|
92
|
+
end
|
93
|
+
|
38
94
|
def load_fixtures_with_include_path( event_key, name, include_path ) # load from file system
|
39
95
|
path = "#{include_path}/#{name}.txt"
|
40
96
|
|
data/lib/sportdb/version.rb
CHANGED
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: 61
|
5
5
|
prerelease:
|
6
6
|
segments:
|
7
7
|
- 0
|
8
8
|
- 9
|
9
|
-
-
|
10
|
-
version: 0.9.
|
9
|
+
- 3
|
10
|
+
version: 0.9.3
|
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: 2012-
|
18
|
+
date: 2012-12-12 00:00:00 Z
|
19
19
|
dependencies:
|
20
20
|
- !ruby/object:Gem::Dependency
|
21
21
|
name: activerecord
|
@@ -40,12 +40,12 @@ dependencies:
|
|
40
40
|
requirements:
|
41
41
|
- - ~>
|
42
42
|
- !ruby/object:Gem::Version
|
43
|
-
hash:
|
43
|
+
hash: 23
|
44
44
|
segments:
|
45
45
|
- 0
|
46
|
-
-
|
47
|
-
-
|
48
|
-
version: 0.
|
46
|
+
- 6
|
47
|
+
- 8
|
48
|
+
version: 0.6.8
|
49
49
|
type: :runtime
|
50
50
|
version_requirements: *id002
|
51
51
|
- !ruby/object:Gem::Dependency
|
@@ -71,11 +71,11 @@ dependencies:
|
|
71
71
|
requirements:
|
72
72
|
- - ~>
|
73
73
|
- !ruby/object:Gem::Version
|
74
|
-
hash:
|
74
|
+
hash: 1
|
75
75
|
segments:
|
76
76
|
- 3
|
77
|
-
-
|
78
|
-
version: "3.
|
77
|
+
- 3
|
78
|
+
version: "3.3"
|
79
79
|
type: :development
|
80
80
|
version_requirements: *id004
|
81
81
|
description: sportdb - sport.db command line tool
|
@@ -86,88 +86,62 @@ extensions: []
|
|
86
86
|
|
87
87
|
extra_rdoc_files:
|
88
88
|
- Manifest.txt
|
89
|
-
- db/america/2011.txt
|
90
|
-
- db/america/teams.txt
|
91
|
-
- db/at/2011_12/bl.txt
|
92
|
-
- db/at/2012_13/bl.txt
|
93
|
-
- db/at/2012_13/cup.txt
|
94
|
-
- db/at/teams.txt
|
95
|
-
- db/cl/teams.txt
|
96
|
-
- db/copa/sud_2012_13.txt
|
97
|
-
- db/copa/teams.txt
|
98
|
-
- db/de/2012_13/bl.txt
|
99
|
-
- db/de/teams.txt
|
100
|
-
- db/en/2012_13/pl.txt
|
101
|
-
- db/en/teams.txt
|
102
|
-
- db/es/teams.txt
|
103
|
-
- db/euro/2008.txt
|
104
|
-
- db/euro/2012.txt
|
105
|
-
- db/euro/teams.txt
|
106
|
-
- db/mx/apertura_2012.txt
|
107
|
-
- db/mx/teams.txt
|
108
|
-
- db/nhl/teams.txt
|
109
|
-
- db/ro/teams.txt
|
110
|
-
- db/world/2010.txt
|
111
|
-
- db/world/quali_2012_13_america.txt
|
112
|
-
- db/world/quali_2012_13_europe_c.txt
|
113
|
-
- db/world/quali_2012_13_europe_i.txt
|
114
|
-
- db/world/teams.txt
|
115
89
|
files:
|
116
|
-
- History.
|
90
|
+
- History.md
|
117
91
|
- Manifest.txt
|
118
|
-
- README.
|
92
|
+
- README.md
|
119
93
|
- Rakefile
|
120
94
|
- bin/sportdb
|
121
|
-
-
|
122
|
-
-
|
123
|
-
-
|
124
|
-
-
|
125
|
-
-
|
126
|
-
-
|
127
|
-
-
|
128
|
-
-
|
129
|
-
-
|
130
|
-
-
|
131
|
-
-
|
132
|
-
-
|
133
|
-
-
|
134
|
-
-
|
135
|
-
-
|
136
|
-
-
|
137
|
-
-
|
138
|
-
-
|
139
|
-
-
|
140
|
-
-
|
141
|
-
-
|
142
|
-
-
|
143
|
-
-
|
144
|
-
-
|
145
|
-
-
|
146
|
-
-
|
147
|
-
-
|
148
|
-
-
|
149
|
-
-
|
150
|
-
-
|
151
|
-
-
|
152
|
-
-
|
153
|
-
-
|
154
|
-
-
|
155
|
-
-
|
156
|
-
-
|
157
|
-
-
|
158
|
-
-
|
159
|
-
-
|
160
|
-
-
|
161
|
-
-
|
162
|
-
-
|
163
|
-
-
|
164
|
-
-
|
165
|
-
-
|
166
|
-
-
|
167
|
-
-
|
168
|
-
-
|
169
|
-
-
|
170
|
-
-
|
95
|
+
- data/america/2011.rb
|
96
|
+
- data/america/2011.txt
|
97
|
+
- data/america/2011.yml
|
98
|
+
- data/america/teams.txt
|
99
|
+
- data/at/2011_12/bl.rb
|
100
|
+
- data/at/2011_12/bl.txt
|
101
|
+
- data/at/2011_12/cup.rb
|
102
|
+
- data/at/2012_13/bl.rb
|
103
|
+
- data/at/2012_13/bl.txt
|
104
|
+
- data/at/2012_13/cup.rb
|
105
|
+
- data/at/2012_13/cup.txt
|
106
|
+
- data/at/badges.rb
|
107
|
+
- data/at/teams.txt
|
108
|
+
- data/cl/2011_12/cl.rb
|
109
|
+
- data/cl/2011_12/el.rb
|
110
|
+
- data/cl/2012_13/cl.rb
|
111
|
+
- data/cl/badges.rb
|
112
|
+
- data/cl/teams.txt
|
113
|
+
- data/copa/sud_2012_13.rb
|
114
|
+
- data/copa/sud_2012_13.txt
|
115
|
+
- data/copa/teams.txt
|
116
|
+
- data/de/2012_13/bl.rb
|
117
|
+
- data/de/2012_13/bl.txt
|
118
|
+
- data/de/teams.txt
|
119
|
+
- data/en/2012_13/pl.rb
|
120
|
+
- data/en/2012_13/pl.txt
|
121
|
+
- data/en/teams.txt
|
122
|
+
- data/es/teams.txt
|
123
|
+
- data/euro/2008.rb
|
124
|
+
- data/euro/2008.txt
|
125
|
+
- data/euro/2012.rb
|
126
|
+
- data/euro/2012.txt
|
127
|
+
- data/euro/teams.txt
|
128
|
+
- data/leagues.rb
|
129
|
+
- data/mx/apertura_2012.rb
|
130
|
+
- data/mx/apertura_2012.txt
|
131
|
+
- data/mx/teams.txt
|
132
|
+
- data/nfl/teams.txt
|
133
|
+
- data/nhl/teams.txt
|
134
|
+
- data/ro/l1_2012_13.rb
|
135
|
+
- data/ro/teams.txt
|
136
|
+
- data/seasons.rb
|
137
|
+
- data/world/2010.rb
|
138
|
+
- data/world/2010.txt
|
139
|
+
- data/world/quali_2012_13_america.rb
|
140
|
+
- data/world/quali_2012_13_america.txt
|
141
|
+
- data/world/quali_2012_13_europe.rb
|
142
|
+
- data/world/quali_2012_13_europe_c.txt
|
143
|
+
- data/world/quali_2012_13_europe_i.txt
|
144
|
+
- data/world/teams.txt
|
171
145
|
- lib/sportdb.rb
|
172
146
|
- lib/sportdb/cli/opts.rb
|
173
147
|
- lib/sportdb/cli/runner.rb
|
@@ -195,9 +169,9 @@ files:
|
|
195
169
|
- lib/sportdb/utils.rb
|
196
170
|
- lib/sportdb/version.rb
|
197
171
|
- templates/fixtures.rb.erb
|
198
|
-
homepage:
|
199
|
-
licenses:
|
200
|
-
|
172
|
+
homepage: https://github.com/geraldb/sport.db.ruby
|
173
|
+
licenses:
|
174
|
+
- Public Domain
|
201
175
|
post_install_message: |
|
202
176
|
******************************************************************************
|
203
177
|
|
@@ -208,7 +182,7 @@ post_install_message: |
|
|
208
182
|
|
209
183
|
rdoc_options:
|
210
184
|
- --main
|
211
|
-
- README.
|
185
|
+
- README.md
|
212
186
|
require_paths:
|
213
187
|
- lib
|
214
188
|
required_ruby_version: !ruby/object:Gem::Requirement
|
@@ -216,10 +190,12 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
216
190
|
requirements:
|
217
191
|
- - ">="
|
218
192
|
- !ruby/object:Gem::Version
|
219
|
-
hash:
|
193
|
+
hash: 55
|
220
194
|
segments:
|
221
|
-
-
|
222
|
-
|
195
|
+
- 1
|
196
|
+
- 9
|
197
|
+
- 2
|
198
|
+
version: 1.9.2
|
223
199
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
224
200
|
none: false
|
225
201
|
requirements:
|
data/db/nfl/teams.rb
DELETED
@@ -1,58 +0,0 @@
|
|
1
|
-
# encoding: utf-8
|
2
|
-
|
3
|
-
######################################
|
4
|
-
## NFL Teams 2012
|
5
|
-
|
6
|
-
|
7
|
-
## todo: add "official" three letter tags
|
8
|
-
|
9
|
-
teams = [
|
10
|
-
['nyjets', 'New York Jets', 'AFC East'],
|
11
|
-
['newengland', 'New England Patriots|New England', 'AFC East'],
|
12
|
-
['buffalo', 'Buffalo Bills|Buffalo', 'AFC East'],
|
13
|
-
['miami', 'Miami Dolphins|Miami', 'AFC East'],
|
14
|
-
|
15
|
-
['', 'Baltimore Ravens', 'AFC North'],
|
16
|
-
['', 'Cincinnati Bengals', 'AFC North'],
|
17
|
-
['', 'Pittsburgh Steelers', 'AFC North'],
|
18
|
-
['', 'Cleveland Browns', 'AFC North'],
|
19
|
-
|
20
|
-
['', 'Houston Texans', 'AFC South'],
|
21
|
-
['', 'Indianapolis Colts', 'AFC South'],
|
22
|
-
['', 'Tennessee Titans', 'AFC South'],
|
23
|
-
['', 'Jacksonville Jaguars', 'AFC South'],
|
24
|
-
|
25
|
-
['sandiego', 'San Diego Chargers|San Diego', 'AFC West'],
|
26
|
-
['denver', 'Denver Broncos|Denver', 'AFC West'],
|
27
|
-
['oakland', 'Oakland Raiders|Oakland', 'AFC West'],
|
28
|
-
['kansascity', 'Kansas City Chiefs|Kansas City', 'AFC West'],
|
29
|
-
|
30
|
-
['', '', ''],
|
31
|
-
['', '', ''],
|
32
|
-
['', '', ''],
|
33
|
-
['', '', ''],
|
34
|
-
|
35
|
-
['', '', ''],
|
36
|
-
['', '', ''],
|
37
|
-
['', '', ''],
|
38
|
-
['', '', ''],
|
39
|
-
|
40
|
-
|
41
|
-
['', '', ''],
|
42
|
-
['', '', ''],
|
43
|
-
['', '', ''],
|
44
|
-
['', '', ''],
|
45
|
-
|
46
|
-
|
47
|
-
['', '', ''],
|
48
|
-
['', '', ''],
|
49
|
-
['', '', ''],
|
50
|
-
['', '', '']]
|
51
|
-
|
52
|
-
|
53
|
-
us = Country.find_by_key!( 'us' )
|
54
|
-
|
55
|
-
Team.create_from_ary!( teams, club: true, country: us )
|
56
|
-
|
57
|
-
## The End
|
58
|
-
#################
|
data/db/nhl/teams.txt
DELETED
@@ -1,40 +0,0 @@
|
|
1
|
-
# encoding: utf-8
|
2
|
-
|
3
|
-
######################################
|
4
|
-
## NHL Teams 2012
|
5
|
-
|
6
|
-
newjersey, New Jersey Devils, East/Atlantic, us
|
7
|
-
nyislanders, New York Islanders, East/Atlantic, us, city:newyork
|
8
|
-
nyrangers, New York Rangers, East/Atlantic, us, city:newyork
|
9
|
-
philadelphia, Philadelphia Flyers, East/Atlantic, us, city:philadelphia
|
10
|
-
pittsburgh, Pittsburgh Penguins, East/Atlantic, us, city:pittsburgh
|
11
|
-
|
12
|
-
boston, Boston Bruis, East/Northeast, us, city:boston
|
13
|
-
buffalo, Buffalo Sabres, East/Northeast, us, city:buffalo
|
14
|
-
montreal, Montreal Canadiens, East/Northeast, ca, city:montreal
|
15
|
-
ottawa, Ottawa Senators, East/Northeast, ca, city:ottawa
|
16
|
-
toronto, Toronto Maple Leafs, East/Northeast, ca, city:toronto
|
17
|
-
|
18
|
-
carolina, Carolina Hurricanes, East/Southeast, us
|
19
|
-
florida, Florida Panthers, East/Southeast, us
|
20
|
-
tampabay, Tampa Bay Lightning, East/Southeast, us
|
21
|
-
washington, Washington Capitals, East/Southeast, us, city:washington
|
22
|
-
winnipeg, Winnipeg Jets, East/Southeast, ca, city:winnipeg
|
23
|
-
|
24
|
-
chicago, Chicago Blackhawks, West/Central, us, city:chicago
|
25
|
-
columbus, Columbus Blue Jackets, West/Central, us, city:columbus
|
26
|
-
detroit, Detroit Red Wings, West/Central, us, city:detroit
|
27
|
-
nashville, Nashville Predators, West/Central, us, city:nashville
|
28
|
-
stlouis, St. Louis Blues, West/Central, us, city:stlouis
|
29
|
-
|
30
|
-
calgary, Calgary Flames, West/Northwest, ca, city:calgary
|
31
|
-
colorado, Colorado Avalanche, West/Northwest, us
|
32
|
-
edmonton, Edmonton Oilers, West/Northwest, ca, city:edmonton
|
33
|
-
minnesota, Minnesota Wild, West/Northwest, us
|
34
|
-
vancouver, Vancouver Canucks, West/Northwest, ca, city:vancouver
|
35
|
-
|
36
|
-
anaheim, Anaheim Ducks, West/Pacific, us, city:anaheim
|
37
|
-
dallas, Dallas Stars, West/Pacific, us, city:dallas
|
38
|
-
losangeles, Los Angeles Kings, West/Pacific, us, city:losangeles
|
39
|
-
phoenix, Phoenix Coyotes, West/Pacific, us, city:phoenix
|
40
|
-
sanjose, San Jose Sharks, West/Pacific, us, city:sanjose
|