worlddb 0.2.2 → 0.3.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.
Files changed (84) hide show
  1. data/Manifest.txt +43 -32
  2. data/db/africa/countries.txt +10 -0
  3. data/db/america/br/cities.txt +7 -0
  4. data/db/america/br/regions.txt +27 -0
  5. data/db/america/ca/cities.txt +7 -0
  6. data/db/america/ca/regions.txt +10 -0
  7. data/db/america/countries.motor.yml +25 -0
  8. data/db/america/countries.txt +34 -0
  9. data/db/america/mx/cities.txt +15 -0
  10. data/db/america/us/cities.txt +16 -0
  11. data/db/america/us/regions.txt +10 -0
  12. data/db/america/ve/cities.txt +358 -0
  13. data/db/america/ve/regions.txt +46 -0
  14. data/db/asia/countries.txt +14 -0
  15. data/db/asia/jp/{cities.rb → cities.txt} +0 -0
  16. data/db/europe/at/cities.txt +32 -0
  17. data/db/europe/at/regions.txt +17 -0
  18. data/db/europe/be/cities.txt +1 -0
  19. data/db/europe/by/cities.txt +1 -0
  20. data/db/europe/ch/cities.txt +1 -0
  21. data/db/europe/countries.txt +65 -0
  22. data/db/europe/cy/cities.txt +1 -0
  23. data/db/europe/de/cities.txt +18 -0
  24. data/db/europe/de/regions.txt +16 -0
  25. data/db/europe/dk/cities.txt +1 -0
  26. data/db/europe/en/cities.txt +13 -0
  27. data/db/europe/es/cities.txt +5 -0
  28. data/db/europe/fr/cities.txt +4 -0
  29. data/db/europe/gr/cities.txt +1 -0
  30. data/db/europe/hr/cities.txt +1 -0
  31. data/db/europe/it/cities.txt +4 -0
  32. data/db/europe/nl/cities.txt +2 -0
  33. data/db/europe/pt/cities.txt +3 -0
  34. data/db/europe/ro/cities.txt +1 -0
  35. data/db/europe/ru/cities.txt +2 -0
  36. data/db/europe/sc/cities.txt +1 -0
  37. data/db/europe/tr/cities.txt +1 -0
  38. data/db/europe/ua/cities.txt +3 -0
  39. data/db/oceania/au/cities.txt +2 -0
  40. data/db/oceania/countries.txt +5 -0
  41. data/db/tags.yml +13 -0
  42. data/lib/worlddb.rb +6 -1
  43. data/lib/worlddb/cli/opts.rb +37 -0
  44. data/lib/worlddb/cli/runner.rb +29 -11
  45. data/lib/worlddb/models/city.rb +4 -0
  46. data/lib/worlddb/models/country.rb +3 -0
  47. data/lib/worlddb/models/region.rb +4 -0
  48. data/lib/worlddb/models/tag.rb +15 -0
  49. data/lib/worlddb/models/tagging.rb +12 -0
  50. data/lib/worlddb/reader.rb +211 -0
  51. data/lib/worlddb/schema.rb +17 -0
  52. data/lib/worlddb/version.rb +2 -1
  53. metadata +85 -36
  54. data/db/africa/countries.rb +0 -19
  55. data/db/america/ca/cities.rb +0 -31
  56. data/db/america/countries.rb +0 -44
  57. data/db/america/mx/cities.rb +0 -23
  58. data/db/america/us/cities.rb +0 -38
  59. data/db/america/ve/cities.rb +0 -2
  60. data/db/asia/countries.rb +0 -22
  61. data/db/europe/at/cities.rb +0 -70
  62. data/db/europe/be/cities.rb +0 -10
  63. data/db/europe/by/cities.rb +0 -9
  64. data/db/europe/ch/cities.rb +0 -9
  65. data/db/europe/countries.rb +0 -73
  66. data/db/europe/cy/cities.rb +0 -11
  67. data/db/europe/de/cities.rb +0 -51
  68. data/db/europe/dk/cities.rb +0 -9
  69. data/db/europe/en/cities.rb +0 -22
  70. data/db/europe/es/cities.rb +0 -13
  71. data/db/europe/fr/cities.rb +0 -12
  72. data/db/europe/gr/cities.rb +0 -9
  73. data/db/europe/hr/cities.rb +0 -9
  74. data/db/europe/it/cities.rb +0 -11
  75. data/db/europe/nl/cities.rb +0 -11
  76. data/db/europe/pt/cities.rb +0 -11
  77. data/db/europe/ro/cities.rb +0 -9
  78. data/db/europe/ru/cities.rb +0 -11
  79. data/db/europe/sc/cities.rb +0 -10
  80. data/db/europe/tr/cities.rb +0 -9
  81. data/db/europe/ua/cities.rb +0 -11
  82. data/db/oceania/au/cities.rb +0 -2
  83. data/db/oceania/countries.rb +0 -14
  84. data/db/tags.rb +0 -8
@@ -1,19 +0,0 @@
1
- # encoding: utf-8
2
-
3
- ##################################
4
- ## africa
5
- ##
6
-
7
- countries = [
8
- [ 'dz', 'Algeria', 'ALG' ],
9
- [ 'ci', "Côte d'Ivoire", 'CIV' ],
10
- [ 'gh', 'Ghana', 'GHA' ],
11
- [ 'cm', 'Cameroon', 'CMR' ],
12
- [ 'ng', 'Nigeria', 'NGA' ],
13
- [ 'za', 'South Africa', 'RSA' ]
14
- ]
15
-
16
- Country.create_from_ary!( countries )
17
-
18
-
19
- Prop.create!( key: 'db.countries.africa.version', value: '1' )
@@ -1,31 +0,0 @@
1
- # encoding: utf-8
2
-
3
-
4
- ca = Country.find_by_key!( 'ca' )
5
-
6
-
7
- regions_ca = [
8
- ['on', 'Ontario'],
9
- ['qc', 'Quebec'],
10
- ['ns', 'Nova Scotia'],
11
- ['nb', 'New Brunswick'],
12
- ['mb', 'Manitoba'],
13
- ['bc', 'British Columbia'],
14
- ['pe', 'Prince Edward Island'],
15
- ['sk', 'Saskatchewan'],
16
- ['ab', 'Alberta'],
17
- ['nl', 'Newfoundland and Labrador']
18
- ]
19
-
20
- cities_ca = [
21
- ['montreal', 'Montreal', 'region:qc'],
22
- ['ottawa', 'Ottawa', 'region:on'],
23
- ['toronto', 'Toronto', 'region:on'],
24
- ['winnipeg', 'Winnipeg', 'region:mb'],
25
- ['calgary', 'Calgary', 'region:ab'],
26
- ['edmonton', 'Edmonton', 'region:ab'],
27
- ['vancouver', 'Vancouver', 'region:bc']
28
- ]
29
-
30
- Region.create_from_ary!( regions_ca, country: ca )
31
- City.create_from_ary!( cities_ca, country: ca )
@@ -1,44 +0,0 @@
1
- # encoding: utf-8
2
-
3
- ###################################################
4
- ## north/central/south america & caribbean islands
5
-
6
-
7
- countries = [
8
-
9
- #####################
10
- #### north america
11
-
12
- # area (in sq km), pop(ulation)
13
-
14
- [ 'ca', 'Canada', 'CAN', 9984670, 34278406, 'motor:CDN', 'tags:north america|en|fr' ],
15
- [ 'mx', 'Mexico', 'MEX', 1972550, 112322757, 'motor:MEX', 'tags:north america|en' ],
16
- [ 'us', 'United States', 'USA', 9629091, 314167157, 'motor:USA', 'tags:north america|es' ],
17
-
18
- #####################
19
- ## central america & caribbean islands
20
-
21
- [ 'cr', 'Costa Rica', 'CRC' ],
22
- [ 'hn', 'Honduras', 'HON' ],
23
- [ 'sv', 'El Salvador', 'SLV' ],
24
-
25
- ##############
26
- ## south america
27
-
28
- [ 'ar', 'Argentina', 'ARG', 2780400, 40518425, 'motor:RA', 'tags:south america|es' ],
29
- [ 'bo', 'Bolivia', 'BOL', 1098581, 10907778, 'motor:BOL', 'tags:south america|es' ],
30
- [ 'br', 'Brazil', 'BRA', 8514215, 192380000, 'motor:BR', 'tags:south america|pt' ],
31
- [ 'cl', 'Chile', 'CHI', 755696, 16763470, 'motor:RCH', 'tags:south america|es' ],
32
- [ 'co', 'Colombia', 'COL', 1138748, 46413791, 'motor:CO', 'tags:south america|es' ],
33
- [ 'ec', 'Ecuador', 'ECU', 258238, 15007343, 'motor:EC', 'tags:south america|es' ],
34
- [ 'gy', 'Guyana', 'GUY', 214970, 752940, 'motor:GUY', 'tags:south america|en' ],
35
- [ 'pe', 'Peru', 'PER', 1285220, 29546963, 'motor:PE', 'tags:south america|es' ],
36
- [ 'sr', 'Suriname', 'SUR', 163820, 492829, 'motor:SME', 'tags:south america|nl'],
37
- [ 'py', 'Paraguay', 'PAR', 406752, 6375830, 'motor:PY', 'tags:south america|es' ],
38
- [ 'uy', 'Uruguay', 'URU', 176215, 3510386, 'motor:ROU', 'tags:south america|es' ],
39
- [ 've', 'Venezuela', 'VEN', 916445, 28833845, 'motor:YV', 'tags:south america|es' ]
40
- ]
41
-
42
- Country.create_from_ary!( countries )
43
-
44
- Prop.create!( key: 'db.countries.america.version', value: '1' )
@@ -1,23 +0,0 @@
1
- # encoding: utf-8
2
-
3
- mx = Country.find_by_key!( 'mx' )
4
-
5
- cities_mx = [
6
- ['mexico', 'México' ],
7
- ['cancun', 'Cancún' ],
8
- ['guadalajara', 'Guadalajara' ],
9
- ['tuxtla', 'Tuxtla Gutiérrez' ],
10
- ['leon', 'León' ],
11
- ['morelia', 'Morelia' ],
12
- ['monterrey', 'Monterrey' ],
13
- ['pachuca', 'Pachuca' ],
14
- ['puebla', 'Puebla' ],
15
- ['queretaro', 'Querétaro' ],
16
- ['sanluispotosi', 'San Luis Potosì' ],
17
- ['torreon', 'Torreón' ],
18
- ['tijuana', 'Tijuana' ],
19
- ['toluca', 'Toluca' ],
20
- ['sannicolas', 'San Nicolás de los Garza' ]
21
- ]
22
-
23
- City.create_from_ary!( cities_mx, country: mx )
@@ -1,38 +0,0 @@
1
- # encoding: utf-8
2
-
3
- us = Country.find_by_key!( 'us' )
4
-
5
- regions_us = [
6
- ['ca', 'California'],
7
- ['ny', 'New York'],
8
- ['ma', 'Massachusetts'],
9
- ['pa', 'Pennsylvania'],
10
- ['il', 'Illinois'],
11
- ['oh', 'Ohio'],
12
- ['mi', 'Michigan'],
13
- ['tn', 'Tennessee'],
14
- ['tx', 'Texas'],
15
- ['az', 'Arizona']
16
- ]
17
-
18
- cities_us = [
19
- ['newyork', 'New York', 'region:ny'],
20
- ['buffalo', 'Buffalo', 'region:ny'],
21
- ['philadelphia', 'Philadelphia', 'region:pa'],
22
- ['boston', 'Boston', 'region:ma'],
23
- ['chicago', 'Chicago', 'region:il'],
24
- ['columbus', 'Columbus', 'region:oh'],
25
- ['detroit', 'Detroit', 'region:mi'],
26
- ['nashville', 'Nashville', 'region:tn'],
27
- ['dallas', 'Dallas', 'region:tx'],
28
- ['phoenix', 'Phoenix', 'region:az'],
29
- ['losangeles', 'Los Angeles', 'region:ca'],
30
- ['sanjose', 'San Jose', 'region:ca'],
31
- ['anaheim', 'Anaheim', 'region:ca'],
32
- ['stlouis', 'St. Louis'],
33
- ['pittsburgh', 'Pittsburgh'],
34
- ['washington', 'Washington']
35
- ]
36
-
37
- Region.create_from_ary!( regions_us, country: us )
38
- City.create_from_ary!( cities_us, country: us )
@@ -1,2 +0,0 @@
1
-
2
- ## add regions & cities from venezuela here
@@ -1,22 +0,0 @@
1
- # encoding: utf-8
2
-
3
- ##################################
4
- ### asia (includes middle east)
5
- ##
6
-
7
- ## NB: uefa country kazakhstan is listed here
8
- ## NB: australia is listed in oceania (w/ australia)
9
-
10
-
11
- countries = [
12
- [ 'jp', 'Japan', 'JPN' ],
13
- [ 'kp', 'North Korea', 'PRK' ],
14
- [ 'kr', 'South Korea', 'KOR' ],
15
- [ 'in', 'India', 'IND' ],
16
- [ 'kz', 'Kazakhstan', 'KAZ', 'tags:uefa' ]
17
- ]
18
-
19
-
20
- Country.create_from_ary!( countries )
21
-
22
- Prop.create!( key: 'db.countries.asia.version', value: '1' )
@@ -1,70 +0,0 @@
1
- # encoding: utf-8
2
-
3
-
4
- #########
5
- # sources:
6
- # http://en.wikipedia.org/wiki/List_of_cities_and_towns_in_Austria
7
- # http://en.wikipedia.org/wiki/List_of_cities_in_Austria_over_5,000_population_(2001_census)
8
-
9
-
10
-
11
-
12
- at = Country.find_by_key!( 'at' )
13
-
14
-
15
- ## 9 Bundeslaender
16
-
17
- regions_at = [
18
- ['wien', 'Wien'], # Wien
19
- ['noe', 'NÖ'], # Niederösterreich
20
- ['ooe', 'OÖ'], # Oberösterreich
21
- ['bgld', 'Bgld.'], # Burgenland
22
- ['stmk', 'Stmk.'], # Steiermark
23
- ['sbg', 'Sbg.'], # Salzburg
24
- ['ktn', 'Ktn.'], # Kärnten
25
- ['tirol', 'Tirol'], # Tirol
26
- ['vbg', 'Vbg.'] # Vorarlberg
27
- ]
28
-
29
- Region.create_from_ary!( regions_at, country: at )
30
-
31
- cities_at = [
32
- ['wien', 'Wien|Vienna', 'region:wien', 1664146],
33
-
34
- ['stpoelten', 'St. Pölten', 'region:noe', 51360],
35
- ['wrneustadt', 'Wiener Neustadt|Wr. Neustadt', 'region:noe', 39940],
36
- ['moedling', 'Mödling|Moedling', 'region:noe', 20649],
37
- ['horn', 'Horn', 'region:noe', 6411], # < 10000 pop
38
-
39
- ['linz', 'Linz', 'region:ooe', 188894],
40
- ['wels', 'Wels', 'region:ooe', 58623],
41
- ['steyr', 'Steyr', 'region:ooe', 38979],
42
- ['ried', 'Ried im Innkreis', 'region:ooe', 11585],
43
-
44
- ['eisenstadt', 'Eisenstadt', 'region:bgld', 12367],
45
- ['mattersburg', 'Mattersburg', 'region:bgld', 6256], # < 10000 pop
46
-
47
- ['graz', 'Graz', 'region:stmk', 247698],
48
- ['kapfenberg', 'Kapfenberg', 'region:stmk', 21928],
49
- ['hartberg', 'Hartberg', 'region:stmk', 6547], # < 10000 pop
50
-
51
- ['salzburg', 'Salzburg', 'region:sbg', 149018],
52
- ['groedig', 'Grödig', 'region:sbg', 6638], # < 10000 pop
53
-
54
- ['klagenfurt', 'Klagenfurt', 'region:ktn', 92397],
55
- ['villach', 'Villach', 'region:ktn', 58480],
56
- ['wolfsberg', 'Wolfsberg', 'region:ktn', 25361],
57
-
58
- ['innsbruck', 'Innsbruck', 'region:tirol', 117693],
59
-
60
- ['dornbirn', 'Dornbirn', 'region:vbg', 44243],
61
- ['feldkirch', 'Feldkirch', 'region:vbg', 30093],
62
- ['bregenz', 'Bregenz', 'region:vbg', 27148],
63
- ['lustenau', 'Lustenau', 'region:vbg', 20606],
64
- ['altach', 'Altach', 'region:vbg', 5704], # < 10000 pop
65
- ]
66
-
67
- City.create_from_ary!( cities_at, country: at )
68
-
69
-
70
- Prop.create!( key: 'db.at.cities.version', value: '1' )
@@ -1,10 +0,0 @@
1
- # encoding: utf-8
2
-
3
- be = Country.find_by_key!( 'be' )
4
-
5
- cities_be = [
6
- ['brussel', 'Brüssel|Brussel|Bruxelles|Brussels'] # de|nl|fr|en - RCA Anderlecht
7
- ]
8
-
9
- City.create_from_ary!( cities_be, country: be )
10
-
@@ -1,9 +0,0 @@
1
- # encoding: utf-8
2
-
3
- by = Country.find_by_key!( 'by' )
4
-
5
- cities_by = [
6
- ['borisov','Borissow|Borisov|Barysaw']
7
- ]
8
-
9
- City.create_from_ary!( cities_by, country: by )
@@ -1,9 +0,0 @@
1
- # encoding: utf-8
2
-
3
- ch = Country.find_by_key!( 'ch' )
4
-
5
- cities_ch = [
6
- ['basel','Basel']
7
- ]
8
-
9
- City.create_from_ary!( cities_ch, country: ch )
@@ -1,73 +0,0 @@
1
- # encoding: utf-8
2
-
3
- ####################
4
- ### europe
5
-
6
-
7
- ## NB:
8
- #
9
- # countries also include:
10
- # england (en), scotland (sc)
11
- #
12
- # also turkey, russia, georiga, etc.
13
- # note: the uefa country kazachstan is listed in asia
14
-
15
-
16
- ## NB: for keys use internet domain/iso two letter code
17
- #
18
- # more info about iso country codes:
19
- # -> http://en.wikipedia.org/wiki/ISO_3166-1
20
- # two letter codes -> http://en.wikipedia.org/wiki/ISO_3166-1_alpha-2
21
- # three letter codes -> http://en.wikipedia.org/wiki/ISO_3166-1_alpha-3
22
- #
23
- # for three letter codes use fifa code or iso code
24
- # - fifa three letter country codes
25
- # -> http://en.wikipedia.org/wiki/List_of_FIFA_country_codes
26
- # -> differences (fifa,ioc,iso) -> http://en.wikipedia.org/wiki/Comparison_of_IOC,_FIFA,_and_ISO_3166_country_codes
27
-
28
-
29
- countries = [
30
- [ 'ad', 'Andorra', 'AND' ],
31
- [ 'al', 'Albania', 'ALB' ],
32
- [ 'am', 'Armenia', 'ARM' ],
33
- [ 'at', 'Austria', 'AUT', 'tags:europe|uefa|eu|un' ],
34
- [ 'be', 'Belgium', 'BEL', 'tags:europe|uefa|eu|un|benelux' ],
35
- [ 'bg', 'Bulgaria', 'BUL' ], # NB: ISO (BGR) <> FIFA (BUL)
36
- [ 'by', 'Belarus', 'BLR' ],
37
- [ 'ch', 'Switzerland', 'SUI', 'tags:europe|uefa|un' ], # NB: ISO (CHE) <> FIFA (SUI)
38
- [ 'cy', 'Cyprus', 'CYP' ],
39
- [ 'cz', 'Czech Republic', 'CZE' ],
40
- [ 'de', 'Germany', 'GER' ], # NB: ISO (DEU) <> FIFA (GER)
41
- [ 'dk', 'Denmark', 'DEN' ], # NB: ISO (DNK) <> FIFA (DEN)
42
- [ 'en', 'England', 'ENG' ], # NB: FIFA (ENG); not a valid iso country n internet domain / it's uk - what to use - anything better?
43
- [ 'es', 'Spain', 'ESP' ],
44
- [ 'fi', 'Finland', 'FIN' ],
45
- [ 'fo', 'Faroe Islands', 'FRO' ],
46
- [ 'fr', 'France', 'FRA' ],
47
- [ 'ge', 'Georgia', 'GEO' ],
48
- [ 'gr', 'Greece', 'GRE' ], # NB: ISO (GRC) <> FIFA (GRE)
49
- [ 'hr', 'Croatia', 'CRO' ], # NB: ISO (HRV) <> FIFA (CRO); local name: Hrvatska
50
- [ 'hu', 'Hungary', 'HUN' ],
51
- [ 'ie', 'Irland', 'IRL' ],
52
- [ 'it', 'Italy', 'ITA' ],
53
- [ 'mt', 'Malta', 'MLT' ],
54
- [ 'nl', 'Netherlands', 'NED' ], # NB: ISO (NLD) <> FIFA (NED)
55
- [ 'pl', 'Poland', 'POL' ],
56
- [ 'pt', 'Portugal', 'POR' ], # NB: ISO (PRT) <> FIFA (POR)
57
- [ 'ro', 'Romania', 'ROU' ],
58
- [ 'rs', 'Serbia', 'SRB' ],
59
- [ 'ru', 'Russia', 'RUS' ],
60
- [ 'sc', 'Scotland', 'SCO' ], # NB: FIFA (SCO); not a valid iso country/internet domain - it's uk - what to use - anything better?
61
- [ 'se', 'Sweden', 'SWE' ],
62
- [ 'si', 'Slovenia', 'SVN' ],
63
- [ 'sk', 'Slovakia', 'SVK' ],
64
- [ 'tr', 'Turkey', 'TUR' ],
65
- [ 'ua', 'Ukraine', 'UKR' ],
66
- [ 'mk', 'Macedonia', 'MKD' ],
67
- [ 'no', 'Norway', 'NOR' ],
68
- [ 'is', 'Iceland', 'ISL' ]
69
- ]
70
-
71
- Country.create_from_ary!( countries )
72
-
73
- Prop.create!( key: 'db.countries.europe.version', value: '1' )
@@ -1,11 +0,0 @@
1
- # encoding: utf-8
2
-
3
-
4
- cy = Country.find_by_key!( 'cy' )
5
-
6
- cities_cy = [
7
- ['nikosia','Nikosia|Nicosia']
8
- ]
9
-
10
- City.create_from_ary!( cities_cy, country: cy )
11
-
@@ -1,51 +0,0 @@
1
- # encoding: utf-8
2
-
3
- de = Country.find_by_key!( 'de' )
4
-
5
- regions_de = [
6
- ['bw', 'Baden-Württemberg'],
7
- ['by', 'Bayern'],
8
- ['be', 'Berlin'],
9
- ['bb', 'Brandenburg'],
10
- ['hb', 'Bremen'],
11
- ['hh', 'Hamburg'],
12
- ['he', 'Hessen'],
13
- ['mv', 'Mecklenburg-Vorpommern'],
14
- ['ni', 'Niedersachsen'],
15
- ['nw', 'Nordrhein-Westfalen'],
16
- ['rp', 'Rheinland-Pfalz'],
17
- ['sl', 'Saarland'],
18
- ['sn', 'Sachsen'],
19
- ['st', 'Sachsen-Anhalt'],
20
- ['sh', 'Schleswig-Holstein'],
21
- ['th', 'Thüringen']
22
- ]
23
-
24
- Region.create_from_ary!( regions_de, country: de )
25
-
26
-
27
- cities_de = [
28
- ['muenchen', 'München', 'region:by'],
29
- ['nuernberg', 'Nürnberg', 'region:by'],
30
- ['augsburg', 'Augsburg', 'region:by'],
31
- ['fuerth', 'Fürth', 'region:by'],
32
- ['stuttgart', 'Stuttgart', 'region:bw'],
33
- ['hoffenheim', 'Hoffenheim', 'region:bw'],
34
- ['freiburg', 'Freiburg', 'region:bw'],
35
- ['hannover', 'Hannover', 'region:ni'],
36
- ['wolfsburg', 'Wolfsburg', 'region:ni'],
37
- ['gelsenkirchen', 'Gelsenkirchen', 'region:nw'],
38
- ['dortmund', 'Dortmund', 'region:nw'],
39
- ['leverkusen', 'Leverkusen', 'region:nw'],
40
- ['duesseldorf', 'Düsseldorf', 'region:nw'],
41
- ['mgladbach', "Mönchengladbach|M'gladbach", 'region:nw' ],
42
- ['frankfurt', 'Frankfurt', 'region:he'],
43
- ['mainz', 'Mainz', 'region:rp'],
44
- ['hamburg', 'Hamburg', 'region:hh'],
45
- ['bremen', 'Bremen', 'region:hb']
46
- ]
47
-
48
- City.create_from_ary!( cities_de, country: de )
49
-
50
-
51
- Prop.create!( key: 'db.de.cities.version', value: '1' )
@@ -1,9 +0,0 @@
1
- # encoding: utf-8
2
-
3
- dk = Country.find_by_key!( 'dk' )
4
-
5
- cities_dk = [
6
- ['farum','Farum'] ## region: North Zealand ??
7
- ]
8
-
9
- City.create_from_ary!( cities_dk, country: dk )
@@ -1,22 +0,0 @@
1
- # encoding: utf-8
2
-
3
- en = Country.find_by_key!( 'en' )
4
-
5
-
6
- cities_en = [
7
- ['manchester', 'Manchester'],
8
- ['london', 'London'],
9
- ['liverpool', 'Liverpool'],
10
- ['birmingham', 'Birmingham'], # e.g.Aston Villa
11
- ['westbrom', 'West Bromwich'],
12
- ['newcastle', 'Newcastle upon Tyne'],
13
- ['stoke', 'Stoke-on-Trent'],
14
- ['sunderland', 'Sunderland'],
15
- ['wigan', 'Wigan'],
16
- ['southampton', 'Southampton'],
17
- ['reading', 'Reading'],
18
- ['norwich', 'Norwich'],
19
- ['swansea', 'Swansea']
20
- ]
21
-
22
- City.create_from_ary!( cities_en, country: en )