sportdb 0.5.2 → 0.5.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/db/cities.rb +119 -1
- data/db/cl/teams.rb +12 -13
- data/db/nhl/teams.rb +24 -24
- data/lib/sportdb/version.rb +1 -1
- metadata +3 -3
data/db/cities.rb
CHANGED
|
@@ -26,7 +26,6 @@ cities_en = [
|
|
|
26
26
|
['london', 'London'],
|
|
27
27
|
['liverpool', 'Liverpool'],
|
|
28
28
|
['birmingham', 'Birmingham'], # e.g.Aston Villa
|
|
29
|
-
['blackburn', 'Blackburn'],
|
|
30
29
|
['westbrom', 'West Bromwich'],
|
|
31
30
|
['newcastle', 'Newcastle upon Tyne'],
|
|
32
31
|
['stoke', 'Stoke-on-Trent'],
|
|
@@ -137,6 +136,88 @@ ua = Country.find_by_key!( 'ua' )
|
|
|
137
136
|
City.create_from_ary!( cities_ua, country: ua )
|
|
138
137
|
|
|
139
138
|
|
|
139
|
+
cities_nl = [
|
|
140
|
+
['amsterdam','Amsterdam'],
|
|
141
|
+
['alkmaar','Alkmaar'] ## region: North Holland
|
|
142
|
+
]
|
|
143
|
+
|
|
144
|
+
nl = Country.find_by_key!( 'nl' )
|
|
145
|
+
City.create_from_ary!( cities_nl, country: nl )
|
|
146
|
+
|
|
147
|
+
|
|
148
|
+
cities_hr = [
|
|
149
|
+
['zagreb','Zagreb']
|
|
150
|
+
]
|
|
151
|
+
|
|
152
|
+
hr = Country.find_by_key!( 'hr' )
|
|
153
|
+
City.create_from_ary!( cities_hr, country: hr )
|
|
154
|
+
|
|
155
|
+
|
|
156
|
+
cities_gr = [
|
|
157
|
+
['piraeus','Piräus|Piraeus']
|
|
158
|
+
]
|
|
159
|
+
|
|
160
|
+
gr = Country.find_by_key!( 'gr' )
|
|
161
|
+
City.create_from_ary!( cities_gr, country: gr )
|
|
162
|
+
|
|
163
|
+
|
|
164
|
+
cities_dk = [
|
|
165
|
+
['farum','farum'] ## region: North Zealand ??
|
|
166
|
+
]
|
|
167
|
+
|
|
168
|
+
dk = Country.find_by_key!( 'dk' )
|
|
169
|
+
City.create_from_ary!( cities_dk, country: dk )
|
|
170
|
+
|
|
171
|
+
|
|
172
|
+
cities_by = [
|
|
173
|
+
['borisov','Borissow|Borisov|Barysaw']
|
|
174
|
+
]
|
|
175
|
+
|
|
176
|
+
by = Country.find_by_key!( 'by' )
|
|
177
|
+
City.create_from_ary!( cities_by, country: by )
|
|
178
|
+
|
|
179
|
+
|
|
180
|
+
cities_sc = [
|
|
181
|
+
['glasgow','Glasgow']
|
|
182
|
+
]
|
|
183
|
+
|
|
184
|
+
sc = Country.find_by_key!( 'sc' )
|
|
185
|
+
City.create_from_ary!( cities_sc, country: sc )
|
|
186
|
+
|
|
187
|
+
|
|
188
|
+
cities_tr = [
|
|
189
|
+
['istanbul','Istanbul']
|
|
190
|
+
]
|
|
191
|
+
|
|
192
|
+
tr = Country.find_by_key!( 'tr' )
|
|
193
|
+
City.create_from_ary!( cities_tr, country: tr )
|
|
194
|
+
|
|
195
|
+
|
|
196
|
+
cities_ro = [
|
|
197
|
+
['cluj','Cluj']
|
|
198
|
+
]
|
|
199
|
+
|
|
200
|
+
ro = Country.find_by_key!( 'ro' )
|
|
201
|
+
City.create_from_ary!( cities_ro, country: ro )
|
|
202
|
+
|
|
203
|
+
|
|
204
|
+
cities_ch = [
|
|
205
|
+
['basel','Basel']
|
|
206
|
+
]
|
|
207
|
+
|
|
208
|
+
ch = Country.find_by_key!( 'ch' )
|
|
209
|
+
City.create_from_ary!( cities_ch, country: ch )
|
|
210
|
+
|
|
211
|
+
|
|
212
|
+
cities_cy = [
|
|
213
|
+
['nikosia','Nikosia|Nicosia']
|
|
214
|
+
]
|
|
215
|
+
|
|
216
|
+
cy = Country.find_by_key!( 'cy' )
|
|
217
|
+
City.create_from_ary!( cities_cy, country: cy )
|
|
218
|
+
|
|
219
|
+
|
|
220
|
+
|
|
140
221
|
cities_mx = [
|
|
141
222
|
['mexico', 'México' ],
|
|
142
223
|
['cancun', 'Cancún' ],
|
|
@@ -159,4 +240,41 @@ mx = Country.find_by_key!( 'mx' )
|
|
|
159
240
|
City.create_from_ary!( cities_mx, country: mx )
|
|
160
241
|
|
|
161
242
|
|
|
243
|
+
cities_ca = [
|
|
244
|
+
['montreal','Montreal'],
|
|
245
|
+
['ottawa','Ottawa'],
|
|
246
|
+
['toronto','Toronto'],
|
|
247
|
+
['winnipeg','Winnipeg'],
|
|
248
|
+
['calgary','Calgary'],
|
|
249
|
+
['edmonton','Edmonton'],
|
|
250
|
+
['vancouver','Vancouver']
|
|
251
|
+
]
|
|
252
|
+
|
|
253
|
+
ca = Country.find_by_key!( 'ca' )
|
|
254
|
+
City.create_from_ary!( cities_ca, country: ca )
|
|
255
|
+
|
|
256
|
+
|
|
257
|
+
cities_us = [
|
|
258
|
+
['newyork','New York'],
|
|
259
|
+
['philadelphia','Philadelphia'],
|
|
260
|
+
['pittsburgh','Pittsburgh'],
|
|
261
|
+
['boston','Boston'],
|
|
262
|
+
['buffalo','Buffalo'],
|
|
263
|
+
['washington','Washington'],
|
|
264
|
+
['chicago','Chicago'],
|
|
265
|
+
['columbus','Columbus'],
|
|
266
|
+
['detroit','Detroit'],
|
|
267
|
+
['nashville','Nashville'],
|
|
268
|
+
['stlouis','St. Louis'],
|
|
269
|
+
['dallas','Dallas'],
|
|
270
|
+
['losangeles','Los Angeles'],
|
|
271
|
+
['phoenix','phoenix'],
|
|
272
|
+
['sanjose','San Jose'],
|
|
273
|
+
['anaheim','Anaheim']
|
|
274
|
+
]
|
|
275
|
+
|
|
276
|
+
us = Country.find_by_key!( 'us' )
|
|
277
|
+
City.create_from_ary!( cities_us, country: us )
|
|
278
|
+
|
|
279
|
+
|
|
162
280
|
Prop.create!( key: 'db.cities.version', value: '1' )
|
data/db/cl/teams.rb
CHANGED
|
@@ -69,19 +69,18 @@ teams = [
|
|
|
69
69
|
|
|
70
70
|
[ 'anderlecht', 'RSC Anderlecht|RSC Anderlecht BEL', be, 'city:brussel' ],
|
|
71
71
|
|
|
72
|
-
[ 'ajax', 'Ajax Amsterdam|Ajax Amsterdam NED', nl ],
|
|
73
|
-
[ 'az', 'AZ Alkmaar', nl ],
|
|
74
|
-
|
|
75
|
-
[ 'zagreb', 'Dinamo Zagreb|Dinamo Zagreb CRO|NK Dinamo Zagreb', hr ],
|
|
76
|
-
[ 'olympiacos', 'Olympiakos Piräus|Olympiakos P. GRE|Olympiakos Piraeus', gr ],
|
|
77
|
-
[ 'nordsjalland', 'FC Nordsjælland|Nordsjaelland DEN|FC Nordsjaelland', dk ],
|
|
78
|
-
[ 'borissow', 'BATE Borissow|Bate Borisov BLR|Bate Borisov', by ],
|
|
79
|
-
[ 'celtic', 'Celtic Glasgow|Celtic Glasgow SCO', sc ],
|
|
80
|
-
[ 'galatasaray', 'Galatasaray|Galatasaray TUR', tr ],
|
|
81
|
-
[ 'cluj', 'CFR Cluj|CFR Cluj ROU', ro ],
|
|
82
|
-
[ 'basel', 'FC Basel 1893', ch ],
|
|
83
|
-
[ 'apoel', 'APOEL Nikosia', cy ]
|
|
84
|
-
|
|
72
|
+
[ 'ajax', 'Ajax Amsterdam|Ajax Amsterdam NED', nl, 'city:amsterdam' ],
|
|
73
|
+
[ 'az', 'AZ Alkmaar', nl, 'city:alkmaar' ],
|
|
74
|
+
|
|
75
|
+
[ 'zagreb', 'Dinamo Zagreb|Dinamo Zagreb CRO|NK Dinamo Zagreb', hr, 'city:zagreb' ],
|
|
76
|
+
[ 'olympiacos', 'Olympiakos Piräus|Olympiakos P. GRE|Olympiakos Piraeus', gr, 'city:piraeus' ],
|
|
77
|
+
[ 'nordsjalland', 'FC Nordsjælland|Nordsjaelland DEN|FC Nordsjaelland', dk, 'city:farum' ],
|
|
78
|
+
[ 'borissow', 'BATE Borissow|Bate Borisov BLR|Bate Borisov', by, 'city:borisov' ],
|
|
79
|
+
[ 'celtic', 'Celtic Glasgow|Celtic Glasgow SCO', sc, 'city:glasgow' ],
|
|
80
|
+
[ 'galatasaray', 'Galatasaray|Galatasaray TUR', tr, 'city:istanbul' ],
|
|
81
|
+
[ 'cluj', 'CFR Cluj|CFR Cluj ROU', ro, 'city:cluj' ],
|
|
82
|
+
[ 'basel', 'FC Basel 1893', ch, 'city:basel' ],
|
|
83
|
+
[ 'apoel', 'APOEL Nikosia', cy, 'city:nikosia' ]
|
|
85
84
|
]
|
|
86
85
|
|
|
87
86
|
|
data/db/nhl/teams.rb
CHANGED
|
@@ -9,40 +9,40 @@ ca = Country.find_by_key!( 'ca' )
|
|
|
9
9
|
|
|
10
10
|
teams = [
|
|
11
11
|
[ 'newjersey', 'New Jersey Devils', 'East/Atlantic', us ],
|
|
12
|
-
[ 'nyislanders', 'New York Islanders', 'East/Atlantic', us ],
|
|
13
|
-
[ 'nyrangers', 'New York Rangers', 'East/Atlantic', us ],
|
|
14
|
-
[ 'philadelphia', 'Philadelphia Flyers', 'East/Atlantic', us ],
|
|
15
|
-
[ 'pittsburgh', 'Pittsburgh Penguins', 'East/Atlantic', us ],
|
|
12
|
+
[ 'nyislanders', 'New York Islanders', 'East/Atlantic', us, 'city:newyork' ],
|
|
13
|
+
[ 'nyrangers', 'New York Rangers', 'East/Atlantic', us, 'city:newyork' ],
|
|
14
|
+
[ 'philadelphia', 'Philadelphia Flyers', 'East/Atlantic', us, 'city:philadelphia' ],
|
|
15
|
+
[ 'pittsburgh', 'Pittsburgh Penguins', 'East/Atlantic', us, 'city:pittsburgh' ],
|
|
16
16
|
|
|
17
|
-
[ 'boston', 'Boston Bruis', 'East/Northeast', us ],
|
|
18
|
-
[ 'buffalo', 'Buffalo Sabres', 'East/Northeast', us ],
|
|
19
|
-
[ 'montreal', 'Montreal Canadiens', 'East/Northeast', ca ],
|
|
20
|
-
[ 'ottawa', 'Ottawa Senators', 'East/Northeast', ca ],
|
|
21
|
-
[ 'toronto', 'Toronto Maple Leafs', 'East/Northeast', ca ],
|
|
17
|
+
[ 'boston', 'Boston Bruis', 'East/Northeast', us, 'city:boston' ],
|
|
18
|
+
[ 'buffalo', 'Buffalo Sabres', 'East/Northeast', us, 'city:buffalo' ],
|
|
19
|
+
[ 'montreal', 'Montreal Canadiens', 'East/Northeast', ca, 'city:montreal' ],
|
|
20
|
+
[ 'ottawa', 'Ottawa Senators', 'East/Northeast', ca, 'city:ottawa' ],
|
|
21
|
+
[ 'toronto', 'Toronto Maple Leafs', 'East/Northeast', ca, 'city:toronto' ],
|
|
22
22
|
|
|
23
23
|
[ 'carolina', 'Carolina Hurricanes', 'East/Southeast', us ],
|
|
24
24
|
[ 'florida', 'Florida Panthers', 'East/Southeast', us ],
|
|
25
25
|
[ 'tampabay', 'Tampa Bay Lightning', 'East/Southeast', us ],
|
|
26
|
-
[ 'washington', 'Washington Capitals', 'East/Southeast', us ],
|
|
27
|
-
[ 'winnipeg', 'Winnipeg Jets', 'East/Southeast', ca ],
|
|
26
|
+
[ 'washington', 'Washington Capitals', 'East/Southeast', us, 'city:washington' ],
|
|
27
|
+
[ 'winnipeg', 'Winnipeg Jets', 'East/Southeast', ca, 'city:winnipeg' ],
|
|
28
28
|
|
|
29
|
-
[ 'chicago', 'Chicago Blackhawks', 'West/Central', us ],
|
|
30
|
-
[ 'columbus', 'Columbus Blue Jackets', 'West/Central', us ],
|
|
31
|
-
[ 'detroit', 'Detroit Red Wings', 'West/Central', us ],
|
|
32
|
-
[ 'nashville', 'Nashville Predators', 'West/Central', us ],
|
|
33
|
-
[ 'stlouis', 'St. Louis Blues', 'West/Central', us ],
|
|
29
|
+
[ 'chicago', 'Chicago Blackhawks', 'West/Central', us, 'city:chicago' ],
|
|
30
|
+
[ 'columbus', 'Columbus Blue Jackets', 'West/Central', us, 'city:columbus' ],
|
|
31
|
+
[ 'detroit', 'Detroit Red Wings', 'West/Central', us, 'city:detroit' ],
|
|
32
|
+
[ 'nashville', 'Nashville Predators', 'West/Central', us, 'city:nashville' ],
|
|
33
|
+
[ 'stlouis', 'St. Louis Blues', 'West/Central', us, 'city:stlouis' ],
|
|
34
34
|
|
|
35
|
-
[ 'calgary', 'Calgary Flames', 'West/Northwest', ca ],
|
|
35
|
+
[ 'calgary', 'Calgary Flames', 'West/Northwest', ca, 'city:calgary' ],
|
|
36
36
|
[ 'colorado', 'Colorado Avalanche', 'West/Northwest', us ],
|
|
37
|
-
[ 'edmonton', 'Edmonton Oilers', 'West/Northwest', ca ],
|
|
37
|
+
[ 'edmonton', 'Edmonton Oilers', 'West/Northwest', ca, 'city:edmonton' ],
|
|
38
38
|
[ 'minnesota', 'Minnesota Wild', 'West/Northwest', us ],
|
|
39
|
-
[ 'vancouver', 'Vancouver Canucks', 'West/Northwest', ca ],
|
|
39
|
+
[ 'vancouver', 'Vancouver Canucks', 'West/Northwest', ca, 'city:vancouver' ],
|
|
40
40
|
|
|
41
|
-
[ 'anaheim', 'Anaheim Ducks', 'West/Pacific', us ],
|
|
42
|
-
[ 'dallas', 'Dallas Stars', 'West/Pacific', us ],
|
|
43
|
-
[ 'losangeles', 'Los Angeles Kings', 'West/Pacific', us ],
|
|
44
|
-
[ 'phoenix', 'Phoenix Coyotes', ' West/Pacific', us ],
|
|
45
|
-
[ 'sanjose', 'San Jose Sharks', ' West/Pacific', us ]
|
|
41
|
+
[ 'anaheim', 'Anaheim Ducks', 'West/Pacific', us, 'city:anaheim' ],
|
|
42
|
+
[ 'dallas', 'Dallas Stars', 'West/Pacific', us, 'city:dallas' ],
|
|
43
|
+
[ 'losangeles', 'Los Angeles Kings', 'West/Pacific', us, 'city:losangeles' ],
|
|
44
|
+
[ 'phoenix', 'Phoenix Coyotes', ' West/Pacific', us, 'city:phoenix' ],
|
|
45
|
+
[ 'sanjose', 'San Jose Sharks', ' West/Pacific', us, 'city:sanjose' ]
|
|
46
46
|
]
|
|
47
47
|
|
|
48
48
|
Team.create_from_ary!( teams, club: true )
|
data/lib/sportdb/version.rb
CHANGED
metadata
CHANGED