effective_bootstrap 0.9.43 → 0.9.44
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/app/models/effective/form_input.rb +1 -16
- 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: '092f884d4e2928c9cda4247f62caeba2dc0a7b7e7c56b42a4292d611c5d62ee1'
|
4
|
+
data.tar.gz: 8059eaec1762f8846cc1d16d668d0e29dd5fa4e7b27edfbb91434c1f9e8d70f0
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f9a5de0079ce76d9fe570233344b892ddb8b56407611cb231dbefe9e46c996894a73f3a48f0df377269a0fbd5472ee8bcbb7fae19968da52f50ff3b1ca0b7926
|
7
|
+
data.tar.gz: af189c0bd213dd06adb690673221582d47838ef9ab711e03fc9058c70a8938bfef2da2d6a8c38e14a74c1e4b99f6cc98b004e21e9477355c22c9091fef21ba5b
|
@@ -371,22 +371,7 @@ module Effective
|
|
371
371
|
when String
|
372
372
|
defaults.merge(text: obj)
|
373
373
|
when Hash
|
374
|
-
|
375
|
-
|
376
|
-
# Try to smart merge bootstrap classes
|
377
|
-
if (exclusive = html_classes.select { |c| c.include?('-') }).length > 1
|
378
|
-
EXCLUSIVE_CLASS_PREFIXES.each do |prefix|
|
379
|
-
prefixed = exclusive.select { |c| c.start_with?(prefix) }
|
380
|
-
prefixed[1..-1].each { |c| html_classes.delete(c) } if prefixed.length > 1
|
381
|
-
end
|
382
|
-
|
383
|
-
suffixed = exclusive.select { |c| EXCLUSIVE_CLASS_SUFFIXES.any? { |suffix| c.end_with?(suffix) } }
|
384
|
-
suffixed[1..-1].each { |c| html_classes.delete(c) } if suffixed.length > 1
|
385
|
-
end
|
386
|
-
|
387
|
-
obj[:class] = html_classes.join(' ') if html_classes.present?
|
388
|
-
obj.reverse_merge!(defaults)
|
389
|
-
obj
|
374
|
+
obj.reverse_merge!(defaults); obj
|
390
375
|
else
|
391
376
|
defaults.merge(text: obj.to_s)
|
392
377
|
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.9.
|
4
|
+
version: 0.9.44
|
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: 2021-09-
|
11
|
+
date: 2021-09-29 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|