govuk_publishing_components 21.19.1 → 21.20.0

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
  SHA256:
3
- metadata.gz: 05d62ecb620874af94ff8b34d2c52a8762956dba621035a8ac0d57677c77cb40
4
- data.tar.gz: 5f26913bb9f131ca1b082e68fc9c8e0f2664b3f01031163af345a9464395ec61
3
+ metadata.gz: 8f0d03eff3ff50934798d21ab6e6af385c305930fbfff876e4510773ba4e0dcb
4
+ data.tar.gz: '0708bf5b8626c98f767db02703a9872df4548587e6277ed681f6044981febda1'
5
5
  SHA512:
6
- metadata.gz: 184a5e004dadcdf7d32553a4199cb5f67fe3860de566ff3fd2de91f76871aefd2f9a2fecf0090db5e997598fdca005280e2fc68744df5806db82a375a2ad0328
7
- data.tar.gz: 16359a570aed7487a567eef9d2c699c13f853145ed62da6de78e58c37eadef433b9c694a495bd4c6b5f68083bbe628618d5d7e2bd63bda80008f7590de38d11c
6
+ metadata.gz: 32d93a2eb3856b27e35b21df3815fd71928f611917d880d329a684efaf01905a4ee8935367da228b55863a4b22964b77c7794dbbcc0f823ff1c6e92ff8487148
7
+ data.tar.gz: cd5d01ec8df0c2fe720bdadf66a979fb6f0681dcaf74b6c0c8dbead259bcf78073c575cfc2aac5e5a637517ce2b7b5f4e3b1bd5a97de864d15918aff42e293aa
@@ -49,7 +49,7 @@ module GovukPublishingComponents
49
49
  end
50
50
 
51
51
  def content_has_curated_related_items?
52
- content_item.dig("links", "ordered_related_items").present?
52
+ content_item.dig("links", "ordered_related_items").present? && content_item.dig("links", "parent").present?
53
53
  end
54
54
 
55
55
  def content_is_tagged_to_a_live_taxon?
@@ -1,3 +1,3 @@
1
1
  module GovukPublishingComponents
2
- VERSION = '21.19.1'.freeze
2
+ VERSION = '21.20.0'.freeze
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: govuk_publishing_components
3
3
  version: !ruby/object:Gem::Version
4
- version: 21.19.1
4
+ version: 21.20.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - GOV.UK Dev
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2020-01-14 00:00:00.000000000 Z
11
+ date: 2020-01-16 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: gds-api-adapters