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.
Files changed (36) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +42 -21
  3. data/app/assets/javascripts/govuk_publishing_components/application.js +1 -1
  4. data/app/assets/javascripts/{components → govuk_publishing_components/components}/task-list.js +0 -0
  5. data/app/assets/stylesheets/govuk_publishing_components/application.scss +7 -7
  6. data/app/assets/stylesheets/{components → govuk_publishing_components/components}/_back-link.scss +0 -0
  7. data/app/assets/stylesheets/{components → govuk_publishing_components/components}/_fieldset.scss +0 -0
  8. data/app/assets/stylesheets/{components → govuk_publishing_components/components}/_label.scss +0 -0
  9. data/app/assets/stylesheets/{components → govuk_publishing_components/components}/_radio.scss +0 -0
  10. data/app/assets/stylesheets/{components → govuk_publishing_components/components}/_task-list-header.scss +0 -0
  11. data/app/assets/stylesheets/{components → govuk_publishing_components/components}/_task-list-related.scss +0 -0
  12. data/app/assets/stylesheets/{components → govuk_publishing_components/components}/_task-list.scss +3 -0
  13. data/app/assets/stylesheets/{components → govuk_publishing_components/components}/helpers/_clearfix.scss +0 -0
  14. data/app/assets/stylesheets/{components → govuk_publishing_components/components}/helpers/_px-to-em.scss +0 -0
  15. data/app/assets/stylesheets/{components → govuk_publishing_components/components}/helpers/_variables.scss +0 -0
  16. data/app/assets/stylesheets/{components/_task-list-header-print.scss → govuk_publishing_components/components/print/_task-list-header.scss} +0 -0
  17. data/app/assets/stylesheets/{components/_task-list-print.scss → govuk_publishing_components/components/print/_task-list.scss} +0 -0
  18. data/app/assets/stylesheets/govuk_publishing_components/print.scss +2 -3
  19. data/app/models/govuk_publishing_components/component_doc.rb +1 -1
  20. data/app/models/govuk_publishing_components/component_doc_resolver.rb +1 -1
  21. data/app/views/{components → govuk_publishing_components/components}/_back_link.html.erb +0 -0
  22. data/app/views/{components → govuk_publishing_components/components}/_fieldset.html.erb +0 -0
  23. data/app/views/{components → govuk_publishing_components/components}/_label.html.erb +0 -0
  24. data/app/views/{components → govuk_publishing_components/components}/_radio.html.erb +1 -1
  25. data/app/views/{components → govuk_publishing_components/components}/_task_list.html.erb +0 -0
  26. data/app/views/{components → govuk_publishing_components/components}/_task_list_header.html.erb +0 -0
  27. data/app/views/{components → govuk_publishing_components/components}/_task_list_related.html.erb +0 -0
  28. data/app/views/{components → govuk_publishing_components/components}/docs/back_link.yml +0 -0
  29. data/app/views/{components → govuk_publishing_components/components}/docs/fieldset.yml +0 -0
  30. data/app/views/{components → govuk_publishing_components/components}/docs/label.yml +0 -0
  31. data/app/views/{components → govuk_publishing_components/components}/docs/radio.yml +0 -0
  32. data/app/views/{components → govuk_publishing_components/components}/docs/task_list.yml +0 -0
  33. data/app/views/{components → govuk_publishing_components/components}/docs/task_list_header.yml +0 -0
  34. data/app/views/{components → govuk_publishing_components/components}/docs/task_list_related.yml +0 -0
  35. data/lib/govuk_publishing_components/version.rb +1 -1
  36. metadata +43 -29
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 6824adb0ac3f33d0beeb80f026ac1e5e7f28d38b
4
- data.tar.gz: af7894128522651abec009b43e12e37387f86a5a
3
+ metadata.gz: 4c38b0e49071df40f8893de2a2927317e4f916c7
4
+ data.tar.gz: 9fab2d961d4cd328f53a9ee6ef2b62cf45869de4
5
5
  SHA512:
6
- metadata.gz: 9689fcdadf63203859864c6453bb7bbd81b831fcf831479863fa602b7de507d64c03b68f2c5e16c923e476ebb6af0f2dc0fe47318ed07f1ce399ecfd5966284e
7
- data.tar.gz: 76617b5ebc0eeaa676c84bf6f58723fc02f943c64fd9cccfbe4e74a0415522c2c345c827f88b3124f3bf1c1e457f1626786eed39c3bcf56ad876e18ab62a9861
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.
@@ -13,6 +13,6 @@
13
13
  //= require govuk/modules
14
14
  //= require ../history-support
15
15
  //= require ../current-location
16
- //= require ../components/task-list
16
+ //= require_tree ./components
17
17
  //= require_tree ./vendor
18
18
  //= require_tree .
@@ -4,13 +4,13 @@
4
4
  @import "typography";
5
5
  @import "colours";
6
6
 
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";
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
 
@@ -1,3 +1,6 @@
1
+ // govuk_frontend_toolkit
2
+ @import 'css3';
3
+
1
4
  $stroke-width: 2px;
2
5
  $stroke-width-large: 3px;
3
6
  $number-circle-size: 26px;
@@ -1,4 +1,3 @@
1
1
  @import "typography";
2
-
3
- @import "../components/task-list-print";
4
- @import "../components/task-list-header-print";
2
+ @import "components/print/task-list";
3
+ @import "components/print/task-list-header";
@@ -47,7 +47,7 @@ module GovukPublishingComponents
47
47
 
48
48
  def partial_path
49
49
  if source == 'gem'
50
- "components/#{id}"
50
+ "govuk_publishing_components/components/#{id}"
51
51
  else
52
52
  "#{GovukPublishingComponents::Config.component_directory_name}/#{id}"
53
53
  end
@@ -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
@@ -30,7 +30,7 @@
30
30
  aria-describedby="<%= label_hint_id %>"
31
31
  <% end %>
32
32
  >
33
- <%= render "components/label", {
33
+ <%= render "govuk_publishing_components/components/label", {
34
34
  hint_id: label_hint_id,
35
35
  html_for: label_id,
36
36
  classes: 'gem-c-radio__label',
@@ -1,3 +1,3 @@
1
1
  module GovukPublishingComponents
2
- VERSION = '3.3.0'.freeze
2
+ VERSION = '4.0.0'.freeze
3
3
  end
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: 3.3.0
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-05 00:00:00.000000000 Z
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