slimmer 15.4.1 → 15.5.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +3 -0
- data/lib/slimmer/processors/accounts_shower.rb +8 -1
- data/lib/slimmer/processors/search_remover.rb +3 -0
- data/lib/slimmer/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: cc08f967bc13790ee7db7c1ee0b8ef0aaf07f5d7fb904c6ef1f3e6ce16650287
|
4
|
+
data.tar.gz: 8807bcfc49959843c3c1beeae148aa3c3a89e2dce1bb1ecbaf450543de62049f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b2f694bacade80d4c78994adc2df5a0e9feaa202ca27bcf982cfa68142a31642ebbdde19fc7a2ef0222411a0a632ebbae969244f43d625644b25fb4bfd0fed85
|
7
|
+
data.tar.gz: 063ee728d14b6342bbb53247a7bb231a5fea95f4f7aebc839cc67117a6ca104c8fdea8ce5dcdb2ab83f18dfebc7397d9dab6143bd384b9b13367b91e4d79d50e
|
data/CHANGELOG.md
CHANGED
@@ -8,9 +8,10 @@ module Slimmer::Processors
|
|
8
8
|
header_value = @headers[Slimmer::Headers::SHOW_ACCOUNTS_HEADER]
|
9
9
|
layout_header = dest.at_css(".gem-c-layout-header")
|
10
10
|
static_header = dest.at_css("#global-header")
|
11
|
+
|
11
12
|
if header_value && layout_header
|
12
13
|
static_header.remove if static_header
|
13
|
-
elsif !header_value
|
14
|
+
elsif !header_value && !is_gem_layout?
|
14
15
|
layout_header.remove if layout_header
|
15
16
|
end
|
16
17
|
|
@@ -43,5 +44,11 @@ module Slimmer::Processors
|
|
43
44
|
link.parent.remove
|
44
45
|
end
|
45
46
|
end
|
47
|
+
|
48
|
+
private
|
49
|
+
|
50
|
+
def is_gem_layout?
|
51
|
+
@headers[Slimmer::Headers::TEMPLATE_HEADER]&.starts_with?("gem_layout")
|
52
|
+
end
|
46
53
|
end
|
47
54
|
end
|
data/lib/slimmer/version.rb
CHANGED
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.
|
4
|
+
version: 15.5.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: 2021-
|
11
|
+
date: 2021-04-07 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activesupport
|