adamhunter-contacts 1.1.17 → 1.1.18
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/contacts/base.rb +1 -1
- data/lib/contacts/gmail.rb +6 -1
- metadata +1 -1
data/lib/contacts/base.rb
CHANGED
data/lib/contacts/gmail.rb
CHANGED
@@ -6,7 +6,6 @@ class Contacts
|
|
6
6
|
|
7
7
|
def contacts
|
8
8
|
return @contacts if @contacts
|
9
|
-
real_connect
|
10
9
|
end
|
11
10
|
|
12
11
|
def real_connect
|
@@ -27,7 +26,13 @@ class Contacts
|
|
27
26
|
@contacts << [title, email] unless email.nil?
|
28
27
|
end
|
29
28
|
@contacts
|
29
|
+
rescue GData::Client::AuthorizationError => e
|
30
|
+
raise Contacts::AuthenticationError
|
30
31
|
end
|
31
32
|
|
33
|
+
private
|
34
|
+
|
35
|
+
TYPES[:gmail] = Gmail
|
36
|
+
|
32
37
|
end
|
33
38
|
end
|