AddressBookImporter 0.0.8 → 0.0.9

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. data/lib/address_book_importer.rb +5 -1
  2. metadata +2 -2
@@ -4,7 +4,7 @@ require 'cgi'
4
4
  require 'iconv'
5
5
 
6
6
  module AddressBookImporter
7
- VERSION = '0.0.8'
7
+ VERSION = '0.0.9'
8
8
 
9
9
  class EmptyEmailException < Exception ; end
10
10
  class LoginErrorException < Exception ; end
@@ -100,6 +100,10 @@ module AddressBookImporter
100
100
  class Gmail < Importer
101
101
 
102
102
  def login(login, password)
103
+ if (match = login.match(/(.*)@gmail.com/))
104
+ login = match[1]
105
+ end
106
+
103
107
  page = @agent.get('https://mail.google.com/?ui=html')
104
108
  form = page.forms.first
105
109
  form.fields.find {|f| f.name == 'Email'}.value = login
metadata CHANGED
@@ -3,8 +3,8 @@ 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.8
7
- date: 2007-05-30 00:00:00 +02:00
6
+ version: 0.0.9
7
+ date: 2007-08-08 00:00:00 +02:00
8
8
  summary: Mechanize scraper for address books
9
9
  require_paths:
10
10
  - lib