bootstrap_concerns 0.5.3 → 0.5.5
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 +7 -7
- metadata +17 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: ebd29a3241d20980ce99866726de6fee7aac0b318e90070b74e9f0e301c0b9ed
|
4
|
+
data.tar.gz: 3b51a9f3f0612d7fd98507ccc5b3718bfbff2cf404d32939a926a0f009da9c23
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 6eeecf1fc605973c9439ab7dbfd1116d0e146322e61058cd87e272dd9ee41328087a18b139c3f625d40e6e5a6a525540a5d05556ca54d2b9d458f15bc93afc93
|
7
|
+
data.tar.gz: 7172244a7b5e848aa726e9bc2c8407ee86dc20c7a3a2a2a7f02bd52af80ca9752298ac0430c0184d64d745024616e92bd7122ba8586bdcfa880116b6c2c27301
|
@@ -9,7 +9,7 @@ module BootstrapConcerns
|
|
9
9
|
|
10
10
|
def bs_button(value = nil, options = {}, &)
|
11
11
|
normalized_options = value.is_a?(Hash) ? value : options
|
12
|
-
normalized_options.
|
12
|
+
normalized_options.deep_merge!(Option.options_with_button_class(normalized_options))
|
13
13
|
|
14
14
|
button(value, options, &)
|
15
15
|
end
|
@@ -20,7 +20,7 @@ module BootstrapConcerns
|
|
20
20
|
|
21
21
|
def bs_check_label(method, text = nil, options = {}, &)
|
22
22
|
normalized_options = text.is_a?(Hash) ? text : options
|
23
|
-
normalized_options.
|
23
|
+
normalized_options.deep_merge!(options_with_form_label_class(normalized_options))
|
24
24
|
|
25
25
|
label(method, text, options, &)
|
26
26
|
end
|
@@ -85,7 +85,7 @@ module BootstrapConcerns
|
|
85
85
|
|
86
86
|
def bs_label(method, text = nil, options = {}, &)
|
87
87
|
normalized_options = text.is_a?(Hash) ? text : options
|
88
|
-
normalized_options.
|
88
|
+
normalized_options.deep_merge!(options_with_form_label_class(normalized_options))
|
89
89
|
|
90
90
|
label(method, text, options, &)
|
91
91
|
end
|
@@ -105,7 +105,7 @@ module BootstrapConcerns
|
|
105
105
|
direct-upload:end->direct-upload-field#end
|
106
106
|
ACTION
|
107
107
|
}
|
108
|
-
}.
|
108
|
+
}.deep_merge(options)
|
109
109
|
)
|
110
110
|
end
|
111
111
|
|
@@ -135,7 +135,7 @@ module BootstrapConcerns
|
|
135
135
|
|
136
136
|
def bs_submit(value = nil, options = {})
|
137
137
|
normalized_options = value.is_a?(Hash) ? value : options
|
138
|
-
normalized_options.
|
138
|
+
normalized_options.deep_merge!(Option.options_with_button_class(normalized_options))
|
139
139
|
|
140
140
|
submit(value, options)
|
141
141
|
end
|
@@ -144,10 +144,10 @@ 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
|
-
Option.options_with_base_class(options, FORM_CONTROL_PLAIN_TEXT_BASE_CLASS).
|
150
|
+
Option.options_with_base_class(options, FORM_CONTROL_PLAIN_TEXT_BASE_CLASS).deep_merge(readonly: true)
|
151
151
|
)
|
152
152
|
end
|
153
153
|
|
metadata
CHANGED
@@ -1,15 +1,29 @@
|
|
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.5
|
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
|
+
- !ruby/object:Gem::Dependency
|
14
|
+
name: activesupport
|
15
|
+
requirement: !ruby/object:Gem::Requirement
|
16
|
+
requirements:
|
17
|
+
- - "~>"
|
18
|
+
- !ruby/object:Gem::Version
|
19
|
+
version: '8'
|
20
|
+
type: :runtime
|
21
|
+
prerelease: false
|
22
|
+
version_requirements: !ruby/object:Gem::Requirement
|
23
|
+
requirements:
|
24
|
+
- - "~>"
|
25
|
+
- !ruby/object:Gem::Version
|
26
|
+
version: '8'
|
13
27
|
- !ruby/object:Gem::Dependency
|
14
28
|
name: actionview
|
15
29
|
requirement: !ruby/object:Gem::Requirement
|
@@ -78,7 +92,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
78
92
|
- !ruby/object:Gem::Version
|
79
93
|
version: '0'
|
80
94
|
requirements: []
|
81
|
-
rubygems_version: 3.6.
|
95
|
+
rubygems_version: 3.6.7
|
82
96
|
specification_version: 4
|
83
97
|
summary: Concerns for building Bootstrap components with Ruby on Rails.
|
84
98
|
test_files: []
|