slimmer 11.1.0 → 11.1.1

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: 387557200b31b5f4fa4cda08f9286ce17dee3f7e
4
- data.tar.gz: 944392917f3c40742d123597aa9618d3034bbf9e
3
+ metadata.gz: 882c71d5e22c37f0dfe1f0598975f4c19e27ceb9
4
+ data.tar.gz: 6c115e9e40c73fa7216316ffe727663eb26f2b8c
5
5
  SHA512:
6
- metadata.gz: 500f77c015043040668fb179f29579de3595bfc7ea36c46f3a7d72fb73714469631d3bccf0aff83fe048e8a128f84527f949db0e8525f046095bd73df69bbee9
7
- data.tar.gz: 252d342dbb50d38f6fab78738850298d18ef20cbd917ea0963bb5fa1f877e8b02b1c5511a0bea8cebae0f5d0751dd6d897ed179b177d1d9cb4ee9f04be0992b9
6
+ metadata.gz: 25ec33d5397c26d2392389bf173619c617ad41c8c54f64d7028c575b217f58f9c4104659c4eee671630412c2d367303c442f502d22bd204eed68cb1bbb4d380e
7
+ data.tar.gz: aa90a515cae94a8d23d530cf4543be9dba85955ca0421bd59848805803dd7d40d20b9362e2bcb1b009e985ccd898d6bb74b6a6e2b0aa2e07ddcf1e7d98415094
@@ -1,3 +1,8 @@
1
+ # 11.1.1
2
+
3
+ * Make the 'Inside Header Inserter' more resillient so that it doesn't throw
4
+ exceptions in a test context (#212)
5
+
1
6
  # 11.1.0
2
7
 
3
8
  * Allow components in static to be loaded locally rather than over the network (#208)
data/README.md CHANGED
@@ -84,7 +84,7 @@ end
84
84
 
85
85
  ## GOV.UK Components
86
86
 
87
- To use [shared template components](https://govuk-component-guide.herokuapp.com/) you need to include the GOV.UK component module:
87
+ To use [shared template components](https://govuk-static.herokuapp.com/component-guide) you need to include the GOV.UK component module:
88
88
 
89
89
  ```rb
90
90
  class ApplicationController < ActionController::Base
@@ -4,7 +4,8 @@ module Slimmer::Processors
4
4
  insertion = src.at_css('.slimmer-inside-header')
5
5
 
6
6
  if insertion
7
- dest.at_css('.header-logo').add_next_sibling(insertion.inner_html)
7
+ logo = dest.at_css('.header-logo')
8
+ logo.add_next_sibling(insertion.inner_html) unless logo.nil?
8
9
  end
9
10
  end
10
11
  end
@@ -1,3 +1,3 @@
1
1
  module Slimmer
2
- VERSION = '11.1.0'
2
+ VERSION = '11.1.1'
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: slimmer
3
3
  version: !ruby/object:Gem::Version
4
- version: 11.1.0
4
+ version: 11.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - GOV.UK Dev