effective_bootstrap 0.6.7 → 0.6.8

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 8e583f4edb3e2862a328ab4040676d9efba022848730e512948b3b1f2874806b
4
- data.tar.gz: ef93586b5e06a272253677e9d6c320d7e33971ab35c797dc070fd86a6e25288a
3
+ metadata.gz: eb0803775215bcccd029fb2569ee2faa52109be3926b8d48e2a5e1c74eab5e37
4
+ data.tar.gz: 3027ea16142e60e77fd58dadcaffef36a1ac21de6c1708e5fb2207a7e0eb58c8
5
5
  SHA512:
6
- metadata.gz: 4a20412b96e1a3b082daab2da51c1a81cb1e5b61cc61ab6305ca11faf2d7a0a8d8e51501508f8406bba67aa046a11fcd544bde2ab96d76f6284f89dcf4dedcc8
7
- data.tar.gz: de05e6e3d0e4ffc303d57da9b159b2f3ac282d8aa38d4152dc687fc7e91991ee38b42b9211ff2e1aa0c8338371a842d98d94f76b4591c11cdfccb456bd421896
6
+ metadata.gz: 0e78594a0693f470165cedd51fb48e894b51ad5b909c997e227d74c0379db8133a054e0606b2fe298f30a45fd06843a9b7d8a4e2d3fd7e746256167a00d9e3b9
7
+ data.tar.gz: 41eb6bc2021961b4775a9a044340d5cde19e259d4c8cd745519b4103536a4afe1799eb8b7218d021936ae944fb231532a03ca03b5c20c42786064053716ce2b4
@@ -19,11 +19,12 @@ module EffectiveBootstrapHelper
19
19
  show = (opts.delete(:show) == true)
20
20
 
21
21
  link_opts = { 'data-toggle': 'collapse', role: 'button', href: "##{id}", 'aria-controls': "##{id}", 'aria-expanded': show }
22
- card_class = opts.delete(:class) || 'my-2'
22
+ div_class = opts.delete(:div_class)
23
+ card_class = opts.delete(:card_class) || 'my-2'
23
24
 
24
25
  content_tag(:a, label, link_opts.merge(opts)) +
25
- content_tag(:div, id: id, class: ['collapse', ('show' if show)].compact.join(' ')) do
26
- content_tag(:div, capture(&block), class: ['card', 'card-body', card_class.presence].compact.join(' '))
26
+ content_tag(:div, id: id, class: ['collapse', div_class, ('show' if show)].compact.join(' ')) do
27
+ content_tag(:div, capture(&block), class: ['card', 'card-body', card_class].compact.join(' '))
27
28
  end
28
29
  end
29
30
 
@@ -1,3 +1,3 @@
1
1
  module EffectiveBootstrap
2
- VERSION = '0.6.7'.freeze
2
+ VERSION = '0.6.8'.freeze
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: effective_bootstrap
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.6.7
4
+ version: 0.6.8
5
5
  platform: ruby
6
6
  authors:
7
7
  - Code and Effect
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2019-08-01 00:00:00.000000000 Z
11
+ date: 2019-08-02 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails