diff --git a/data/extended_data.dat b/data/extended_data.dat index 8c4bbd4..9109c2a 100644 Binary files a/data/extended_data.dat and b/data/extended_data.dat differ diff --git a/lib/phonelib/data_importer.rb b/lib/phonelib/data_importer.rb index 5b112c9..d9eb9a1 100644 --- a/lib/phonelib/data_importer.rb +++ b/lib/phonelib/data_importer.rb @@ -197,7 +197,7 @@ def import_country_names require 'open-uri' require 'csv' - io = open('https://download.geonames.org/export/dump/countryInfo.txt') + io = URI.open('http://download.geonames.org/export/dump/countryInfo.txt') csv = CSV.new(io, {col_sep: "\t"}) csv.each do |row| next if row[0].nil? || row[0].start_with?('#') || row[0].empty? || row[0].size != 2