diff --git a/contacts.gemspec b/contacts.gemspec index 2958118..56559da 100644 --- a/contacts.gemspec +++ b/contacts.gemspec @@ -1,7 +1,7 @@ Gem::Specification.new do |s| s.name = "contacts" - s.version = "1.0.13" - s.date = "2008-06-04" + s.version = "1.0.14" + s.date = "2008-07-11" s.summary = "A universal interface to grab contact list information from various providers including Yahoo, Gmail, Hotmail, and Plaxo." s.email = "loe@onehub.com" s.homepage = "http://github.com/loe/contacts" diff --git a/lib/contacts/yahoo.rb b/lib/contacts/yahoo.rb index f1bc504..1e75ced 100644 --- a/lib/contacts/yahoo.rb +++ b/lib/contacts/yahoo.rb @@ -20,7 +20,7 @@ def real_connect raise AuthenticationError, "Username and password do not match" elsif data.index("Sign in") && data.index("to Yahoo!") raise AuthenticationError, "Required field must not be blank" - elsif data != "" + elsif !data.match(/uncompressed\/chunked/) raise ConnectionError, PROTOCOL_ERROR elsif cookies == "" raise ConnectionError, PROTOCOL_ERROR