aurelian-contacts 0.3.2 → 0.3.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.
Files changed (3) hide show
  1. data/VERSION.yml +1 -1
  2. data/lib/contacts/flickr.rb +6 -1
  3. metadata +4 -3
@@ -1,4 +1,4 @@
1
1
  ---
2
- :patch: 2
2
+ :patch: 3
3
3
  :major: 0
4
4
  :minor: 3
@@ -26,7 +26,12 @@ module Contacts
26
26
 
27
27
  def contacts(frob= nil)
28
28
  @token ||= get_token(frob) unless frob.nil?
29
- ::Flickr.new({:key => @appid, :secret => @secret, :token => @token.token}).contacts.get_list
29
+ client.contacts.get_list
30
+ end
31
+
32
+ # authenticated Flickr client. expects a Flickr::Token
33
+ def client
34
+ @client ||= ::Flickr.new({:key => @appid, :secret => @secret, :token => @token.token})
30
35
  end
31
36
 
32
37
  # returns a Flickr::Token
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: aurelian-contacts
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.2
4
+ version: 0.3.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - "Mislav Marohni\xC4\x87"
@@ -12,7 +12,7 @@ autorequire:
12
12
  bindir: bin
13
13
  cert_chain: []
14
14
 
15
- date: 2009-09-14 00:00:00 -07:00
15
+ date: 2009-09-24 00:00:00 -07:00
16
16
  default_executable:
17
17
  dependencies: []
18
18
 
@@ -39,6 +39,7 @@ files:
39
39
  - vendor/windowslivelogin.rb
40
40
  has_rdoc: false
41
41
  homepage: http://github.com/aurelian/contacts
42
+ licenses:
42
43
  post_install_message:
43
44
  rdoc_options:
44
45
  - --charset=UTF-8
@@ -59,7 +60,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
59
60
  requirements: []
60
61
 
61
62
  rubyforge_project:
62
- rubygems_version: 1.2.0
63
+ rubygems_version: 1.3.5
63
64
  signing_key:
64
65
  specification_version: 3
65
66
  summary: Ruby library for consuming Google, Yahoo!, Flickr and Windows Live contact APIs