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: f4b59802a5e4240cad012f8f71ead8a747d9c0c4
4
- data.tar.gz: bcd0dc8d17c08421870f09ef71b4ebdac55a0966
3
+ metadata.gz: 97ba3051ecc1e95787067147d0b49a965553ff4a
4
+ data.tar.gz: 62b2c6823725f0f598b091ecb0464459f237dc66
5
5
  SHA512:
6
- metadata.gz: 82b6de3201c4ea05df44240791c324cc22ed57ef12eb079d9a53d3e620004e957d5661a0038c8dd859914a70bc2aa5af8c5a4d505a27fa4460e13530de7434a6
7
- data.tar.gz: 171163b628d5b0bb4e52ef65b4602de53cb797a79736290e74549b66639d365edacb4ad944a85017f766c279aaacafc7d4f6d648481c802c2f9f5a0db8f33ed8
6
+ metadata.gz: 169fbfb2f126d8f0299626853a4c42ca491fa18e2ca41760e7958c395f25f94f419049567e7721f990158ce03f9223005c24ebad241c661c2ee2bff5200d7bc5
7
+ data.tar.gz: b6dc265a2502f1c49b4a25fb851573ec6ec15a93e1a484f451a9134d0c65f10b5592e53b21502cc0b206a6ffc9d15c3cf48773989b23169c851e62cdefbce9ac
@@ -1,3 +1,7 @@
1
+ ## 9.2.1
2
+
3
+ * No longer return the current page in taxon breadcrumbs.
4
+
1
5
  ## 9.2.0
2
6
 
3
7
  * Step by step navigation helpers have been removed from here. They now live
@@ -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: ordered_breadcrumbs
23
+ breadcrumbs: ordered_parents.reverse
27
24
  }
28
25
  end
29
26
 
@@ -1,3 +1,3 @@
1
1
  module GovukNavigationHelpers
2
- VERSION = "9.2.0".freeze
2
+ VERSION = "9.2.1".freeze
3
3
  end
@@ -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.0
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-12 00:00:00.000000000 Z
11
+ date: 2018-03-16 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activesupport