onebox 2.1.9 → 2.2.0

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: d555fa4be5db2d4437afe2b951d7af3efff8e399fc30a2bc425d5f6a791f8ea2
4
- data.tar.gz: d70a7b81ee90f534faa251b5b73af40077aec16f1450a08ef6adf195f5e725ef
3
+ metadata.gz: 354e358f2909b92f1efa00092d3c82cc451760d9f8a0ee6628bb8b950f45ca2a
4
+ data.tar.gz: 86bcb44cc263203075a8b0e972b7899a6942fb4b0e4fad4917089ecbbed2fd32
5
5
  SHA512:
6
- metadata.gz: 30bc63c0960c76fd6ed876a43554502346cd5b31bf101075307aeb3c4341c32202d9700ef5a5097a46512745cb6659c152a4c9266a7b79769957a33ebf2db92b
7
- data.tar.gz: 55f73e9b974ce8d5ad272335beaf1a72843fcfcd6b7be2b79988550c7cb33aa5ba6e0d3f419d4341a270d8f0232a849181332e3a3cc7ad07b93f5f432da2a7d1
6
+ metadata.gz: 254b44103190d101795ccce8a736dacc7e3e5d3159b0512b7539f39e4968dd750800455c9867abbafd8387ef1ae870974c581965d7b53e699187af532dda1961
7
+ data.tar.gz: eff1b7f8c6add5760f5f7e6be3c1790a170e92a08ad6eb289b5a240702cfd40d681c2d3d437722dad20efe18a7a23ea154e67b60623f7f1e4a5aa651b00126e4
@@ -301,7 +301,8 @@ module Onebox
301
301
  end
302
302
 
303
303
  def has_text?
304
- !Onebox::Helpers.blank?(data[:title])
304
+ !Onebox::Helpers.blank?(data[:title]) &&
305
+ !Onebox::Helpers.blank?(data[:description])
305
306
  end
306
307
 
307
308
  def is_image?
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Onebox
4
- VERSION = "2.1.9"
4
+ VERSION = "2.2.0"
5
5
  end
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.9
4
+ version: 2.2.0
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-12-07 00:00:00.000000000 Z
13
+ date: 2020-12-23 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: addressable