jsonapi-materializer 3.0.0 → 3.0.1

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: c287ea52f8d9f995a5c91f7e50f6cba792bc4ca365e8ef812d7a469a1a61d194
4
- data.tar.gz: 72cc3904868b56e90520245a839c269115a6dc506f8f06314f9315eac328657f
3
+ metadata.gz: c717389aff888cf557007b45e6a9d0b9384b62c442f521cfb9ab85fe15562e47
4
+ data.tar.gz: 43c5e7e2d145117253094402cd561dfe6fa298815320e5dddd3be3eeae17855a
5
5
  SHA512:
6
- metadata.gz: 544c4346e3d48c094efae3c518fcf3cb7dbd692b37b876a1e2cfc77d2af256ce07441999f207b9ca336e19621a44a5fdfe02358f88907b17c5949e613358f041
7
- data.tar.gz: 34f5d566e30b8ac81fff03976c4a16a48cffdeaa858295553d12a051e936e79b273c4d42c77272c4d76b5f02009fa78987255f2b83422a793c2978fa0011ec77
6
+ metadata.gz: bf5e65b10d88b6f9216be68505a7fa98b68ff0fefb45d49e60004bf15ff2e76501e57c02c0858b990f68d9f770405e07aae8ddaeb4ac562606660d40123060d0
7
+ data.tar.gz: 7c9e684d9d3f1ae3322990580b684b47101f1f4c7585a74f9fb7b06715ec4f6fb979d7ed051c00f623f70ee395fd94ec73cd955d04c702aa2dcef9c05ac6d9dd
@@ -37,12 +37,12 @@ module JSONAPI
37
37
  )
38
38
  end
39
39
  when :one
40
- raise StandardError, "couldn't find a relationship by the name #{from} on #{subject.class}" unless fetch_relation(subject).present?
41
-
42
- materializer_class.new(
43
- **subject.raw,
44
- object: fetch_relation(subject)
45
- )
40
+ if fetch_relation(subject).present?
41
+ materializer_class.new(
42
+ **subject.raw,
43
+ object: fetch_relation(subject)
44
+ )
45
+ end
46
46
  end
47
47
  end
48
48
 
@@ -2,6 +2,6 @@
2
2
 
3
3
  module JSONAPI
4
4
  module Materializer
5
- VERSION = "3.0.0"
5
+ VERSION = "3.0.1"
6
6
  end
7
7
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: jsonapi-materializer
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.0.0
4
+ version: 3.0.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Kurtis Rainbolt-Greene