gmail_contacts 1.6 → 1.7
Sign up to get free protection for your applications and to get access to all the features.
- data.tar.gz.sig +0 -0
- data/History.txt +7 -1
- data/lib/gmail_contacts.rb +1 -1
- data/lib/gmail_contacts/test_stub.rb +20 -0
- metadata +2 -2
- metadata.gz.sig +0 -0
data.tar.gz.sig
CHANGED
Binary file
|
data/History.txt
CHANGED
@@ -1,7 +1,13 @@
|
|
1
|
+
=== 1.7 / 2009-09-03
|
2
|
+
|
3
|
+
* 1 minor enhancement
|
4
|
+
* ::stub now raises a GData::Client::UnknownError when #fetch_photo is given
|
5
|
+
a URL containing 404
|
6
|
+
|
1
7
|
=== 1.6 / 2009-08-27
|
2
8
|
|
3
9
|
* 1 minor enhancement
|
4
|
-
* ::stub has a new
|
10
|
+
* ::stub has a new token type 'wrong_user_authsub_token'
|
5
11
|
|
6
12
|
=== 1.5 / 2009-08-20
|
7
13
|
|
data/lib/gmail_contacts.rb
CHANGED
@@ -169,6 +169,26 @@ class GmailContacts
|
|
169
169
|
|
170
170
|
old_fetch(*args)
|
171
171
|
end
|
172
|
+
|
173
|
+
alias old_fetch_photo fetch_photo
|
174
|
+
|
175
|
+
def fetch_photo(contact)
|
176
|
+
photo_url = if String === contact then
|
177
|
+
contact
|
178
|
+
else
|
179
|
+
contact.photo_url
|
180
|
+
end
|
181
|
+
|
182
|
+
if photo_url =~ /404/ then
|
183
|
+
res = Object.new
|
184
|
+
def res.status_code() 404 end
|
185
|
+
def res.body() 'Photo not found' end
|
186
|
+
raise GData::Client::UnknownError, res
|
187
|
+
end
|
188
|
+
|
189
|
+
old_fetch_photo contact
|
190
|
+
end
|
191
|
+
|
172
192
|
end
|
173
193
|
|
174
194
|
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: gmail_contacts
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: "1.
|
4
|
+
version: "1.7"
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Eric Hodel
|
@@ -30,7 +30,7 @@ cert_chain:
|
|
30
30
|
x52qPcexcYZR7w==
|
31
31
|
-----END CERTIFICATE-----
|
32
32
|
|
33
|
-
date: 2009-
|
33
|
+
date: 2009-09-03 00:00:00 -07:00
|
34
34
|
default_executable:
|
35
35
|
dependencies:
|
36
36
|
- !ruby/object:Gem::Dependency
|
metadata.gz.sig
CHANGED
Binary file
|