bootstrap_concerns 0.1.1 → 0.1.3
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: 31d5e399c3df170e89482e6538c4aaa9dc2ba4e8a60d369b85dc76b8ff3c65c6
|
4
|
+
data.tar.gz: d9853f42ef0b0be5b350dd3eb2be09b7e9ed6c27058e43405e4c6418d19ae6bb
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a12819936111447076690e20aebb635dd77703baf99a338a248926f24d24c62815c1b2f687f3957de4a38bfa99559aa4e652409123273102da08886dbe6b852a
|
7
|
+
data.tar.gz: 2a776d433403d40738a0892f5243541c129c2de8fc7ca44bf161c0cee2e41d6048a721eb08b8f2ddf9ca1eaa99c09dad0d850f05161da5a62f0d434c54c20cc0
|
@@ -1,5 +1,5 @@
|
|
1
1
|
module BootstrapConcerns
|
2
|
-
module
|
2
|
+
module ComponentsHelper
|
3
3
|
def bs_button_to(name = nil, options = nil, html_options = nil, &)
|
4
4
|
bs_link_or_button_to(:button_to, name, options, html_options, &)
|
5
5
|
end
|
@@ -26,5 +26,16 @@ module BootstrapConcerns
|
|
26
26
|
&
|
27
27
|
)
|
28
28
|
end
|
29
|
+
|
30
|
+
def flash_alert_color(key)
|
31
|
+
case key
|
32
|
+
when "notice"
|
33
|
+
"success"
|
34
|
+
when "alert"
|
35
|
+
"danger"
|
36
|
+
else
|
37
|
+
key
|
38
|
+
end
|
39
|
+
end
|
29
40
|
end
|
30
41
|
end
|
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.1.
|
4
|
+
version: 0.1.3
|
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: 2025-02-
|
11
|
+
date: 2025-02-10 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: actionview
|
@@ -56,7 +56,8 @@ executables: []
|
|
56
56
|
extensions: []
|
57
57
|
extra_rdoc_files: []
|
58
58
|
files:
|
59
|
-
- lib/bootstrap_concerns
|
59
|
+
- lib/bootstrap_concerns.rb
|
60
|
+
- lib/bootstrap_concerns/components_helper.rb
|
60
61
|
- lib/bootstrap_concerns/form_builder.rb
|
61
62
|
- lib/bootstrap_concerns/option.rb
|
62
63
|
homepage: https://github.com/swiftvee/bootstrap_concerns
|