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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 8f0ef370fca1da439ea16cd2708d95e49a7783097817ba724c54a4da175188fe
4
- data.tar.gz: 33471717cd69b0cba4eff2122ad7fb7c638393df3114fbccb3c0c1f60b9f7849
3
+ metadata.gz: '092f884d4e2928c9cda4247f62caeba2dc0a7b7e7c56b42a4292d611c5d62ee1'
4
+ data.tar.gz: 8059eaec1762f8846cc1d16d668d0e29dd5fa4e7b27edfbb91434c1f9e8d70f0
5
5
  SHA512:
6
- metadata.gz: 49ac133d45de49472654194c63aaf7b1ecf29b38745572f3f5567eeb3ea221b4066b84b0e00c7d21cf979657ab7b93b9f4698f6d0b0b31d3921e85089aa77f4a
7
- data.tar.gz: 87d0cdb39ab2317f53dbfdee5944e8bef922c5122e8e6542e2257f1a8b27edc635dba42a618af02113b175807d852d8f6efce373b0b3c68bd91bdd79ab399404
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
- html_classes = ((obj[:class] || '').split(' ') + (defaults[:class] || '').split(' ')).uniq
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
@@ -1,3 +1,3 @@
1
1
  module EffectiveBootstrap
2
- VERSION = '0.9.43'.freeze
2
+ VERSION = '0.9.44'.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.9.43
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-23 00:00:00.000000000 Z
11
+ date: 2021-09-29 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails