govuk_design_system_formbuilder 2.7.3 → 2.7.4
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
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 6e957bab838013fdafade2624efb663ab4f40befc05313a3f676e1db7db50ee5
|
|
4
|
+
data.tar.gz: f9eaf97153026e3f14c24158013276315a4464a0fd5216b7ce80d36b3c5eda02
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 27a67e5dfa2a13da2abc4769f539b618fe091f0840b51132e5fac32b5f90285dbdddcf4b6516e562b83fc7b3d0036fdd62dd70c0609204e015172aa14e6fb3d4
|
|
7
|
+
data.tar.gz: b9fb370f1e5e3eaeb08fec860a48f03a4ab3b6c38613a90c7cb3d12e906298d26187b268c3a7befacafe1d36a5ab6452a2eac8b598c6d379e559f7ccb31fb101
|
data/README.md
CHANGED
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
[](https://rubygems.org/gems/govuk_design_system_formbuilder)
|
|
7
7
|
[](https://codeclimate.com/github/DFE-Digital/govuk-formbuilder/test_coverage)
|
|
8
8
|
[](https://github.com/DFE-Digital/govuk-formbuilder/blob/master/LICENSE)
|
|
9
|
-
[](https://design-system.service.gov.uk)
|
|
10
10
|
[](https://www.ruby-lang.org/en/downloads/)
|
|
11
11
|
[](https://weblog.rubyonrails.org/releases/)
|
|
12
12
|
|
|
@@ -471,9 +471,9 @@ module GOVUKDesignSystemFormBuilder
|
|
|
471
471
|
# @note Unlike the Rails +#collection_radio_buttons+ helper, this version can also insert
|
|
472
472
|
# hints per item in the collection by supplying a +:hint_method+
|
|
473
473
|
#
|
|
474
|
-
# @note +:bold_labels+,
|
|
475
|
-
#
|
|
476
|
-
#
|
|
474
|
+
# @note +:bold_labels+, is +nil+ (falsy) by default. When a +:hint_method+
|
|
475
|
+
# is provided it will become +true+ to make the label stand out more
|
|
476
|
+
# from the hint. The choice can be overridden with +true+ or +false+.
|
|
477
477
|
#
|
|
478
478
|
# @param attribute_name [Symbol] The name of the attribute
|
|
479
479
|
# @param collection [Enumerable<Object>] Options to be added to the +select+ element
|
|
@@ -538,7 +538,7 @@ module GOVUKDesignSystemFormBuilder
|
|
|
538
538
|
# :name,
|
|
539
539
|
# legend: -> { tag.h3('Which category do you belong to?') }
|
|
540
540
|
#
|
|
541
|
-
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:
|
|
541
|
+
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: nil, classes: nil, include_hidden: config.default_collection_radio_buttons_include_hidden, form_group: {}, &block)
|
|
542
542
|
Elements::Radios::Collection.new(
|
|
543
543
|
self,
|
|
544
544
|
object_name,
|
|
@@ -21,7 +21,11 @@ module GOVUKDesignSystemFormBuilder
|
|
|
21
21
|
@classes = classes
|
|
22
22
|
@form_group = form_group
|
|
23
23
|
@include_hidden = include_hidden
|
|
24
|
-
@bold_labels =
|
|
24
|
+
@bold_labels = if bold_labels.nil?
|
|
25
|
+
hint_method.present?
|
|
26
|
+
else
|
|
27
|
+
bold_labels
|
|
28
|
+
end
|
|
25
29
|
end
|
|
26
30
|
|
|
27
31
|
def html
|
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.7.
|
|
4
|
+
version: 2.7.4
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Peter Yates
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2021-09-
|
|
11
|
+
date: 2021-09-10 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: deep_merge
|
|
@@ -355,6 +355,7 @@ metadata:
|
|
|
355
355
|
documentation_uri: https://www.rubydoc.info/gems/govuk_design_system_formbuilder/GOVUKDesignSystemFormBuilder/Builder
|
|
356
356
|
homepage_uri: https://govuk-form-builder.netlify.app
|
|
357
357
|
source_code_uri: https://github.com/DFE-Digital/govuk_design_system_formbuilder
|
|
358
|
+
github_repo: git@github.com:DFE-Digital/govuk_design_system_formbuilder.git
|
|
358
359
|
post_install_message:
|
|
359
360
|
rdoc_options: []
|
|
360
361
|
require_paths:
|