govuk_design_system_formbuilder 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: 2bdbbb82d892d6d8464530b6abb483d600e091ea0ab4bc62903a0bb968d3a378
4
- data.tar.gz: 044ee86049f6e18585acc199bc03c6b77f6154681d3039fb8e6de861c8d64505
3
+ metadata.gz: e699e3c09adb56d1637b9b73f5e944ee43b459344b8b4f6cef45ea2fa2a289e8
4
+ data.tar.gz: 9d29d136a1f9578710be19d585c1d74661dd739089212eea8b32e3c92319317c
5
5
  SHA512:
6
- metadata.gz: c74450c385e022631081c1619db5593c0a8266389cc6b026ab36a8009975281bf2723484dd85606a9b8891e75ed88504e5182edf8953bb67e9def2b99d66ac83
7
- data.tar.gz: '0081c151c9b283d88b38b48fee760d1cbfe335dd95ae6994a1f9b744c235f31c6283ca5695f60a07e63e507849c4111a21e4baef5df5a3194569d02891f1d27d'
6
+ metadata.gz: 5121bef0b86ee59184d441e702bb4df4abe041fd8debd96c954b5d1957fa3b028902b536afeb2690fa8707ef8bfc60afbbf49b04e6b7c87feee319e76dc9a4a1
7
+ data.tar.gz: 113424beb03532e4b5999b78c55e975bdd774e1bce6b177555c78d3ceda2e2256014ae872e374f9ce8723dbe0881f8a9d553992bf1d0ff6a2146e6f856beb930
data/README.md CHANGED
@@ -6,9 +6,9 @@
6
6
  [![Gem](https://img.shields.io/gem/dt/govuk_design_system_formbuilder?logo=rubygems)](https://rubygems.org/gems/govuk_design_system_formbuilder)
7
7
  [![Test Coverage](https://api.codeclimate.com/v1/badges/110136fb22341d3ba646/test_coverage)](https://codeclimate.com/github/x-govuk/govuk-form-builder/test_coverage)
8
8
  [![GitHub license](https://img.shields.io/github/license/x-govuk/govuk-form-builder)](https://github.com/x-govuk/govuk-form-builder/blob/main/LICENSE)
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
  [![Rails](https://img.shields.io/badge/Rails-6.1.7%20%E2%95%B1%207.1.3-E16D6D)](https://weblog.rubyonrails.org/releases/)
11
- [![Ruby](https://img.shields.io/badge/Ruby-3.1.4%20%20%E2%95%B1%203.2.3%20%20%E2%95%B1%203.3.0-E16D6D)](https://www.ruby-lang.org/en/downloads/)
11
+ [![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/)
12
12
 
13
13
  This library provides an easy-to-use form builder for the [GOV.UK Design System](https://design-system.service.gov.uk/).
14
14
 
@@ -65,6 +65,8 @@ module GOVUKDesignSystemFormBuilder
65
65
  end
66
66
 
67
67
  def size_class(size)
68
+ return nil if size.nil?
69
+
68
70
  fail "invalid size '#{size}', must be xl, l, m or s" unless size.in?(%w(xl l m s))
69
71
 
70
72
  %(fieldset__legend--#{size})
@@ -1,3 +1,3 @@
1
1
  module GOVUKDesignSystemFormBuilder
2
- VERSION = '5.4.0'.freeze
2
+ VERSION = '5.4.1'.freeze
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: govuk_design_system_formbuilder
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
  - Peter Yates
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
@@ -134,14 +134,14 @@ dependencies:
134
134
  requirements:
135
135
  - - "~>"
136
136
  - !ruby/object:Gem::Version
137
- version: 4.16.0
137
+ version: 5.0.1
138
138
  type: :development
139
139
  prerelease: false
140
140
  version_requirements: !ruby/object:Gem::Requirement
141
141
  requirements:
142
142
  - - "~>"
143
143
  - !ruby/object:Gem::Version
144
- version: 4.16.0
144
+ version: 5.0.1
145
145
  - !ruby/object:Gem::Dependency
146
146
  name: simplecov
147
147
  requirement: !ruby/object:Gem::Requirement
@@ -176,28 +176,28 @@ dependencies:
176
176
  requirements:
177
177
  - - "~>"
178
178
  - !ruby/object:Gem::Version
179
- version: 4.12.15
179
+ version: 4.13.0
180
180
  type: :development
181
181
  prerelease: false
182
182
  version_requirements: !ruby/object:Gem::Requirement
183
183
  requirements:
184
184
  - - "~>"
185
185
  - !ruby/object:Gem::Version
186
- version: 4.12.15
186
+ version: 4.13.0
187
187
  - !ruby/object:Gem::Dependency
188
188
  name: rouge
189
189
  requirement: !ruby/object:Gem::Requirement
190
190
  requirements:
191
191
  - - "~>"
192
192
  - !ruby/object:Gem::Version
193
- version: 4.2.0
193
+ version: 4.3.0
194
194
  type: :development
195
195
  prerelease: false
196
196
  version_requirements: !ruby/object:Gem::Requirement
197
197
  requirements:
198
198
  - - "~>"
199
199
  - !ruby/object:Gem::Version
200
- version: 4.2.0
200
+ version: 4.3.0
201
201
  - !ruby/object:Gem::Dependency
202
202
  name: rubypants
203
203
  requirement: !ruby/object:Gem::Requirement
@@ -384,7 +384,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
384
384
  - !ruby/object:Gem::Version
385
385
  version: '0'
386
386
  requirements: []
387
- rubygems_version: 3.2.33
387
+ rubygems_version: 3.3.27
388
388
  signing_key:
389
389
  specification_version: 4
390
390
  summary: GOV.UK Form Builder for Ryby on Rails