Skip to content

Commit

Permalink
prep 0.2.1
Browse files Browse the repository at this point in the history
  • Loading branch information
geraldb committed Nov 7, 2012
1 parent 9b8f33b commit ec22bd8
Show file tree
Hide file tree
Showing 25 changed files with 431 additions and 265 deletions.
25 changes: 23 additions & 2 deletions script/Manifest.txt
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,30 @@ README.markdown
Rakefile
bin/worlddb
db/at/cities.rb
db/cities.rb
db/countries.rb
db/be/cities.rb
db/by/cities.rb
db/ca/cities.rb
db/ch/cities.rb
db/cy/cities.rb
db/de.countries.rb
db/de/cities.rb
db/dk/cities.rb
db/en.countries.rb
db/en/cities.rb
db/es/cities.rb
db/fr/cities.rb
db/gr/cities.rb
db/hr/cities.rb
db/it/cities.rb
db/mx/cities.rb
db/nl/cities.rb
db/pt/cities.rb
db/ro/cities.rb
db/ru/cities.rb
db/sc/cities.rb
db/tr/cities.rb
db/ua/cities.rb
db/us/cities.rb
lib/worlddb.rb
lib/worlddb/cli/opts.rb
lib/worlddb/cli/runner.rb
Expand Down
10 changes: 10 additions & 0 deletions script/db/be/cities.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
# encoding: utf-8

be = Country.find_by_key!( 'be' )

cities_be = [
['brussel', 'Brüssel|Brussel|Bruxelles|Brussels'] # de|nl|fr|en - RCA Anderlecht
]

City.create_from_ary!( cities_be, country: be )

9 changes: 9 additions & 0 deletions script/db/by/cities.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
# encoding: utf-8

by = Country.find_by_key!( 'by' )

cities_by = [
['borisov','Borissow|Borisov|Barysaw']
]

City.create_from_ary!( cities_by, country: by )
31 changes: 31 additions & 0 deletions script/db/ca/cities.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
# encoding: utf-8


ca = Country.find_by_key!( 'ca' )


regions_ca = [
['on', 'Ontario'],
['qc', 'Quebec'],
['ns', 'Nova Scotia'],
['nb', 'New Brunswick'],
['mb', 'Manitoba'],
['bc', 'British Columbia'],
['pe', 'Prince Edward Island'],
['sk', 'Saskatchewan'],
['ab', 'Alberta'],
['nl', 'Newfoundland and Labrador']
]

cities_ca = [
['montreal', 'Montreal', 'region:qc'],
['ottawa', 'Ottawa', 'region:on'],
['toronto', 'Toronto', 'region:on'],
['winnipeg', 'Winnipeg', 'region:mb'],
['calgary', 'Calgary', 'region:ab'],
['edmonton', 'Edmonton', 'region:ab'],
['vancouver', 'Vancouver', 'region:bc']
]

Region.create_from_ary!( regions_ca, country: ca )
City.create_from_ary!( cities_ca, country: ca )
9 changes: 9 additions & 0 deletions script/db/ch/cities.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
# encoding: utf-8

ch = Country.find_by_key!( 'ch' )

cities_ch = [
['basel','Basel']
]

City.create_from_ary!( cities_ch, country: ch )
263 changes: 0 additions & 263 deletions script/db/cities.rb

This file was deleted.

11 changes: 11 additions & 0 deletions script/db/cy/cities.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
# encoding: utf-8


cy = Country.find_by_key!( 'cy' )

cities_cy = [
['nikosia','Nikosia|Nicosia']
]

City.create_from_ary!( cities_cy, country: cy )

5 changes: 5 additions & 0 deletions script/db/countries.rb → script/db/de.countries.rb
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,11 @@
[ 'sk', 'Slowakei', 'SVK' ],
[ 'tr', 'Türkei', 'TUR' ],
[ 'ua', 'Ukraine', 'UKR' ],
[ 'mk', 'Mazedonien', 'MKD' ],
[ 'no', 'Norwegen', 'NOR' ],
[ 'is', 'Island', 'ISL' ],


##############
## south america

Expand Down Expand Up @@ -95,6 +99,7 @@
[ 'jp', 'Japan', 'JPN' ],
[ 'kp', 'Nordkorea', 'PRK' ],
[ 'kr', 'Südkorea', 'KOR' ],
[ 'in', 'Indien', 'IND' ],

###############################
## oceania
Expand Down
Loading

0 comments on commit ec22bd8

Please sign in to comment.