govuk_design_system_formbuilder 2.1.7b1 → 2.2.0
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 +4 -2
- data/lib/govuk_design_system_formbuilder.rb +9 -0
- data/lib/govuk_design_system_formbuilder/base.rb +1 -1
- data/lib/govuk_design_system_formbuilder/builder.rb +8 -6
- data/lib/govuk_design_system_formbuilder/containers/button_group.rb +15 -0
- data/lib/govuk_design_system_formbuilder/containers/character_count.rb +3 -3
- data/lib/govuk_design_system_formbuilder/containers/check_boxes.rb +4 -3
- data/lib/govuk_design_system_formbuilder/containers/form_group.rb +2 -2
- data/lib/govuk_design_system_formbuilder/containers/radios.rb +4 -3
- data/lib/govuk_design_system_formbuilder/elements/check_boxes/collection.rb +13 -12
- data/lib/govuk_design_system_formbuilder/elements/check_boxes/label.rb +1 -1
- data/lib/govuk_design_system_formbuilder/elements/date.rb +1 -1
- data/lib/govuk_design_system_formbuilder/elements/error_message.rb +0 -4
- data/lib/govuk_design_system_formbuilder/elements/error_summary.rb +2 -2
- data/lib/govuk_design_system_formbuilder/elements/null.rb +3 -1
- data/lib/govuk_design_system_formbuilder/elements/radios/collection_radio_button.rb +1 -1
- data/lib/govuk_design_system_formbuilder/elements/select.rb +2 -2
- data/lib/govuk_design_system_formbuilder/elements/submit.rb +12 -7
- data/lib/govuk_design_system_formbuilder/traits/collection_item.rb +1 -1
- data/lib/govuk_design_system_formbuilder/version.rb +1 -1
- metadata +25 -10
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 4be57c3d159d67c07fc56632dd6c212bb834c5272d6eb1697f17e269fabf185a
|
|
4
|
+
data.tar.gz: 8a9e652ad341513e78883fc5c68c3e704cb59cd3228bb7e5574c12f53735af72
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 0b99bc098db98b484a0544cd69430bc9c34c00f4f93782d0879b222339b16d0c08c44bf95760a6b617f87b467f1a1381b9bbf35619333ba5f713dc2aa96415f1
|
|
7
|
+
data.tar.gz: 64532cd5b33f6e1e78f5ba1a21a48ce2713018b7d8b00bbd32a7018436ebec11a2561024113930ddeb6d7059f359074ed0cfee0fe23219eba20d634c6c12784e
|
data/README.md
CHANGED
|
@@ -1,13 +1,15 @@
|
|
|
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
|
+
[](https://www.ruby-lang.org/en/downloads/)
|
|
12
|
+
[](https://weblog.rubyonrails.org/releases/)
|
|
11
13
|
|
|
12
14
|
This library provides an easy-to-use form builder for the [GOV.UK Design System](https://design-system.service.gov.uk/).
|
|
13
15
|
|
|
@@ -34,6 +34,12 @@ module GOVUKDesignSystemFormBuilder
|
|
|
34
34
|
# blocks. As per the GOV.UK Design System spec, it defaults to
|
|
35
35
|
# 'There is a problem'.
|
|
36
36
|
#
|
|
37
|
+
# * +:default_collection_check_boxes_include_hidden+ controls whether or not
|
|
38
|
+
# a hidden field is added when rendering a collection of check boxes
|
|
39
|
+
#
|
|
40
|
+
# * +:default_collection_radio_buttons_include_hidden+ controls whether or not
|
|
41
|
+
# a hidden field is added when rendering a collection of radio buttons
|
|
42
|
+
#
|
|
37
43
|
# * +:localisation_schema_fallback+ sets the prefix elements for the array
|
|
38
44
|
# used to build the localisation string. The final two elements are always
|
|
39
45
|
# are the object name and attribute name. The _special_ value +__context__+,
|
|
@@ -52,6 +58,9 @@ module GOVUKDesignSystemFormBuilder
|
|
|
52
58
|
default_submit_button_text: 'Continue',
|
|
53
59
|
default_radio_divider_text: 'or',
|
|
54
60
|
default_error_summary_title: 'There is a problem',
|
|
61
|
+
default_collection_check_boxes_include_hidden: true,
|
|
62
|
+
default_collection_radio_buttons_include_hidden: true,
|
|
63
|
+
default_submit_validate: false,
|
|
55
64
|
|
|
56
65
|
localisation_schema_fallback: %i(helpers __context__),
|
|
57
66
|
localisation_schema_label: nil,
|
|
@@ -53,7 +53,7 @@ module GOVUKDesignSystemFormBuilder
|
|
|
53
53
|
def has_errors?
|
|
54
54
|
@builder.object.respond_to?(:errors) &&
|
|
55
55
|
@builder.object.errors.any? &&
|
|
56
|
-
@builder.object.errors.messages
|
|
56
|
+
@builder.object.errors.messages[@attribute_name].present?
|
|
57
57
|
end
|
|
58
58
|
|
|
59
59
|
def described_by(*ids)
|
|
@@ -501,7 +501,7 @@ module GOVUKDesignSystemFormBuilder
|
|
|
501
501
|
# :name,
|
|
502
502
|
# legend: -> { tag.h3('Which category do you belong to?') }
|
|
503
503
|
#
|
|
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:
|
|
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: config.default_collection_radio_buttons_include_hidden, form_group: {}, &block)
|
|
505
505
|
Elements::Radios::Collection.new(
|
|
506
506
|
self,
|
|
507
507
|
object_name,
|
|
@@ -646,6 +646,7 @@ module GOVUKDesignSystemFormBuilder
|
|
|
646
646
|
# @param form_group [Hash] configures the form group
|
|
647
647
|
# @option form_group classes [Array,String] sets the form group's classes
|
|
648
648
|
# @option form_group kwargs [Hash] additional attributes added to the form group
|
|
649
|
+
# @param include_hidden [Boolean] controls whether a hidden field is inserted to allow for empty submissions
|
|
649
650
|
# @param block [Block] any HTML passed in will be injected into the fieldset, after the hint and before the checkboxes
|
|
650
651
|
# @return [ActiveSupport::SafeBuffer] HTML output
|
|
651
652
|
#
|
|
@@ -682,7 +683,7 @@ module GOVUKDesignSystemFormBuilder
|
|
|
682
683
|
# :name,
|
|
683
684
|
# legend: -> { tag.h3('What kind of sandwich do you want?') }
|
|
684
685
|
#
|
|
685
|
-
def govuk_collection_check_boxes(attribute_name, collection, value_method, text_method, hint_method = nil, hint: {}, legend: {}, caption: {}, small: false, classes: nil, form_group: {}, &block)
|
|
686
|
+
def govuk_collection_check_boxes(attribute_name, collection, value_method, text_method, hint_method = nil, hint: {}, legend: {}, caption: {}, small: false, classes: nil, form_group: {}, include_hidden: config.default_collection_check_boxes_include_hidden, &block)
|
|
686
687
|
Elements::CheckBoxes::Collection.new(
|
|
687
688
|
self,
|
|
688
689
|
object_name,
|
|
@@ -697,6 +698,7 @@ module GOVUKDesignSystemFormBuilder
|
|
|
697
698
|
small: small,
|
|
698
699
|
classes: classes,
|
|
699
700
|
form_group: form_group,
|
|
701
|
+
include_hidden: include_hidden,
|
|
700
702
|
&block
|
|
701
703
|
).html
|
|
702
704
|
end
|
|
@@ -811,9 +813,9 @@ module GOVUKDesignSystemFormBuilder
|
|
|
811
813
|
# client-side validation provided by the browser. This is to provide a more consistent and accessible user
|
|
812
814
|
# experience
|
|
813
815
|
# @param disabled [Boolean] makes the button disabled when true
|
|
814
|
-
# @param block [Block]
|
|
815
|
-
#
|
|
816
|
-
#
|
|
816
|
+
# @param block [Block] When content is passed in via a block the submit element and the block content will
|
|
817
|
+
# be wrapped in a +<div class="govuk-button-group">+ which will space the buttons and links within
|
|
818
|
+
# evenly.
|
|
817
819
|
# @raise [ArgumentError] raised if both +warning+ and +secondary+ are true
|
|
818
820
|
# @return [ActiveSupport::SafeBuffer] HTML output
|
|
819
821
|
# @note Only the first additional button or link (passed in via a block) will be given the
|
|
@@ -827,7 +829,7 @@ module GOVUKDesignSystemFormBuilder
|
|
|
827
829
|
# = f.govuk_submit "Proceed", prevent_double_click: true do
|
|
828
830
|
# = link_to 'Cancel', some_other_path, class: 'govuk-button__secondary'
|
|
829
831
|
#
|
|
830
|
-
def govuk_submit(text = config.default_submit_button_text, warning: false, secondary: false, classes: nil, prevent_double_click: true, validate:
|
|
832
|
+
def govuk_submit(text = config.default_submit_button_text, warning: false, secondary: false, classes: nil, prevent_double_click: true, validate: config.default_submit_validate, disabled: false, &block)
|
|
831
833
|
Elements::Submit.new(self, text, warning: warning, secondary: secondary, classes: classes, prevent_double_click: prevent_double_click, validate: validate, disabled: disabled, &block).html
|
|
832
834
|
end
|
|
833
835
|
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
module GOVUKDesignSystemFormBuilder
|
|
2
|
+
module Containers
|
|
3
|
+
class ButtonGroup < Base
|
|
4
|
+
def initialize(builder, buttons)
|
|
5
|
+
super(builder, nil, nil)
|
|
6
|
+
|
|
7
|
+
@buttons = buttons
|
|
8
|
+
end
|
|
9
|
+
|
|
10
|
+
def html
|
|
11
|
+
tag.div(@buttons, class: %(#{brand}-button-group))
|
|
12
|
+
end
|
|
13
|
+
end
|
|
14
|
+
end
|
|
15
|
+
end
|
|
@@ -2,7 +2,7 @@ module GOVUKDesignSystemFormBuilder
|
|
|
2
2
|
module Containers
|
|
3
3
|
class CharacterCount < Base
|
|
4
4
|
def initialize(builder, max_words:, max_chars:, threshold:)
|
|
5
|
-
|
|
5
|
+
super(builder, nil, nil)
|
|
6
6
|
|
|
7
7
|
fail ArgumentError, 'limit can be words or chars' if max_words && max_chars
|
|
8
8
|
|
|
@@ -11,10 +11,10 @@ module GOVUKDesignSystemFormBuilder
|
|
|
11
11
|
@threshold = threshold
|
|
12
12
|
end
|
|
13
13
|
|
|
14
|
-
def html
|
|
14
|
+
def html(&block)
|
|
15
15
|
return yield unless limit?
|
|
16
16
|
|
|
17
|
-
tag.div(**options)
|
|
17
|
+
tag.div(**options, &block)
|
|
18
18
|
end
|
|
19
19
|
|
|
20
20
|
private
|
|
@@ -2,13 +2,14 @@ module GOVUKDesignSystemFormBuilder
|
|
|
2
2
|
module Containers
|
|
3
3
|
class CheckBoxes < Base
|
|
4
4
|
def initialize(builder, small:, classes: nil)
|
|
5
|
-
|
|
5
|
+
super(builder, nil, nil)
|
|
6
|
+
|
|
6
7
|
@small = small
|
|
7
8
|
@classes = classes
|
|
8
9
|
end
|
|
9
10
|
|
|
10
|
-
def html
|
|
11
|
-
tag.div(**options)
|
|
11
|
+
def html(&block)
|
|
12
|
+
tag.div(**options, &block)
|
|
12
13
|
end
|
|
13
14
|
|
|
14
15
|
private
|
|
@@ -4,14 +4,15 @@ module GOVUKDesignSystemFormBuilder
|
|
|
4
4
|
include Traits::Hint
|
|
5
5
|
|
|
6
6
|
def initialize(builder, inline:, small:, classes:)
|
|
7
|
-
|
|
7
|
+
super(builder, nil, nil)
|
|
8
|
+
|
|
8
9
|
@inline = inline
|
|
9
10
|
@small = small
|
|
10
11
|
@classes = classes
|
|
11
12
|
end
|
|
12
13
|
|
|
13
|
-
def html
|
|
14
|
-
tag.div(**options)
|
|
14
|
+
def html(&block)
|
|
15
|
+
tag.div(**options, &block)
|
|
15
16
|
end
|
|
16
17
|
|
|
17
18
|
private
|
|
@@ -6,19 +6,20 @@ 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:,
|
|
9
|
+
def initialize(builder, object_name, attribute_name, collection, value_method:, text_method:, hint:, legend:, caption:, small:, classes:, form_group:, include_hidden:, hint_method: nil, &block)
|
|
10
10
|
super(builder, object_name, attribute_name, &block)
|
|
11
11
|
|
|
12
|
-
@collection
|
|
13
|
-
@value_method
|
|
14
|
-
@text_method
|
|
15
|
-
@hint_method
|
|
16
|
-
@small
|
|
17
|
-
@legend
|
|
18
|
-
@caption
|
|
19
|
-
@hint
|
|
20
|
-
@classes
|
|
21
|
-
@form_group
|
|
12
|
+
@collection = collection
|
|
13
|
+
@value_method = value_method
|
|
14
|
+
@text_method = text_method
|
|
15
|
+
@hint_method = hint_method
|
|
16
|
+
@small = small
|
|
17
|
+
@legend = legend
|
|
18
|
+
@caption = caption
|
|
19
|
+
@hint = hint
|
|
20
|
+
@classes = classes
|
|
21
|
+
@form_group = form_group
|
|
22
|
+
@include_hidden = include_hidden
|
|
22
23
|
end
|
|
23
24
|
|
|
24
25
|
def html
|
|
@@ -56,7 +57,7 @@ module GOVUKDesignSystemFormBuilder
|
|
|
56
57
|
def collection
|
|
57
58
|
link_errors = has_errors?
|
|
58
59
|
|
|
59
|
-
@builder.collection_check_boxes(@attribute_name, @collection, @value_method, @text_method) do |check_box|
|
|
60
|
+
@builder.collection_check_boxes(@attribute_name, @collection, @value_method, @text_method, include_hidden: @include_hidden) do |check_box|
|
|
60
61
|
Elements::CheckBoxes::CollectionCheckBox.new(
|
|
61
62
|
@builder,
|
|
62
63
|
@object_name,
|
|
@@ -16,7 +16,7 @@ module GOVUKDesignSystemFormBuilder
|
|
|
16
16
|
|
|
17
17
|
def html
|
|
18
18
|
@checkbox.label(for: field_id(link_errors: @link_errors), class: label_classes) do
|
|
19
|
-
[localised_text(:label), @checkbox.text, @value].compact.first
|
|
19
|
+
[localised_text(:label), @checkbox.text, @value].compact.first.to_s
|
|
20
20
|
end
|
|
21
21
|
end
|
|
22
22
|
|
|
@@ -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:,
|
|
12
|
+
def initialize(builder, object_name, attribute_name, legend:, caption:, hint:, omit_day:, form_group:, wildcards:, date_of_birth: false, &block)
|
|
13
13
|
super(builder, object_name, attribute_name, &block)
|
|
14
14
|
|
|
15
15
|
@legend = legend
|
|
@@ -4,8 +4,8 @@ module GOVUKDesignSystemFormBuilder
|
|
|
4
4
|
include Traits::Error
|
|
5
5
|
|
|
6
6
|
def initialize(builder, object_name, title, link_base_errors_to:)
|
|
7
|
-
|
|
8
|
-
|
|
7
|
+
super(builder, object_name, nil)
|
|
8
|
+
|
|
9
9
|
@title = title
|
|
10
10
|
@link_base_errors_to = link_base_errors_to
|
|
11
11
|
end
|
|
@@ -9,7 +9,7 @@ module GOVUKDesignSystemFormBuilder
|
|
|
9
9
|
# error summary requires that the id of the first radio is linked-to from the corresponding
|
|
10
10
|
# error message. As when the summary is built what happens later in the form is unknown, we
|
|
11
11
|
# need to control this to ensure the link is generated correctly
|
|
12
|
-
def initialize(builder, object_name, attribute_name, item, value_method:, text_method:, hint_method:, link_errors: false
|
|
12
|
+
def initialize(builder, object_name, attribute_name, item, value_method:, text_method:, hint_method:, bold_labels:, link_errors: false)
|
|
13
13
|
super(builder, object_name, attribute_name)
|
|
14
14
|
|
|
15
15
|
@item = item
|
|
@@ -6,7 +6,7 @@ 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:, options: {}, html_options: {},
|
|
9
|
+
def initialize(builder, object_name, attribute_name, collection, value_method:, text_method:, hint:, label:, caption:, form_group:, options: {}, html_options: {}, &block)
|
|
10
10
|
super(builder, object_name, attribute_name, &block)
|
|
11
11
|
|
|
12
12
|
@collection = collection
|
|
@@ -49,7 +49,7 @@ module GOVUKDesignSystemFormBuilder
|
|
|
49
49
|
end
|
|
50
50
|
|
|
51
51
|
def custom_classes
|
|
52
|
-
@html_options
|
|
52
|
+
@html_options[:class]
|
|
53
53
|
end
|
|
54
54
|
end
|
|
55
55
|
end
|
|
@@ -4,9 +4,10 @@ module GOVUKDesignSystemFormBuilder
|
|
|
4
4
|
using PrefixableArray
|
|
5
5
|
|
|
6
6
|
def initialize(builder, text, warning:, secondary:, classes:, prevent_double_click:, validate:, disabled:, &block)
|
|
7
|
+
super(builder, nil, nil)
|
|
8
|
+
|
|
7
9
|
fail ArgumentError, 'buttons can be warning or secondary' if warning && secondary
|
|
8
10
|
|
|
9
|
-
@builder = builder
|
|
10
11
|
@text = text
|
|
11
12
|
@prevent_double_click = prevent_double_click
|
|
12
13
|
@warning = warning
|
|
@@ -18,11 +19,19 @@ module GOVUKDesignSystemFormBuilder
|
|
|
18
19
|
end
|
|
19
20
|
|
|
20
21
|
def html
|
|
21
|
-
|
|
22
|
+
@block_content.present? ? button_group : buttons
|
|
22
23
|
end
|
|
23
24
|
|
|
24
25
|
private
|
|
25
26
|
|
|
27
|
+
def buttons
|
|
28
|
+
safe_join([submit, @block_content])
|
|
29
|
+
end
|
|
30
|
+
|
|
31
|
+
def button_group
|
|
32
|
+
Containers::ButtonGroup.new(@builder, buttons).html
|
|
33
|
+
end
|
|
34
|
+
|
|
26
35
|
def submit
|
|
27
36
|
@builder.submit(@text, class: classes, **options)
|
|
28
37
|
end
|
|
@@ -30,7 +39,7 @@ module GOVUKDesignSystemFormBuilder
|
|
|
30
39
|
def classes
|
|
31
40
|
%w(button)
|
|
32
41
|
.prefix(brand)
|
|
33
|
-
.push(warning_class, secondary_class, disabled_class,
|
|
42
|
+
.push(warning_class, secondary_class, disabled_class, custom_classes)
|
|
34
43
|
.flatten
|
|
35
44
|
.compact
|
|
36
45
|
end
|
|
@@ -54,10 +63,6 @@ module GOVUKDesignSystemFormBuilder
|
|
|
54
63
|
%(#{brand}-button--secondary) if @secondary
|
|
55
64
|
end
|
|
56
65
|
|
|
57
|
-
def padding_class
|
|
58
|
-
%(#{brand}-!-margin-right-1) if @block_content
|
|
59
|
-
end
|
|
60
|
-
|
|
61
66
|
def disabled_class
|
|
62
67
|
%(#{brand}-button--disabled) if @disabled
|
|
63
68
|
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: 2.
|
|
4
|
+
version: 2.2.0
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Peter Yates
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date:
|
|
11
|
+
date: 2021-03-09 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:
|
|
61
|
+
version: 4.0.0.pre.1
|
|
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:
|
|
68
|
+
version: 4.0.0.pre.1
|
|
69
69
|
- !ruby/object:Gem::Dependency
|
|
70
70
|
name: pry
|
|
71
71
|
requirement: !ruby/object:Gem::Requirement
|
|
@@ -134,14 +134,14 @@ dependencies:
|
|
|
134
134
|
requirements:
|
|
135
135
|
- - "~>"
|
|
136
136
|
- !ruby/object:Gem::Version
|
|
137
|
-
version: 0.
|
|
137
|
+
version: '0.20'
|
|
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: 0.
|
|
144
|
+
version: '0.20'
|
|
145
145
|
- !ruby/object:Gem::Dependency
|
|
146
146
|
name: htmlbeautifier
|
|
147
147
|
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.26.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.26.0
|
|
187
187
|
- !ruby/object:Gem::Dependency
|
|
188
188
|
name: rubypants
|
|
189
189
|
requirement: !ruby/object:Gem::Requirement
|
|
@@ -240,6 +240,20 @@ dependencies:
|
|
|
240
240
|
- - "~>"
|
|
241
241
|
- !ruby/object:Gem::Version
|
|
242
242
|
version: 4.1.0
|
|
243
|
+
- !ruby/object:Gem::Dependency
|
|
244
|
+
name: puma
|
|
245
|
+
requirement: !ruby/object:Gem::Requirement
|
|
246
|
+
requirements:
|
|
247
|
+
- - "~>"
|
|
248
|
+
- !ruby/object:Gem::Version
|
|
249
|
+
version: '5.2'
|
|
250
|
+
type: :development
|
|
251
|
+
prerelease: false
|
|
252
|
+
version_requirements: !ruby/object:Gem::Requirement
|
|
253
|
+
requirements:
|
|
254
|
+
- - "~>"
|
|
255
|
+
- !ruby/object:Gem::Version
|
|
256
|
+
version: '5.2'
|
|
243
257
|
description: A Rails form builder that generates form inputs adhering to the GOV.UK
|
|
244
258
|
Design System
|
|
245
259
|
email:
|
|
@@ -252,6 +266,7 @@ files:
|
|
|
252
266
|
- lib/govuk_design_system_formbuilder.rb
|
|
253
267
|
- lib/govuk_design_system_formbuilder/base.rb
|
|
254
268
|
- lib/govuk_design_system_formbuilder/builder.rb
|
|
269
|
+
- lib/govuk_design_system_formbuilder/containers/button_group.rb
|
|
255
270
|
- lib/govuk_design_system_formbuilder/containers/character_count.rb
|
|
256
271
|
- lib/govuk_design_system_formbuilder/containers/check_boxes.rb
|
|
257
272
|
- lib/govuk_design_system_formbuilder/containers/check_boxes_fieldset.rb
|
|
@@ -316,9 +331,9 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
|
316
331
|
version: '0'
|
|
317
332
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
|
318
333
|
requirements:
|
|
319
|
-
- - "
|
|
334
|
+
- - ">="
|
|
320
335
|
- !ruby/object:Gem::Version
|
|
321
|
-
version:
|
|
336
|
+
version: '0'
|
|
322
337
|
requirements: []
|
|
323
338
|
rubygems_version: 3.1.4
|
|
324
339
|
signing_key:
|