govuk_content_models 44.0.0 → 44.0.1
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/validators/slug_validator.rb +2 -1
- 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: d12e1e76f0bd53224eb4a3ddcd7c66b825737d58
|
4
|
+
data.tar.gz: 8e048105ad319bd831a3e306eb94044ae45637a0
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 695d897919493b44d974ec827d111b0d23bd6ea14c93d373589a83c913d0b620efdccd5d469954a627b34184bd9e226b0df85fdd7b1f93e155d5c154548fb981
|
7
|
+
data.tar.gz: 570f1490489880fc04218ebadc61c1b981c0696d15abbb6a685a2e94d519ae17f6af38087740fff0822970559788359d2f1e46883fcaafcad21b73c6bf7d0c4b
|
data/CHANGELOG.md
CHANGED
@@ -53,10 +53,11 @@ protected
|
|
53
53
|
|
54
54
|
class DonePageValidator < InstanceValidator
|
55
55
|
def applicable?
|
56
|
-
|
56
|
+
of_kind?("completed_transaction")
|
57
57
|
end
|
58
58
|
|
59
59
|
def validate!
|
60
|
+
record.errors[attribute] << "Done page slugs must have a done/ prefix" unless starts_with?("done/")
|
60
61
|
url_after_first_slash_is_valid_slug!
|
61
62
|
end
|
62
63
|
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: 44.0.
|
4
|
+
version: 44.0.1
|
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-23 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bson_ext
|