metadata_presenter 0.1.1 → 0.1.2
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 +4 -4
- data/lib/fixtures/non_finished_service.json +123 -0
- data/lib/fixtures/service.json +51 -0
- data/lib/fixtures/version.json +146 -0
- data/lib/metadata_presenter/engine.rb +5 -0
- data/lib/metadata_presenter/version.rb +1 -1
- metadata +4 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 980f55dc2fb23ae04b80fbe0451030e4b20bb0f9981a85928fb724a7bbf07d4a
|
|
4
|
+
data.tar.gz: d213b5fcd20600ab4b1eb4a0e731388d5ed5746fb9424979a852332de789ccaa
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: bca5d7a79da2185c616ef72da9d5374d08d5318f86b0f87bc3d546997f13655e2269f3bc3e3717213df3f05ebfed966e34aae07dd9a7bebebe99c527255e38b9
|
|
7
|
+
data.tar.gz: 3b4c67f54561246e93f96c822bf3c933d989b89051255b113e9027400a97df25d2c9fd526ecf7fff1f80a65958501f461e3fd5eefca52a2e64a1cca729990446
|
|
@@ -0,0 +1,123 @@
|
|
|
1
|
+
{
|
|
2
|
+
"_id": "service.base",
|
|
3
|
+
"_type": "service.base",
|
|
4
|
+
"service_id": "d243f5c0-e8a2-4b13-982c-7b5f3fa128cf",
|
|
5
|
+
"service_name": "Main fixture to test Form builder",
|
|
6
|
+
"created_by": "4634ec01-5618-45ec-a4e2-bb5aa587e751",
|
|
7
|
+
"configuration": {
|
|
8
|
+
"service": {
|
|
9
|
+
"_id": "config.service",
|
|
10
|
+
"_type": "config.service",
|
|
11
|
+
"homepage_url": "https://www.gov.uk",
|
|
12
|
+
"service_email_address": "moj-online@digital.justice.gov.uk",
|
|
13
|
+
"service_url": "page.start"
|
|
14
|
+
},
|
|
15
|
+
"meta": {
|
|
16
|
+
"_id": "config.meta",
|
|
17
|
+
"_type": "config.meta",
|
|
18
|
+
"items": [
|
|
19
|
+
{
|
|
20
|
+
"_id": "config.meta--link",
|
|
21
|
+
"_type": "link",
|
|
22
|
+
"href": "/cookies",
|
|
23
|
+
"text": "Cookies"
|
|
24
|
+
},
|
|
25
|
+
{
|
|
26
|
+
"_id": "config.meta--link--2",
|
|
27
|
+
"_type": "link",
|
|
28
|
+
"href": "/privacy",
|
|
29
|
+
"text": "Privacy"
|
|
30
|
+
},
|
|
31
|
+
{
|
|
32
|
+
"_id": "config.meta--link--3",
|
|
33
|
+
"_type": "link",
|
|
34
|
+
"href": "/accessibility",
|
|
35
|
+
"text": "Accessibility"
|
|
36
|
+
}
|
|
37
|
+
]
|
|
38
|
+
}
|
|
39
|
+
},
|
|
40
|
+
"pages": [
|
|
41
|
+
{
|
|
42
|
+
"_id": "page.start",
|
|
43
|
+
"_type": "page.start",
|
|
44
|
+
"body": "You cannot use this form to complain about:\r\n\r\n* the result of a case\r\n* a judge, magistrate, coroner or member of a tribunal\r\n\r\nThis online form is also available in [Welsh (Cymraeg)](https://complain-about-a-court-or-tribunal.form.service.justice.gov.uk/cy).",
|
|
45
|
+
"heading": "Complain about a court or tribunal",
|
|
46
|
+
"lede": "Your complaint will not affect your case.",
|
|
47
|
+
"steps": [
|
|
48
|
+
"page.name",
|
|
49
|
+
"page.email-address",
|
|
50
|
+
"page.parent_name"
|
|
51
|
+
],
|
|
52
|
+
"url": "/"
|
|
53
|
+
},
|
|
54
|
+
{
|
|
55
|
+
"_id": "page.name",
|
|
56
|
+
"_type": "page.singlequestion",
|
|
57
|
+
"components": [
|
|
58
|
+
{
|
|
59
|
+
"_id": "page.name--text.auto_name__1",
|
|
60
|
+
"_type": "text",
|
|
61
|
+
"label": "Full name",
|
|
62
|
+
"name": "full_name",
|
|
63
|
+
"validation": {
|
|
64
|
+
"required": true,
|
|
65
|
+
"max_length": 10,
|
|
66
|
+
"min_length": 2
|
|
67
|
+
}
|
|
68
|
+
}
|
|
69
|
+
],
|
|
70
|
+
"heading": "Your name",
|
|
71
|
+
"url": "/name"
|
|
72
|
+
},
|
|
73
|
+
{
|
|
74
|
+
"_id": "page.email-address",
|
|
75
|
+
"_type": "page.singlequestion",
|
|
76
|
+
"heading": "Email address",
|
|
77
|
+
"components": [
|
|
78
|
+
{
|
|
79
|
+
"_id": "page.email-address--email.auto_name__2",
|
|
80
|
+
"_type": "text",
|
|
81
|
+
"errors": {
|
|
82
|
+
"format": {},
|
|
83
|
+
"required": {
|
|
84
|
+
"any": "Enter an email address"
|
|
85
|
+
},
|
|
86
|
+
"max_length": {
|
|
87
|
+
"any": "%{control} is too long."
|
|
88
|
+
},
|
|
89
|
+
"min_length": {
|
|
90
|
+
"any": "%{control} is too short."
|
|
91
|
+
}
|
|
92
|
+
},
|
|
93
|
+
"label": "Your email address",
|
|
94
|
+
"name": "email_address",
|
|
95
|
+
"validation": {
|
|
96
|
+
"required": true,
|
|
97
|
+
"max_length": 30,
|
|
98
|
+
"min_length": 2
|
|
99
|
+
}
|
|
100
|
+
}
|
|
101
|
+
],
|
|
102
|
+
"url": "/email-address"
|
|
103
|
+
},
|
|
104
|
+
{
|
|
105
|
+
"_id": "page.parent_name",
|
|
106
|
+
"_type": "page.singlequestion",
|
|
107
|
+
"components": [
|
|
108
|
+
{
|
|
109
|
+
"_id": "page.parent-name--text.auto_name__3",
|
|
110
|
+
"_type": "text",
|
|
111
|
+
"label": "Parent name",
|
|
112
|
+
"name": "parent_name",
|
|
113
|
+
"validation": {
|
|
114
|
+
"required": false
|
|
115
|
+
}
|
|
116
|
+
}
|
|
117
|
+
],
|
|
118
|
+
"heading": "Parent name",
|
|
119
|
+
"url": "/parent-name"
|
|
120
|
+
}
|
|
121
|
+
],
|
|
122
|
+
"locale": "en"
|
|
123
|
+
}
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
{
|
|
2
|
+
"_id": "service.base",
|
|
3
|
+
"_type": "service.base",
|
|
4
|
+
"service_name": "Complain about a court or tribunal",
|
|
5
|
+
"created_by": "4634ec01-5618-45ec-a4e2-bb5aa587e751",
|
|
6
|
+
"configuration": {
|
|
7
|
+
"service": {
|
|
8
|
+
"_id": "config.service",
|
|
9
|
+
"_type": "config.service",
|
|
10
|
+
"homepage_url": "https://www.gov.uk",
|
|
11
|
+
"service_email_address": "moj-online@digital.justice.gov.uk",
|
|
12
|
+
"service_url": "page.start"
|
|
13
|
+
},
|
|
14
|
+
"meta": {
|
|
15
|
+
"_id": "config.meta",
|
|
16
|
+
"_type": "config.meta",
|
|
17
|
+
"items": [
|
|
18
|
+
{
|
|
19
|
+
"_id": "config.meta--link",
|
|
20
|
+
"_type": "link",
|
|
21
|
+
"href": "/cookies",
|
|
22
|
+
"text": "Cookies"
|
|
23
|
+
},
|
|
24
|
+
{
|
|
25
|
+
"_id": "config.meta--link--2",
|
|
26
|
+
"_type": "link",
|
|
27
|
+
"href": "/privacy",
|
|
28
|
+
"text": "Privacy"
|
|
29
|
+
},
|
|
30
|
+
{
|
|
31
|
+
"_id": "config.meta--link--3",
|
|
32
|
+
"_type": "link",
|
|
33
|
+
"href": "/accessibility",
|
|
34
|
+
"text": "Accessibility"
|
|
35
|
+
}
|
|
36
|
+
]
|
|
37
|
+
}
|
|
38
|
+
},
|
|
39
|
+
"pages": [
|
|
40
|
+
{
|
|
41
|
+
"_id": "page.start",
|
|
42
|
+
"_type": "page.start",
|
|
43
|
+
"body": "You cannot use this form to complain about:\r\n\r\n* the result of a case\r\n* a judge, magistrate, coroner or member of a tribunal\r\n\r\nThis online form is also available in [Welsh (Cymraeg)](https://complain-about-a-court-or-tribunal.form.service.justice.gov.uk/cy).",
|
|
44
|
+
"heading": "Complain about a court or tribunal",
|
|
45
|
+
"lede": "Your complaint will not affect your case.",
|
|
46
|
+
"steps": [],
|
|
47
|
+
"url": "/"
|
|
48
|
+
}
|
|
49
|
+
],
|
|
50
|
+
"locale": "en"
|
|
51
|
+
}
|
|
@@ -0,0 +1,146 @@
|
|
|
1
|
+
{
|
|
2
|
+
"_id": "service.base",
|
|
3
|
+
"_type": "service.base",
|
|
4
|
+
"service_id": "d243f5c0-e8a2-4b13-982c-7b5f3fa128cf",
|
|
5
|
+
"service_name": "Main fixture to test Form builder",
|
|
6
|
+
"created_by": "4634ec01-5618-45ec-a4e2-bb5aa587e751",
|
|
7
|
+
"configuration": {
|
|
8
|
+
"service": {
|
|
9
|
+
"_id": "config.service",
|
|
10
|
+
"_type": "config.service",
|
|
11
|
+
"homepage_url": "https://www.gov.uk",
|
|
12
|
+
"service_email_address": "moj-online@digital.justice.gov.uk",
|
|
13
|
+
"service_url": "page.start"
|
|
14
|
+
},
|
|
15
|
+
"meta": {
|
|
16
|
+
"_id": "config.meta",
|
|
17
|
+
"_type": "config.meta",
|
|
18
|
+
"items": [
|
|
19
|
+
{
|
|
20
|
+
"_id": "config.meta--link",
|
|
21
|
+
"_type": "link",
|
|
22
|
+
"href": "/cookies",
|
|
23
|
+
"text": "Cookies"
|
|
24
|
+
},
|
|
25
|
+
{
|
|
26
|
+
"_id": "config.meta--link--2",
|
|
27
|
+
"_type": "link",
|
|
28
|
+
"href": "/privacy",
|
|
29
|
+
"text": "Privacy"
|
|
30
|
+
},
|
|
31
|
+
{
|
|
32
|
+
"_id": "config.meta--link--3",
|
|
33
|
+
"_type": "link",
|
|
34
|
+
"href": "/accessibility",
|
|
35
|
+
"text": "Accessibility"
|
|
36
|
+
}
|
|
37
|
+
]
|
|
38
|
+
}
|
|
39
|
+
},
|
|
40
|
+
"pages": [
|
|
41
|
+
{
|
|
42
|
+
"_id": "page.start",
|
|
43
|
+
"_type": "page.start",
|
|
44
|
+
"body": "You cannot use this form to complain about:\r\n\r\n* the result of a case\r\n* a judge, magistrate, coroner or member of a tribunal\r\n\r\nThis online form is also available in [Welsh (Cymraeg)](https://complain-about-a-court-or-tribunal.form.service.justice.gov.uk/cy).",
|
|
45
|
+
"heading": "Complain about a court or tribunal",
|
|
46
|
+
"lede": "Your complaint will not affect your case.",
|
|
47
|
+
"steps": [
|
|
48
|
+
"page.name",
|
|
49
|
+
"page.email-address",
|
|
50
|
+
"page.parent_name",
|
|
51
|
+
"page.check-answers",
|
|
52
|
+
"page._confirmation"
|
|
53
|
+
],
|
|
54
|
+
"url": "/"
|
|
55
|
+
},
|
|
56
|
+
{
|
|
57
|
+
"_id": "page.name",
|
|
58
|
+
"_type": "page.singlequestion",
|
|
59
|
+
"components": [
|
|
60
|
+
{
|
|
61
|
+
"_id": "page.name--text.auto_name__1",
|
|
62
|
+
"_type": "text",
|
|
63
|
+
"label": "Full name",
|
|
64
|
+
"name": "full_name",
|
|
65
|
+
"validation": {
|
|
66
|
+
"required": true,
|
|
67
|
+
"max_length": 10,
|
|
68
|
+
"min_length": 2
|
|
69
|
+
}
|
|
70
|
+
}
|
|
71
|
+
],
|
|
72
|
+
"heading": "Your name",
|
|
73
|
+
"url": "/name"
|
|
74
|
+
},
|
|
75
|
+
{
|
|
76
|
+
"_id": "page.email-address",
|
|
77
|
+
"_type": "page.singlequestion",
|
|
78
|
+
"heading": "Email address",
|
|
79
|
+
"components": [
|
|
80
|
+
{
|
|
81
|
+
"_id": "page.email-address--email.auto_name__2",
|
|
82
|
+
"_type": "text",
|
|
83
|
+
"errors": {
|
|
84
|
+
"format": {},
|
|
85
|
+
"required": {
|
|
86
|
+
"any": "Enter an email address"
|
|
87
|
+
},
|
|
88
|
+
"max_length": {
|
|
89
|
+
"any": "%{control} is too long."
|
|
90
|
+
},
|
|
91
|
+
"min_length": {
|
|
92
|
+
"any": "%{control} is too short."
|
|
93
|
+
}
|
|
94
|
+
},
|
|
95
|
+
"label": "Your email address",
|
|
96
|
+
"name": "email_address",
|
|
97
|
+
"validation": {
|
|
98
|
+
"required": true,
|
|
99
|
+
"max_length": 30,
|
|
100
|
+
"min_length": 2
|
|
101
|
+
}
|
|
102
|
+
}
|
|
103
|
+
],
|
|
104
|
+
"url": "/email-address"
|
|
105
|
+
},
|
|
106
|
+
{
|
|
107
|
+
"_id": "page.parent_name",
|
|
108
|
+
"_type": "page.singlequestion",
|
|
109
|
+
"components": [
|
|
110
|
+
{
|
|
111
|
+
"_id": "page.parent-name--text.auto_name__3",
|
|
112
|
+
"_type": "text",
|
|
113
|
+
"label": "Parent name",
|
|
114
|
+
"name": "parent_name",
|
|
115
|
+
"validation": {
|
|
116
|
+
"required": false,
|
|
117
|
+
"max_length": 10,
|
|
118
|
+
"min_length": 2
|
|
119
|
+
}
|
|
120
|
+
}
|
|
121
|
+
],
|
|
122
|
+
"heading": "Parent name",
|
|
123
|
+
"url": "/parent-name"
|
|
124
|
+
},
|
|
125
|
+
{
|
|
126
|
+
"_id": "page._check-answers",
|
|
127
|
+
"_type": "page.summary",
|
|
128
|
+
"body": "Optional content",
|
|
129
|
+
"heading": "Review your answer",
|
|
130
|
+
"lede": "First paragraph",
|
|
131
|
+
"section_heading": "This section is optional",
|
|
132
|
+
"send_body": "By submitting this answer you confirm all your answers",
|
|
133
|
+
"send_heading": "Send your answer",
|
|
134
|
+
"url": "/check-answers"
|
|
135
|
+
},
|
|
136
|
+
{
|
|
137
|
+
"_id": "page._confirmation",
|
|
138
|
+
"_type": "page.confirmation",
|
|
139
|
+
"body": "You'll receive a confirmation email",
|
|
140
|
+
"heading": "Complaint sent",
|
|
141
|
+
"lede": "Optional lede",
|
|
142
|
+
"url": "/confirmation"
|
|
143
|
+
}
|
|
144
|
+
],
|
|
145
|
+
"locale": "en"
|
|
146
|
+
}
|
|
@@ -5,5 +5,10 @@ module MetadataPresenter
|
|
|
5
5
|
isolate_namespace MetadataPresenter
|
|
6
6
|
|
|
7
7
|
MetadataPresenter.parent_controller = '::ApplicationController'
|
|
8
|
+
|
|
9
|
+
def fixtures_directory
|
|
10
|
+
@_fixtures_directory ||=
|
|
11
|
+
Pathname.new(MetadataPresenter::Engine.root.join('lib', 'fixtures'))
|
|
12
|
+
end
|
|
8
13
|
end
|
|
9
14
|
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.1.
|
|
4
|
+
version: 0.1.2
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- MoJ Online
|
|
@@ -255,6 +255,9 @@ files:
|
|
|
255
255
|
- config/initializers/default_metadata.rb
|
|
256
256
|
- config/initializers/schemas.rb
|
|
257
257
|
- config/routes.rb
|
|
258
|
+
- lib/fixtures/non_finished_service.json
|
|
259
|
+
- lib/fixtures/service.json
|
|
260
|
+
- lib/fixtures/version.json
|
|
258
261
|
- lib/metadata_presenter.rb
|
|
259
262
|
- lib/metadata_presenter/engine.rb
|
|
260
263
|
- lib/metadata_presenter/version.rb
|