grape-jsonapi-resources 0.0.5 → 0.0.6

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: e2612bb8fb2a4fcf33123c3603b45989f0e3bc83
4
- data.tar.gz: fd35de00e3f4ed38ca10650dc6164ea243da9f8c
3
+ metadata.gz: 575cc7e2962074d9f9e4ffb125db8b851e991e28
4
+ data.tar.gz: b1af375ccf4b1bf922704ce91b703bf2f6d23cad
5
5
  SHA512:
6
- metadata.gz: 3879c045f343a096b192b8248120ce4236720ac55b0f0853e627270d98181b6791eca6f644adf3295549428fdd1bb6afef0b87e8dce89dc7f800d8d7326e1392
7
- data.tar.gz: f92427344b40b480f2de6926ccdc0baecba2454d9aa41406a614eb6203d230a7925c26bbff6f9e8aa56c22ce1c62037dfae98b2ee4f8f3d2b02fb2fb5ca9c7f4
6
+ metadata.gz: edac78ce14e4248f4222c506902402afc908bcd978f45ac38b36edf9cc3b0578f854df65a5fd86b3e7c40205cc7ab51045c2c9788c1582c036979ec51996bfda
7
+ data.tar.gz: 941743ea6628246b0b04afd9874f8a38f99e22789a0916725d4d55b000f72679201fa7ab25046a5ab6a2e839d7bc0894048b52f92504a132ab8c21a7b8fa1880
@@ -36,8 +36,9 @@ module Grape
36
36
 
37
37
  resource_instances = nil
38
38
  if resource.respond_to?(:to_ary)
39
- resource_instances = resource.to_ary.collect do |each_resource|
40
- resource_class.new(each_resource, context)
39
+ resource_instances = resource.to_ary.compact.collect do |each_resource|
40
+ each_resource_class = resource_class_for(each_resource)
41
+ each_resource_class.new(each_resource, context)
41
42
  end
42
43
  else
43
44
  resource_instances = resource_class.new(resource, context)
@@ -1,5 +1,5 @@
1
1
  module Grape
2
2
  module JSONAPIResources
3
- VERSION = '0.0.5'
3
+ VERSION = '0.0.6'
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.5
4
+ version: 0.0.6
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-10 00:00:00.000000000 Z
11
+ date: 2016-08-16 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: grape
@@ -145,7 +145,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
145
145
  version: '0'
146
146
  requirements: []
147
147
  rubyforge_project:
148
- rubygems_version: 2.4.5.1
148
+ rubygems_version: 2.5.1
149
149
  signing_key:
150
150
  specification_version: 4
151
151
  summary: Use jsonapi-resources in grape