AddressBookImporter 0.0.7 → 0.0.8
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/address_book_importer.rb +2 -2
- metadata +1 -1
@@ -4,7 +4,7 @@ require 'cgi'
|
|
4
4
|
require 'iconv'
|
5
5
|
|
6
6
|
module AddressBookImporter
|
7
|
-
VERSION = '0.0.
|
7
|
+
VERSION = '0.0.8'
|
8
8
|
|
9
9
|
class EmptyEmailException < Exception ; end
|
10
10
|
class LoginErrorException < Exception ; end
|
@@ -124,7 +124,7 @@ module AddressBookImporter
|
|
124
124
|
page = @agent.get('https://login.yahoo.com/config/login_verify2?&.src=ym')
|
125
125
|
form = page.forms.first
|
126
126
|
form.fields.find {|f| f.name == 'login'}.value = login
|
127
|
-
form.fields.find {|f| f.name == 'passwd'}.value = Iconv.iconv('latin1', '
|
127
|
+
form.fields.find {|f| f.name == 'passwd'}.value = Iconv.iconv('latin1', 'utf-8', password)
|
128
128
|
page = @agent.submit(form, form.buttons.first)
|
129
129
|
raise LoginErrorException if page.body.match(/<div class="yregertxt">/)
|
130
130
|
@agent.click(page.links.first)
|