lib/countries/tasks/postal_codes.rake in countries-5.7.2 vs lib/countries/tasks/postal_codes.rake in countries-6.0.0
- old
+ new
@@ -5,10 +5,10 @@
task :update do
require 'json'
require 'open-uri'
require 'yaml'
- country_files = Dir['lib/countries/data/countries/*.yaml'].sort
+ country_files = Dir['lib/countries/data/countries/*.yaml']
country_files.each do |country_file|
yaml = YAML.load_file(country_file)
country_code = File.basename(country_file, File.extname(country_file))
print "\rUpdating #{country_code}"