gmail_contacts 1.2 → 1.3

Sign up to get free protection for your applications and to get access to all the features.
data/History.txt CHANGED
@@ -1,3 +1,8 @@
1
+ === 1.3 / 2009-05-06
2
+
3
+ * 1 minor enhancement
4
+ * Make upgraded/revoked token accessible in test stub
5
+
1
6
  === 1.2 / 2009-05-05
2
7
 
3
8
  * 2 minor enhancements
@@ -188,10 +188,16 @@ class GData::Client::Contacts
188
188
  auth_handler = Object.new
189
189
  auth_handler.instance_variable_set :@revoked, nil
190
190
  auth_handler.instance_variable_set :@upgraded, nil
191
+ auth_handler.instance_variable_set :@token, token
191
192
  def auth_handler.revoke() @revoked = true end
192
193
  def auth_handler.revoked?() @revoked end
193
194
  def auth_handler.upgrade() @upgraded = true end
194
195
  def auth_handler.upgraded?() @upgraded end
196
+ def auth_handler.token()
197
+ [@token,
198
+ (@revoked ? 'revoked' : nil),
199
+ (@upgraded ? 'upgraded' : nil)].compact.join '-'
200
+ end
195
201
  self.auth_handler = auth_handler
196
202
  end
197
203
 
@@ -10,7 +10,7 @@ require 'nokogiri'
10
10
 
11
11
  class GmailContacts
12
12
 
13
- VERSION = '1.2'
13
+ VERSION = '1.3'
14
14
 
15
15
  Contact = Struct.new :title, :emails, :ims, :phone_numbers, :addresses,
16
16
  :photo_url
data.tar.gz.sig CHANGED
Binary file
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.2"
4
+ version: "1.3"
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-05-05 00:00:00 -07:00
33
+ date: 2009-05-06 00:00:00 -07:00
34
34
  default_executable:
35
35
  dependencies:
36
36
  - !ruby/object:Gem::Dependency
metadata.gz.sig CHANGED
Binary file