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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: a6d66204774585ab5856791f11c3fd72caa2f15e4ef9a9e203057713853f20ee
4
- data.tar.gz: aa498bd064e817cc3eeb7cad582e4f691bcd564adf1b2901c72b328a9c2ab866
3
+ metadata.gz: 95a72c03e44647232b0738d11cc3a02f73a5a0c4b4f36ca3772dda008d79b123
4
+ data.tar.gz: f26bdb6a4f6ddc4a0441683dc97e9ab037d0e53089976b52eda0c8f2b511c913
5
5
  SHA512:
6
- metadata.gz: a663c46f524584544fa709a0f503e540dd5f8183d45150fe7674b24a5e12dc5ebd4fbf4b5d8d5fcaee440a00b09651a269857a9e196e9467b7dd4e4f70453cf8
7
- data.tar.gz: 75f5f5599cbf4779d5cb65fb26613d880a5aba225c58540b596cb79fbc1184d8f865c27e422ef0c1ee36c3eb4453725c7a570472b501553c5be9800007ce51f3
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
- content_tag(:i, "", class: "bi bi-x-circle-fill")
10
+ icon("x-circle-fill")
11
11
  end
12
12
 
13
13
  def boolean_true_icon
14
- content_tag(:i, "", class: "bi bi-check-circle-fill")
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", "", class: "bi bi-#{name}") + content_tag(:span, text, class: "ms-1 d-none d-sm-inline")
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.0
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: 2025-04-11 00:00:00.000000000 Z
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.5
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: []