govuk-components 5.11.0 → 5.11.2

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
  SHA256:
3
- metadata.gz: ff8513a3e7560aefda5dd1ac13627c0112e1ac7d547cb19b68a4923de2a735cb
4
- data.tar.gz: 4c7f171f2cf6b3722ef88929b9be888a70eb78c5af686ac556d6c416b8f456f9
3
+ metadata.gz: 1bcb4609259d09a486d67fc1fbf6f11179f25ea8f8cfd04e051f9257f01cd8e9
4
+ data.tar.gz: e5e8347531ef9d22e07d234883fa581315212736ec59ef238a556458bd62e775
5
5
  SHA512:
6
- metadata.gz: 64e8de9cdc6676a4a7e1afd0ae30dfe218598e807932f66f03d427a5a444c6ce14792a4d6e158b65137e43dfb638ccc76a30c65fe7c4f3eeebd6f73db440400b
7
- data.tar.gz: 3e1301d7bf1b67fa67496b896365623739037bdfcdde05cde295d5da60f1b5bb44adf71fd171d1d1d1f501c9651a0706aeee4d13eab88bf812d1291c1632ec04
6
+ metadata.gz: 7ca84d4746fee1fe9f8d130aa8f72dc52a3a9a674f1bcb0a22b428fa53b269f053c9cbed53f88be9dfa2e2d221ccdf40b3db3d93bc769c4b3068c9220105cee8
7
+ data.tar.gz: 235860d50ee056ff98ad2a5f6473e83ebcf93dae975fde35bbe5561a5f1a267699f6a7cb0037553caca100310637d255ba835169206e29914c3d72169a124241
data/README.md CHANGED
@@ -1,12 +1,10 @@
1
1
  # GOV.UK Components for Ruby on Rails
2
2
 
3
3
  [![Tests](https://github.com/x-govuk/govuk-components/actions/workflows/tests.yml/badge.svg?branch=main)](https://github.com/x-govuk/govuk-components/actions/workflows/tests.yml)
4
- [![Maintainability](https://api.codeclimate.com/v1/badges/cbcbc140f300b920d833/maintainability)](https://codeclimate.com/github/x-govuk/govuk-components/maintainability)
5
4
  [![Gem version](https://badge.fury.io/rb/govuk-components.svg)](https://badge.fury.io/rb/govuk-components)
6
5
  [![Gem](https://img.shields.io/gem/dt/govuk-components?logo=rubygems)](https://rubygems.org/gems/govuk-components)
7
- [![Test coverage](https://api.codeclimate.com/v1/badges/cbcbc140f300b920d833/test_coverage)](https://codeclimate.com/github/x-govuk/govuk-components/test_coverage)
8
6
  [![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.11.0-brightgreen)](https://design-system.service.gov.uk)
7
+ [![GOV.UK Design System version](https://img.shields.io/badge/GOV.UK%20Design%20System-5.11.2-brightgreen)](https://design-system.service.gov.uk)
10
8
  [![ViewComponent](https://img.shields.io/badge/ViewComponent-3.24.0-brightgreen)](https://viewcomponent.org/)
11
9
  [![Rails](https://img.shields.io/badge/Rails-7.1.5%20%E2%95%B1%207.2.2%20%E2%95%B1%208.0.0-E16D6D)](https://weblog.rubyonrails.org/releases/)
12
10
  [![Ruby](https://img.shields.io/badge/Ruby-3.2.5%20%20%E2%95%B1%203.2.6%20%20%E2%95%B1%203.3.6-E16D6D)](https://www.ruby-lang.org/en/downloads/)
@@ -33,8 +31,8 @@ The provided components are:
33
31
  * [Cookie banner](https://govuk-components.netlify.app/components/cookie-banner)
34
32
  * [Details](https://govuk-components.netlify.app/components/details)
35
33
  * [Exit this page](https://govuk-components.netlify.app/components/exit-this-page)
36
- * [Footer](https://govuk-components.netlify.app/components/footer)
37
- * [Header](https://govuk-components.netlify.app/components/header)
34
+ * [GOV.UK footer](https://govuk-components.netlify.app/components/footer)
35
+ * [GOV.UK header](https://govuk-components.netlify.app/components/header)
38
36
  * [Inset text](https://govuk-components.netlify.app/components/inset-text)
39
37
  * [Notification banner](https://govuk-components.netlify.app/components/notification-banner)
40
38
  * [Panel](https://govuk-components.netlify.app/components/panel)
@@ -23,7 +23,7 @@ class GovukComponent::Base < ViewComponent::Base
23
23
  .deep_merge_html_attributes(html_attributes)
24
24
  .deep_tidy_html_attributes
25
25
 
26
- super
26
+ super()
27
27
  end
28
28
 
29
29
  def brand(override = nil)
@@ -2,15 +2,15 @@
2
2
  <%= tag.div(**container_html_attributes) do %>
3
3
  <%= tag.svg(class: "#{brand}-footer__crown", focusable: "false", role: "presentation", xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 64 60", height: "30", width: "32", fill: "currentColor") do %>
4
4
  <g>
5
- <circle cx="20" cy="17.6" r="3.7"></circle>
6
- <circle cx="10.2" cy="23.5" r="3.7"></circle>
7
- <circle cx="3.7" cy="33.2" r="3.7"></circle>
8
- <circle cx="31.7" cy="30.6" r="3.7"></circle>
9
- <circle cx="43.3" cy="17.6" r="3.7"></circle>
10
- <circle cx="53.2" cy="23.5" r="3.7"></circle>
11
- <circle cx="59.7" cy="33.2" r="3.7"></circle>
12
- <circle cx="31.7" cy="30.6" r="3.7"></circle>
13
- <path d="M33.1,9.8c.2-.1.3-.3.5-.5l4.6,2.4v-6.8l-4.6,1.5c-.1-.2-.3-.3-.5-.5l1.9-5.9h-6.7l1.9,5.9c-.2.1-.3.3-.5.5l-4.6-1.5v6.8l4.6-2.4c.1.2.3.3.5.5l-2.6,8c-.9,2.8,1.2,5.7,4.1,5.7h0c3,0,5.1-2.9,4.1-5.7l-2.6-8ZM37,37.9s-3.4,3.8-4.1,6.1c2.2,0,4.2-.5,6.4-2.8l-.7,8.5c-2-2.8-4.4-4.1-5.7-3.8.1,3.1.5,6.7,5.8,7.2,3.7.3,6.7-1.5,7-3.8.4-2.6-2-4.3-3.7-1.6-1.4-4.5,2.4-6.1,4.9-3.2-1.9-4.5-1.8-7.7,2.4-10.9,3,4,2.6,7.3-1.2,11.1,2.4-1.3,6.2,0,4,4.6-1.2-2.8-3.7-2.2-4.2.2-.3,1.7.7,3.7,3,4.2,1.9.3,4.7-.9,7-5.9-1.3,0-2.4.7-3.9,1.7l2.4-8c.6,2.3,1.4,3.7,2.2,4.5.6-1.6.5-2.8,0-5.3l5,1.8c-2.6,3.6-5.2,8.7-7.3,17.5-7.4-1.1-15.7-1.7-24.5-1.7h0c-8.8,0-17.1.6-24.5,1.7-2.1-8.9-4.7-13.9-7.3-17.5l5-1.8c-.5,2.5-.6,3.7,0,5.3.8-.8,1.6-2.3,2.2-4.5l2.4,8c-1.5-1-2.6-1.7-3.9-1.7,2.3,5,5.2,6.2,7,5.9,2.3-.4,3.3-2.4,3-4.2-.5-2.4-3-3.1-4.2-.2-2.2-4.6,1.6-6,4-4.6-3.7-3.7-4.2-7.1-1.2-11.1,4.2,3.2,4.3,6.4,2.4,10.9,2.5-2.8,6.3-1.3,4.9,3.2-1.8-2.7-4.1-1-3.7,1.6.3,2.3,3.3,4.1,7,3.8,5.4-.5,5.7-4.2,5.8-7.2-1.3-.2-3.7,1-5.7,3.8l-.7-8.5c2.2,2.3,4.2,2.7,6.4,2.8-.7-2.3-4.1-6.1-4.1-6.1h10.6,0Z"></path>
5
+ <circle cx="20" cy="17.6" r="3.7"/>
6
+ <circle cx="10.2" cy="23.5" r="3.7"/>
7
+ <circle cx="3.7" cy="33.2" r="3.7"/>
8
+ <circle cx="31.7" cy="30.6" r="3.7"/>
9
+ <circle cx="43.3" cy="17.6" r="3.7"/>
10
+ <circle cx="53.2" cy="23.5" r="3.7"/>
11
+ <circle cx="59.7" cy="33.2" r="3.7"/>
12
+ <circle cx="31.7" cy="30.6" r="3.7"/>
13
+ <path d="M33.1,9.8c.2-.1.3-.3.5-.5l4.6,2.4v-6.8l-4.6,1.5c-.1-.2-.3-.3-.5-.5l1.9-5.9h-6.7l1.9,5.9c-.2.1-.3.3-.5.5l-4.6-1.5v6.8l4.6-2.4c.1.2.3.3.5.5l-2.6,8c-.9,2.8,1.2,5.7,4.1,5.7h0c3,0,5.1-2.9,4.1-5.7l-2.6-8ZM37,37.9s-3.4,3.8-4.1,6.1c2.2,0,4.2-.5,6.4-2.8l-.7,8.5c-2-2.8-4.4-4.1-5.7-3.8.1,3.1.5,6.7,5.8,7.2,3.7.3,6.7-1.5,7-3.8.4-2.6-2-4.3-3.7-1.6-1.4-4.5,2.4-6.1,4.9-3.2-1.9-4.5-1.8-7.7,2.4-10.9,3,4,2.6,7.3-1.2,11.1,2.4-1.3,6.2,0,4,4.6-1.2-2.8-3.7-2.2-4.2.2-.3,1.7.7,3.7,3,4.2,1.9.3,4.7-.9,7-5.9-1.3,0-2.4.7-3.9,1.7l2.4-8c.6,2.3,1.4,3.7,2.2,4.5.6-1.6.5-2.8,0-5.3l5,1.8c-2.6,3.6-5.2,8.7-7.3,17.5-7.4-1.1-15.7-1.7-24.5-1.7h0c-8.8,0-17.1.6-24.5,1.7-2.1-8.9-4.7-13.9-7.3-17.5l5-1.8c-.5,2.5-.6,3.7,0,5.3.8-.8,1.6-2.3,2.2-4.5l2.4,8c-1.5-1-2.6-1.7-3.9-1.7,2.3,5,5.2,6.2,7,5.9,2.3-.4,3.3-2.4,3-4.2-.5-2.4-3-3.1-4.2-.2-2.2-4.6,1.6-6,4-4.6-3.7-3.7-4.2-7.1-1.2-11.1,4.2,3.2,4.3,6.4,2.4,10.9,2.5-2.8,6.3-1.3,4.9,3.2-1.8-2.7-4.1-1-3.7,1.6.3,2.3,3.3,4.1,7,3.8,5.4-.5,5.7-4.2,5.8-7.2-1.3-.2-3.7,1-5.7,3.8l-.7-8.5c2.2,2.3,4.2,2.7,6.4,2.8-.7-2.3-4.1-6.1-4.1-6.1h10.6,0Z"/>
14
14
  </g>
15
15
  <% end %>
16
16
 
@@ -48,7 +48,7 @@
48
48
 
49
49
  <% if meta_licence_content.nil? %>
50
50
  <svg aria-hidden="true" focusable="false" class="<%= brand %>-footer__licence-logo" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 483.2 195.7" height="17" width="41">
51
- <path fill="currentColor" d="M421.5 142.8V.1l-50.7 32.3v161.1h112.4v-50.7zm-122.3-9.6A47.12 47.12 0 0 1 221 97.8c0-26 21.1-47.1 47.1-47.1 16.7 0 31.4 8.7 39.7 21.8l42.7-27.2A97.63 97.63 0 0 0 268.1 0c-36.5 0-68.3 20.1-85.1 49.7A98 98 0 0 0 97.8 0C43.9 0 0 43.9 0 97.8s43.9 97.8 97.8 97.8c36.5 0 68.3-20.1 85.1-49.7a97.76 97.76 0 0 0 149.6 25.4l19.4 22.2h3v-87.8h-80l24.3 27.5zM97.8 145c-26 0-47.1-21.1-47.1-47.1s21.1-47.1 47.1-47.1 47.2 21 47.2 47S123.8 145 97.8 145" />
51
+ <path fill="currentColor" d="M421.5 142.8V.1l-50.7 32.3v161.1h112.4v-50.7zm-122.3-9.6A47.12 47.12 0 0 1 221 97.8c0-26 21.1-47.1 47.1-47.1 16.7 0 31.4 8.7 39.7 21.8l42.7-27.2A97.63 97.63 0 0 0 268.1 0c-36.5 0-68.3 20.1-85.1 49.7A98 98 0 0 0 97.8 0C43.9 0 0 43.9 0 97.8s43.9 97.8 97.8 97.8c36.5 0 68.3-20.1 85.1-49.7a97.76 97.76 0 0 0 149.6 25.4l19.4 22.2h3v-87.8h-80l24.3 27.5zM97.8 145c-26 0-47.1-21.1-47.1-47.1s21.1-47.1 47.1-47.1 47.2 21 47.2 47S123.8 145 97.8 145"/>
52
52
  </svg>
53
53
 
54
54
  <%= tag.span(default_licence, class: "#{brand}-footer__licence-description") %>
@@ -9,26 +9,27 @@
9
9
  focusable="false"
10
10
  role="img"
11
11
  xmlns="http://www.w3.org/2000/svg"
12
- viewBox="0 0 163 30"
12
+ viewBox="0 0 324 60"
13
13
  height="30"
14
- width="163"
14
+ width="162"
15
+ fill="currentcolor"
15
16
  class="<%= brand %>-header__logotype"
16
17
  aria-label="GOV.UK"
17
18
  >
18
19
  <title>GOV.UK</title>
19
20
  <g>
20
- <circle cx="10.1" cy="8.8" r="1.8"></circle>
21
- <circle cx="5.2" cy="11.7" r="1.8"></circle>
22
- <circle cx="1.9" cy="16.6" r="1.8"></circle>
23
- <circle cx="16" cy="15.3" r="1.8"></circle>
24
- <circle cx="21.9" cy="8.8" r="1.8"></circle>
25
- <circle cx="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"></path>
21
+ <circle cx="20" cy="17.6" r="3.7"/>
22
+ <circle cx="10.2" cy="23.5" r="3.7"/>
23
+ <circle cx="3.7" cy="33.2" r="3.7"/>
24
+ <circle cx="31.7" cy="30.6" r="3.7"/>
25
+ <circle cx="43.3" cy="17.6" r="3.7"/>
26
+ <circle cx="53.2" cy="23.5" r="3.7"/>
27
+ <circle cx="59.7" cy="33.2" r="3.7"/>
28
+ <circle cx="31.7" cy="30.6" r="3.7"/>
29
+ <path d="M33.1,9.8c.2-.1.3-.3.5-.5l4.6,2.4v-6.8l-4.6,1.5c-.1-.2-.3-.3-.5-.5l1.9-5.9h-6.7l1.9,5.9c-.2.1-.3.3-.5.5l-4.6-1.5v6.8l4.6-2.4c.1.2.3.3.5.5l-2.6,8c-.9,2.8,1.2,5.7,4.1,5.7h0c3,0,5.1-2.9,4.1-5.7l-2.6-8ZM37,37.9s-3.4,3.8-4.1,6.1c2.2,0,4.2-.5,6.4-2.8l-.7,8.5c-2-2.8-4.4-4.1-5.7-3.8.1,3.1.5,6.7,5.8,7.2,3.7.3,6.7-1.5,7-3.8.4-2.6-2-4.3-3.7-1.6-1.4-4.5,2.4-6.1,4.9-3.2-1.9-4.5-1.8-7.7,2.4-10.9,3,4,2.6,7.3-1.2,11.1,2.4-1.3,6.2,0,4,4.6-1.2-2.8-3.7-2.2-4.2.2-.3,1.7.7,3.7,3,4.2,1.9.3,4.7-.9,7-5.9-1.3,0-2.4.7-3.9,1.7l2.4-8c.6,2.3,1.4,3.7,2.2,4.5.6-1.6.5-2.8,0-5.3l5,1.8c-2.6,3.6-5.2,8.7-7.3,17.5-7.4-1.1-15.7-1.7-24.5-1.7h0c-8.8,0-17.1.6-24.5,1.7-2.1-8.9-4.7-13.9-7.3-17.5l5-1.8c-.5,2.5-.6,3.7,0,5.3.8-.8,1.6-2.3,2.2-4.5l2.4,8c-1.5-1-2.6-1.7-3.9-1.7,2.3,5,5.2,6.2,7,5.9,2.3-.4,3.3-2.4,3-4.2-.5-2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-1.7-1.3-3.3-2.2-4.5-1-1.3-2.2-2.3-3.6-3-1.4-.7-3.1-1.1-5-1.1s-3.6.4-5,1.1c-1.5.7-2.7,1.7-3.6,3s-1.7,2.8-2.2,4.5c-.5,1.7-.8,3.6-.8,5.7v.2c0,2.1.3,4,.8,5.7.5,1.7,1.2,3.2,2.2,4.5,1,1.3,2.2,2.3,3.6,3,1.5.7,3.1,1.1,5,1.1ZM189.1,58l-12.3-44h9.8l8.4,32.9h.3l8.2-32.9h9.7l-12.3,44M262.9,50.4c1.3,0,2.5-.2,3.6-.6,1.1-.4,2-.9,2.8-1.7.8-.8,1.4-1.7,1.9-2.9.5-1.2.7-2.5.7-4.1V14h8.6v28.5c0,2.4-.4,4.6-1.3,6.6-.9,2-2.1,3.6-3.7,5-1.6,1.4-3.4,2.4-5.6,3.2-2.2.7-4.5,1.1-7.1,1.1s-4.9-.4-7.1-1.1c-2.2-.7-4-1.8-5.6-3.2s-2.8-3-3.7-5c-.9-2-1.3-4.1-1.3-6.6V14h8.7v27.2c0,1.6.2,2.9.7,4.1.5,1.2,1.1,2.1,1.9,2.9.8.8,1.7,1.3,2.8,1.7s2.3.6,3.6.6h0ZM288.5,14h8.7v19.1l15.5-19.1h10.8l-15.1,17.6,16.1,26.4h-10.2l-11.5-19.7-5.6,6.3v13.5h-8.7"/>
32
33
  </svg>
33
34
  <% end %>
34
35
  <% if product_name.present? %>
@@ -16,14 +16,15 @@ class GovukComponent::ServiceNavigationComponent < GovukComponent::Base
16
16
  )
17
17
  end
18
18
 
19
- attr_reader :aria_label_text, :navigation_id
19
+ attr_reader :aria_label_text, :navigation_id, :inverse
20
20
 
21
- def initialize(service_name: nil, service_url: nil, navigation_items: [], current_path: nil, aria_label: "Service information", navigation_id: 'navigation', classes: [], html_attributes: {})
21
+ def initialize(service_name: nil, service_url: nil, navigation_items: [], current_path: nil, aria_label: "Service information", navigation_id: 'navigation', inverse: false, classes: [], html_attributes: {})
22
22
  @service_name_text = service_name
23
23
  @service_url = service_url
24
24
  @current_path = current_path
25
25
  @aria_label_text = aria_label
26
26
  @navigation_id = navigation_id
27
+ @inverse = inverse
27
28
 
28
29
  if @service_name_text.present?
29
30
  with_service_name(service_name: @service_name_text, service_url:)
@@ -73,7 +74,13 @@ private
73
74
  end
74
75
 
75
76
  def default_attributes
76
- { class: "#{brand}-service-navigation", data: { module: "#{brand}-service-navigation" } }
77
+ {
78
+ class: class_names(
79
+ "#{brand}-service-navigation",
80
+ "#{brand}-service-navigation--inverse" => inverse,
81
+ ),
82
+ data: { module: "#{brand}-service-navigation" },
83
+ }
77
84
  end
78
85
 
79
86
  def aria_attributes
@@ -4,17 +4,6 @@ class GovukComponent::TableComponent::CellComponent < GovukComponent::Base
4
4
  alias_method :numeric?, :numeric
5
5
  alias_method :header?, :header
6
6
 
7
- def self.widths
8
- {
9
- "full" => "#{brand}-!-width-full",
10
- "three-quarters" => "#{brand}-!-width-three-quarters",
11
- "two-thirds" => "#{brand}-!-width-two-thirds",
12
- "one-half" => "#{brand}-!-width-one-half",
13
- "one-third" => "#{brand}-!-width-one-third",
14
- "one-quarter" => "#{brand}-!-width-one-quarter",
15
- }.freeze
16
- end
17
-
18
7
  def initialize(scope: nil, header: nil, numeric: false, text: nil, width: nil, parent: nil, rowspan: nil, colspan: nil, classes: [], html_attributes: {})
19
8
  @text = text
20
9
  @numeric = numeric
@@ -24,6 +13,7 @@ class GovukComponent::TableComponent::CellComponent < GovukComponent::Base
24
13
  @colspan = colspan
25
14
  @rowspan = rowspan
26
15
  @header = (header.nil?) ? in_thead? : header
16
+ @width = widths.fetch(width, nil)
27
17
 
28
18
  super(classes:, html_attributes:)
29
19
  end
@@ -34,6 +24,17 @@ class GovukComponent::TableComponent::CellComponent < GovukComponent::Base
34
24
 
35
25
  private
36
26
 
27
+ def widths
28
+ @widths ||= {
29
+ "full" => "#{brand}-!-width-full",
30
+ "three-quarters" => "#{brand}-!-width-three-quarters",
31
+ "two-thirds" => "#{brand}-!-width-two-thirds",
32
+ "one-half" => "#{brand}-!-width-one-half",
33
+ "one-third" => "#{brand}-!-width-one-third",
34
+ "one-quarter" => "#{brand}-!-width-one-quarter",
35
+ }
36
+ end
37
+
37
38
  def width?
38
39
  width.present?
39
40
  end
@@ -1,5 +1,5 @@
1
1
  module Govuk
2
2
  module Components
3
- VERSION = '5.11.0'.freeze
3
+ VERSION = '5.11.2'.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.11.0
4
+ version: 5.11.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - DfE developers
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2025-06-24 00:00:00.000000000 Z
11
+ date: 2025-08-29 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: html-attributes-utils
@@ -56,20 +56,20 @@ dependencies:
56
56
  requirements:
57
57
  - - ">="
58
58
  - !ruby/object:Gem::Version
59
- version: '3.18'
59
+ version: '4.0'
60
60
  - - "<"
61
61
  - !ruby/object:Gem::Version
62
- version: '3.24'
62
+ version: '4.1'
63
63
  type: :runtime
64
64
  prerelease: false
65
65
  version_requirements: !ruby/object:Gem::Requirement
66
66
  requirements:
67
67
  - - ">="
68
68
  - !ruby/object:Gem::Version
69
- version: '3.18'
69
+ version: '4.0'
70
70
  - - "<"
71
71
  - !ruby/object:Gem::Version
72
- version: '3.24'
72
+ version: '4.1'
73
73
  - !ruby/object:Gem::Dependency
74
74
  name: deep_merge
75
75
  requirement: !ruby/object:Gem::Requirement
@@ -146,14 +146,14 @@ dependencies:
146
146
  requirements:
147
147
  - - '='
148
148
  - !ruby/object:Gem::Version
149
- version: 5.1.11
149
+ version: 5.1.18
150
150
  type: :development
151
151
  prerelease: false
152
152
  version_requirements: !ruby/object:Gem::Requirement
153
153
  requirements:
154
154
  - - '='
155
155
  - !ruby/object:Gem::Version
156
- version: 5.1.11
156
+ version: 5.1.18
157
157
  - !ruby/object:Gem::Dependency
158
158
  name: sassc-rails
159
159
  requirement: !ruby/object:Gem::Requirement
@@ -244,14 +244,14 @@ dependencies:
244
244
  requirements:
245
245
  - - "~>"
246
246
  - !ruby/object:Gem::Version
247
- version: 4.5.1
247
+ version: 4.6.0
248
248
  type: :development
249
249
  prerelease: false
250
250
  version_requirements: !ruby/object:Gem::Requirement
251
251
  requirements:
252
252
  - - "~>"
253
253
  - !ruby/object:Gem::Version
254
- version: 4.5.1
254
+ version: 4.6.0
255
255
  - !ruby/object:Gem::Dependency
256
256
  name: rubypants
257
257
  requirement: !ruby/object:Gem::Requirement
@@ -437,7 +437,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
437
437
  - !ruby/object:Gem::Version
438
438
  version: '0'
439
439
  requirements: []
440
- rubygems_version: 3.3.27
440
+ rubygems_version: 3.4.19
441
441
  signing_key:
442
442
  specification_version: 4
443
443
  summary: GOV.UK Components for Ruby on Rails