jpie 3.0.2 → 3.0.3

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: 25f2d0a13381e8be978d8eb4b65e1ea323529079d014f5303b3ea3754c9bf65b
4
- data.tar.gz: 05f1a6d190f8986d5125873e1eb7d2ebf1f24489ef6b20c0e7a7ceb293bd38a6
3
+ metadata.gz: 74099168434a717c88d4fc6ade7c97b6aa049f31fc597cd0db76e2d816a693a7
4
+ data.tar.gz: 70a2b20227fb36989590b8fd35e9bb4a27b6776569373eea9e6a7c2bf53da606
5
5
  SHA512:
6
- metadata.gz: 86fa42f334accccb4b7111b2b588ca17d264551423f250cb9d337b02e880e69b0cd543a8f7acbb103b5a6efbeec75d8bbe6e7671dc607d56c6946a694437b173
7
- data.tar.gz: 267bfdc94140019af84bdf432349e0a0ecdff03422fb66d8a4b8c234143ba66ae07ca14d46db0517fb620397537884da63014aa693a7cab5c7765980c10b3339
6
+ metadata.gz: f2cd53a342faa153971456b1a5024bb2c61b39d6f0e43345e058993c1c7c8a6f8d71b58726f28786ec6230548c2e232b30c64c06f5aae0323ae58c0b27ac7284
7
+ data.tar.gz: 35619211ebc1a5455ee003702943b078eba8c3f94a0d11e50a284ae9eab9e9f35da0ca7e5fc464a4cb3923c7ad83075923d36c4b8c2dc86c217bed20f4c6790d
@@ -39,7 +39,7 @@ module JSONAPI
39
39
  end
40
40
 
41
41
  def image_blob_with_parent?
42
- parent_record && association_name && record.content_type&.start_with?("image/")
42
+ parent_record && association_name && record.representable? && record.content_type&.start_with?("image/")
43
43
  end
44
44
 
45
45
  def variant_options_for_parent_association
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module JSONAPI
4
- VERSION = "3.0.2"
4
+ VERSION = "3.0.3"
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: jpie
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.0.2
4
+ version: 3.0.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Emil Kampp