metadata_presenter 0.21.0 → 0.21.1

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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: ca4bd2a3c36d8d5c7c21cf4105aacb4b5cdd5e347a976c7a83d21dc473b35a86
4
- data.tar.gz: eb4131ac71104e5c62772cf0a93176156eb946d7d968c1c1e36a92e9e2a5ad36
3
+ metadata.gz: b492d7850cbbe22118d9cfcf26b716b0eec04dcd9186742425bfc263dc6fd1e7
4
+ data.tar.gz: 68fbff4e5690f0f065cca03ba50988ac4712f41acedaf54358f40e554ed74c0d
5
5
  SHA512:
6
- metadata.gz: '068e67ec41b9add6e7d9629656dc0a3d39ed32ec0b374ba01599a0b29ec275db7296ebfd120eecd428d13c403cf4edb25a7843f3beba362004e723c74f75dd79'
7
- data.tar.gz: 85c7e4caf55464ec1f95f85519f90aabd16c9324889daed683617736a5f54034645dc302248690ccdcd21ba908f4f930d06d421e70a1594e2fe48bb43658b68b
6
+ metadata.gz: 57b3d6f87aea9c9ac9692da45db124daeaa257fbf192368ae63d666065c83dbaa9c8452249d1af1ea79f4ca9c08f76ef77056cd0aabacb800f4d0a08913cf6d2
7
+ data.tar.gz: 6a3dd86d25ec4aee3eb3cf4803cb7f9a2ae39ced9a4c0acd796324ee83826cb893ac14e47367559bcff9143c7c90063a3c61ea8fef18b42499cdafc973b71797
@@ -0,0 +1,72 @@
1
+ {
2
+ "_id": "service.base",
3
+ "_type": "service.base",
4
+ "service_name": "Service name",
5
+ "created_by": "4634ec01-5618-45ec-a4e2-bb5aa587e751",
6
+ "configuration": {
7
+ "service": {
8
+ "_id": "config.service",
9
+ "_type": "config.service"
10
+ },
11
+ "meta": {
12
+ "_id": "config.meta",
13
+ "_type": "config.meta",
14
+ "items": [
15
+ {
16
+ "_id": "config.meta--link",
17
+ "_type": "link",
18
+ "href": "/cookies",
19
+ "text": "Cookies"
20
+ },
21
+ {
22
+ "_id": "config.meta--link--2",
23
+ "_type": "link",
24
+ "href": "/privacy",
25
+ "text": "Privacy"
26
+ },
27
+ {
28
+ "_id": "config.meta--link--3",
29
+ "_type": "link",
30
+ "href": "/accessibility",
31
+ "text": "Accessibility"
32
+ }
33
+ ]
34
+ }
35
+ },
36
+ "pages": [
37
+ {
38
+ "_uuid": "9626b2e9-5ef0-4070-8331-ac55151b22c4",
39
+ "_id": "page.start",
40
+ "_type": "page.start",
41
+ "heading": "Service name goes here",
42
+ "lede": "Use this service to:",
43
+ "body": "Use this service to:\r\n\r\n* do something\r\n* update your name, address or other details\r\n* do something else\r\n\r\nRegistering takes around 5 minutes.",
44
+ "before_you_start": "###Before you start\r\nYou can also register by post.\r\n\r\nThe online service is also available in Welsh (Cymraeg).\r\n\r\nYou cannot register for this service if you’re in the UK illegally.",
45
+ "steps": [],
46
+ "url": "/"
47
+ },
48
+ {
49
+ "_uuid": "1ed3e4ad-5098-41c9-b4b6-426e89f7804e",
50
+ "_id": "page.how-many-lights",
51
+ "_type": "page.content",
52
+ "section_heading": "Chain of Command",
53
+ "heading": "Tell me how many lights you see",
54
+ "body": "There are four lights!",
55
+ "components": [
56
+ {
57
+ "_id": "name_text_1",
58
+ "_type": "text",
59
+ "label": "Full name",
60
+ "name": "name_text_1",
61
+ "validation": {
62
+ "required": true,
63
+ "max_length": 10,
64
+ "min_length": 2
65
+ }
66
+ }
67
+ ],
68
+ "url": "how-many-lights"
69
+ }
70
+ ],
71
+ "locale": "en"
72
+ }
@@ -0,0 +1,60 @@
1
+ {
2
+ "_id": "service.base",
3
+ "_type": "service.base",
4
+ "service_name": "Service name",
5
+ "created_by": "4634ec01-5618-45ec-a4e2-bb5aa587e751",
6
+ "configuration": {
7
+ "service": {
8
+ "_id": "config.service",
9
+ "_type": "config.service"
10
+ },
11
+ "meta": {
12
+ "_id": "config.meta",
13
+ "_type": "config.meta",
14
+ "items": [
15
+ {
16
+ "_id": "config.meta--link",
17
+ "_type": "link",
18
+ "href": "/cookies",
19
+ "text": "Cookies"
20
+ },
21
+ {
22
+ "_id": "config.meta--link--2",
23
+ "_type": "link",
24
+ "href": "/privacy",
25
+ "text": "Privacy"
26
+ },
27
+ {
28
+ "_id": "config.meta--link--3",
29
+ "_type": "link",
30
+ "href": "/accessibility",
31
+ "text": "Accessibility"
32
+ }
33
+ ]
34
+ }
35
+ },
36
+ "pages": [
37
+ {
38
+ "_uuid": "9626b2e9-5ef0-4070-8331-ac55151b22c4",
39
+ "_id": "page.start",
40
+ "_type": "page.start",
41
+ "heading": "Service name goes here",
42
+ "lede": "Use this service to:",
43
+ "body": "Use this service to:\r\n\r\n* do something\r\n* update your name, address or other details\r\n* do something else\r\n\r\nRegistering takes around 5 minutes.",
44
+ "before_you_start": "###Before you start\r\nYou can also register by post.\r\n\r\nThe online service is also available in Welsh (Cymraeg).\r\n\r\nYou cannot register for this service if you’re in the UK illegally.",
45
+ "steps": [],
46
+ "url": "/"
47
+ },
48
+ {
49
+ "_uuid": "b238a22f-c180-48d0-a7d9-8aad2036f1f2",
50
+ "_id": "page._confirmation",
51
+ "_type": "page.confirmation",
52
+ "body": "You'll receive a confirmation email",
53
+ "heading": "Complaint sent",
54
+ "lede": "Optional lede",
55
+ "url": "/confirmation",
56
+ "components": []
57
+ }
58
+ ],
59
+ "locale": "en"
60
+ }
@@ -11,7 +11,6 @@ module MetadataPresenter
11
11
 
12
12
  def service_metadata
13
13
  metadata_fixture(:version)
14
- JSON.parse(File.read(fixtures_directory.join('version.json')))
15
14
  end
16
15
 
17
16
  def metadata_fixture(fixture_name)
@@ -1,3 +1,3 @@
1
1
  module MetadataPresenter
2
- VERSION = '0.21.0'
2
+ VERSION = '0.21.1'
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: metadata_presenter
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.21.0
4
+ version: 0.21.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - MoJ Online
@@ -300,6 +300,8 @@ files:
300
300
  - default_metadata/string/error.number.json
301
301
  - default_metadata/string/error.required.json
302
302
  - default_text/content.json
303
+ - fixtures/invalid_content_page.json
304
+ - fixtures/no_component_page.json
303
305
  - fixtures/non_finished_service.json
304
306
  - fixtures/service.json
305
307
  - fixtures/version.json