govuk-components 5.8.0 → 5.9.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 +4 -4
- data/README.md +1 -1
- data/app/components/govuk_component/header_component.rb +6 -0
- data/lib/govuk/components/version.rb +1 -1
- metadata +5 -5
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: d34fcc2705a109d7ac1675b9e27e0f1b0c7672e1926516c96f9da3309ff9a661
|
4
|
+
data.tar.gz: 48b66febcb4ae274be569a55ed93cf1dc978e42a2580040d2bbfec7a48b137b3
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: abd7d44e3c988fbbd8bc4095c1a96f5529ec73ff4b0c56f8a8016933409bd40aa6cb8287c826ed4b3275cc3b32acc69c51b161d7bef110472aeffb7998172e8f
|
7
|
+
data.tar.gz: df6781cfbd9f951a2158a9f5c3b52851cb1987e769b85d10e9f3bee30f5be093a6a0be91eef9a6065c1115260c84d844028814cd9777effe4fba1cc7d23de521
|
data/README.md
CHANGED
@@ -6,7 +6,7 @@
|
|
6
6
|
[](https://rubygems.org/gems/govuk-components)
|
7
7
|
[](https://codeclimate.com/github/x-govuk/govuk-components/test_coverage)
|
8
8
|
[](https://github.com/x-govuk/govuk-components/blob/main/LICENSE.txt)
|
9
|
-
[](https://design-system.service.gov.uk)
|
10
10
|
[](https://viewcomponent.org/)
|
11
11
|
[](https://weblog.rubyonrails.org/releases/)
|
12
12
|
[](https://www.ruby-lang.org/en/downloads/)
|
@@ -35,6 +35,12 @@ class GovukComponent::HeaderComponent < GovukComponent::Base
|
|
35
35
|
super(classes:, html_attributes:)
|
36
36
|
end
|
37
37
|
|
38
|
+
def before_render
|
39
|
+
if service_name.present? || navigation_items.present?
|
40
|
+
Rails.logger.warn('Service name and navigation links are deprecated and will be removed in the next breaking release of GOV.UK Frontend. See https://github.com/alphagov/govuk-frontend/releases/tag/v5.9.0')
|
41
|
+
end
|
42
|
+
end
|
43
|
+
|
38
44
|
private
|
39
45
|
|
40
46
|
def default_attributes
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: govuk-components
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 5.
|
4
|
+
version: 5.9.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- DfE developers
|
8
|
-
autorequire:
|
8
|
+
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2025-
|
11
|
+
date: 2025-03-16 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: html-attributes-utils
|
@@ -408,7 +408,7 @@ homepage: https://github.com/x-govuk/govuk-components
|
|
408
408
|
licenses:
|
409
409
|
- MIT
|
410
410
|
metadata: {}
|
411
|
-
post_install_message:
|
411
|
+
post_install_message:
|
412
412
|
rdoc_options: []
|
413
413
|
require_paths:
|
414
414
|
- lib
|
@@ -424,7 +424,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
424
424
|
version: '0'
|
425
425
|
requirements: []
|
426
426
|
rubygems_version: 3.3.27
|
427
|
-
signing_key:
|
427
|
+
signing_key:
|
428
428
|
specification_version: 4
|
429
429
|
summary: GOV.UK Components for Ruby on Rails
|
430
430
|
test_files: []
|