onebox 1.8.57 → 1.8.58

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
- SHA1:
3
- metadata.gz: 835936fbc3288c143ecf47888afdc1df5c40e61f
4
- data.tar.gz: 17db8d91315a31880f6a9d975a0b887d5ec75448
2
+ SHA256:
3
+ metadata.gz: 8b5d4ab4cdbef297071096257cd828b45e97ecab04262613ef3898b749efc006
4
+ data.tar.gz: 0c570c0480e1e95cc79adad88e8b646b9d978f08bb5bec36db40c6cdb3e7c89e
5
5
  SHA512:
6
- metadata.gz: d584e578cb053558fc2d224b36ecfc7ff4d550db38c2bbc0e6b96a4d4badc67174445d8c275adc5f5754bc85d99a81da1d7992a1a5cdc7e29295959a3962c612
7
- data.tar.gz: efebc3e8fa1850e00a8c148842037eacb89d7cde2be8e856670080b493a85e971ee29d179356d63bf5068a87a56ebff31724f51434da1085d9cb41cb6014ffa3
6
+ metadata.gz: 240c7d9f42dba8965d7ed17c24d1fa480e72b29c0e85a319c0beb280933eea4dd98b12001cfec1628876bc105136ace58d953645a2bd8bca01484d6d4b02cff8
7
+ data.tar.gz: fa53316c41fb8ee6b696f8f1444478fe4a91c46d232dffeb1f7ac8f3d8ce4b09ad11e1cf37cda7d78ee96093e4b125e20d193369ad1575cef49c88493e71ccd3
@@ -28,9 +28,7 @@ module Onebox
28
28
  end
29
29
 
30
30
  if !Onebox::Helpers.blank?(og[:video_secure_url])
31
- result[:video_width] = og[:video_width]
32
- result[:video_height] = og[:video_height]
33
- result[:video_secure_url] = ::Onebox::Helpers.normalize_url_for_output(og[:video_secure_url])
31
+ result[:video_link] = og[:url]
34
32
  end
35
33
 
36
34
  result
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Onebox
4
- VERSION = "1.8.57"
4
+ VERSION = "1.8.58"
5
5
  end
@@ -1,13 +1,11 @@
1
1
  <h3><a href="{{link}}" target="_blank">{{title}}</a></h3>
2
2
 
3
- {{#video_secure_url}}
4
- <div class="instagram-images"><video class="instagram-image" width="{{video_width}}" height="{{video_height}}" poster="{{image}}" controls loop>
5
- <source src="{{video_secure_url}}" type='video/mp4'>
6
- </video></div>
7
- {{/video_secure_url}}
8
-
9
- {{^video_secure_url}}
10
- {{#image}}<div class="instagram-images"><img class="instagram-image" src="{{image}}"/></div>{{/image}}
11
- {{/video_secure_url}}
3
+ {{#image}}
4
+ <div class="instagram-images">
5
+ {{#video_link}} <a href="{{video_link}}" target="_blank"> {{/video_link}}
6
+ <img class="instagram-image" src="{{image}}"/>
7
+ {{#video_link}} </a> {{/video_link}}
8
+ </div>
9
+ {{/image}}
12
10
 
13
11
  <div class="instagram-description">{{description}}</div>
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.8.57
4
+ version: 1.8.58
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: 2018-07-31 00:00:00.000000000 Z
13
+ date: 2018-08-29 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: multi_json
@@ -413,7 +413,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
413
413
  version: '0'
414
414
  requirements: []
415
415
  rubyforge_project:
416
- rubygems_version: 2.6.13
416
+ rubygems_version: 2.7.6
417
417
  signing_key:
418
418
  specification_version: 4
419
419
  summary: A gem for generating embeddable HTML previews from URLs.