lib/tasks/phonelib_tasks.rake in phonelib-0.1.3 vs lib/tasks/phonelib_tasks.rake in phonelib-0.2.0

- old
+ new

@@ -5,11 +5,11 @@ require 'net/http' require 'yaml' require 'nokogiri' # get metadata from google - url = 'http://libphonenumber.googlecode.com/svn/trunk/resources/PhoneNumberMetaData.xml' + url = 'http://libphonenumber.googlecode.com/svn/trunk/resources/PhoneNumberMetadata.xml' xml_data = Net::HTTP.get_response(URI.parse(url)).body # save in file for debug File.open("data/PhoneNumberMetaData.xml", "w+") do |f| f.write(xml_data) @@ -68,6 +68,6 @@ target = 'data/phone_data.yml' File.open(target, "w+") do |f| f.write(countries.to_yaml) end end -end \ No newline at end of file +end