AddressBookImporter 0.0.7 → 0.0.8

Sign up to get free protection for your applications and to get access to all the features.
Files changed (2) hide show
  1. data/lib/address_book_importer.rb +2 -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'
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', 'utf8', password)
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)
metadata CHANGED
@@ -3,7 +3,7 @@ rubygems_version: 0.9.0
3
3
  specification_version: 1
4
4
  name: AddressBookImporter
5
5
  version: !ruby/object:Gem::Version
6
- version: 0.0.7
6
+ version: 0.0.8
7
7
  date: 2007-05-30 00:00:00 +02:00
8
8
  summary: Mechanize scraper for address books
9
9
  require_paths: