direct_address 0.1.0 → 0.1.1
Sign up to get free protection for your applications and to get access to all the features.
- data/VERSION +1 -1
- data/direct_address.gemspec +1 -1
- data/lib/direct_address/harvester/geoname.rb +1 -1
- metadata +2 -2
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.1.
|
1
|
+
0.1.1
|
data/direct_address.gemspec
CHANGED
@@ -9,7 +9,7 @@ class Geoname
|
|
9
9
|
abbrev = country[0]
|
10
10
|
name = country[1]
|
11
11
|
c = Country.find_or_create_by_abbreviation(:abbreviation => abbrev, :name => name)
|
12
|
-
regions = YAML.load_file(File.join(File.dirname(__FILE__), 'regions', "#{abbrev}.yml"))
|
12
|
+
regions = YAML.load_file(File.join(File.dirname(__FILE__), 'regions', "#{abbrev}.yml")) rescue []
|
13
13
|
for region in regions
|
14
14
|
r = c.regions.find_or_create_by_name(:name => region)
|
15
15
|
puts "Created country / region: #{name} / #{region}"
|