cardmagic-contacts 1.0.15 → 1.0.16
Sign up to get free protection for your applications and to get access to all the features.
- data/Rakefile +1 -1
- data/lib/contacts/base.rb +1 -1
- data/lib/contacts/plaxo.rb +8 -2
- metadata +1 -1
data/Rakefile
CHANGED
data/lib/contacts/base.rb
CHANGED
data/lib/contacts/plaxo.rb
CHANGED
@@ -34,8 +34,14 @@ class Contacts
|
|
34
34
|
elsif code == '200'
|
35
35
|
@contacts = []
|
36
36
|
doc.elements.each('//contact') do |cont|
|
37
|
-
name
|
38
|
-
|
37
|
+
name = if cont.elements['fullName']
|
38
|
+
cont.elements['fullName'].text
|
39
|
+
elsif cont.elements['displayName']
|
40
|
+
cont.elements['displayName'].text
|
41
|
+
end
|
42
|
+
email = if cont.elements['email1']
|
43
|
+
cont.elements['email1'].text
|
44
|
+
end
|
39
45
|
@contacts << [name, email]
|
40
46
|
end.compact
|
41
47
|
@contacts
|