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: 7d6a06d7e7873a54132ca9380e4a03f283b27a8d7789ef85903f50ea7c6afc5e
4
- data.tar.gz: aab7aa3a8b0bb8dc252a4f90dae1c63cb58f7ed6bf041ec599cb863ff67cebd9
3
+ metadata.gz: 31d5e399c3df170e89482e6538c4aaa9dc2ba4e8a60d369b85dc76b8ff3c65c6
4
+ data.tar.gz: d9853f42ef0b0be5b350dd3eb2be09b7e9ed6c27058e43405e4c6418d19ae6bb
5
5
  SHA512:
6
- metadata.gz: df67f3ba748c9aa9d4b3d72124ef3cdf9f70c481ab98d65bc5b84276fa228ee35c691a415312b3560768ea89b003d2840ae8446fcdfefe6f0ea5418713ee44f9
7
- data.tar.gz: 24e2d9ed89cd33c87995a4beb7da92b78a8ed8abf188ba3796f61fb89fa465e60e5b8d8f7f84ac77c54b8ebd112bcbbde4c2fb3f36a4ea5c7b5d93c43d59b0e3
6
+ metadata.gz: a12819936111447076690e20aebb635dd77703baf99a338a248926f24d24c62815c1b2f687f3957de4a38bfa99559aa4e652409123273102da08886dbe6b852a
7
+ data.tar.gz: 2a776d433403d40738a0892f5243541c129c2de8fc7ca44bf161c0cee2e41d6048a721eb08b8f2ddf9ca1eaa99c09dad0d850f05161da5a62f0d434c54c20cc0
@@ -1,5 +1,5 @@
1
1
  module BootstrapConcerns
2
- module ButtonHelper
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
@@ -0,0 +1,3 @@
1
+ require "bootstrap_concerns/components_helper"
2
+ require "bootstrap_concerns/form_builder"
3
+ require "bootstrap_concerns/option"
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.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-07 00:00:00.000000000 Z
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/button_helper.rb
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