effective_bootstrap 0.11.3 → 0.11.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/app/helpers/effective_bootstrap_helper.rb +3 -0
- data/lib/effective_bootstrap/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: 4423984afd6c85d347284bac9aaf395c3c4e0c9d88eabd6c443ffd1c74708936
|
|
4
|
+
data.tar.gz: 067ca15318f8f73d43c5ca6a1f0a8d80c53f5de8efa422c9133f5695e8b331b5
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: d8aba898f0531ab2db441f18056ef82449e6b547f83fee46acd499a2d5bea88c21f4e5bad28391afebeca57f4d667b098d5fa3a9468f694d28717159d6cde60c
|
|
7
|
+
data.tar.gz: f7229ccf23eef4375351fad4b4320be24fc74c5846bad33552c6c30d2e17c98d0dbcb8fb17571ac9ee682f7bcfd0bc4c6603f667db8201c6fde851f5e1b89101
|
|
@@ -539,10 +539,13 @@ module EffectiveBootstrapHelper
|
|
|
539
539
|
end
|
|
540
540
|
end
|
|
541
541
|
|
|
542
|
+
NUMBERS = ['0', '1', '2', '3', '4', '5', '6', '7', '8', '9']
|
|
543
|
+
|
|
542
544
|
def tab(label, options = {}, &block)
|
|
543
545
|
(@_tab_labels.push(label) and return) if @_tab_mode == :validate
|
|
544
546
|
|
|
545
547
|
controls = options.delete(:controls) || label.to_s.parameterize.gsub('_', '-')
|
|
548
|
+
controls = "item-#{controls}" if NUMBERS.include?(controls[0]) # Can't start with a number
|
|
546
549
|
controls = controls[1..-1] if controls[0] == '#'
|
|
547
550
|
controls = "#{controls}-#{@_tab_unique}" if @_tab_unique
|
|
548
551
|
|
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.11.
|
|
4
|
+
version: 0.11.4
|
|
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: 2022-09-
|
|
11
|
+
date: 2022-09-09 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: rails
|