govuk_publishing_components 0.4.2 → 0.5.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 482dfbc7d06559bff8317484a04b836a0f7245e2
4
- data.tar.gz: f0ea67a5f4e111ee694a8a57139790fa060ebdc1
3
+ metadata.gz: 82791bc5677fa763b86403bba364aca06041d381
4
+ data.tar.gz: 365d38fbf1bf2e86f653fc1fac4ddce6301aa7c3
5
5
  SHA512:
6
- metadata.gz: b1c8c48a5c86712bef8a7150dc6445393dc196a01d42f848ec32b6bb6695e066f6d98f1bf8bc272b9b42a1533ba2c748115dd442878fed7f53edc83a155711ce
7
- data.tar.gz: e24e979e709e2cf07582e2029e35ca7a95cd5a543b13870609524e7661ecac60348a2bf602bba51d92e70e8621dafcd04633485c645e9494820585f522d9a000
6
+ metadata.gz: c4471c1805124fc072d7e6d115b2bd3618c17d0ae2ac151ea8ab7bbef8032b312cd4822d82a004db43e2ffcae2e5c3cc4c2a15ad88ac49b5e479af296b8dd67e
7
+ data.tar.gz: 5750331c65f4e146b6d392c550d386139f8ad9620ce2bc40f192c3a31249d2ea4aca1754b572b6e32e5cd8f321b7e42f01a81bbfe3f0003e6caa4d2e34a34276
data/README.md CHANGED
@@ -64,8 +64,9 @@ if defined?(GovukPublishingComponents)
64
64
  GovukPublishingComponents.configure do |c|
65
65
  c.component_guide_title = "My component guide"
66
66
 
67
- c.application_stylesheet = "custom_stylesheet" # defaults to "application"
68
- c.application_javascript = "custom_javascript" # default to "application"
67
+ c.application_stylesheet = "custom_stylesheet" # Defaults to "application"
68
+ c.application_print_stylesheet = "print" # Not included by default
69
+ c.application_javascript = "custom_javascript" # Defaults to "application"
69
70
  end
70
71
  end
71
72
  ```
@@ -6,6 +6,9 @@
6
6
  </title>
7
7
  <%= stylesheet_link_tag "govuk_publishing_components/application", media: "all" %>
8
8
  <%= stylesheet_link_tag "#{GovukPublishingComponents::Config.application_stylesheet}" %>
9
+ <% if GovukPublishingComponents::Config.application_print_stylesheet %>
10
+ <%= stylesheet_link_tag "#{GovukPublishingComponents::Config.application_print_stylesheet}", media: "print" %>
11
+ <% end %>
9
12
 
10
13
  <%= javascript_include_tag "govuk_publishing_components/application" %>
11
14
  <%= javascript_include_tag "#{GovukPublishingComponents::Config.application_javascript}" %>
@@ -10,6 +10,9 @@ module GovukPublishingComponents
10
10
  mattr_accessor :application_stylesheet
11
11
  self.application_stylesheet = "application"
12
12
 
13
+ mattr_accessor :application_print_stylesheet
14
+ self.application_print_stylesheet = nil
15
+
13
16
  mattr_accessor :application_javascript
14
17
  self.application_javascript = "application"
15
18
  end
@@ -1,3 +1,3 @@
1
1
  module GovukPublishingComponents
2
- VERSION = '0.4.2'.freeze
2
+ VERSION = '0.5.0'.freeze
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: govuk_publishing_components
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.2
4
+ version: 0.5.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - GOV.UK Dev