govuk_content_models 17.2.1 → 18.0.0

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.
data/CHANGELOG.md CHANGED
@@ -1,3 +1,8 @@
1
+ ## 18.0.0
2
+
3
+ * BREAKING CHANGE: Remove specialist-document Artefact kind.
4
+ * Add new format for medical_safety_alert for an Artefact.
5
+
1
6
  ## 17.2.1
2
7
 
3
8
  * Add new format for drug_safety_update for an Artefact
@@ -89,7 +89,7 @@ class Artefact
89
89
  "manual",
90
90
  "manual-change-history",
91
91
  "manual-section",
92
- "specialist-document"], # Deprecated: Leaving in place for legacy reasons. In future use explicit document_type
92
+ "medical_safety_alert"],
93
93
  "finder-api" => ["finder"],
94
94
  "whitehall" => ["announcement",
95
95
  "authored_article",
@@ -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 = "17.2.1"
3
+ VERSION = "18.0.0"
4
4
  end
@@ -78,11 +78,11 @@ class SlugTest < ActiveSupport::TestCase
78
78
 
79
79
  context "Specialist documents" do
80
80
  should "all url nested one level deep" do
81
- assert document_with_slug("some-finder/my-specialist-document", kind: "specialist-document").valid?
81
+ assert document_with_slug("some-finder/my-specialist-document", kind: "cma_case").valid?;
82
82
  end
83
83
 
84
84
  should "not allow deeper nesting" do
85
- refute document_with_slug("some-finder/my-specialist-document/not-allowed", kind: "specialist-document").valid?
85
+ refute document_with_slug("some-finder/my-specialist-document/not-allowed", kind: "cma_case").valid?
86
86
  end
87
87
  end
88
88
 
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: 17.2.1
4
+ version: 18.0.0
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -460,7 +460,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
460
460
  version: '0'
461
461
  segments:
462
462
  - 0
463
- hash: -3476364039394131863
463
+ hash: 2918385246882199762
464
464
  required_rubygems_version: !ruby/object:Gem::Requirement
465
465
  none: false
466
466
  requirements:
@@ -469,7 +469,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
469
469
  version: '0'
470
470
  segments:
471
471
  - 0
472
- hash: -3476364039394131863
472
+ hash: 2918385246882199762
473
473
  requirements: []
474
474
  rubyforge_project:
475
475
  rubygems_version: 1.8.23