ruby_jsonapi 1.0.1 → 1.0.2
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.
- checksums.yaml +4 -4
- data/lib/fast_jsonapi/object_serializer.rb +4 -1
- data/lib/jsonapi/serializer/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 4afdfb124a1407404e3b95bff9529959d5a10d6bec5c70fd7ac9740a09c93fee
|
4
|
+
data.tar.gz: 11c9d838417e946ee3e8d9775bdbca41f160d0d471d0c356361d4c54d79ed08b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e7287e032bb746d2858b326596e56f4cc211530ae92bf4ce61d7cd5e5942ed9f66a69ddc615f5e84db383850504d7dab15872c2f59a28d5dfb5a0676aeaacd55
|
7
|
+
data.tar.gz: 4a8c0024ea6b14d0077b08dd89c2187937067d0e34753c93da5a3d50aebdc3a8fe9a0d53a14bd4868e19b0737bb8d47573fe93c3fa803b8f30be4297b311c4db
|
@@ -5,6 +5,7 @@ require 'active_support/time'
|
|
5
5
|
require 'active_support/concern'
|
6
6
|
require 'active_support/inflector'
|
7
7
|
require 'active_support/core_ext/numeric/time'
|
8
|
+
require 'active_support/core_ext/object/blank'
|
8
9
|
require 'fast_jsonapi/helpers'
|
9
10
|
require 'fast_jsonapi/attribute'
|
10
11
|
require 'fast_jsonapi/relationship'
|
@@ -340,7 +341,9 @@ module FastJsonapi
|
|
340
341
|
return if includes.blank?
|
341
342
|
|
342
343
|
parse_includes_list(includes).each_key do |include_item|
|
343
|
-
|
344
|
+
relationships = relationships_to_serialize || {}
|
345
|
+
relationship_to_include = relationships[include_item]
|
346
|
+
|
344
347
|
raise(JSONAPI::Serializer::UnsupportedIncludeError.new(include_item, name)) unless relationship_to_include
|
345
348
|
|
346
349
|
relationship_to_include.static_serializer # called for a side-effect to check for a known serializer class.
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: ruby_jsonapi
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- JSON:API Serializer Community
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2025-04-
|
11
|
+
date: 2025-04-13 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activesupport
|