facebook-cli 1.6.4 → 1.6.5

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.
Files changed (4) hide show
  1. checksums.yaml +4 -4
  2. data/lib/fbcli.rb +5 -1
  3. data/lib/fbcli/version.rb +1 -1
  4. metadata +2 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 44cd5c09bf33329300a538b684180914d8a72b9a
4
- data.tar.gz: 3e8f8dc3019bb2dad9c27e597f3e49effe2a0000
3
+ metadata.gz: 72a03921f7c2402bbbd1d00b355af91ea0ff73c1
4
+ data.tar.gz: 6bd6a91404c78fda14e0c279de752707ccd8c88c
5
5
  SHA512:
6
- metadata.gz: b3a0b38a973de45ab3d34960cf5fe2bc87e9cda0717e5039beb29c30008af2b129ec63d830ce10d6f2a37adfdbaea074b7462a05b4e748b75936e39475110bcb
7
- data.tar.gz: a9c41b9fa2f8f23180e37751115767d5e4f06d7be44555f68a02df658306409ce9be8d7ad2d9cb3449b13898f2665cdd53e481ffd530006b1b1c189e1793252b
6
+ metadata.gz: a621ff5e7aff3d16b1fba6ef61124a0087ecac1590390da666651e3b562e4cfad473bd6b3d4927553102b9e2fc191d8e9347772142f2251329d430cd371202f7
7
+ data.tar.gz: 8f30408b9453d17fc192df93abe02c9d72ffc49b4a26a5453cfeddfe545447871508b11774890886240a3bd8c9fa948865c9d7da5365b96f0cf04bfcce1c8621
@@ -248,7 +248,11 @@ command :api do |c|
248
248
 
249
249
  # Nicely format JSON result if not --raw
250
250
  unless options['raw']
251
- if res.class == Hash
251
+ # It appears that Hash and Koala::Facebook::API::GraphCollection objects
252
+ # are JSON, while Array results are not.
253
+ #
254
+ # TODO: This heuristic could stand to be revised or better documented
255
+ if res.class != Array
252
256
  res = JSON.pretty_generate res
253
257
  end
254
258
  end
@@ -1,3 +1,3 @@
1
1
  module FBCLI
2
- VERSION = '1.6.4'
2
+ VERSION = '1.6.5'
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: facebook-cli
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.6.4
4
+ version: 1.6.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ildar Sagdejev
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-10-22 00:00:00.000000000 Z
11
+ date: 2017-10-31 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: koala