slimmer 15.6.0 → 15.6.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
  SHA256:
3
- metadata.gz: 6f9dab4037bbee9ec372a2d3093b8645d973ef8db63c8accd2d83bfb6a0f0e46
4
- data.tar.gz: e8551a6f783608f5216ef2caa3ab23b7f15c6e8dca7ef27d1e7cad5b0f58fa2c
3
+ metadata.gz: b50a2f579bef76ba7364de07eaebbf2be8ed7fcbfcb3a2818ff3005a18a65007
4
+ data.tar.gz: 8b1a553d9ccb0b12bef74edd0e9913d440908bf24fce8c529786b092187bf410
5
5
  SHA512:
6
- metadata.gz: 5644a0a8217c1774a288573c9c6953db43c9f8a7b9f6d629a5515a79b953f05f4013cd9e7d55405f6df7e536213569d3e400ec5ae751e5b4a46828a4c93e81f4
7
- data.tar.gz: b5e5d006ad1c69f687efc1201a13b3da4dd5efcbe6620cebf181a4fee49d4bebfc18beb15f2e9b370835c955baa58fa9b79d992d8c4e89484cab2e49c8734733
6
+ metadata.gz: bb82513d196832bc2ce53e88458d19db078c2a73092f88770d101ef6d42323336a9e42ef0537ed132e5233be593a333fb7cdabfd024406d44a735f3a39d2e7e6
7
+ data.tar.gz: 176ffae950e7168365582f5e4956b5cea438582e4e43083132b67014f4d0f8ebbe76370f2f1b2f6264aca221aead761a8a27bf86bd7bde0b5a4c123e7aa73655
data/CHANGELOG.md CHANGED
@@ -1,3 +1,6 @@
1
+ # 15.6.1
2
+ * Use safe navigation operator in feedback url swapper (#273)
3
+
1
4
  # 15.6.0
2
5
 
3
6
  * Add feedback url swapper (#271)
@@ -9,10 +9,10 @@ module Slimmer::Processors
9
9
  return dest unless is_gem_layout?
10
10
 
11
11
  original_url_without_pii = remove_pii(@request.base_url + @request.fullpath)
12
- dest.at_css(".gem-c-feedback input[name='url']").set_attribute("value", original_url_without_pii)
12
+ dest.at_css(".gem-c-feedback input[name='url']")&.set_attribute("value", original_url_without_pii)
13
13
 
14
14
  full_path_without_pii = remove_pii(@request.fullpath)
15
- dest.at_css(".gem-c-feedback input[name='email_survey_signup[survey_source]']").set_attribute("value", full_path_without_pii)
15
+ dest.at_css(".gem-c-feedback input[name='email_survey_signup[survey_source]']")&.set_attribute("value", full_path_without_pii)
16
16
 
17
17
  dest
18
18
  end
@@ -1,3 +1,3 @@
1
1
  module Slimmer
2
- VERSION = "15.6.0".freeze
2
+ VERSION = "15.6.1".freeze
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: slimmer
3
3
  version: !ruby/object:Gem::Version
4
- version: 15.6.0
4
+ version: 15.6.1
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: 2021-07-01 00:00:00.000000000 Z
11
+ date: 2021-07-05 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activesupport