mogli 0.0.19 → 0.0.20
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.
- data/lib/mogli/client.rb +1 -0
- metadata +4 -4
data/lib/mogli/client.rb
CHANGED
|
@@ -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:
|
|
4
|
+
hash: 55
|
|
5
5
|
prerelease: false
|
|
6
6
|
segments:
|
|
7
7
|
- 0
|
|
8
8
|
- 0
|
|
9
|
-
-
|
|
10
|
-
version: 0.0.
|
|
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-
|
|
18
|
+
date: 2011-01-19 00:00:00 -05:00
|
|
19
19
|
default_executable:
|
|
20
20
|
dependencies:
|
|
21
21
|
- !ruby/object:Gem::Dependency
|