govuk_publishing_components 3.0.2 → 3.0.3

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
  SHA1:
3
- metadata.gz: c70b9fdb5bebb7f2b712324261adc1a713d37181
4
- data.tar.gz: 3ffb99c5486a9687e58eec5d17ccc015807be86c
3
+ metadata.gz: 6217499ae86d9a29e7d70a71d439797fb8c4420a
4
+ data.tar.gz: af58a7d34a1d5261477e08ed3345db245eaa98e9
5
5
  SHA512:
6
- metadata.gz: ed077e9b207ed172589b3f2190f67ce008ca0fc19f926a762dee31ba0576e379eee965c8eabdee80d67e37cd3388c44d179c1d0f6ac00afafef202e256dc9ab9
7
- data.tar.gz: 567082c289215eefc0e65fff194c307c9dee63008e7e1ce22f2e0485f584e165d69636987b69ec9a66ec0e0ed1fefef4e69585b8dd8187a33eeec7936c52eb48
6
+ metadata.gz: 2377a280243b42cfa9eb4ebd21f80633a7c0a2f29a105c383d597094bec2badadfe17f7b138e647df634d52f60302efc550b5bbc83c0f662ca2afe7d77349887
7
+ data.tar.gz: 96a892098207b0a12feeaed47a0c7188e445d6aa12138d4e811e89c14cc7148a88d6c3938370b92f9f0b6bc74d1c0a2267c98b1960f2e6f6fa11f9c2f8bc6d7b
data/README.md CHANGED
@@ -40,6 +40,27 @@ 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
+
43
64
  #### Integration with Heroku
44
65
 
45
66
  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)
@@ -135,11 +156,11 @@ This will create a template, scss file and yml documentation file for a new comp
135
156
  ### Visual Diff Tool
136
157
  The component guide includes a visual diff tool that should make it easier to spot when you are introducing visual regressions in your components.
137
158
 
138
- It can be run on a locally running version of the component guide, to compare it to the heroku master deploy. For example: [government-frontend.dev.gov.uk/component-guide](government-frontend.dev.gov.uk/component-guide) will be compared to [government-frontend.herokuapp.com/component-guide](government-frontend.herokuapp.com/component-guide).
159
+ It can be run on a locally running version of the component guide, to compare it to the heroku master deploy. For example: [government-frontend.dev.gov.uk/component-guide](http://government-frontend.dev.gov.uk/component-guide) will be compared to [government-frontend.herokuapp.com/component-guide](https://government-frontend.herokuapp.com/component-guide).
139
160
 
140
161
  The tool can be run via the console using the following command:
141
162
  ```js
142
- window.GOVUK.VisualDiffTool()`
163
+ window.GOVUK.VisualDiffTool()
143
164
  ```
144
165
 
145
166
  ## Licence
@@ -2,7 +2,7 @@
2
2
  window.GOVUK = window.GOVUK || {}
3
3
 
4
4
  window.GOVUK.VisualDiffTool = function (currentWindowLocation) {
5
- const visualDiffSelector = 'visual-diff';
5
+ var visualDiffSelector = 'visual-diff';
6
6
  var existingIframe = document.getElementById(visualDiffSelector);
7
7
  var windowLocation = currentWindowLocation || window.location;
8
8
 
@@ -10,7 +10,7 @@ module GovukPublishingComponents
10
10
  end
11
11
 
12
12
  def all
13
- fetch_component_docs.map { |component| build(component) }
13
+ fetch_component_docs.map { |component| build(component) }.sort_by(&:name)
14
14
  end
15
15
 
16
16
  private
@@ -1,3 +1,3 @@
1
1
  module GovukPublishingComponents
2
- VERSION = '3.0.2'.freeze
2
+ VERSION = '3.0.3'.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.0.2
4
+ version: 3.0.3
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: 2017-12-18 00:00:00.000000000 Z
11
+ date: 2018-01-04 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails