base_editing_bootstrap 0.15.0 → 0.16.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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 6aef652b3fc0651d54b2a217bbb32a6e750135ffc1216faa82dee66ad788e5b4
4
- data.tar.gz: b9cf8df48a6c26bb2e67b7d65d9059e4fa974defb7e58ef1863f8e065e75af7a
3
+ metadata.gz: 032ff91aed1deaf467baa86fc493c3c43239f90ecada9d9525d4a1a0b481a380
4
+ data.tar.gz: 46f68625ee2cad88c0a266cbcbfb8636b5933a55c2ee51a4aa0853345393d2ad
5
5
  SHA512:
6
- metadata.gz: 0d639657a9314a263c38b30e390af56f21b94071f835f4d59ccea7818f7799a3899081c534e2183349122968bd81347904ea1eb46996fa9190521039785b881d
7
- data.tar.gz: b87959282627c61dc5b8f233503a3932cc0cb0a53ba25a192065a9ee765b95a754b55efc5998e4ec1032ca9ecdee0db334edce0f19563621c0026d97d873be2e
6
+ metadata.gz: 970c5dfea8476b01b2a2ba57009c41a83fefeeb3bd0f8e8add56ced18618ebbf74dd72808c52be2d167f2d7576ee51e07db177a2134de4cce8214f0b38b7b0aa
7
+ data.tar.gz: e9d827c56ede5ef4b6c75d06e922b3f5730f1644c8a6065ab833e741bf3ed6a274a66179e5729657f67ada1d5882545844c41eb4ec2343cff5c4d011cadbb55a
data/CHANGELOG.md CHANGED
@@ -2,6 +2,12 @@
2
2
  All notable changes to this project will be documented in this file. See [conventional commits](https://www.conventionalcommits.org/) for commit guidelines.
3
3
 
4
4
  - - -
5
+ ## 0.16.0 - 2024-11-22
6
+ #### Features
7
+ - Add custom class to check-box forms - (0ff856c) - Marino Bonetti
8
+
9
+ - - -
10
+
5
11
  ## 0.15.0 - 2024-11-11
6
12
  #### Bug Fixes
7
13
  - Add Password for in standard fields - (593c8c2) - Marino Bonetti
@@ -1 +1 @@
1
- 0.15.0
1
+ 0.16.0
@@ -68,9 +68,16 @@ module BaseEditingBootstrap::Forms
68
68
  self.check_box(method, options, checked_value, unchecked_value)
69
69
  end
70
70
 
71
- def collection_check_boxes(method, collection, value_method, text_method, options = {}, html_options = {}, &block)
71
+ def collection_check_boxes(method,
72
+ collection,
73
+ value_method,
74
+ text_method,
75
+ options = {},
76
+ html_options = {},
77
+ &block)
78
+ form_check_classes = (["form-check"] + [(html_options.delete(:form_check_class){""}).split(" ").collect(&:strip)]).compact.join(" ")
72
79
  super do |builder|
73
- @template.content_tag(:div, class: "form-check") do
80
+ @template.content_tag(:div, class: form_check_classes) do
74
81
  builder.check_box(class: "form-check-input") + builder.label(class: "form-check-label")
75
82
  end
76
83
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: base_editing_bootstrap
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.15.0
4
+ version: 0.16.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Marino Bonetti
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2024-11-11 00:00:00.000000000 Z
11
+ date: 2024-11-22 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails