govuk_design_system_formbuilder 2.1.2 → 2.1.7b1
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 +2 -2
- data/lib/govuk_design_system_formbuilder/builder.rb +6 -3
- data/lib/govuk_design_system_formbuilder/containers/fieldset.rb +13 -2
- data/lib/govuk_design_system_formbuilder/elements/check_boxes/fieldset_check_box.rb +3 -14
- data/lib/govuk_design_system_formbuilder/elements/date.rb +9 -2
- data/lib/govuk_design_system_formbuilder/elements/hint.rb +1 -1
- data/lib/govuk_design_system_formbuilder/elements/legend.rb +20 -39
- data/lib/govuk_design_system_formbuilder/elements/null.rb +19 -0
- data/lib/govuk_design_system_formbuilder/elements/radios/collection.rb +21 -14
- data/lib/govuk_design_system_formbuilder/elements/radios/fieldset_radio_button.rb +2 -17
- data/lib/govuk_design_system_formbuilder/traits/caption.rb +5 -5
- data/lib/govuk_design_system_formbuilder/traits/fieldset_item.rb +31 -0
- data/lib/govuk_design_system_formbuilder/traits/hint.rb +5 -3
- data/lib/govuk_design_system_formbuilder/traits/label.rb +5 -1
- data/lib/govuk_design_system_formbuilder/version.rb +1 -1
- metadata +14 -12
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 4e5e35ed528afbcc521f2ed397a640304289c5f6ae461aa751505a7385e6accd
|
4
|
+
data.tar.gz: 3931158ee0d6bc41043b994a086267e9fe6f4c57b5c46af72654f15c53e30a64
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e0dc849509abe135123504ae391255ad1a3cdf0578a1d11087bacccb411821b992b73c08324a5192f2ac1f7c47c6305c2071c9c7ad08ea667c31723c1b303ebb
|
7
|
+
data.tar.gz: 644b0092e9f5338e7f76a268f55272cc557733c474d91f5dc51f44051cdf0d6e4e4b492baa7d539f0c9788dd677d56c840787dcb37bfd882c1e53999877ecbdb
|
data/README.md
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
# GOV.UK Design System Form Builder for Rails
|
2
2
|
|
3
|
-
[](https://github.com/DFE-Digital/govuk_design_system_formbuilder/actions)
|
4
4
|
[](https://codeclimate.com/github/DFE-Digital/govuk_design_system_formbuilder/maintainability)
|
5
5
|
[](https://badge.fury.io/rb/govuk_design_system_formbuilder)
|
6
6
|
[](https://rubygems.org/gems/govuk_design_system_formbuilder)
|
7
7
|
[](https://codeclimate.com/github/DFE-Digital/govuk_design_system_formbuilder/test_coverage)
|
8
8
|
[](https://dependabot.com)
|
9
9
|
[](https://github.com/DFE-Digital/govuk_design_system_formbuilder/blob/master/LICENSE)
|
10
|
-
[](https://design-system.service.gov.uk)
|
11
11
|
|
12
12
|
This library provides an easy-to-use form builder for the [GOV.UK Design System](https://design-system.service.gov.uk/).
|
13
13
|
|
@@ -456,6 +456,7 @@ module GOVUKDesignSystemFormBuilder
|
|
456
456
|
# @param inline [Boolean] controls whether the radio buttons are displayed inline or not
|
457
457
|
# @param small [Boolean] controls whether small radio buttons are used instead of regular-sized ones
|
458
458
|
# @param bold_labels [Boolean] controls whether the radio button labels are bold
|
459
|
+
# @param include_hidden [Boolean] controls whether a hidden field is inserted to allow for empty submissions
|
459
460
|
# @param classes [Array,String] Classes to add to the radio button container.
|
460
461
|
# @option legend text [String] the fieldset legend's text content
|
461
462
|
# @option legend size [String] the size of the fieldset legend font, can be +xl+, +l+, +m+ or +s+
|
@@ -500,7 +501,7 @@ module GOVUKDesignSystemFormBuilder
|
|
500
501
|
# :name,
|
501
502
|
# legend: -> { tag.h3('Which category do you belong to?') }
|
502
503
|
#
|
503
|
-
def govuk_collection_radio_buttons(attribute_name, collection, value_method, text_method = nil, hint_method = nil, hint: {}, legend: {}, caption: {}, inline: false, small: false, bold_labels: false, classes: nil, form_group: {}, &block)
|
504
|
+
def govuk_collection_radio_buttons(attribute_name, collection, value_method, text_method = nil, hint_method = nil, hint: {}, legend: {}, caption: {}, inline: false, small: false, bold_labels: false, classes: nil, include_hidden: false, form_group: {}, &block)
|
504
505
|
Elements::Radios::Collection.new(
|
505
506
|
self,
|
506
507
|
object_name,
|
@@ -517,6 +518,7 @@ module GOVUKDesignSystemFormBuilder
|
|
517
518
|
bold_labels: bold_labels,
|
518
519
|
classes: classes,
|
519
520
|
form_group: form_group,
|
521
|
+
include_hidden: include_hidden,
|
520
522
|
&block
|
521
523
|
).html
|
522
524
|
end
|
@@ -850,6 +852,7 @@ module GOVUKDesignSystemFormBuilder
|
|
850
852
|
# @option caption size [String] the size of the caption, can be +xl+, +l+ or +m+. Defaults to +m+
|
851
853
|
# @option caption kwargs [Hash] additional arguments are applied as attributes on the caption +span+ element
|
852
854
|
# @param omit_day [Boolean] do not render a day input, only capture month and year
|
855
|
+
# @param wildcards [Boolean] add an 'X' to the day and month patterns so users can add approximate dates
|
853
856
|
# @param form_group [Hash] configures the form group
|
854
857
|
# @option form_group classes [Array,String] sets the form group's classes
|
855
858
|
# @option form_group kwargs [Hash] additional attributes added to the form group
|
@@ -872,8 +875,8 @@ module GOVUKDesignSystemFormBuilder
|
|
872
875
|
# @example A date input with legend supplied as a proc
|
873
876
|
# = f.govuk_date_field :finishes_on,
|
874
877
|
# legend: -> { tag.h3('Which category do you belong to?') }
|
875
|
-
def govuk_date_field(attribute_name, hint: {}, legend: {}, caption: {}, date_of_birth: false, omit_day: false, form_group: {}, &block)
|
876
|
-
Elements::Date.new(self, object_name, attribute_name, hint: hint, legend: legend, caption: caption, date_of_birth: date_of_birth, omit_day: omit_day, form_group: form_group, &block).html
|
878
|
+
def govuk_date_field(attribute_name, hint: {}, legend: {}, caption: {}, date_of_birth: false, omit_day: false, form_group: {}, wildcards: false, &block)
|
879
|
+
Elements::Date.new(self, object_name, attribute_name, hint: hint, legend: legend, caption: caption, date_of_birth: date_of_birth, omit_day: omit_day, form_group: form_group, wildcards: wildcards, &block).html
|
877
880
|
end
|
878
881
|
|
879
882
|
# Generates a summary of errors in the form, each linking to the corresponding
|
@@ -30,11 +30,22 @@ module GOVUKDesignSystemFormBuilder
|
|
30
30
|
end
|
31
31
|
|
32
32
|
def legend_element
|
33
|
-
@legend_element ||=
|
33
|
+
@legend_element ||= if @legend.nil?
|
34
|
+
Elements::Null.new
|
35
|
+
else
|
36
|
+
Elements::Legend.new(@builder, @object_name, @attribute_name, **legend_options)
|
37
|
+
end
|
34
38
|
end
|
35
39
|
|
36
40
|
def legend_options
|
37
|
-
|
41
|
+
case @legend
|
42
|
+
when Hash
|
43
|
+
@legend.merge(caption: @caption)
|
44
|
+
when Proc
|
45
|
+
{ content: @legend }
|
46
|
+
else
|
47
|
+
fail(ArgumentError, %(legend must be a Proc or Hash))
|
48
|
+
end
|
38
49
|
end
|
39
50
|
end
|
40
51
|
end
|
@@ -6,6 +6,7 @@ module GOVUKDesignSystemFormBuilder
|
|
6
6
|
|
7
7
|
include Traits::Label
|
8
8
|
include Traits::Hint
|
9
|
+
include Traits::FieldsetItem
|
9
10
|
include Traits::Conditional
|
10
11
|
|
11
12
|
def initialize(builder, object_name, attribute_name, value, unchecked_value, label:, hint:, link_errors:, multiple:, &block)
|
@@ -54,20 +55,8 @@ module GOVUKDesignSystemFormBuilder
|
|
54
55
|
%w(checkboxes__input).prefix(brand)
|
55
56
|
end
|
56
57
|
|
57
|
-
def
|
58
|
-
|
59
|
-
end
|
60
|
-
|
61
|
-
def label_options
|
62
|
-
{ checkbox: true, value: @value, link_errors: @link_errors }
|
63
|
-
end
|
64
|
-
|
65
|
-
def hint_element
|
66
|
-
@hint_element ||= Elements::Hint.new(@builder, @object_name, @attribute_name, **hint_options, **hint_content)
|
67
|
-
end
|
68
|
-
|
69
|
-
def hint_options
|
70
|
-
{ value: @value, checkbox: true }
|
58
|
+
def fieldset_options
|
59
|
+
{ checkbox: true }
|
71
60
|
end
|
72
61
|
|
73
62
|
def conditional_classes
|
@@ -9,7 +9,7 @@ module GOVUKDesignSystemFormBuilder
|
|
9
9
|
|
10
10
|
SEGMENTS = { day: '3i', month: '2i', year: '1i' }.freeze
|
11
11
|
|
12
|
-
def initialize(builder, object_name, attribute_name, legend:, caption:, hint:, date_of_birth: false, omit_day:, form_group:, &block)
|
12
|
+
def initialize(builder, object_name, attribute_name, legend:, caption:, hint:, date_of_birth: false, omit_day:, form_group:, wildcards:, &block)
|
13
13
|
super(builder, object_name, attribute_name, &block)
|
14
14
|
|
15
15
|
@legend = legend
|
@@ -18,6 +18,7 @@ module GOVUKDesignSystemFormBuilder
|
|
18
18
|
@date_of_birth = date_of_birth
|
19
19
|
@omit_day = omit_day
|
20
20
|
@form_group = form_group
|
21
|
+
@wildcards = wildcards
|
21
22
|
end
|
22
23
|
|
23
24
|
def html
|
@@ -82,13 +83,19 @@ module GOVUKDesignSystemFormBuilder
|
|
82
83
|
class: classes(width),
|
83
84
|
name: name(segment),
|
84
85
|
type: 'text',
|
85
|
-
pattern:
|
86
|
+
pattern: pattern(segment),
|
86
87
|
inputmode: 'numeric',
|
87
88
|
value: value,
|
88
89
|
autocomplete: date_of_birth_autocomplete_value(segment)
|
89
90
|
)
|
90
91
|
end
|
91
92
|
|
93
|
+
def pattern(segment)
|
94
|
+
return '[0-9X]*' if @wildcards && segment.in?(%i(day month))
|
95
|
+
|
96
|
+
'[0-9]*'
|
97
|
+
end
|
98
|
+
|
92
99
|
def classes(width)
|
93
100
|
%w(input date-input__input).prefix(brand).tap do |classes|
|
94
101
|
classes.push(%(#{brand}-input--width-#{width}))
|
@@ -4,46 +4,39 @@ module GOVUKDesignSystemFormBuilder
|
|
4
4
|
include Traits::Caption
|
5
5
|
include Traits::Localisation
|
6
6
|
|
7
|
-
def initialize(builder, object_name, attribute_name,
|
7
|
+
def initialize(builder, object_name, attribute_name, text: nil, size: config.default_legend_size, hidden: false, tag: config.default_legend_tag, caption: nil, content: nil, **kwargs)
|
8
8
|
super(builder, object_name, attribute_name)
|
9
9
|
|
10
|
-
|
11
|
-
|
12
|
-
case legend
|
13
|
-
when NilClass
|
14
|
-
# do nothing
|
15
|
-
when Proc
|
16
|
-
@raw = capture { legend.call }
|
17
|
-
when Hash
|
18
|
-
defaults.merge(legend).tap do |l|
|
19
|
-
@text = retrieve_text(l.dig(:text))
|
20
|
-
@hidden = l.dig(:hidden)
|
21
|
-
@tag = l.dig(:tag)
|
22
|
-
@size = l.dig(:size)
|
23
|
-
@caption = caption
|
24
|
-
end
|
10
|
+
if content
|
11
|
+
@content = capture { content.call }
|
25
12
|
else
|
26
|
-
|
13
|
+
@text = retrieve_text(text)
|
14
|
+
@tag = tag
|
15
|
+
@size_class = size_class(size)
|
16
|
+
@tag = tag
|
17
|
+
@caption = caption
|
18
|
+
@hidden = hidden
|
19
|
+
@html_attributes = kwargs
|
27
20
|
end
|
28
21
|
end
|
29
22
|
|
30
23
|
def html
|
31
|
-
@
|
24
|
+
@content || legend
|
32
25
|
end
|
33
26
|
|
34
27
|
private
|
35
28
|
|
36
29
|
def active?
|
37
|
-
[@text, @
|
30
|
+
[@text, @content].any?(&:present?)
|
38
31
|
end
|
39
32
|
|
40
|
-
def
|
33
|
+
def legend
|
41
34
|
return unless active?
|
42
35
|
|
43
|
-
tag.legend(
|
36
|
+
tag.legend(legend_content, class: classes, **@html_attributes)
|
44
37
|
end
|
45
38
|
|
46
|
-
def
|
39
|
+
def legend_content
|
47
40
|
caption_and_text = safe_join([caption_element, @text])
|
48
41
|
|
49
42
|
if @tag.present?
|
@@ -58,17 +51,14 @@ module GOVUKDesignSystemFormBuilder
|
|
58
51
|
end
|
59
52
|
|
60
53
|
def classes
|
61
|
-
[%(#{brand}-fieldset__legend), size_class, visually_hidden_class].compact
|
54
|
+
[%(#{brand}-fieldset__legend), @size_class, visually_hidden_class].compact
|
62
55
|
end
|
63
56
|
|
64
|
-
def size_class
|
65
|
-
|
66
|
-
|
67
|
-
when 'l' then %(#{brand}-fieldset__legend--l)
|
68
|
-
when 'm' then %(#{brand}-fieldset__legend--m)
|
69
|
-
when 's' then %(#{brand}-fieldset__legend--s)
|
57
|
+
def size_class(size)
|
58
|
+
if size.in?(%w(xl l m s))
|
59
|
+
%(#{brand}-fieldset__legend--#{size})
|
70
60
|
else
|
71
|
-
fail "invalid size '#{
|
61
|
+
fail "invalid size '#{size}', must be xl, l, m or s"
|
72
62
|
end
|
73
63
|
end
|
74
64
|
|
@@ -79,15 +69,6 @@ module GOVUKDesignSystemFormBuilder
|
|
79
69
|
def heading_classes
|
80
70
|
%(#{brand}-fieldset__heading)
|
81
71
|
end
|
82
|
-
|
83
|
-
def defaults
|
84
|
-
{
|
85
|
-
hidden: false,
|
86
|
-
text: nil,
|
87
|
-
tag: config.default_legend_tag,
|
88
|
-
size: config.default_legend_size
|
89
|
-
}
|
90
|
-
end
|
91
72
|
end
|
92
73
|
end
|
93
74
|
end
|
@@ -6,27 +6,28 @@ module GOVUKDesignSystemFormBuilder
|
|
6
6
|
include Traits::Hint
|
7
7
|
include Traits::Supplemental
|
8
8
|
|
9
|
-
def initialize(builder, object_name, attribute_name, collection, value_method:, text_method:, hint_method:, hint:, legend:, caption:, inline:, small:, bold_labels:, classes:, form_group:, &block)
|
9
|
+
def initialize(builder, object_name, attribute_name, collection, value_method:, text_method:, hint_method:, hint:, legend:, caption:, inline:, small:, bold_labels:, classes:, form_group:, include_hidden:, &block)
|
10
10
|
super(builder, object_name, attribute_name, &block)
|
11
11
|
|
12
|
-
@collection
|
13
|
-
@value_method
|
14
|
-
@text_method
|
15
|
-
@hint_method
|
16
|
-
@inline
|
17
|
-
@small
|
18
|
-
@legend
|
19
|
-
@caption
|
20
|
-
@hint
|
21
|
-
@classes
|
22
|
-
@form_group
|
23
|
-
@
|
12
|
+
@collection = collection
|
13
|
+
@value_method = value_method
|
14
|
+
@text_method = text_method
|
15
|
+
@hint_method = hint_method
|
16
|
+
@inline = inline
|
17
|
+
@small = small
|
18
|
+
@legend = legend
|
19
|
+
@caption = caption
|
20
|
+
@hint = hint
|
21
|
+
@classes = classes
|
22
|
+
@form_group = form_group
|
23
|
+
@include_hidden = include_hidden
|
24
|
+
@bold_labels = hint_method.present? || bold_labels
|
24
25
|
end
|
25
26
|
|
26
27
|
def html
|
27
28
|
Containers::FormGroup.new(@builder, @object_name, @attribute_name, **@form_group).html do
|
28
29
|
Containers::Fieldset.new(@builder, @object_name, @attribute_name, **fieldset_options).html do
|
29
|
-
safe_join([supplemental_content, hint_element, error_element, radios])
|
30
|
+
safe_join([hidden_field, supplemental_content, hint_element, error_element, radios])
|
30
31
|
end
|
31
32
|
end
|
32
33
|
end
|
@@ -47,6 +48,12 @@ module GOVUKDesignSystemFormBuilder
|
|
47
48
|
end
|
48
49
|
end
|
49
50
|
|
51
|
+
def hidden_field
|
52
|
+
return unless @include_hidden
|
53
|
+
|
54
|
+
@builder.hidden_field(@attribute_name, value: "")
|
55
|
+
end
|
56
|
+
|
50
57
|
def collection
|
51
58
|
@collection.map.with_index do |item, i|
|
52
59
|
Elements::Radios::CollectionRadioButton.new(@builder, @object_name, @attribute_name, item, **collection_options(i)).html
|
@@ -6,6 +6,7 @@ module GOVUKDesignSystemFormBuilder
|
|
6
6
|
|
7
7
|
include Traits::Label
|
8
8
|
include Traits::Hint
|
9
|
+
include Traits::FieldsetItem
|
9
10
|
include Traits::Conditional
|
10
11
|
|
11
12
|
def initialize(builder, object_name, attribute_name, value, label:, hint:, link_errors:, &block)
|
@@ -34,26 +35,10 @@ module GOVUKDesignSystemFormBuilder
|
|
34
35
|
end
|
35
36
|
end
|
36
37
|
|
37
|
-
def
|
38
|
+
def fieldset_options
|
38
39
|
{ radio: true }
|
39
40
|
end
|
40
41
|
|
41
|
-
def label_element
|
42
|
-
@label_element ||= Elements::Label.new(@builder, @object_name, @attribute_name, **label_content, **label_options)
|
43
|
-
end
|
44
|
-
|
45
|
-
def label_options
|
46
|
-
{ value: @value, link_errors: @link_errors }.merge(radio_options)
|
47
|
-
end
|
48
|
-
|
49
|
-
def hint_element
|
50
|
-
@hint_element ||= Elements::Hint.new(@builder, @object_name, @attribute_name, **hint_options, **hint_content)
|
51
|
-
end
|
52
|
-
|
53
|
-
def hint_options
|
54
|
-
{ value: @value }.merge(radio_options)
|
55
|
-
end
|
56
|
-
|
57
42
|
def input
|
58
43
|
@builder.radio_button(@attribute_name, @value, **options)
|
59
44
|
end
|
@@ -4,11 +4,11 @@ module GOVUKDesignSystemFormBuilder
|
|
4
4
|
private
|
5
5
|
|
6
6
|
def caption_element
|
7
|
-
@caption_element ||=
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
7
|
+
@caption_element ||= if @caption.nil?
|
8
|
+
Elements::Null.new
|
9
|
+
else
|
10
|
+
Elements::Caption.new(@builder, @object_name, @attribute_name, **@caption)
|
11
|
+
end
|
12
12
|
end
|
13
13
|
end
|
14
14
|
end
|
@@ -0,0 +1,31 @@
|
|
1
|
+
module GOVUKDesignSystemFormBuilder
|
2
|
+
module Traits
|
3
|
+
module FieldsetItem
|
4
|
+
private
|
5
|
+
|
6
|
+
def label_element
|
7
|
+
@label_element ||= if @label.nil?
|
8
|
+
Elements::Null.new
|
9
|
+
else
|
10
|
+
Elements::Label.new(@builder, @object_name, @attribute_name, **label_content, **label_options)
|
11
|
+
end
|
12
|
+
end
|
13
|
+
|
14
|
+
def label_options
|
15
|
+
{ value: @value, link_errors: @link_errors }.merge(fieldset_options)
|
16
|
+
end
|
17
|
+
|
18
|
+
def hint_element
|
19
|
+
@hint_element ||= if @hint.nil?
|
20
|
+
Elements::Null.new
|
21
|
+
else
|
22
|
+
Elements::Hint.new(@builder, @object_name, @attribute_name, **hint_options, **hint_content)
|
23
|
+
end
|
24
|
+
end
|
25
|
+
|
26
|
+
def hint_options
|
27
|
+
{ value: @value }.merge(fieldset_options)
|
28
|
+
end
|
29
|
+
end
|
30
|
+
end
|
31
|
+
end
|
@@ -10,13 +10,15 @@ module GOVUKDesignSystemFormBuilder
|
|
10
10
|
private
|
11
11
|
|
12
12
|
def hint_element
|
13
|
-
@hint_element ||=
|
13
|
+
@hint_element ||= if @hint.nil?
|
14
|
+
Elements::Null.new
|
15
|
+
else
|
16
|
+
Elements::Hint.new(@builder, @object_name, @attribute_name, **hint_content)
|
17
|
+
end
|
14
18
|
end
|
15
19
|
|
16
20
|
def hint_content
|
17
21
|
case @hint
|
18
|
-
when NilClass
|
19
|
-
{}
|
20
22
|
when Hash
|
21
23
|
@hint
|
22
24
|
when Proc
|
@@ -4,7 +4,11 @@ module GOVUKDesignSystemFormBuilder
|
|
4
4
|
private
|
5
5
|
|
6
6
|
def label_element
|
7
|
-
@label_element ||=
|
7
|
+
@label_element ||= if @label.nil?
|
8
|
+
Elements::Null.new
|
9
|
+
else
|
10
|
+
Elements::Label.new(@builder, @object_name, @attribute_name, caption: @caption, **label_content)
|
11
|
+
end
|
8
12
|
end
|
9
13
|
|
10
14
|
def label_content
|
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: 2.1.
|
4
|
+
version: 2.1.7b1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Peter Yates
|
8
|
-
autorequire:
|
8
|
+
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2020-
|
11
|
+
date: 2020-12-29 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: actionview
|
@@ -58,14 +58,14 @@ dependencies:
|
|
58
58
|
requirements:
|
59
59
|
- - '='
|
60
60
|
- !ruby/object:Gem::Version
|
61
|
-
version: 3.17.
|
61
|
+
version: 3.17.2
|
62
62
|
type: :development
|
63
63
|
prerelease: false
|
64
64
|
version_requirements: !ruby/object:Gem::Requirement
|
65
65
|
requirements:
|
66
66
|
- - '='
|
67
67
|
- !ruby/object:Gem::Version
|
68
|
-
version: 3.17.
|
68
|
+
version: 3.17.2
|
69
69
|
- !ruby/object:Gem::Dependency
|
70
70
|
name: pry
|
71
71
|
requirement: !ruby/object:Gem::Requirement
|
@@ -176,14 +176,14 @@ dependencies:
|
|
176
176
|
requirements:
|
177
177
|
- - "~>"
|
178
178
|
- !ruby/object:Gem::Version
|
179
|
-
version: 3.
|
179
|
+
version: 3.25.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: 3.
|
186
|
+
version: 3.25.0
|
187
187
|
- !ruby/object:Gem::Dependency
|
188
188
|
name: rubypants
|
189
189
|
requirement: !ruby/object:Gem::Requirement
|
@@ -278,6 +278,7 @@ files:
|
|
278
278
|
- lib/govuk_design_system_formbuilder/elements/inputs/url.rb
|
279
279
|
- lib/govuk_design_system_formbuilder/elements/label.rb
|
280
280
|
- lib/govuk_design_system_formbuilder/elements/legend.rb
|
281
|
+
- lib/govuk_design_system_formbuilder/elements/null.rb
|
281
282
|
- lib/govuk_design_system_formbuilder/elements/radios/collection.rb
|
282
283
|
- lib/govuk_design_system_formbuilder/elements/radios/collection_radio_button.rb
|
283
284
|
- lib/govuk_design_system_formbuilder/elements/radios/fieldset_radio_button.rb
|
@@ -288,6 +289,7 @@ files:
|
|
288
289
|
- lib/govuk_design_system_formbuilder/traits/collection_item.rb
|
289
290
|
- lib/govuk_design_system_formbuilder/traits/conditional.rb
|
290
291
|
- lib/govuk_design_system_formbuilder/traits/error.rb
|
292
|
+
- lib/govuk_design_system_formbuilder/traits/fieldset_item.rb
|
291
293
|
- lib/govuk_design_system_formbuilder/traits/hint.rb
|
292
294
|
- lib/govuk_design_system_formbuilder/traits/input.rb
|
293
295
|
- lib/govuk_design_system_formbuilder/traits/label.rb
|
@@ -303,7 +305,7 @@ metadata:
|
|
303
305
|
documentation_uri: https://www.rubydoc.info/gems/govuk_design_system_formbuilder/GOVUKDesignSystemFormBuilder/Builder
|
304
306
|
homepage_uri: https://govuk-form-builder.netlify.app
|
305
307
|
source_code_uri: https://github.com/DFE-Digital/govuk_design_system_formbuilder
|
306
|
-
post_install_message:
|
308
|
+
post_install_message:
|
307
309
|
rdoc_options: []
|
308
310
|
require_paths:
|
309
311
|
- lib
|
@@ -314,12 +316,12 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
314
316
|
version: '0'
|
315
317
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
316
318
|
requirements:
|
317
|
-
- - "
|
319
|
+
- - ">"
|
318
320
|
- !ruby/object:Gem::Version
|
319
|
-
version:
|
321
|
+
version: 1.3.1
|
320
322
|
requirements: []
|
321
|
-
rubygems_version: 3.1.
|
322
|
-
signing_key:
|
323
|
+
rubygems_version: 3.1.4
|
324
|
+
signing_key:
|
323
325
|
specification_version: 4
|
324
326
|
summary: GOV.UK-compliant Rails form builder
|
325
327
|
test_files: []
|