umanni-picasa 0.0.0.3 → 0.0.0.4

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,4 +1,5 @@
1
1
  require 'picasa/client/base'
2
+ require 'multi_json'
2
3
 
3
4
  module Picasa
4
5
  class Client
@@ -10,7 +11,8 @@ module Picasa
10
11
  status, headers, body = response
11
12
  case status
12
13
  when 200
13
- return body
14
+ galleries = MultiJson.decode(body.first)
15
+ return galleries["feed"]["entry"]
14
16
  else
15
17
  raise(StandardError, "#{status.to_s} - #{body.to_s}")
16
18
  end
@@ -14,7 +14,7 @@ module Picasa
14
14
  end
15
15
 
16
16
  def self.pre
17
- 3 #nil
17
+ 4 #nil
18
18
  end
19
19
 
20
20
  def self.to_s
data/picasa.gemspec CHANGED
@@ -23,4 +23,5 @@ Gem::Specification.new do |s|
23
23
 
24
24
  s.add_dependency 'signet', [">= 0.2.4"]
25
25
  s.add_dependency 'umanni-multipart-post'
26
+ s.add_dependency 'multi_json'
26
27
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: umanni-picasa
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.0.3
4
+ version: 0.0.0.4
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -13,7 +13,7 @@ date: 2011-12-15 00:00:00.000000000Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: signet
16
- requirement: &13143140 !ruby/object:Gem::Requirement
16
+ requirement: &17589460 !ruby/object:Gem::Requirement
17
17
  none: false
18
18
  requirements:
19
19
  - - ! '>='
@@ -21,10 +21,10 @@ dependencies:
21
21
  version: 0.2.4
22
22
  type: :runtime
23
23
  prerelease: false
24
- version_requirements: *13143140
24
+ version_requirements: *17589460
25
25
  - !ruby/object:Gem::Dependency
26
26
  name: umanni-multipart-post
27
- requirement: &13142660 !ruby/object:Gem::Requirement
27
+ requirement: &17567700 !ruby/object:Gem::Requirement
28
28
  none: false
29
29
  requirements:
30
30
  - - ! '>='
@@ -32,7 +32,18 @@ dependencies:
32
32
  version: '0'
33
33
  type: :runtime
34
34
  prerelease: false
35
- version_requirements: *13142660
35
+ version_requirements: *17567700
36
+ - !ruby/object:Gem::Dependency
37
+ name: multi_json
38
+ requirement: &17565820 !ruby/object:Gem::Requirement
39
+ none: false
40
+ requirements:
41
+ - - ! '>='
42
+ - !ruby/object:Gem::Version
43
+ version: '0'
44
+ type: :runtime
45
+ prerelease: false
46
+ version_requirements: *17565820
36
47
  description: A Ruby wrapper for the Picasa Web API.
37
48
  email:
38
49
  - contato@umanni.com