govuk-components 5.4.0 → 5.4.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
  SHA256:
3
- metadata.gz: 256f2b26630618b529e87a94d317023040735cd2c8e54ea2a08d8eed10fa4a08
4
- data.tar.gz: 3b30ab70d1558f640e57ba716a58688e919c10c1a4d7c875014f87512fbd04a0
3
+ metadata.gz: 1d037e6a51585affc8348baa7281f54836ea5c2260ab699ff8c7f310510250fe
4
+ data.tar.gz: 1b8652e07faec38916c66139820cd475edae60a265d197a3f8c3a0a73ce4e006
5
5
  SHA512:
6
- metadata.gz: 191506c0a3a60eeed0d7709f11b6cb0841835c3b682243cff33682a9413f6549008c00ac2c1ff4dde11c9f1ab74aa5afea546846cee3087997079e658166f18c
7
- data.tar.gz: 3dc93e688f1d2182d359330ca45b15832dcfde674f56e415f9394f05c88977a7dc4b23b1e866afeb7a652ed14e0a4f3185e6e9fd048c98577c2b1f9b919856be
6
+ metadata.gz: 00f1401dd29c05608b957fb85129e594edd80b8d025a49be8ce70902afe744ac4dfa0aac4d75f910eb151826a143b40315af207af2079bf333b4f8903bfb0d8c
7
+ data.tar.gz: 93d6e1c7ad270a22218c196cde1ecf3739927fb76525d5b48d93952933ff8827b4fa00d9c17f406c9b30422e73e076ae53bb4013d31fe6974826a75b88aae6fd
data/README.md CHANGED
@@ -6,10 +6,10 @@
6
6
  [![Gem](https://img.shields.io/gem/dt/govuk-components?logo=rubygems)](https://rubygems.org/gems/govuk-components)
7
7
  [![Test coverage](https://api.codeclimate.com/v1/badges/cbcbc140f300b920d833/test_coverage)](https://codeclimate.com/github/x-govuk/govuk-components/test_coverage)
8
8
  [![Licence](https://img.shields.io/github/license/x-govuk/govuk-components)](https://github.com/x-govuk/govuk-components/blob/main/LICENSE.txt)
9
- [![GOV.UK Design System version](https://img.shields.io/badge/GOV.UK%20Design%20System-5.4.0-brightgreen)](https://design-system.service.gov.uk)
9
+ [![GOV.UK Design System version](https://img.shields.io/badge/GOV.UK%20Design%20System-5.4.1-brightgreen)](https://design-system.service.gov.uk)
10
10
  [![ViewComponent](https://img.shields.io/badge/ViewComponent-3.3.0-brightgreen)](https://viewcomponent.org/)
11
- [![Rails](https://img.shields.io/badge/Rails-7.0.8%20%E2%95%B1%207.1.0-E16D6D)](https://weblog.rubyonrails.org/releases/)
12
- [![Ruby](https://img.shields.io/badge/Ruby-3.1.4%20%20%E2%95%B1%203.2.2%20%20%E2%95%B1%203.3.0-E16D6D)](https://www.ruby-lang.org/en/downloads/)
11
+ [![Rails](https://img.shields.io/badge/Rails-7.0.8%20%E2%95%B1%207.1.3-E16D6D)](https://weblog.rubyonrails.org/releases/)
12
+ [![Ruby](https://img.shields.io/badge/Ruby-3.1.6%20%20%E2%95%B1%203.2.4%20%20%E2%95%B1%203.3.4-E16D6D)](https://www.ruby-lang.org/en/downloads/)
13
13
 
14
14
  This gem provides a suite of reusable components for the [GOV.UK Design System](https://design-system.service.gov.uk/). It is intended to provide a lightweight alternative to the [GOV.UK Publishing Components](https://github.com/alphagov/govuk_publishing_components) library and is built with GitHub’s [ViewComponent](https://github.com/github/view_component) framework.
15
15
 
@@ -18,6 +18,6 @@ private
18
18
  end
19
19
 
20
20
  def value_content
21
- content || text || ""
21
+ content || text || config.default_summary_list_value_text
22
22
  end
23
23
  end
@@ -63,6 +63,7 @@ module Govuk
63
63
  # +:default_tag_colour+ the default colour for tags, possible values: +grey+, +green+, +turquoise+, +blue+, +red+, +purple+, +pink+, +orange+, +yellow+. Defaults to +nil+
64
64
  # +:default_start_button_as_button+ false
65
65
  # +:default_summary_list_borders+ true
66
+ # +:default_summary_list_value_text+ the fallback text for summary list values which will be displayed when the value is nil. Defaults to +""+
66
67
  # +:default_notification_banner_title_id+ "govuk-notification-banner-title"
67
68
  # +:default_notification_disable_auto_focus+ nil
68
69
  # +:default_notification_title_heading_level+ 2
@@ -104,6 +105,7 @@ module Govuk
104
105
  default_tag_colour: nil,
105
106
  default_start_button_as_button: false,
106
107
  default_summary_list_borders: true,
108
+ default_summary_list_value_text: "",
107
109
  default_notification_banner_title_id: "govuk-notification-banner-title",
108
110
  default_notification_disable_auto_focus: nil,
109
111
  default_notification_title_heading_level: 2,
@@ -1,5 +1,5 @@
1
1
  module Govuk
2
2
  module Components
3
- VERSION = '5.4.0'.freeze
3
+ VERSION = '5.4.1'.freeze
4
4
  end
5
5
  end
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.0
4
+ version: 5.4.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - DfE developers
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2024-05-17 00:00:00.000000000 Z
11
+ date: 2024-07-18 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: html-attributes-utils
@@ -132,14 +132,14 @@ dependencies:
132
132
  requirements:
133
133
  - - '='
134
134
  - !ruby/object:Gem::Version
135
- version: 4.16.1
135
+ version: 5.0.1
136
136
  type: :development
137
137
  prerelease: false
138
138
  version_requirements: !ruby/object:Gem::Requirement
139
139
  requirements:
140
140
  - - '='
141
141
  - !ruby/object:Gem::Version
142
- version: 4.16.1
142
+ version: 5.0.1
143
143
  - !ruby/object:Gem::Dependency
144
144
  name: sassc-rails
145
145
  requirement: !ruby/object:Gem::Requirement
@@ -230,14 +230,14 @@ dependencies:
230
230
  requirements:
231
231
  - - "~>"
232
232
  - !ruby/object:Gem::Version
233
- version: 4.2.0
233
+ version: 4.3.0
234
234
  type: :development
235
235
  prerelease: false
236
236
  version_requirements: !ruby/object:Gem::Requirement
237
237
  requirements:
238
238
  - - "~>"
239
239
  - !ruby/object:Gem::Version
240
- version: 4.2.0
240
+ version: 4.3.0
241
241
  - !ruby/object:Gem::Dependency
242
242
  name: rubypants
243
243
  requirement: !ruby/object:Gem::Requirement
@@ -420,7 +420,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
420
420
  - !ruby/object:Gem::Version
421
421
  version: '0'
422
422
  requirements: []
423
- rubygems_version: 3.3.26
423
+ rubygems_version: 3.3.27
424
424
  signing_key:
425
425
  specification_version: 4
426
426
  summary: GOV.UK Components for Ruby on Rails