lib/graybook/importer/yahoo.rb in graybook-1.1.0 vs lib/graybook/importer/yahoo.rb in graybook-1.1.1

- old
+ new

@@ -22,11 +22,11 @@ form.login = options[:username].split("@").first form.passwd = options[:password] page = agent.submit(form, form.buttons.first) if page.body =~ /Invalid ID or password./ || page.body =~ /This ID is not yet taken./ - return Problem.new("Username and password were not accepted. Please check them and try again.") + return Graybook::Problem.new("Username and password were not accepted. Please check them and try again.") end true end @@ -41,10 +41,10 @@ # scrape yahoo contacts def scrape_contacts page = agent.get("http://address.yahoo.com/?1=&VPC=import_export") if page.body =~ /To access Yahoo! Address Book\.\.\..*Sign in./m - return Problem.new("Username and password were not accepted. Please check them and try again.") + return Graybook::Problem.new("Username and password were not accepted. Please check them and try again.") end form = page.forms.last csv = agent.submit(form, form.buttons[2]) # third button is Yahoo-format CSV contact_rows = FasterCSV.parse(csv.body)