onebox 1.2.1 → 1.2.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
  SHA1:
3
- metadata.gz: 0b209b40f4e38a3ee270316c83cc8801c706bd95
4
- data.tar.gz: 4cf005fc5971da222e14a5b39140981d7fe8bb89
3
+ metadata.gz: a922d9d2d6a67c8de1cff46db8632cd5da66fe8a
4
+ data.tar.gz: 23bac521ee3179cb0039ac053ac215ec4b4f48c9
5
5
  SHA512:
6
- metadata.gz: 2c4bc3e5d97e9714541074d7e235555022216b21047d5c658a10c3b48ff8658dc96cb4483ab7a2eefd1fd3d3f524bed3c6cb96ca5b0520e1bb5553057421667c
7
- data.tar.gz: 4c7cf8166a4a7da5fdad37a0c7b0d047ae53aec9defb2824c19c8030c62412a41ccd674b59a9825adb722cc8964699c7f2513e2749ea616a29ead8bd673ff741
6
+ metadata.gz: b0ca52b0f5d8b6d2c3ce925866008b5467452ecde1ece871dd639ff0ceb24147f618ba78bf77ae9ea70edab9cde400cd634dae43e48c34dd9a81e5d825f1d398
7
+ data.tar.gz: 634d5054cbdae59235d3092bf5eb329cfdc3db324f1570cc1564f513177bd6839a7f091b4cc059b6b46376c40dbbe95f2e846e6cd9ff79071647cffa7f9777c4
@@ -168,7 +168,7 @@ module Onebox
168
168
 
169
169
  def placeholder_html
170
170
  result = nil
171
- result = image_html if data[:html] || data[:video] || photo_type?
171
+ result = image_html if (data[:html] && data[:html] =~ /iframe/) || data[:video] || photo_type?
172
172
  result || to_html
173
173
  end
174
174
 
@@ -183,7 +183,7 @@ module Onebox
183
183
  data_hash[:type] = raw.type if raw.type
184
184
 
185
185
  if raw.metadata && raw.metadata[:video] && raw.metadata[:video].first
186
- data_hash[:video] = raw.metadata[:video].first
186
+ data_hash[:video] = raw.metadata[:video].first
187
187
  end
188
188
 
189
189
  data_hash
@@ -1,3 +1,3 @@
1
1
  module Onebox
2
- VERSION = "1.2.1"
2
+ VERSION = "1.2.2"
3
3
  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: 1.2.1
4
+ version: 1.2.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Joanna Zeta