govuk_design_system_formbuilder 2.1.6 → 2.1.9
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +4 -2
- data/lib/govuk_design_system_formbuilder.rb +8 -0
- data/lib/govuk_design_system_formbuilder/base.rb +1 -1
- data/lib/govuk_design_system_formbuilder/builder.rb +7 -5
- 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/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 +17 -34
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 11458ddeca1cf3fba55781a8c7dfdb0eb682ac519d754b052c54cbae578d5033
|
4
|
+
data.tar.gz: 731aa5873f7bc488c87c97529ea631651ecb36f3a7283693d7ccf01faec8701f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 7ce8f19c89c96735199b288730141ba152a008786da44cd16455cd74bbed4bc456d0f1fce3ec173a4898b2606efba41e97543e46aaef93632bacbf8ccbf7e905
|
7
|
+
data.tar.gz: 45ec83ef9865b634293748a79b91858ad6d85f06c4680b52abbebaef5429ddf079fd810ed6a5b0ba45d45f9a91c879d83993a9ad540786e803b00bf70ae10bd9
|
data/README.md
CHANGED
@@ -1,13 +1,15 @@
|
|
1
1
|
# GOV.UK Design System Form Builder for Rails
|
2
2
|
|
3
|
-
[![Tests](https://github.com/DFE-Digital/govuk_design_system_formbuilder/workflows/
|
3
|
+
[![Tests](https://github.com/DFE-Digital/govuk_design_system_formbuilder/workflows/Tests/badge.svg)](https://github.com/DFE-Digital/govuk_design_system_formbuilder/actions)
|
4
4
|
[![Maintainability](https://api.codeclimate.com/v1/badges/fde73b5dc9476197281b/maintainability)](https://codeclimate.com/github/DFE-Digital/govuk_design_system_formbuilder/maintainability)
|
5
5
|
[![Gem Version](https://badge.fury.io/rb/govuk_design_system_formbuilder.svg)](https://badge.fury.io/rb/govuk_design_system_formbuilder)
|
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/fde73b5dc9476197281b/test_coverage)](https://codeclimate.com/github/DFE-Digital/govuk_design_system_formbuilder/test_coverage)
|
8
8
|
[![Dependabot Status](https://api.dependabot.com/badges/status?host=github&repo=DFE-Digital/govuk_design_system_formbuilder)](https://dependabot.com)
|
9
9
|
[![GitHub license](https://img.shields.io/github/license/DFE-Digital/govuk_design_system_formbuilder)](https://github.com/DFE-Digital/govuk_design_system_formbuilder/blob/master/LICENSE)
|
10
|
-
[![GOV.UK Design System Version](https://img.shields.io/badge/GOV.UK%20Design%20System-3.
|
10
|
+
[![GOV.UK Design System Version](https://img.shields.io/badge/GOV.UK%20Design%20System-3.11.0-brightgreen)](https://design-system.service.gov.uk)
|
11
|
+
[![Rails](https://img.shields.io/badge/Ruby-2.5.8%20%E2%95%B1%202.6.6%20%E2%95%B1%202.7.2-E16D6D)](https://weblog.rubyonrails.org/releases/)
|
12
|
+
[![Ruby](https://img.shields.io/badge/Rails-5.2.4%20%E2%95%B1%206.0.3%20%E2%95%B1%206.1.0-E16D6D)](https://www.ruby-lang.org/en/downloads/)
|
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,8 @@ 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,
|
55
63
|
|
56
64
|
localisation_schema_fallback: %i(helpers __context__),
|
57
65
|
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
|
@@ -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
|
@@ -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,75 +1,57 @@
|
|
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.9
|
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:
|
11
|
+
date: 2021-02-17 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: actionview
|
15
15
|
requirement: !ruby/object:Gem::Requirement
|
16
16
|
requirements:
|
17
|
-
- - "~>"
|
18
|
-
- !ruby/object:Gem::Version
|
19
|
-
version: 6.1.0
|
20
17
|
- - ">="
|
21
18
|
- !ruby/object:Gem::Version
|
22
|
-
version: '
|
19
|
+
version: '5.2'
|
23
20
|
type: :runtime
|
24
21
|
prerelease: false
|
25
22
|
version_requirements: !ruby/object:Gem::Requirement
|
26
23
|
requirements:
|
27
|
-
- - "~>"
|
28
|
-
- !ruby/object:Gem::Version
|
29
|
-
version: 6.1.0
|
30
24
|
- - ">="
|
31
25
|
- !ruby/object:Gem::Version
|
32
|
-
version: '
|
26
|
+
version: '5.2'
|
33
27
|
- !ruby/object:Gem::Dependency
|
34
28
|
name: activemodel
|
35
29
|
requirement: !ruby/object:Gem::Requirement
|
36
30
|
requirements:
|
37
|
-
- - "~>"
|
38
|
-
- !ruby/object:Gem::Version
|
39
|
-
version: 6.1.0
|
40
31
|
- - ">="
|
41
32
|
- !ruby/object:Gem::Version
|
42
|
-
version: '
|
33
|
+
version: '5.2'
|
43
34
|
type: :runtime
|
44
35
|
prerelease: false
|
45
36
|
version_requirements: !ruby/object:Gem::Requirement
|
46
37
|
requirements:
|
47
|
-
- - "~>"
|
48
|
-
- !ruby/object:Gem::Version
|
49
|
-
version: 6.1.0
|
50
38
|
- - ">="
|
51
39
|
- !ruby/object:Gem::Version
|
52
|
-
version: '
|
40
|
+
version: '5.2'
|
53
41
|
- !ruby/object:Gem::Dependency
|
54
42
|
name: activesupport
|
55
43
|
requirement: !ruby/object:Gem::Requirement
|
56
44
|
requirements:
|
57
|
-
- - "~>"
|
58
|
-
- !ruby/object:Gem::Version
|
59
|
-
version: 6.1.0
|
60
45
|
- - ">="
|
61
46
|
- !ruby/object:Gem::Version
|
62
|
-
version: '
|
47
|
+
version: '5.2'
|
63
48
|
type: :runtime
|
64
49
|
prerelease: false
|
65
50
|
version_requirements: !ruby/object:Gem::Requirement
|
66
51
|
requirements:
|
67
|
-
- - "~>"
|
68
|
-
- !ruby/object:Gem::Version
|
69
|
-
version: 6.1.0
|
70
52
|
- - ">="
|
71
53
|
- !ruby/object:Gem::Version
|
72
|
-
version: '
|
54
|
+
version: '5.2'
|
73
55
|
- !ruby/object:Gem::Dependency
|
74
56
|
name: rubocop-govuk
|
75
57
|
requirement: !ruby/object:Gem::Requirement
|
@@ -152,14 +134,14 @@ dependencies:
|
|
152
134
|
requirements:
|
153
135
|
- - "~>"
|
154
136
|
- !ruby/object:Gem::Version
|
155
|
-
version: 0.
|
137
|
+
version: '0.20'
|
156
138
|
type: :development
|
157
139
|
prerelease: false
|
158
140
|
version_requirements: !ruby/object:Gem::Requirement
|
159
141
|
requirements:
|
160
142
|
- - "~>"
|
161
143
|
- !ruby/object:Gem::Version
|
162
|
-
version: 0.
|
144
|
+
version: '0.20'
|
163
145
|
- !ruby/object:Gem::Dependency
|
164
146
|
name: htmlbeautifier
|
165
147
|
requirement: !ruby/object:Gem::Requirement
|
@@ -194,14 +176,14 @@ dependencies:
|
|
194
176
|
requirements:
|
195
177
|
- - "~>"
|
196
178
|
- !ruby/object:Gem::Version
|
197
|
-
version: 3.
|
179
|
+
version: 3.26.0
|
198
180
|
type: :development
|
199
181
|
prerelease: false
|
200
182
|
version_requirements: !ruby/object:Gem::Requirement
|
201
183
|
requirements:
|
202
184
|
- - "~>"
|
203
185
|
- !ruby/object:Gem::Version
|
204
|
-
version: 3.
|
186
|
+
version: 3.26.0
|
205
187
|
- !ruby/object:Gem::Dependency
|
206
188
|
name: rubypants
|
207
189
|
requirement: !ruby/object:Gem::Requirement
|
@@ -270,6 +252,7 @@ files:
|
|
270
252
|
- lib/govuk_design_system_formbuilder.rb
|
271
253
|
- lib/govuk_design_system_formbuilder/base.rb
|
272
254
|
- lib/govuk_design_system_formbuilder/builder.rb
|
255
|
+
- lib/govuk_design_system_formbuilder/containers/button_group.rb
|
273
256
|
- lib/govuk_design_system_formbuilder/containers/character_count.rb
|
274
257
|
- lib/govuk_design_system_formbuilder/containers/check_boxes.rb
|
275
258
|
- lib/govuk_design_system_formbuilder/containers/check_boxes_fieldset.rb
|
@@ -323,7 +306,7 @@ metadata:
|
|
323
306
|
documentation_uri: https://www.rubydoc.info/gems/govuk_design_system_formbuilder/GOVUKDesignSystemFormBuilder/Builder
|
324
307
|
homepage_uri: https://govuk-form-builder.netlify.app
|
325
308
|
source_code_uri: https://github.com/DFE-Digital/govuk_design_system_formbuilder
|
326
|
-
post_install_message:
|
309
|
+
post_install_message:
|
327
310
|
rdoc_options: []
|
328
311
|
require_paths:
|
329
312
|
- lib
|
@@ -338,8 +321,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
338
321
|
- !ruby/object:Gem::Version
|
339
322
|
version: '0'
|
340
323
|
requirements: []
|
341
|
-
rubygems_version: 3.1.
|
342
|
-
signing_key:
|
324
|
+
rubygems_version: 3.1.4
|
325
|
+
signing_key:
|
343
326
|
specification_version: 4
|
344
327
|
summary: GOV.UK-compliant Rails form builder
|
345
328
|
test_files: []
|