mogli 0.0.19 → 0.0.20

Sign up to get free protection for your applications and to get access to all the features.
Files changed (2) hide show
  1. data/lib/mogli/client.rb +1 -0
  2. metadata +4 -4
@@ -132,6 +132,7 @@ module Mogli
132
132
  def extract_hash_or_array(hash_or_array,klass)
133
133
  return nil if hash_or_array == false
134
134
  return hash_or_array if hash_or_array.nil? or hash_or_array.kind_of?(Array)
135
+ hash_or_array = hash_or_array.parsed_response if hash_or_array.respond_to?(:parsed_response)
135
136
  return extract_fetching_array(hash_or_array,klass) if hash_or_array.has_key?("data")
136
137
  return hash_or_array
137
138
  end
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: mogli
3
3
  version: !ruby/object:Gem::Version
4
- hash: 57
4
+ hash: 55
5
5
  prerelease: false
6
6
  segments:
7
7
  - 0
8
8
  - 0
9
- - 19
10
- version: 0.0.19
9
+ - 20
10
+ version: 0.0.20
11
11
  platform: ruby
12
12
  authors:
13
13
  - Mike Mangino
@@ -15,7 +15,7 @@ autorequire:
15
15
  bindir: bin
16
16
  cert_chain: []
17
17
 
18
- date: 2011-01-13 00:00:00 -05:00
18
+ date: 2011-01-19 00:00:00 -05:00
19
19
  default_executable:
20
20
  dependencies:
21
21
  - !ruby/object:Gem::Dependency