fb_graph 2.7.11 → 2.7.12
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/VERSION +1 -1
- data/lib/fb_graph/node.rb +10 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: e7b3801d7ed0cb7e2f787f43b3034bb679f009d9
|
4
|
+
data.tar.gz: a91827d9f0f849a266ad56a4dced9aacd89a5c24
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 408fdf0ba242e24032bc1867c6601841e1d36e240af67e0376cc489fcb4e8c9d62ee52bff6ff7c9382e78d811eb72596e06faf7da73951f5560636b2c3268b6d
|
7
|
+
data.tar.gz: 687f00030098daac44bf893b95012d8091862b6180aa057e50feba7f7ef5ca03024d2ca59c2176a4c5b153f6152fc9d4b40ab8fc5848918678e705404bfc9744
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
2.7.
|
1
|
+
2.7.12
|
data/lib/fb_graph/node.rb
CHANGED
@@ -144,7 +144,16 @@ module FbGraph
|
|
144
144
|
# You should handle this case without MultiJson.
|
145
145
|
response.body.gsub('"', '')
|
146
146
|
else
|
147
|
-
MultiJson.load(response.body)
|
147
|
+
hash_or_array = MultiJson.load(response.body)
|
148
|
+
case hash_or_array
|
149
|
+
when Hash
|
150
|
+
hash_or_array.with_indifferent_access
|
151
|
+
when Array
|
152
|
+
# NOTE:
|
153
|
+
# I think this case is FB's bug though.
|
154
|
+
# ref) https://github.com/nov/fb_graph/issues/350
|
155
|
+
hash_or_array.collect(&:with_indifferent_access)
|
156
|
+
end
|
148
157
|
end
|
149
158
|
|
150
159
|
if (200...300).include?(response.status)
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: fb_graph
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.7.
|
4
|
+
version: 2.7.12
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- nov matake
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-
|
11
|
+
date: 2014-04-05 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: httpclient
|
@@ -516,7 +516,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
516
516
|
version: '0'
|
517
517
|
requirements: []
|
518
518
|
rubyforge_project:
|
519
|
-
rubygems_version: 2.2.
|
519
|
+
rubygems_version: 2.2.1
|
520
520
|
signing_key:
|
521
521
|
specification_version: 4
|
522
522
|
summary: A full-stack Facebook Graph API wrapper in Ruby.
|