govuk_content_models 43.2.0 → 44.0.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
  SHA1:
3
- metadata.gz: 69718252af0d1055100290cd75858caeb36ea56b
4
- data.tar.gz: 7ffbdffd20f5ccef041298af61f1dd5209bb00c3
3
+ metadata.gz: f89762bef8cb961a0873ce36b6f9a363663e8607
4
+ data.tar.gz: 4e94fb7f57bac083c3d49e8ff27d842c2a72a908
5
5
  SHA512:
6
- metadata.gz: 5cb07cd8956fe37cdb1fd81fb6f6455011eaee9c8d4a35d794d61a88da46a57b219ec4b05ba8324db5aeabdb648243854461ff9087ee2707ff553e784711d3f7
7
- data.tar.gz: f31c2de75902c198d4c52e1040f057aff9f7fd9aaeece6e91c8a622a9268818bea09ce1b6583116a9df05a0654439f8e9f200670e357f3cc32b67789dc82ac74
6
+ metadata.gz: 6d5688791c9a3b7f3923902615ed1965ebd5df03d46880be3e9037c9a6d131ba8135068838ab221a545aa85277caaa9e0afc6cb386b29e90f41be4ec054f1f7b
7
+ data.tar.gz: 00bb64ba1f6230856bb4b534a716a700a39dc285a3ee86939bde0ae3fde6aba909df5a0afb8b2e0f012400f301257295d4250916d79ba9e313a257dc18f9233c
data/CHANGELOG.md CHANGED
@@ -1,5 +1,9 @@
1
1
  # CHANGELOG
2
2
 
3
+ ## 44.0.0
4
+
5
+ - Archived editions are not `safe_to_preview?` anymore
6
+
3
7
  ## 43.2.0
4
8
 
5
9
  - Add Programme to the list of retired formats
@@ -266,7 +266,7 @@ class Edition
266
266
  end
267
267
 
268
268
  def safe_to_preview?
269
- true
269
+ !archived?
270
270
  end
271
271
 
272
272
  def has_sibling_in_progress?
@@ -14,6 +14,6 @@ class GuideEdition < Edition
14
14
  end
15
15
 
16
16
  def safe_to_preview?
17
- parts.any? and parts.first.slug.present?
17
+ super && parts.any? && parts.first.slug.present?
18
18
  end
19
19
  end
@@ -1,4 +1,4 @@
1
1
  module GovukContentModels
2
2
  # Changing this causes Jenkins to tag and release the gem into the wild
3
- VERSION = "43.2.0"
3
+ VERSION = "44.0.0"
4
4
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: govuk_content_models
3
3
  version: !ruby/object:Gem::Version
4
- version: 43.2.0
4
+ version: 44.0.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Paul Battley