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.
Files changed (4) hide show
  1. checksums.yaml +4 -4
  2. data/VERSION +1 -1
  3. data/lib/fb_graph/node.rb +10 -1
  4. metadata +3 -3
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 53d4bc565aeefdbd07c6b278c3eccf41439c5c8b
4
- data.tar.gz: ba2c0694541f8242ec1f2e7d831b77931021711c
3
+ metadata.gz: e7b3801d7ed0cb7e2f787f43b3034bb679f009d9
4
+ data.tar.gz: a91827d9f0f849a266ad56a4dced9aacd89a5c24
5
5
  SHA512:
6
- metadata.gz: a25240817ef0614253ea08e88123c6b7760ef9945c58d509bc8368c27e949fbe9447073167dcd797f96b4426856a54c1dc158e9c57e55d010fe24858a0299351
7
- data.tar.gz: 45e79baedc80e3e7f6d392720ad520d949000618e94d1b69f80206ddfb378aa0ff9dc8be0a73b78dd608ee87f2e10d1339082a3bff526461b30a658e50f2d220
6
+ metadata.gz: 408fdf0ba242e24032bc1867c6601841e1d36e240af67e0376cc489fcb4e8c9d62ee52bff6ff7c9382e78d811eb72596e06faf7da73951f5560636b2c3268b6d
7
+ data.tar.gz: 687f00030098daac44bf893b95012d8091862b6180aa057e50feba7f7ef5ca03024d2ca59c2176a4c5b153f6152fc9d4b40ab8fc5848918678e705404bfc9744
data/VERSION CHANGED
@@ -1 +1 @@
1
- 2.7.11
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).with_indifferent_access
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.11
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-03-20 00:00:00.000000000 Z
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.0
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.