onebox 2.1.1 → 2.1.2

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: ebbcb2268bcade7ace9670046cfbf13f58862561b59802ef0011bc8ae869a6a7
4
- data.tar.gz: 51e35394339f1cdd6c6dc7be9971bbc7a0e8b8f9a31b483d877e96be86319e0f
3
+ metadata.gz: b6f726ba81d305fdfdcdf70d442441504694c33cd249a7d2ff1fb147fa8809c6
4
+ data.tar.gz: 6bc5a22ad48c12bbe411fdeca6736a9d1faec3f3f718a561739850623a38fc5b
5
5
  SHA512:
6
- metadata.gz: 9f540f3437675e0abb5ccb25013b9b516e6bb101a21a26e00a2ecf111940bc660ef8706122f805a279cb67e85823be82183d9f095bc86a7aa7f494c0ecd68645
7
- data.tar.gz: 82295ede48990cf922e1e3e6cce645cd1caf4f9965d8e289d756d727f4b7886e116a5ffa1676f7df3873d524b28161c30c75478e2008887a80324e2ed8639fde
6
+ metadata.gz: 1dc2c71dc5265ee9ffc39b493693c24c536c3812d25078c4e5ea828c435990f40edeb6a4efbef8697f465a9f79b69efd6c1f353c8581fcd60ddf09ed560112f5
7
+ data.tar.gz: 181e7ca402b1c0977d28f77135c63232d2cbe57169d2f5a7a78ec1076824d0b56f8699945b1a0df560c7f167ab378033ba664f0f934cc0c70c6fa3913f90ffc7
@@ -292,8 +292,7 @@ module Onebox
292
292
  end
293
293
 
294
294
  def has_text?
295
- !Onebox::Helpers.blank?(data[:title]) &&
296
- !Onebox::Helpers.blank?(data[:description])
295
+ !Onebox::Helpers.blank?(data[:title])
297
296
  end
298
297
 
299
298
  def is_image?
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Onebox
4
- VERSION = "2.1.1"
4
+ VERSION = "2.1.2"
5
5
  end
@@ -2,7 +2,9 @@
2
2
 
3
3
  <h3><a href='{{link}}' target="_blank" rel="noopener">{{title}}</a></h3>
4
4
 
5
+ {{#description}}
5
6
  <p>{{description}}</p>
7
+ {{/description}}
6
8
 
7
9
  {{#data_1}}
8
10
  <p><span class="label1">{{label_1}}: {{data_1}}</span>
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: onebox
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.1.1
4
+ version: 2.1.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Joanna Zeta
@@ -10,7 +10,7 @@ authors:
10
10
  autorequire:
11
11
  bindir: bin
12
12
  cert_chain: []
13
- date: 2020-08-27 00:00:00.000000000 Z
13
+ date: 2020-09-09 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: addressable