govuk_publishing_components 3.3.0 → 4.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.
- checksums.yaml +4 -4
- data/README.md +42 -21
- data/app/assets/javascripts/govuk_publishing_components/application.js +1 -1
- data/app/assets/javascripts/{components → govuk_publishing_components/components}/task-list.js +0 -0
- data/app/assets/stylesheets/govuk_publishing_components/application.scss +7 -7
- data/app/assets/stylesheets/{components → govuk_publishing_components/components}/_back-link.scss +0 -0
- data/app/assets/stylesheets/{components → govuk_publishing_components/components}/_fieldset.scss +0 -0
- data/app/assets/stylesheets/{components → govuk_publishing_components/components}/_label.scss +0 -0
- data/app/assets/stylesheets/{components → govuk_publishing_components/components}/_radio.scss +0 -0
- data/app/assets/stylesheets/{components → govuk_publishing_components/components}/_task-list-header.scss +0 -0
- data/app/assets/stylesheets/{components → govuk_publishing_components/components}/_task-list-related.scss +0 -0
- data/app/assets/stylesheets/{components → govuk_publishing_components/components}/_task-list.scss +3 -0
- data/app/assets/stylesheets/{components → govuk_publishing_components/components}/helpers/_clearfix.scss +0 -0
- data/app/assets/stylesheets/{components → govuk_publishing_components/components}/helpers/_px-to-em.scss +0 -0
- data/app/assets/stylesheets/{components → govuk_publishing_components/components}/helpers/_variables.scss +0 -0
- data/app/assets/stylesheets/{components/_task-list-header-print.scss → govuk_publishing_components/components/print/_task-list-header.scss} +0 -0
- data/app/assets/stylesheets/{components/_task-list-print.scss → govuk_publishing_components/components/print/_task-list.scss} +0 -0
- data/app/assets/stylesheets/govuk_publishing_components/print.scss +2 -3
- data/app/models/govuk_publishing_components/component_doc.rb +1 -1
- data/app/models/govuk_publishing_components/component_doc_resolver.rb +1 -1
- data/app/views/{components → govuk_publishing_components/components}/_back_link.html.erb +0 -0
- data/app/views/{components → govuk_publishing_components/components}/_fieldset.html.erb +0 -0
- data/app/views/{components → govuk_publishing_components/components}/_label.html.erb +0 -0
- data/app/views/{components → govuk_publishing_components/components}/_radio.html.erb +1 -1
- data/app/views/{components → govuk_publishing_components/components}/_task_list.html.erb +0 -0
- data/app/views/{components → govuk_publishing_components/components}/_task_list_header.html.erb +0 -0
- data/app/views/{components → govuk_publishing_components/components}/_task_list_related.html.erb +0 -0
- data/app/views/{components → govuk_publishing_components/components}/docs/back_link.yml +0 -0
- data/app/views/{components → govuk_publishing_components/components}/docs/fieldset.yml +0 -0
- data/app/views/{components → govuk_publishing_components/components}/docs/label.yml +0 -0
- data/app/views/{components → govuk_publishing_components/components}/docs/radio.yml +0 -0
- data/app/views/{components → govuk_publishing_components/components}/docs/task_list.yml +0 -0
- data/app/views/{components → govuk_publishing_components/components}/docs/task_list_header.yml +0 -0
- data/app/views/{components → govuk_publishing_components/components}/docs/task_list_related.yml +0 -0
- data/lib/govuk_publishing_components/version.rb +1 -1
- metadata +43 -29
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 4c38b0e49071df40f8893de2a2927317e4f916c7
|
|
4
|
+
data.tar.gz: 9fab2d961d4cd328f53a9ee6ef2b62cf45869de4
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: d8c6ba39ba1908980d9bdd30689d06f3977e523ee51c6fffdd27e16aeda26774bf2a7051ffd29edc551834be2939be4ee4030353fa724c8105985521f1cec59d
|
|
7
|
+
data.tar.gz: b1cf174f0f98ff9e3c8fe21a31d5454a5d77fdb28d1de71deaddaf21a7d03417edd812ce6409d7d59bf35fdc3023d666249d99a30b994d754ed57aa3401c1e8a
|
data/README.md
CHANGED
|
@@ -40,27 +40,6 @@ And then execute:
|
|
|
40
40
|
$ bundle
|
|
41
41
|
```
|
|
42
42
|
|
|
43
|
-
### Running as a standalone app
|
|
44
|
-
|
|
45
|
-
If you want to work on this gem directly, without having to add it to another
|
|
46
|
-
application, you can run it in the development vm:
|
|
47
|
-
|
|
48
|
-
```
|
|
49
|
-
$ cd /var/govuk/govuk-puppet/development-vm
|
|
50
|
-
$ bowl publishing-components
|
|
51
|
-
```
|
|
52
|
-
|
|
53
|
-
Then visit [publishing-components.dev.gov.uk/component-guide](http://publishing-components.dev.gov.uk/component-guide).
|
|
54
|
-
|
|
55
|
-
If you don't want to run it in the development vm, you can start the app with:
|
|
56
|
-
|
|
57
|
-
```
|
|
58
|
-
$ gem install foreman
|
|
59
|
-
$ PLEK_SERVICE_STATIC_URI=assets.publishing.service.gov.uk foreman start
|
|
60
|
-
```
|
|
61
|
-
|
|
62
|
-
Then visit [localhost:5000/component-guide](http://localhost:5000/component-guide).
|
|
63
|
-
|
|
64
43
|
#### Integration with Heroku
|
|
65
44
|
|
|
66
45
|
To make the best use of the component guide we use Heroku to serve the current `master` build and whenever a [pull request is added](https://devcenter.heroku.com/articles/github-integration-review-apps)
|
|
@@ -116,6 +95,48 @@ if defined?(GovukPublishingComponents)
|
|
|
116
95
|
end
|
|
117
96
|
```
|
|
118
97
|
|
|
98
|
+
### Running the gem as a standalone app
|
|
99
|
+
|
|
100
|
+
If you want to work on this gem directly, without having to add it to another
|
|
101
|
+
application, you can run it in the development vm:
|
|
102
|
+
|
|
103
|
+
```
|
|
104
|
+
./startup.sh
|
|
105
|
+
```
|
|
106
|
+
|
|
107
|
+
The app should start on http://localhost:3212 or http://publishing-components.dev.gov.uk/component-guide on GOV.UK development machines.
|
|
108
|
+
|
|
109
|
+
```
|
|
110
|
+
./startup.sh --live
|
|
111
|
+
```
|
|
112
|
+
|
|
113
|
+
This will run the app and point it at the production `static` instance.
|
|
114
|
+
|
|
115
|
+
#### Running with bowl on the VM
|
|
116
|
+
|
|
117
|
+
```
|
|
118
|
+
$ cd /var/govuk/govuk_publishing_components
|
|
119
|
+
$ bundle
|
|
120
|
+
|
|
121
|
+
$ cd /var/govuk/govuk-puppet/development-vm
|
|
122
|
+
$ bowl publishing-components
|
|
123
|
+
```
|
|
124
|
+
|
|
125
|
+
Then visit [publishing-components.dev.gov.uk/component-guide](http://publishing-components.dev.gov.uk/component-guide).
|
|
126
|
+
|
|
127
|
+
#### Running locally
|
|
128
|
+
|
|
129
|
+
If you don't want to run it in the development vm, you can start the app with:
|
|
130
|
+
|
|
131
|
+
```
|
|
132
|
+
$ cd /var/govuk/govuk_publishing_components
|
|
133
|
+
$ bundle
|
|
134
|
+
|
|
135
|
+
$ PLEK_SERVICE_STATIC_URI=assets.publishing.service.gov.uk bundle exec foreman start
|
|
136
|
+
```
|
|
137
|
+
|
|
138
|
+
Then visit [localhost:5000/component-guide](http://localhost:5000/component-guide).
|
|
139
|
+
|
|
119
140
|
### Test the component guide
|
|
120
141
|
|
|
121
142
|
The gem [includes integration tests](lib/govuk_publishing_components/minitest/component_guide_test.rb) to check that your component guide and examples are error free and that they meet basic accessibility needs.
|
data/app/assets/javascripts/{components → govuk_publishing_components/components}/task-list.js
RENAMED
|
File without changes
|
|
@@ -4,13 +4,13 @@
|
|
|
4
4
|
@import "typography";
|
|
5
5
|
@import "colours";
|
|
6
6
|
|
|
7
|
-
@import "
|
|
8
|
-
@import "
|
|
9
|
-
@import "
|
|
10
|
-
@import "
|
|
11
|
-
@import "
|
|
12
|
-
@import "
|
|
13
|
-
@import "
|
|
7
|
+
@import "components/back-link";
|
|
8
|
+
@import "components/fieldset";
|
|
9
|
+
@import "components/label";
|
|
10
|
+
@import "components/radio";
|
|
11
|
+
@import "components/task-list";
|
|
12
|
+
@import "components/task-list-header";
|
|
13
|
+
@import "components/task-list-related";
|
|
14
14
|
|
|
15
15
|
$border-color: #ccc;
|
|
16
16
|
|
data/app/assets/stylesheets/{components → govuk_publishing_components/components}/_back-link.scss
RENAMED
|
File without changes
|
data/app/assets/stylesheets/{components → govuk_publishing_components/components}/_fieldset.scss
RENAMED
|
File without changes
|
data/app/assets/stylesheets/{components → govuk_publishing_components/components}/_label.scss
RENAMED
|
File without changes
|
data/app/assets/stylesheets/{components → govuk_publishing_components/components}/_radio.scss
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
@@ -68,7 +68,7 @@ module GovukPublishingComponents
|
|
|
68
68
|
end
|
|
69
69
|
|
|
70
70
|
def gem_documentation_directory
|
|
71
|
-
Pathname.new(GovukPublishingComponents::Config.gem_directory).join("app", "views", "components", "docs")
|
|
71
|
+
Pathname.new(GovukPublishingComponents::Config.gem_directory).join("app", "views", "govuk_publishing_components", "components", "docs")
|
|
72
72
|
end
|
|
73
73
|
end
|
|
74
74
|
end
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
data/app/views/{components → govuk_publishing_components/components}/_task_list_header.html.erb
RENAMED
|
File without changes
|
data/app/views/{components → govuk_publishing_components/components}/_task_list_related.html.erb
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
data/app/views/{components → govuk_publishing_components/components}/docs/task_list_header.yml
RENAMED
|
File without changes
|
data/app/views/{components → govuk_publishing_components/components}/docs/task_list_related.yml
RENAMED
|
File without changes
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: govuk_publishing_components
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version:
|
|
4
|
+
version: 4.0.0
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- GOV.UK Dev
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2018-01-
|
|
11
|
+
date: 2018-01-10 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: rails
|
|
@@ -192,6 +192,20 @@ dependencies:
|
|
|
192
192
|
- - "~>"
|
|
193
193
|
- !ruby/object:Gem::Version
|
|
194
194
|
version: '1.5'
|
|
195
|
+
- !ruby/object:Gem::Dependency
|
|
196
|
+
name: foreman
|
|
197
|
+
requirement: !ruby/object:Gem::Requirement
|
|
198
|
+
requirements:
|
|
199
|
+
- - "~>"
|
|
200
|
+
- !ruby/object:Gem::Version
|
|
201
|
+
version: '0.64'
|
|
202
|
+
type: :development
|
|
203
|
+
prerelease: false
|
|
204
|
+
version_requirements: !ruby/object:Gem::Requirement
|
|
205
|
+
requirements:
|
|
206
|
+
- - "~>"
|
|
207
|
+
- !ruby/object:Gem::Version
|
|
208
|
+
version: '0.64'
|
|
195
209
|
- !ruby/object:Gem::Dependency
|
|
196
210
|
name: webmock
|
|
197
211
|
requirement: !ruby/object:Gem::Requirement
|
|
@@ -218,27 +232,27 @@ files:
|
|
|
218
232
|
- README.md
|
|
219
233
|
- Rakefile
|
|
220
234
|
- app/assets/config/govuk_publishing_components_manifest.js
|
|
221
|
-
- app/assets/javascripts/components/task-list.js
|
|
222
235
|
- app/assets/javascripts/current-location.js
|
|
223
236
|
- app/assets/javascripts/govuk_publishing_components/accessibility-test.js
|
|
224
237
|
- app/assets/javascripts/govuk_publishing_components/application.js
|
|
238
|
+
- app/assets/javascripts/govuk_publishing_components/components/task-list.js
|
|
225
239
|
- app/assets/javascripts/govuk_publishing_components/vendor/axe.min.js
|
|
226
240
|
- app/assets/javascripts/govuk_publishing_components/vendor/matches-polyfill.min.js
|
|
227
241
|
- app/assets/javascripts/govuk_publishing_components/visual-regression.js
|
|
228
242
|
- app/assets/javascripts/history-support.js
|
|
229
|
-
- app/assets/stylesheets/components/_back-link.scss
|
|
230
|
-
- app/assets/stylesheets/components/_fieldset.scss
|
|
231
|
-
- app/assets/stylesheets/components/_label.scss
|
|
232
|
-
- app/assets/stylesheets/components/_radio.scss
|
|
233
|
-
- app/assets/stylesheets/components/_task-list-header-print.scss
|
|
234
|
-
- app/assets/stylesheets/components/_task-list-header.scss
|
|
235
|
-
- app/assets/stylesheets/components/_task-list-print.scss
|
|
236
|
-
- app/assets/stylesheets/components/_task-list-related.scss
|
|
237
|
-
- app/assets/stylesheets/components/_task-list.scss
|
|
238
|
-
- app/assets/stylesheets/components/helpers/_clearfix.scss
|
|
239
|
-
- app/assets/stylesheets/components/helpers/_px-to-em.scss
|
|
240
|
-
- app/assets/stylesheets/components/helpers/_variables.scss
|
|
241
243
|
- app/assets/stylesheets/govuk_publishing_components/application.scss
|
|
244
|
+
- app/assets/stylesheets/govuk_publishing_components/components/_back-link.scss
|
|
245
|
+
- app/assets/stylesheets/govuk_publishing_components/components/_fieldset.scss
|
|
246
|
+
- app/assets/stylesheets/govuk_publishing_components/components/_label.scss
|
|
247
|
+
- app/assets/stylesheets/govuk_publishing_components/components/_radio.scss
|
|
248
|
+
- app/assets/stylesheets/govuk_publishing_components/components/_task-list-header.scss
|
|
249
|
+
- app/assets/stylesheets/govuk_publishing_components/components/_task-list-related.scss
|
|
250
|
+
- app/assets/stylesheets/govuk_publishing_components/components/_task-list.scss
|
|
251
|
+
- app/assets/stylesheets/govuk_publishing_components/components/helpers/_clearfix.scss
|
|
252
|
+
- app/assets/stylesheets/govuk_publishing_components/components/helpers/_px-to-em.scss
|
|
253
|
+
- app/assets/stylesheets/govuk_publishing_components/components/helpers/_variables.scss
|
|
254
|
+
- app/assets/stylesheets/govuk_publishing_components/components/print/_task-list-header.scss
|
|
255
|
+
- app/assets/stylesheets/govuk_publishing_components/components/print/_task-list.scss
|
|
242
256
|
- app/assets/stylesheets/govuk_publishing_components/print.scss
|
|
243
257
|
- app/controllers/govuk_publishing_components/application_controller.rb
|
|
244
258
|
- app/controllers/govuk_publishing_components/component_guide_controller.rb
|
|
@@ -247,20 +261,6 @@ files:
|
|
|
247
261
|
- app/models/govuk_publishing_components/component_doc_resolver.rb
|
|
248
262
|
- app/models/govuk_publishing_components/component_example.rb
|
|
249
263
|
- app/models/govuk_publishing_components/shared_accessibility_criteria.rb
|
|
250
|
-
- app/views/components/_back_link.html.erb
|
|
251
|
-
- app/views/components/_fieldset.html.erb
|
|
252
|
-
- app/views/components/_label.html.erb
|
|
253
|
-
- app/views/components/_radio.html.erb
|
|
254
|
-
- app/views/components/_task_list.html.erb
|
|
255
|
-
- app/views/components/_task_list_header.html.erb
|
|
256
|
-
- app/views/components/_task_list_related.html.erb
|
|
257
|
-
- app/views/components/docs/back_link.yml
|
|
258
|
-
- app/views/components/docs/fieldset.yml
|
|
259
|
-
- app/views/components/docs/label.yml
|
|
260
|
-
- app/views/components/docs/radio.yml
|
|
261
|
-
- app/views/components/docs/task_list.yml
|
|
262
|
-
- app/views/components/docs/task_list_header.yml
|
|
263
|
-
- app/views/components/docs/task_list_related.yml
|
|
264
264
|
- app/views/govuk_publishing_components/component_guide/component_doc/_call.html.erb
|
|
265
265
|
- app/views/govuk_publishing_components/component_guide/component_doc/_component.html.erb
|
|
266
266
|
- app/views/govuk_publishing_components/component_guide/component_doc/_preview.html.erb
|
|
@@ -268,6 +268,20 @@ files:
|
|
|
268
268
|
- app/views/govuk_publishing_components/component_guide/index.html.erb
|
|
269
269
|
- app/views/govuk_publishing_components/component_guide/preview.html.erb
|
|
270
270
|
- app/views/govuk_publishing_components/component_guide/show.html.erb
|
|
271
|
+
- app/views/govuk_publishing_components/components/_back_link.html.erb
|
|
272
|
+
- app/views/govuk_publishing_components/components/_fieldset.html.erb
|
|
273
|
+
- app/views/govuk_publishing_components/components/_label.html.erb
|
|
274
|
+
- app/views/govuk_publishing_components/components/_radio.html.erb
|
|
275
|
+
- app/views/govuk_publishing_components/components/_task_list.html.erb
|
|
276
|
+
- app/views/govuk_publishing_components/components/_task_list_header.html.erb
|
|
277
|
+
- app/views/govuk_publishing_components/components/_task_list_related.html.erb
|
|
278
|
+
- app/views/govuk_publishing_components/components/docs/back_link.yml
|
|
279
|
+
- app/views/govuk_publishing_components/components/docs/fieldset.yml
|
|
280
|
+
- app/views/govuk_publishing_components/components/docs/label.yml
|
|
281
|
+
- app/views/govuk_publishing_components/components/docs/radio.yml
|
|
282
|
+
- app/views/govuk_publishing_components/components/docs/task_list.yml
|
|
283
|
+
- app/views/govuk_publishing_components/components/docs/task_list_header.yml
|
|
284
|
+
- app/views/govuk_publishing_components/components/docs/task_list_related.yml
|
|
271
285
|
- app/views/layouts/govuk_publishing_components/application.html.erb
|
|
272
286
|
- config/initializers/assets.rb
|
|
273
287
|
- config/locales/cy.yml
|