govuk_content_models 43.0.1 → 43.1.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +4 -0
- data/app/models/artefact.rb +2 -0
- data/app/models/edition.rb +5 -0
- data/lib/govuk_content_models/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 410586eb880e0e1c9d3863f8af2a96e449fae543
|
4
|
+
data.tar.gz: d998db618fbd7add4adbec1f39ba80a1f8d6bd26
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 1779b8d48794e322128b9e5afa911411ce376ec62e08997587c5a1f7d24b05a6bde14bb262080cf81b6d04a7b6f7caf2634383767f0ba081cebdf5a2671437a6
|
7
|
+
data.tar.gz: d527048768ab9857204e9b69266b27d3b4ac6c5dbf92dc7abccfe80351cccdee0201b615cd0a5682e362d5794d8c7a2fab38d337c517110c5ddccc34633d3377
|
data/CHANGELOG.md
CHANGED
data/app/models/artefact.rb
CHANGED
data/app/models/edition.rb
CHANGED
@@ -100,9 +100,14 @@ class Edition
|
|
100
100
|
end
|
101
101
|
|
102
102
|
def can_create_new_edition?
|
103
|
+
return false if retired_format?
|
103
104
|
!scheduled_for_publishing? && subsequent_siblings.in_progress.empty?
|
104
105
|
end
|
105
106
|
|
107
|
+
def retired_format?
|
108
|
+
Artefact::RETIRED_FORMATS.include? format.downcase
|
109
|
+
end
|
110
|
+
|
106
111
|
def major_updates_in_series
|
107
112
|
history.published.major_updates
|
108
113
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: govuk_content_models
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 43.0
|
4
|
+
version: 43.1.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Paul Battley
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2017-03-
|
11
|
+
date: 2017-03-15 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bson_ext
|