govuk_navigation_helpers 9.2.0 → 9.2.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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 97ba3051ecc1e95787067147d0b49a965553ff4a
|
4
|
+
data.tar.gz: 62b2c6823725f0f598b091ecb0464459f237dc66
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 169fbfb2f126d8f0299626853a4c42ca491fa18e2ca41760e7958c395f25f94f419049567e7721f990158ce03f9223005c24ebad241c661c2ee2bff5200d7bc5
|
7
|
+
data.tar.gz: b6dc265a2502f1c49b4a25fb851573ec6ec15a93e1a484f451a9134d0c65f10b5592e53b21502cc0b206a6ffc9d15c3cf48773989b23169c851e62cdefbce9ac
|
data/CHANGELOG.md
CHANGED
@@ -17,13 +17,10 @@ module GovukNavigationHelpers
|
|
17
17
|
title: "Home",
|
18
18
|
url: "/",
|
19
19
|
is_page_parent: ordered_parents.empty?
|
20
|
-
}
|
21
|
-
|
22
|
-
ordered_breadcrumbs = ordered_parents.reverse
|
23
|
-
ordered_breadcrumbs << { title: content_item.title, is_current_page: true }
|
20
|
+
}
|
24
21
|
|
25
22
|
{
|
26
|
-
breadcrumbs:
|
23
|
+
breadcrumbs: ordered_parents.reverse
|
27
24
|
}
|
28
25
|
end
|
29
26
|
|
@@ -26,7 +26,6 @@ RSpec.describe GovukNavigationHelpers::TaxonBreadcrumbs do
|
|
26
26
|
expect(breadcrumbs).to eq(
|
27
27
|
breadcrumbs: [
|
28
28
|
{ title: "Home", url: "/", is_page_parent: true },
|
29
|
-
{ title: "Some Content", is_current_page: true }
|
30
29
|
]
|
31
30
|
)
|
32
31
|
end
|
@@ -39,7 +38,6 @@ RSpec.describe GovukNavigationHelpers::TaxonBreadcrumbs do
|
|
39
38
|
breadcrumbs: [
|
40
39
|
{ title: "Home", url: "/", is_page_parent: false },
|
41
40
|
{ title: "Taxon", url: "/taxon", is_page_parent: true },
|
42
|
-
{ title: "Some Content", is_current_page: true },
|
43
41
|
]
|
44
42
|
)
|
45
43
|
end
|
@@ -74,7 +72,6 @@ RSpec.describe GovukNavigationHelpers::TaxonBreadcrumbs do
|
|
74
72
|
{ title: "Another-parent", url: "/another-parent", is_page_parent: false },
|
75
73
|
{ title: "A-parent", url: "/a-parent", is_page_parent: false },
|
76
74
|
{ title: "Taxon", url: "/taxon", is_page_parent: true },
|
77
|
-
{ title: "Some Content", is_current_page: true },
|
78
75
|
]
|
79
76
|
)
|
80
77
|
end
|
@@ -100,7 +97,6 @@ RSpec.describe GovukNavigationHelpers::TaxonBreadcrumbs do
|
|
100
97
|
breadcrumbs: [
|
101
98
|
{ title: "Home", url: "/", is_page_parent: false },
|
102
99
|
{ title: "A-parent", url: "/a-parent", is_page_parent: true },
|
103
|
-
{ title: "Taxon", is_current_page: true },
|
104
100
|
]
|
105
101
|
)
|
106
102
|
end
|
@@ -136,7 +132,6 @@ RSpec.describe GovukNavigationHelpers::TaxonBreadcrumbs do
|
|
136
132
|
breadcrumbs: [
|
137
133
|
{ title: "Home", url: "/", is_page_parent: false },
|
138
134
|
{ title: "Parent A", url: "/parent-a", is_page_parent: true },
|
139
|
-
{ title: "Taxon", is_current_page: true },
|
140
135
|
]
|
141
136
|
)
|
142
137
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: govuk_navigation_helpers
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 9.2.
|
4
|
+
version: 9.2.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: 2018-03-
|
11
|
+
date: 2018-03-16 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activesupport
|