contacts 1.0.11 → 1.0.12

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.
@@ -8,7 +8,7 @@ require "thread"
8
8
 
9
9
  class Contacts
10
10
  TYPES = {}
11
- VERSION = "1.0.11"
11
+ VERSION = "1.0.12"
12
12
 
13
13
  class Base
14
14
  def initialize(login, password)
@@ -6,7 +6,7 @@ class Contacts
6
6
  LOGIN_URL = "https://www.google.com/accounts/ServiceLoginAuth"
7
7
  LOGIN_REFERER_URL = "https://www.google.com/accounts/ServiceLogin?service=mail&passive=true&rm=false&continue=http%3A%2F%2Fmail.google.com%2Fmail%3Fui%3Dhtml%26zy%3Dl&ltmpl=yj_blanco&ltmplcache=2&hl=en"
8
8
  CONTACT_LIST_URL = "https://mail.google.com/mail/contacts/data/contacts?thumb=true&show=ALL&enums=true&psort=Name&max=10000&out=js&rf=&jsx=true"
9
- PROTOCOL_ERROR = "Gmail has changed its protocols, please upgrade this library first. If that does not work, contact lucas@rufy.com with this error"
9
+ PROTOCOL_ERROR = "Gmail has changed its protocols, please upgrade this library first. If that does not work, dive into the code and submit a patch at http://github.com/cardmagic/contacts"
10
10
 
11
11
  def real_connect
12
12
  postdata = "ltmpl=yj_blanco"
@@ -6,7 +6,7 @@ class Contacts
6
6
  LOGIN_URL = "https://www.plaxo.com/signin"
7
7
  ADDRESS_BOOK_URL = "http://www.plaxo.com/po3/?module=ab&operation=viewFull&mode=normal"
8
8
  CONTACT_LIST_URL = "http://www.plaxo.com/axis/soap/contact?_action=getContacts&_format=xml"
9
- PROTOCOL_ERROR = "Plaxo has changed its protocols, please upgrade this library first. If that does not work, contact lucas@rufy.com with this error"
9
+ PROTOCOL_ERROR = "Plaxo has changed its protocols, please upgrade this library first. If that does not work, dive into the code and submit a patch at http://github.com/cardmagic/contacts"
10
10
 
11
11
  def real_connect
12
12
 
@@ -6,7 +6,7 @@ class Contacts
6
6
  LOGIN_URL = "https://login.yahoo.com/config/login"
7
7
  ADDRESS_BOOK_URL = "http://address.mail.yahoo.com/?1&VPC=import_export"
8
8
  CONTACT_LIST_URL = "http://address.yahoo.com/index.php?VPC=import_export&A=B&submit[action_export_yahoo]=Export%20Now"
9
- PROTOCOL_ERROR = "Yahoo has changed its protocols, please upgrade this library first. If that does not work, contact lucas@rufy.com with this error"
9
+ PROTOCOL_ERROR = "Yahoo has changed its protocols, please upgrade this library first. If that does not work, dive into the code and submit a patch at http://github.com/cardmagic/contacts"
10
10
 
11
11
  def real_connect
12
12
  postdata = ".tries=2&.src=ym&.md5=&.hash=&.js=&.last=&promo=&.intl=us&.bypass="
@@ -20,7 +20,7 @@ class Contacts
20
20
  raise AuthenticationError, "Username and password do not match"
21
21
  elsif data.index("Sign in") && data.index("to Yahoo!")
22
22
  raise AuthenticationError, "Required field must not be blank"
23
- elsif data != ""
23
+ elsif !data.match(/uncompressed\/chunked/)
24
24
  raise ConnectionError, PROTOCOL_ERROR
25
25
  elsif cookies == ""
26
26
  raise ConnectionError, PROTOCOL_ERROR
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: contacts
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.11
4
+ version: 1.0.12
5
5
  platform: ""
6
6
  authors:
7
7
  - Lucas Carlson
@@ -9,7 +9,7 @@ autorequire: contacts
9
9
  bindir: bin
10
10
  cert_chain: []
11
11
 
12
- date: 2008-03-07 00:00:00 -08:00
12
+ date: 2008-07-11 00:00:00 -07:00
13
13
  default_executable:
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency