bootstrap4_helper 1.0.3 → 1.0.4
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/bootstrap4_helper/tab/content.rb +3 -2
- data/lib/bootstrap4_helper/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 61bc662a58a5774ee223621b78766ceccb1c8101d1636d34910f34be5aa9cd6c
|
|
4
|
+
data.tar.gz: a2f5586b976b335c9aa7b492799e187829165378d73014db1f6fb2138726fa2f
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: fce178f5712393779fde349705d5669b206d3cebf01cab222d77858418116a77a5f492b817258f39be930c1e88cb4a50174a22811ea2f867ce36dba2283d9b19
|
|
7
|
+
data.tar.gz: 9e05b638b71d7e10e9245af292476f87e954dcb3f6dd0fca4271818d1b140d88fd90178aeb89536ab942cbede7fba5ae4026a9a01411976352eeb734ad1fa33c
|
|
@@ -24,18 +24,19 @@ module Bootstrap4Helper
|
|
|
24
24
|
# Builds the pane for the tab.
|
|
25
25
|
#
|
|
26
26
|
# @param [Symbol] source
|
|
27
|
-
# @param [Hash]
|
|
27
|
+
# @param [Hash] opts
|
|
28
28
|
# @option opts [String] :class
|
|
29
29
|
# @option opts [Hash] :data
|
|
30
30
|
# @return [String]
|
|
31
31
|
#
|
|
32
32
|
def pane(source, opts = {}, &block)
|
|
33
|
+
id = opts.fetch(:id, source)
|
|
33
34
|
klass = opts.fetch(:class, '')
|
|
34
35
|
data = opts.fetch(:data, {})
|
|
35
36
|
|
|
36
37
|
content_tag(
|
|
37
38
|
:div,
|
|
38
|
-
id:
|
|
39
|
+
id: id,
|
|
39
40
|
class: "tab-pane #{klass}",
|
|
40
41
|
role: 'tabpanel',
|
|
41
42
|
data: data,
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: bootstrap4_helper
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 1.0.
|
|
4
|
+
version: 1.0.4
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Robert David
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2020-
|
|
11
|
+
date: 2020-06-12 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: rails
|