wcc-contentful 1.7.0 → 1.7.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: 9c8c705f0a469c62b48b4c0635d9ef9226e4c06ae5a51b1e3798c207bd17db20
4
- data.tar.gz: b162610307104a0c5b4fbeb94ceb16806592b5dfefe766a1d538af33a1aa3452
3
+ metadata.gz: c6786c1c5b01c8b85965d264e6a18d7090078a0641c277150dad3e7b329404f3
4
+ data.tar.gz: f50c99943101b6939dd45cc0c47c2d1dd238efc316f0c90b2ae6dc166f0998ea
5
5
  SHA512:
6
- metadata.gz: 82a7b8759d7d28ced49cb72d790dae577bff3a6f876738efc2fbd6bcc1f5d6638a8d9f777b7046b36ef9b802b2b6e343e5e13c02fa81a7b8770a6b3b4596151b
7
- data.tar.gz: 580df9b2f644ae00ba75b3da1e21ceacce74a0b3f0238a6fce508d9d3d0a3d7734dc5fde6b232841b4218135af49363b75c7abd974548ad769a3258ce1ce25e4
6
+ metadata.gz: 85a4c6efdcc83997319363e10cbb54ce0e76b099f8ccee43d67aa07e70d7ddb36eb2c4bf2ca79d0da98a35805c1ea39e47d8c435dcbb7b9135c77f272dc52f5b
7
+ data.tar.gz: 90de4b1477610b3eaf73312da16864e92d42105a37334335f58ca3939e6b90f4c79aeb9973acd7a5d3d702e2d154934509158e5796674295376a630ae3333a76
@@ -4,7 +4,7 @@ WCC::Contentful::Metadata =
4
4
  Struct.new(:raw) do
5
5
  def tags
6
6
  @tags ||=
7
- Array(raw['tags']).map do |tag|
7
+ Array(raw['tags'] || []).map do |tag|
8
8
  WCC::Contentful::Link.new(tag) if tag.is_a?(Hash)
9
9
  end
10
10
  end
@@ -89,7 +89,7 @@ module WCC::Contentful
89
89
  )
90
90
 
91
91
  @metadata = WCC::Contentful::Metadata.new(
92
- raw['metadata']
92
+ raw['metadata'] || {}
93
93
  )
94
94
 
95
95
  typedef.fields.each_value do |f|
@@ -2,6 +2,6 @@
2
2
 
3
3
  module WCC
4
4
  module Contentful
5
- VERSION = '1.7.0'
5
+ VERSION = '1.7.1'
6
6
  end
7
7
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: wcc-contentful
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.7.0
4
+ version: 1.7.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Watermark Dev
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2024-11-25 00:00:00.000000000 Z
11
+ date: 2024-11-26 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: coveralls