grape-jsonapi-resources 0.0.4 → 0.0.5

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 58e000f1c8e32f6e080eb2f7585b57d76dfd8b97
4
- data.tar.gz: 098060f3d2a658ab7659de650643faac924f5232
3
+ metadata.gz: e2612bb8fb2a4fcf33123c3603b45989f0e3bc83
4
+ data.tar.gz: fd35de00e3f4ed38ca10650dc6164ea243da9f8c
5
5
  SHA512:
6
- metadata.gz: d2ed58657a2bfb25229afff893f36cc65188ad7ef9c9ac077ebdf16c0a934c133caa06967d65429762a43f0d0e1c4450f86ce93f28a4c0a14f9e3da5caf7e0c1
7
- data.tar.gz: 0b6ba3bdef1be2093f85e66c30f23903230290d9eba55870d5bf2b84851adc86b69a3b5d40b87b8e203bf7398bfbdad7efd8bc1c3b13df3f9630245cd417be5a
6
+ metadata.gz: 3879c045f343a096b192b8248120ce4236720ac55b0f0853e627270d98181b6791eca6f644adf3295549428fdd1bb6afef0b87e8dce89dc7f800d8d7326e1392
7
+ data.tar.gz: f92427344b40b480f2de6926ccdc0baecba2454d9aa41406a614eb6203d230a7925c26bbff6f9e8aa56c22ce1c62037dfae98b2ee4f8f3d2b02fb2fb5ca9c7f4
@@ -22,7 +22,7 @@ module Grape
22
22
  if resource.blank?
23
23
  # Return blank object
24
24
  blank_return = {}
25
- if resource.is_a?(Array)
25
+ if resource.respond_to?(:to_ary)
26
26
  blank_return[:data] = []
27
27
  else
28
28
  blank_return[:data] = {}
@@ -1,5 +1,5 @@
1
1
  module Grape
2
2
  module JSONAPIResources
3
- VERSION = '0.0.4'
3
+ VERSION = '0.0.5'
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: grape-jsonapi-resources
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.4
4
+ version: 0.0.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Cary Dunn
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-12-08 00:00:00.000000000 Z
11
+ date: 2015-12-10 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: grape