umanni-email-contacts 0.0.2 → 0.0.3
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.
- data/lib/contacts19/gmail.rb +7 -3
- data/lib/contacts19/version.rb +1 -1
- metadata +8 -8
data/lib/contacts19/gmail.rb
CHANGED
|
@@ -19,9 +19,13 @@ module Contacts19
|
|
|
19
19
|
@contacts = feed.elements.to_a('entry').collect do |entry|
|
|
20
20
|
title, email, photo = entry.elements['title'].text, nil, [nil, nil]
|
|
21
21
|
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
22
|
+
begin
|
|
23
|
+
entry.elements.each('link[@gd:etag]') do |e|
|
|
24
|
+
gdata_response = @client.get(e.attribute('href').value)
|
|
25
|
+
photo = [gdata_response.body, gdata_response.headers['content-type']] if gdata_response.status_code == 200 and !gdata_response.body.nil?
|
|
26
|
+
end
|
|
27
|
+
rescue StandardError
|
|
28
|
+
photo = [nil, nil]
|
|
25
29
|
end
|
|
26
30
|
|
|
27
31
|
entry.elements.each('gd:email') do |e|
|
data/lib/contacts19/version.rb
CHANGED
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: umanni-email-contacts
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.0.
|
|
4
|
+
version: 0.0.3
|
|
5
5
|
prerelease:
|
|
6
6
|
platform: ruby
|
|
7
7
|
authors:
|
|
@@ -14,7 +14,7 @@ date: 2011-09-14 00:00:00.000000000Z
|
|
|
14
14
|
dependencies:
|
|
15
15
|
- !ruby/object:Gem::Dependency
|
|
16
16
|
name: json
|
|
17
|
-
requirement: &
|
|
17
|
+
requirement: &13858620 !ruby/object:Gem::Requirement
|
|
18
18
|
none: false
|
|
19
19
|
requirements:
|
|
20
20
|
- - ! '>='
|
|
@@ -22,10 +22,10 @@ dependencies:
|
|
|
22
22
|
version: 1.1.1
|
|
23
23
|
type: :runtime
|
|
24
24
|
prerelease: false
|
|
25
|
-
version_requirements: *
|
|
25
|
+
version_requirements: *13858620
|
|
26
26
|
- !ruby/object:Gem::Dependency
|
|
27
27
|
name: gdata_19
|
|
28
|
-
requirement: &
|
|
28
|
+
requirement: &13857840 !ruby/object:Gem::Requirement
|
|
29
29
|
none: false
|
|
30
30
|
requirements:
|
|
31
31
|
- - ! '>='
|
|
@@ -33,10 +33,10 @@ dependencies:
|
|
|
33
33
|
version: 1.1.2
|
|
34
34
|
type: :runtime
|
|
35
35
|
prerelease: false
|
|
36
|
-
version_requirements: *
|
|
36
|
+
version_requirements: *13857840
|
|
37
37
|
- !ruby/object:Gem::Dependency
|
|
38
38
|
name: hpricot
|
|
39
|
-
requirement: &
|
|
39
|
+
requirement: &13857120 !ruby/object:Gem::Requirement
|
|
40
40
|
none: false
|
|
41
41
|
requirements:
|
|
42
42
|
- - ! '>='
|
|
@@ -44,7 +44,7 @@ dependencies:
|
|
|
44
44
|
version: 0.8.4
|
|
45
45
|
type: :runtime
|
|
46
46
|
prerelease: false
|
|
47
|
-
version_requirements: *
|
|
47
|
+
version_requirements: *13857120
|
|
48
48
|
description: A universal interface to grab contact list information from various providers
|
|
49
49
|
including Yahoo, AOL, Gmail, Hotmail, and Plaxo.
|
|
50
50
|
email:
|
|
@@ -88,7 +88,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
88
88
|
version: '0'
|
|
89
89
|
requirements: []
|
|
90
90
|
rubyforge_project:
|
|
91
|
-
rubygems_version: 1.8.
|
|
91
|
+
rubygems_version: 1.8.11
|
|
92
92
|
signing_key:
|
|
93
93
|
specification_version: 3
|
|
94
94
|
summary: A universal interface to grab contact list information from various providers
|