effective_bootstrap 1.14.0 → 1.14.1

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: f8da9d602b129a7dfae6217312e4a562ceb575a067c84f0bcae7cb579a72c9f0
4
- data.tar.gz: 1a75b98322a64348fec79a6607547402e680fcd08caed84069d51db5f9ea9d05
3
+ metadata.gz: 7a86c836f07d4b63af508927ea609571c6c107588820c7e437ad962136fc14fe
4
+ data.tar.gz: f5b0450942b4f101eadb2c4c22afc52985a25ad14ea783b2e2ed53990d7be553
5
5
  SHA512:
6
- metadata.gz: '0740430614349c6e52cabd1bbefe7768eefa2f40a7446603784eda7cef146d042101109d5990f00e27a89812ab0dc3407a6d798e2f7df8b4dcd6aa46b8113533'
7
- data.tar.gz: e2aba93cb629022b3817a4d94be406bd825622ce044a037fd7fccd4dbd537bdcf37106f0a23df46c68e9f2efe48c61a91b5abd589cd35fd83515c44278fa7363
6
+ metadata.gz: 5749c016c72772157d0a7a7f5e48db293b82136ae73b7d22e25d7b0656007d42dec0b88e13feef1e31e9d6a705949a4bf23ea69459286897568f977905c4177d
7
+ data.tar.gz: 56f254ddbaff26b3cb076259fd87ab04342a7e2a75b9a35a5149a7ee1461b91b86efa514211443460c59ea39f4ebfbf0c9d588391b1b4f66f7cf5175a86a79df
@@ -9,6 +9,17 @@ module Effective
9
9
  super(name, options, builder: builder)
10
10
  end
11
11
 
12
+ def content
13
+ values = Array(value) - [nil, '']
14
+
15
+ if values.length > 1
16
+ values.map { |v| content_tag(:div, v) }.join.html_safe
17
+ elsif values.length == 1
18
+ values.first
19
+ end
20
+
21
+ end
22
+
12
23
  end
13
24
  end
14
25
  end
@@ -1,3 +1,3 @@
1
1
  module EffectiveBootstrap
2
- VERSION = '1.14.0'.freeze
2
+ VERSION = '1.14.1'.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: 1.14.0
4
+ version: 1.14.1
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: 2023-04-24 00:00:00.000000000 Z
11
+ date: 2023-05-02 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails