bootstrap_concerns 0.5.2 → 0.5.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 +4 -4
- data/lib/bootstrap_concerns/form_builder.rb +2 -2
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: dcf43d672222428784e925103bce5b8adf0aed6edafbd7409526b6bca10cc0a2
|
4
|
+
data.tar.gz: 962871c8f5b78c9d80a8642f291645e9ac08af5a34870debfb867fb3848ae66f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 0d376dbb5e5226d219941d60958ce4e644a7ab886b16d8e5176f39c1ae038713d80343abded298a732bacd9b239be261dd68f2f75fa1a8fdfb6438829f11c930
|
7
|
+
data.tar.gz: 607193eb563ca7f5a6d6e583e7759311bf71e9f965d5f92b135909c8529662a629d60c054f971fb9bed846aeae18833201891ed6711a92f4f118e155e6eedea4
|
@@ -53,7 +53,7 @@ module BootstrapConcerns
|
|
53
53
|
end
|
54
54
|
|
55
55
|
def bs_form_group(method, type, *args)
|
56
|
-
options = args.
|
56
|
+
options = args.find { it.is_a?(Hash) && it.has_key?(:required) }.to_h
|
57
57
|
|
58
58
|
@template.content_tag(:div, class: ComponentsHelper::MARGIN) do
|
59
59
|
@template.concat bs_label(method, options.slice(:required))
|
@@ -144,7 +144,7 @@ module BootstrapConcerns
|
|
144
144
|
phone_field(method, options_with_form_control_class(options))
|
145
145
|
end
|
146
146
|
|
147
|
-
def
|
147
|
+
def bs_readonly_plain_text_field(method, options = {})
|
148
148
|
text_field(
|
149
149
|
method,
|
150
150
|
Option.options_with_base_class(options, FORM_CONTROL_PLAIN_TEXT_BASE_CLASS).merge(readonly: true)
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: bootstrap_concerns
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.5.
|
4
|
+
version: 0.5.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Evan Brooks
|
8
8
|
- Robert Keresnyei
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 1980-01-02 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: actionview
|
@@ -78,7 +78,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
78
78
|
- !ruby/object:Gem::Version
|
79
79
|
version: '0'
|
80
80
|
requirements: []
|
81
|
-
rubygems_version: 3.6.
|
81
|
+
rubygems_version: 3.6.7
|
82
82
|
specification_version: 4
|
83
83
|
summary: Concerns for building Bootstrap components with Ruby on Rails.
|
84
84
|
test_files: []
|