bootstrap_concerns 0.5.0 → 0.5.1
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/components_helper.rb +5 -4
- 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: 95a72c03e44647232b0738d11cc3a02f73a5a0c4b4f36ca3772dda008d79b123
|
4
|
+
data.tar.gz: f26bdb6a4f6ddc4a0441683dc97e9ab037d0e53089976b52eda0c8f2b511c913
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 653a147bcb0d7f3e3c4068fd1538c7a79b7f2a0150ccc081195a6f55647deb9653354fdc3594bfde86e7ded36e0cf1c6e95940e2ec35b7231a41eaa798698daa
|
7
|
+
data.tar.gz: b78ca83f09bd8763b44811a85f77ee313ba81aebba1e462bb1053c6ebd37bcf38ac2552acb4e87fa99c4f03a658c428ba8e59b5de6db536cbe364ff496905657
|
@@ -7,11 +7,11 @@ module BootstrapConcerns
|
|
7
7
|
end
|
8
8
|
|
9
9
|
def boolean_false_icon
|
10
|
-
|
10
|
+
icon("x-circle-fill")
|
11
11
|
end
|
12
12
|
|
13
13
|
def boolean_true_icon
|
14
|
-
|
14
|
+
icon("check-circle-fill")
|
15
15
|
end
|
16
16
|
|
17
17
|
def bs_button_tag(content_or_options = nil, options = nil, &)
|
@@ -126,8 +126,9 @@ module BootstrapConcerns
|
|
126
126
|
end
|
127
127
|
end
|
128
128
|
|
129
|
-
def icon(name, text)
|
130
|
-
content_tag("i",
|
129
|
+
def icon(name, text = nil)
|
130
|
+
i = content_tag("i", nil, class: "bi bi-#{name}")
|
131
|
+
text ? i + content_tag(:span, text, class: "ms-1 d-none d-sm-inline") : i
|
131
132
|
end
|
132
133
|
|
133
134
|
def import_icon
|
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.1
|
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: []
|