govuk-components 2.0.0rc3 → 2.1.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: beb46263535565ddbe53ab329c2a0065a9bba711014a59cc17906ae90be6d606
4
- data.tar.gz: ba8a6b1c46e1fd4ccc5b987a9f3603982067c60e5f0be47b896da24d41fe40a4
3
+ metadata.gz: 2200643f294dd3059bece898a4eb5f3d39d185d57beedcd52cb995286c0b2e50
4
+ data.tar.gz: 0d8d5f3fcec2c72493be6dc60af8d5d0987812dee91d0912c01b7ecfdf91a0b4
5
5
  SHA512:
6
- metadata.gz: 05a8518a55e542bfc68d08dd6cff014e186c865523de16b51fe7f20d656faeda8ad75d50f2eaffc4bab6fb4482aaa22c0382de5ef8a5b41c5c85c6408e03462f
7
- data.tar.gz: db2e57dc051165386d32e5800d2dc28a146999b2cb215f3b806be62b07b4a2f96878ea8261c614f853dbf0d0d0b6be461b995b4febff6aabece1d4771e978a7a
6
+ metadata.gz: 866ee06ca6a25f9336005987a5d86d2bd9d2dac1f05b93e1805477378b0588b80051421179f4986e0b4a7cbc6796af0e5cbb60b7661283a1151ef88ce2985f53
7
+ data.tar.gz: 9ce92dde4cd348284b3542556703bc097ca8f0e650f0e38df805339e90d0cf496ab8c5c7cc06f20212ae3dd00c51bf64a9ce6d39d990bebd73556c68ac1fcb15
data/README.md CHANGED
@@ -4,61 +4,87 @@
4
4
  [![Maintainability](https://api.codeclimate.com/v1/badges/cbcbc140f300b920d833/maintainability)](https://codeclimate.com/github/DFE-Digital/govuk-components/maintainability)
5
5
  [![Test Coverage](https://api.codeclimate.com/v1/badges/cbcbc140f300b920d833/test_coverage)](https://codeclimate.com/github/DFE-Digital/govuk-components/test_coverage)
6
6
  [![GitHub license](https://img.shields.io/github/license/DFE-Digital/govuk-components)](https://github.com/DFE-Digital/govuk-components/blob/master/LICENSE)
7
- [![Dependabot Status](https://api.dependabot.com/badges/status?host=github&repo=DFE-Digital/govuk-components)](https://dependabot.com)
8
- [![GOV.UK Design System Version](https://img.shields.io/badge/GOV.UK%20Design%20System-3.10.2-brightgreen)](https://design-system.service.gov.uk)
7
+ [![GOV.UK Design System Version](https://img.shields.io/badge/GOV.UK%20Design%20System-3.13.1-brightgreen)](https://design-system.service.gov.uk)
9
8
 
10
9
  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.
11
10
 
12
- ## What's included
13
-
14
- | Component name | Helper |
15
- | -------------- | ------ |
16
- | [Accordion](app/components/govuk_component/accordion.rb) | `govuk_accordion` |
17
- | [Back link](app/components/govuk_component/back_link.rb) | `govuk_back_link` |
18
- | [Breadcrumbs](app/components/govuk_component/breadcrumbs.rb) | `govuk_breadcrumbs` |
19
- | [Cookie banner](app/components/govuk_component/cookie_banner.rb) | `govuk_cookie_banner` |
20
- | [Details](app/components/govuk_component/details.rb) | `govuk_details` |
21
- | [Footer](app/components/govuk_component/footer.rb) | `govuk_footer` |
22
- | [Header](app/components/govuk_component/header.rb) | `govuk_header` |
23
- | [Inset text](app/components/govuk_component/inset_text.rb) | `govuk_inset_text` |
24
- | [Notification banner](app/components/govuk_component/notification_banner.rb) | `govuk_notification_banner` |
25
- | [Panel](app/components/govuk_component/panel.rb) | `govuk_panel` |
26
- | [Phase banner](app/components/govuk_component/phase_banner.rb) | `govuk_phase_banner` |
27
- | [Start now button](app/components/govuk_component/start_now_button.rb) | `govuk_start_now_button` |
28
- | [Summary list](app/components/govuk_component/summary_list.rb) | `govuk_summary_list` |
29
- | [Tabs](app/components/govuk_component/tabs.rb) | `govuk_tabs` |
30
- | [Tag](app/components/govuk_component/tag.rb) | `govuk_tag` |
31
- | [Warning text](app/components/govuk_component/warning.rb) | `govuk_warning` |
32
-
33
- ### Helpers
34
-
35
- * `#govuk_link_to`
36
- * `#govuk_mail_to`
37
- * `#govuk_button_to`
38
- * `#govuk_back_to_top_link`
39
- * `#govuk_skip_link`
11
+ It aims to implement the functionality from the original Nunjucks macros in a way that will feel more familiar to Rails developers. Blocks are preferred over strings of HTML, beneath the surface each component is just a Ruby object, everything is inheritable and overrideable.
12
+
13
+ ## What's included?
14
+
15
+ All of the non-form components from the GOV.UK Design System are implmented by this library as ViewComponents. Form components are implemented by the [form builder](https://govuk-form-builder.netlify.app/).
16
+
17
+ The provided components are:
18
+
19
+ * [Accordion](https://dfe-digital.github.io/govuk-components/#accordion)
20
+ * [Back link](https://dfe-digital.github.io/govuk-components/#back-links)
21
+ * [Back to top link](https://dfe-digital.github.io/govuk-components/#back-to-top-link)
22
+ * [Breadcrumbs](https://dfe-digital.github.io/govuk-components/#breadcrumbs)
23
+ * [Cookie banner](https://dfe-digital.github.io/govuk-components/#cookie-banner)
24
+ * [Details](https://dfe-digital.github.io/govuk-components/#details)
25
+ * [Footer](https://dfe-digital.github.io/govuk-components/#footer)
26
+ * [Header](https://dfe-digital.github.io/govuk-components/#header)
27
+ * [Inset text](https://dfe-digital.github.io/govuk-components/#inset-text)
28
+ * [Notification banner](https://dfe-digital.github.io/govuk-components/#notification-banner)
29
+ * [Panel](https://dfe-digital.github.io/govuk-components/#panel)
30
+ * [Phase banner](https://dfe-digital.github.io/govuk-components/#phase-banner)
31
+ * [Skip link](https://dfe-digital.github.io/govuk-components/#skip-link)
32
+ * [Start button](https://dfe-digital.github.io/govuk-components/#start-button)
33
+ * [Summary list](https://dfe-digital.github.io/govuk-components/#summary-list)
34
+ * [Tabs](https://dfe-digital.github.io/govuk-components/#tabs)
35
+ * [Tables](https://dfe-digital.github.io/govuk-components/#table)
36
+ * [Tags](https://dfe-digital.github.io/govuk-components/#tags)
37
+ * [Warning text](https://dfe-digital.github.io/govuk-components/#warning-text)
38
+
39
+ This library also provides [several link helpers](https://dfe-digital.github.io/govuk-components/#links-and-buttons) that are commonly used in services, including `#govuk_link_to` and `#govuk_button_to`.
40
+
41
+ ## Alternative syntax
42
+
43
+ All of the components can be rendered in two ways:
44
+
45
+ * directly using Rails' `#render` method:
46
+
47
+ ```erb
48
+ <%= render GovukComponent::WarningTextComponent.new do %>
49
+ A serious warning
50
+ <% end %>
51
+ ```
52
+
53
+ * via the helper wrapper:
54
+
55
+ ```erb
56
+ <%= govuk_warning_text do %>
57
+ A serious warning
58
+ <% end %>
59
+ ```
60
+
61
+ The naming convention for helpers is `govuk_` followed by the component's name in snake case. You can
62
+ see the full list in [GovukComponentsHelper](app/helpers/govuk_components_helper.rb).
40
63
 
41
64
  ## Example use
42
65
 
43
- This library allows components to be rendered with Rails' `render` method or via the provided helpers. Here we'll use the `govuk_accordion` to render an accordion.
66
+ This library allows components to be rendered with Rails' `render` method or via the provided helpers. Here we'll use the `govuk_tabs` to render three tabbed sections:
44
67
 
45
68
  ```erb
46
- <%= govuk_accordion(id: 'def234') do |accordion| %>
47
- <%= accordion.add_section(title: 'Section 1') do %>
48
- <p class="govuk-body">Lorem ipsum dolor sit amet, consectetur adipiscing elit.</p>
69
+ <%= govuk_tabs(title: 'Days of the week') do |component| %>
70
+ <% component.tab(label: 'Monday') do %>
71
+ <p>Monday's child is fair of face</p>
49
72
  <% end %>
50
- <%= accordion.add_section(title: 'Section 2') do %>
51
- <p class="govuk-body">Lorem ipsum dolor sit amet, consectetur adipiscing elit.</p>
73
+
74
+ <% component.tab(label: 'Tuesday') do %>
75
+ <p>Tuesday's child is full of grace</p>
52
76
  <% end %>
53
- <%= accordion.add_section(title: 'Section 3') do %>
54
- <p class="govuk-body">Lorem ipsum dolor sit amet, consectetur adipiscing elit.</p>
77
+
78
+ <% component.tab(label: 'Wednesday') do %>
79
+ <p>Wednesday's child is full of woe</p>
55
80
  <% end %>
56
81
  <% end %>
82
+
57
83
  ```
58
84
 
59
- Here is the rendered accordion.
85
+ Here are the rendered tabs:
60
86
 
61
- ![Accordion preview](docs/images/accordion.png)
87
+ ![Tabs preview](docs/images/tabs.png)
62
88
 
63
89
  For examples on usage see the [guide page](https://dfe-digital.github.io/govuk-components/).
64
90
 
@@ -70,6 +96,15 @@ Add this line to your `config/application.rb`:
70
96
  require "govuk/components"
71
97
  ```
72
98
 
99
+ ## Services using this library
100
+
101
+ * [Apply for teacher training](https://github.com/DFE-Digital/apply-for-teacher-training)
102
+ * [Find postgraduate teacher training](https://github.com/DFE-Digital/find-teacher-training)
103
+ * [Get help with technology](https://github.com/DFE-Digital/get-help-with-tech)
104
+ * [Publish teacher training courses](https://github.com/DFE-Digital/publish-teacher-training)
105
+ * [Register trainee teachers](https://github.com/DFE-Digital/register-trainee-teachers)
106
+ * [Teaching Vacancies](https://github.com/DFE-Digital/teaching-vacancies)
107
+
73
108
  ## Installation
74
109
 
75
110
  Add this line to your application's Gemfile:
@@ -33,7 +33,7 @@ private
33
33
  if link.present?
34
34
  list_item { link_to(text, link, class: "govuk-breadcrumbs__link") }
35
35
  else
36
- list_item(aria: { current: "page" }) { text }
36
+ list_item(aria: { current: "page" }) { text.to_s }
37
37
  end
38
38
  end
39
39
 
@@ -15,12 +15,12 @@ class GovukComponent::CookieBannerComponent::MessageComponent < GovukComponent::
15
15
 
16
16
  def call
17
17
  tag.div(class: classes, role: role, hidden: hidden, **html_attributes) do
18
- tag.div(class: "govuk-grid-row") do
19
- safe_join([
20
- tag.div(class: "govuk-grid-column-two-thirds") { safe_join([heading_element, message_element]) },
21
- actions_element
22
- ])
23
- end
18
+ safe_join([
19
+ tag.div(class: "govuk-grid-row") do
20
+ tag.div(class: "govuk-grid-column-two-thirds") { safe_join([heading_element, message_element]) }
21
+ end,
22
+ actions_element
23
+ ])
24
24
  end
25
25
  end
26
26
 
@@ -31,11 +31,13 @@ private
31
31
  end
32
32
 
33
33
  def heading_element
34
+ return if heading_content.blank?
35
+
34
36
  tag.h2(heading_content, class: %w(govuk-cookie-banner__heading govuk-heading-m))
35
37
  end
36
38
 
37
39
  def heading_content
38
- heading_html || heading_text || fail(ArgumentError, "no heading_text or heading_html")
40
+ heading_html || heading_text
39
41
  end
40
42
 
41
43
  def message_element
@@ -33,11 +33,7 @@
33
33
  <%= tag.ul(class: navigation_classes, id: "navigation", aria: { label: navigation_label }) do %>
34
34
  <% navigation_items.each do |item| %>
35
35
  <%= tag.li(class: item.classes.append(item.active_class), **item.html_attributes) do %>
36
- <% if item.link? %>
37
- <%= link_to(item.text, item.href, class: "govuk-header__link") %>
38
- <% else %>
39
- <%= item.text %>
40
- <% end %>
36
+ <%= item %>
41
37
  <% end %>
42
38
  <% end %>
43
39
  <% end %>
@@ -75,6 +75,14 @@ private
75
75
  href.present?
76
76
  end
77
77
 
78
+ def call
79
+ if link?
80
+ link_to(text, href, class: "govuk-header__link")
81
+ else
82
+ text
83
+ end
84
+ end
85
+
78
86
  private
79
87
 
80
88
  def default_classes
@@ -0,0 +1,5 @@
1
+ <%= tag.tbody(class: classes, **html_attributes) do %>
2
+ <% rows.each do |row| %>
3
+ <%= row %>
4
+ <% end %>
5
+ <% end %>
@@ -0,0 +1,21 @@
1
+ class GovukComponent::TableComponent::BodyComponent < GovukComponent::Base
2
+ renders_many :rows, GovukComponent::TableComponent::RowComponent
3
+
4
+ def initialize(rows: nil, first_cell_is_header: false, classes: [], html_attributes: {})
5
+ super(classes: classes, html_attributes: html_attributes)
6
+
7
+ build_rows_from_row_data(rows, first_cell_is_header)
8
+ end
9
+
10
+ private
11
+
12
+ def build_rows_from_row_data(data, first_cell_is_header)
13
+ return if data.blank?
14
+
15
+ data.each { |d| row(cell_data: d, first_cell_is_header: first_cell_is_header) }
16
+ end
17
+
18
+ def default_classes
19
+ %w(govuk-table__body)
20
+ end
21
+ end
@@ -0,0 +1,39 @@
1
+ class GovukComponent::TableComponent::CaptionComponent < GovukComponent::Base
2
+ attr_reader :text, :size
3
+
4
+ SIZES = %w(s m l xl).freeze
5
+
6
+ def initialize(text: nil, id: nil, size: 'm', classes: [], html_attributes: {})
7
+ super(classes: classes, html_attributes: html_attributes)
8
+
9
+ @id = id
10
+ @text = text
11
+ @size = size
12
+ end
13
+
14
+ def call
15
+ tag.caption(caption_content, class: classes, **html_attributes)
16
+ end
17
+
18
+ def render?
19
+ caption_content.present?
20
+ end
21
+
22
+ private
23
+
24
+ def caption_content
25
+ @caption_content ||= (content || text)
26
+ end
27
+
28
+ def default_classes
29
+ %w(govuk-table__caption).tap do |c|
30
+ c << caption_size_class if @size
31
+ end
32
+ end
33
+
34
+ def caption_size_class
35
+ fail(ArgumentError, "bad size #{size}, must be in #{SIZES}") unless size.in?(SIZES)
36
+
37
+ %(govuk-table__caption--#{size})
38
+ end
39
+ end
@@ -0,0 +1 @@
1
+ <%= content_tag(cell_element, cell_content, class: classes, **html_attributes) %>
@@ -0,0 +1,55 @@
1
+ class GovukComponent::TableComponent::CellComponent < GovukComponent::Base
2
+ attr_reader :text, :header, :numeric, :width
3
+
4
+ alias_method :numeric?, :numeric
5
+
6
+ WIDTHS = {
7
+ "full" => "govuk-input govuk-!-width-full",
8
+ "three-quarters" => "govuk-input govuk-!-width-three-quarters",
9
+ "two-thirds" => "govuk-input govuk-!-width-two-thirds",
10
+ "one-half" => "govuk-input govuk-!-width-one-half",
11
+ "one-third" => "govuk-input govuk-!-width-one-third",
12
+ "one-quarter" => "govuk-input govuk-!-width-one-quarter",
13
+ }.freeze
14
+
15
+ def initialize(header: false, text: nil, numeric: false, width: nil, classes: [], html_attributes: {})
16
+ super(classes: classes, html_attributes: html_attributes)
17
+
18
+ @header = header
19
+ @text = text
20
+ @numeric = numeric
21
+ @width = width
22
+ end
23
+
24
+ private
25
+
26
+ def width?
27
+ width.present?
28
+ end
29
+
30
+ def cell_content
31
+ content || text
32
+ end
33
+
34
+ def cell_element
35
+ header ? :th : :td
36
+ end
37
+
38
+ def default_classes
39
+ if header
40
+ %w(govuk-table__header).tap do |c|
41
+ c << "govuk-table__header--numeric" if numeric?
42
+ c << width_class if width?
43
+ end
44
+ else
45
+ %w(govuk-table__cell).tap do |c|
46
+ c << "govuk-table__cell--numeric" if numeric?
47
+ c << width_class if width?
48
+ end
49
+ end
50
+ end
51
+
52
+ def width_class
53
+ WIDTHS.fetch(width)
54
+ end
55
+ end
@@ -0,0 +1,5 @@
1
+ <%= tag.thead(class: classes, **html_attributes) do %>
2
+ <% rows.each do |row| %>
3
+ <%= row %>
4
+ <% end %>
5
+ <% end %>
@@ -0,0 +1,23 @@
1
+ class GovukComponent::TableComponent::HeadComponent < GovukComponent::Base
2
+ renders_many :rows, GovukComponent::TableComponent::RowComponent
3
+
4
+ attr_reader :row_data
5
+
6
+ def initialize(rows: nil, classes: [], html_attributes: {})
7
+ super(classes: classes, html_attributes: html_attributes)
8
+
9
+ build_rows_from_row_data(rows)
10
+ end
11
+
12
+ private
13
+
14
+ def build_rows_from_row_data(data)
15
+ return if data.blank?
16
+
17
+ data.each { |d| row(cell_data: d, header: true) }
18
+ end
19
+
20
+ def default_classes
21
+ %w(govuk-table__head)
22
+ end
23
+ end
@@ -0,0 +1,5 @@
1
+ <%= tag.tr(class: classes, **html_attributes) do %>
2
+ <% cells.each do |cell| %>
3
+ <%= cell %>
4
+ <% end %>
5
+ <% end %>
@@ -0,0 +1,30 @@
1
+ class GovukComponent::TableComponent::RowComponent < GovukComponent::Base
2
+ renders_many :cells, GovukComponent::TableComponent::CellComponent
3
+
4
+ attr_reader :header, :first_cell_is_header
5
+
6
+ def initialize(cell_data: nil, first_cell_is_header: false, header: false, classes: [], html_attributes: {})
7
+ super(classes: classes, html_attributes: html_attributes)
8
+
9
+ @header = header
10
+ @first_cell_is_header = first_cell_is_header
11
+
12
+ build_cells_from_cell_data(cell_data)
13
+ end
14
+
15
+ private
16
+
17
+ def build_cells_from_cell_data(cell_data)
18
+ return if cell_data.blank?
19
+
20
+ cell_data.map.with_index { |cd, i| cell(header: cell_is_header?(i), text: cd) }
21
+ end
22
+
23
+ def cell_is_header?(count)
24
+ header || (first_cell_is_header && count.zero?)
25
+ end
26
+
27
+ def default_classes
28
+ %w(govuk-table__row)
29
+ end
30
+ end
@@ -0,0 +1,7 @@
1
+ <%= tag.table(id: id, class: classes, **html_attributes) do %>
2
+ <%= caption %>
3
+ <%= head %>
4
+ <% bodies.each do |body| %>
5
+ <%= body %>
6
+ <% end %>
7
+ <% end %>
@@ -0,0 +1,33 @@
1
+ class GovukComponent::TableComponent < GovukComponent::Base
2
+ renders_one :caption, GovukComponent::TableComponent::CaptionComponent
3
+ renders_one :head, GovukComponent::TableComponent::HeadComponent
4
+ renders_many :bodies, GovukComponent::TableComponent::BodyComponent
5
+
6
+ attr_accessor :id, :first_cell_is_header, :caption_text
7
+
8
+ def initialize(id: nil, rows: nil, head: nil, caption: nil, first_cell_is_header: false, classes: [], html_attributes: {})
9
+ super(classes: classes, html_attributes: html_attributes)
10
+
11
+ @id = id
12
+ @first_cell_is_header = first_cell_is_header
13
+ @caption_text = caption
14
+
15
+ # when no rows are passed in it's likely we're taking the slot approach
16
+ return unless rows.presence
17
+
18
+ # if no head is passed in,use the first row for headers
19
+ build(*(head ? [head, rows] : [rows[0], rows[1..]]), caption_text)
20
+ end
21
+
22
+ private
23
+
24
+ def build(head_data, body_data, caption_text)
25
+ caption(text: caption_text)
26
+ head(rows: [head_data])
27
+ body(rows: body_data, first_cell_is_header: first_cell_is_header)
28
+ end
29
+
30
+ def default_classes
31
+ %w(govuk-table)
32
+ end
33
+ end
@@ -13,6 +13,7 @@ module GovukComponentsHelper
13
13
  govuk_phase_banner: 'GovukComponent::PhaseBannerComponent',
14
14
  govuk_start_button: 'GovukComponent::StartButtonComponent',
15
15
  govuk_summary_list: 'GovukComponent::SummaryListComponent',
16
+ govuk_table: 'GovukComponent::TableComponent',
16
17
  govuk_tabs: 'GovukComponent::TabComponent',
17
18
  govuk_tag: 'GovukComponent::TagComponent',
18
19
  govuk_warning_text: 'GovukComponent::WarningTextComponent',
@@ -1,5 +1,5 @@
1
1
  module Govuk
2
2
  module Components
3
- VERSION = '2.0.0rc3'.freeze
3
+ VERSION = '2.1.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: 2.0.0rc3
4
+ version: 2.1.1
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: 2021-08-06 00:00:00.000000000 Z
11
+ date: 2021-09-14 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activemodel
@@ -44,14 +44,14 @@ dependencies:
44
44
  requirements:
45
45
  - - "~>"
46
46
  - !ruby/object:Gem::Version
47
- version: 2.36.0
47
+ version: 2.39.0
48
48
  type: :runtime
49
49
  prerelease: false
50
50
  version_requirements: !ruby/object:Gem::Requirement
51
51
  requirements:
52
52
  - - "~>"
53
53
  - !ruby/object:Gem::Version
54
- version: 2.36.0
54
+ version: 2.39.0
55
55
  - !ruby/object:Gem::Dependency
56
56
  name: pry-byebug
57
57
  requirement: !ruby/object:Gem::Requirement
@@ -191,6 +191,17 @@ files:
191
191
  - app/components/govuk_component/summary_list_component/value_component.rb
192
192
  - app/components/govuk_component/tab_component.html.erb
193
193
  - app/components/govuk_component/tab_component.rb
194
+ - app/components/govuk_component/table_component.html.erb
195
+ - app/components/govuk_component/table_component.rb
196
+ - app/components/govuk_component/table_component/body_component.html.erb
197
+ - app/components/govuk_component/table_component/body_component.rb
198
+ - app/components/govuk_component/table_component/caption_component.rb
199
+ - app/components/govuk_component/table_component/cell_component.html.erb
200
+ - app/components/govuk_component/table_component/cell_component.rb
201
+ - app/components/govuk_component/table_component/head_component.html.erb
202
+ - app/components/govuk_component/table_component/head_component.rb
203
+ - app/components/govuk_component/table_component/row_component.html.erb
204
+ - app/components/govuk_component/table_component/row_component.rb
194
205
  - app/components/govuk_component/tag_component.rb
195
206
  - app/components/govuk_component/traits/custom_classes.rb
196
207
  - app/components/govuk_component/traits/custom_html_attributes.rb
@@ -209,7 +220,7 @@ homepage: https://github.com/DFE-Digital/govuk-components
209
220
  licenses:
210
221
  - MIT
211
222
  metadata: {}
212
- post_install_message:
223
+ post_install_message:
213
224
  rdoc_options: []
214
225
  require_paths:
215
226
  - lib
@@ -220,12 +231,12 @@ required_ruby_version: !ruby/object:Gem::Requirement
220
231
  version: '0'
221
232
  required_rubygems_version: !ruby/object:Gem::Requirement
222
233
  requirements:
223
- - - ">"
234
+ - - ">="
224
235
  - !ruby/object:Gem::Version
225
- version: 1.3.1
236
+ version: '0'
226
237
  requirements: []
227
238
  rubygems_version: 3.1.6
228
- signing_key:
239
+ signing_key:
229
240
  specification_version: 4
230
241
  summary: Lightweight set of reusable GOV.UK Design System components
231
242
  test_files: []