govuk_navigation_helpers 3.2.1 → 4.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: dd98f44e2c886c78e8b0c9e7467c9a77dccad1e8
4
- data.tar.gz: 96ce348af177a0e5d5e36269cddfbfce2c9348ed
3
+ metadata.gz: 67c6579d7b17c38a4f2b3b3b41142fb1394ddecc
4
+ data.tar.gz: 1a94d35026f724ff1acdf9fcd9fc0e61d3ad2c20
5
5
  SHA512:
6
- metadata.gz: 7559601ab14233815629647b7960669e9fcb2823b9c899a7dbff6e1d3009c1716017bbeb576422514dc272b6bce1c31eac73d89e4c9b00b04851030b136e877b
7
- data.tar.gz: 80fb2fd0cac0b2593e4f57a4a5694ac4199aa798d79c27b253e910c42eedf981b1ee5863f7c7d9fe65e25872d4a93f6b5e97413fb6baf72b68a9824d07eaab12
6
+ metadata.gz: 8a2ccb2afd73c62023f5be2eee7fe1c418aff35431e0c677cd818069cf9161428085355f10b8d6d7e856a06d28ad8fdce8ff8b56f691e4d590de96dcb4a7728b
7
+ data.tar.gz: 4bbc31d8dd7314e3e705307a3b3ce7e77111a39c7134a20133becb891a3328213711ed5e288c0f492c94c1ebb89c49d9c92a3bd85e3f1d3364c0f7f4428fe6e2
data/CHANGELOG.md CHANGED
@@ -1,3 +1,11 @@
1
+ ## 4.0.0
2
+
3
+ * **BREAKING CHANGE**: remove `Guidance::DOCUMENT_TYPES`. Clients should use
4
+ filter guidance content using the `navigation_document_supertype` field which
5
+ has been added to search and the content store.
6
+ * Use `navigation_document_supertype` internally in search queries to find
7
+ guidance content.
8
+
1
9
  ## 3.2.1
2
10
 
3
11
  * Add `is_page_parent` flag to the breadcrumb which is the direct parent of the
@@ -1,5 +1,4 @@
1
1
  require 'govuk_navigation_helpers/services'
2
- require 'govuk_navigation_helpers/guidance'
3
2
  require 'govuk_navigation_helpers/configuration'
4
3
 
5
4
  module GovukNavigationHelpers
@@ -43,7 +42,7 @@ module GovukNavigationHelpers
43
42
  start: 0,
44
43
  count: 3,
45
44
  filter_taxons: [taxon.content_id],
46
- filter_content_store_document_type: Guidance::DOCUMENT_TYPES,
45
+ filter_navigation_document_supertype: 'guidance',
47
46
  fields: %w[title link],
48
47
  )['results']
49
48
 
@@ -1,3 +1,3 @@
1
1
  module GovukNavigationHelpers
2
- VERSION = "3.2.1".freeze
2
+ VERSION = "4.0.0".freeze
3
3
  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: 3.2.1
4
+ version: 4.0.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: 2017-03-14 00:00:00.000000000 Z
11
+ date: 2017-03-16 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: gds-api-adapters
@@ -174,7 +174,6 @@ files:
174
174
  - lib/govuk_navigation_helpers/configuration.rb
175
175
  - lib/govuk_navigation_helpers/content_item.rb
176
176
  - lib/govuk_navigation_helpers/grouped_related_links.rb
177
- - lib/govuk_navigation_helpers/guidance.rb
178
177
  - lib/govuk_navigation_helpers/related_items.rb
179
178
  - lib/govuk_navigation_helpers/services.rb
180
179
  - lib/govuk_navigation_helpers/taxon_breadcrumbs.rb
@@ -1,30 +0,0 @@
1
- module GovukNavigationHelpers
2
- module Guidance
3
- # DO NOT COPY THIS LIST
4
- # This hard-coded list is a temporary measure, and will eventually be replaced by a change in Rummager that
5
- # will allow us to search for "Guidance" content.
6
- # See: https://trello.com/c/hxGPJ9jw/435-consolidate-guidance-document-types-into-search
7
- DOCUMENT_TYPES = %w[
8
- answer
9
- contact
10
- detailed_guide
11
- document_collection
12
- form
13
- guidance
14
- guide
15
- licence
16
- local_transaction
17
- manual
18
- map
19
- place
20
- programme
21
- promotional
22
- regulation
23
- simple_smart_answer
24
- smart_answer
25
- statutory_guidance
26
- transaction
27
- travel_advice
28
- ].freeze
29
- end
30
- end