onebox 1.8.53 → 1.8.54
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +5 -5
- data/lib/onebox/engine.rb +0 -1
- data/lib/onebox/version.rb +1 -1
- data/templates/instagram.mustache +1 -1
- metadata +3 -4
- data/lib/onebox/engine/typeform_onebox.rb +0 -31
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
|
-
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: 2bc1a0154796be863dd0f8261f8202b15dc77970af7fff8de9aae7e0636cad90
|
4
|
+
data.tar.gz: aa1ecb7b1609e95c031cc26cd043464ebabd90f2bdd302383570b684a03c89ee
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ed0a7904bdd5a0ac58d3c8f9e03205447b3ca511829cd1e072f6c6821e61fce5e3cadd93a67be46c764337ceef78008762ee5460f6f6b4894de18ecd6866c7b8
|
7
|
+
data.tar.gz: 3ba7c3d8a555ff913fd0651c172f622f6f922235a47eda6c5e26cd27dc0caea61157a1673e5321bf8121fd9e1b41097b9dc8cd466375a1cd6cb19aead1414c77
|
data/lib/onebox/engine.rb
CHANGED
@@ -161,7 +161,6 @@ require_relative "engine/slides_onebox"
|
|
161
161
|
require_relative "engine/xkcd_onebox"
|
162
162
|
require_relative "engine/giphy_onebox"
|
163
163
|
require_relative "engine/gfycat_onebox"
|
164
|
-
require_relative "engine/typeform_onebox"
|
165
164
|
require_relative "engine/vimeo_onebox"
|
166
165
|
require_relative "engine/steam_store_onebox"
|
167
166
|
require_relative "engine/sketchfab_onebox"
|
data/lib/onebox/version.rb
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
<h3><a href="{{link}}" target="_blank">{{title}}</a></h3>
|
2
2
|
|
3
3
|
{{#video_secure_url}}
|
4
|
-
<div class="instagram-images"><video class="instagram-image" width="{{video_width}}" height="{{video_height}}" controls loop>
|
4
|
+
<div class="instagram-images"><video class="instagram-image" width="{{video_width}}" height="{{video_height}}" poster="{{image}}" controls loop>
|
5
5
|
<source src="{{video_secure_url}}" type='video/mp4'>
|
6
6
|
</video></div>
|
7
7
|
{{/video_secure_url}}
|
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.
|
4
|
+
version: 1.8.54
|
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-
|
13
|
+
date: 2018-07-16 00:00:00.000000000 Z
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
16
|
name: multi_json
|
@@ -345,7 +345,6 @@ files:
|
|
345
345
|
- lib/onebox/engine/twitch_stream_onebox.rb
|
346
346
|
- lib/onebox/engine/twitch_video_onebox.rb
|
347
347
|
- lib/onebox/engine/twitter_status_onebox.rb
|
348
|
-
- lib/onebox/engine/typeform_onebox.rb
|
349
348
|
- lib/onebox/engine/video_onebox.rb
|
350
349
|
- lib/onebox/engine/vimeo_onebox.rb
|
351
350
|
- lib/onebox/engine/wechat_mp_onebox.rb
|
@@ -414,7 +413,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
414
413
|
version: '0'
|
415
414
|
requirements: []
|
416
415
|
rubyforge_project:
|
417
|
-
rubygems_version: 2.6
|
416
|
+
rubygems_version: 2.7.6
|
418
417
|
signing_key:
|
419
418
|
specification_version: 4
|
420
419
|
summary: A gem for generating embeddable HTML previews from URLs.
|
@@ -1,31 +0,0 @@
|
|
1
|
-
module Onebox
|
2
|
-
module Engine
|
3
|
-
class TypeformOnebox
|
4
|
-
include Engine
|
5
|
-
include StandardEmbed
|
6
|
-
|
7
|
-
matches_regexp(/^https?:\/\/[a-z0-9]+\.typeform\.com\/to\/[a-zA-Z0-9]+/)
|
8
|
-
always_https
|
9
|
-
|
10
|
-
def placeholder_html
|
11
|
-
og = get_opengraph
|
12
|
-
escaped_src = ::Onebox::Helpers.normalize_url_for_output(og[:image])
|
13
|
-
"<img src='#{escaped_src}' #{Helpers.title_attr(og)}>"
|
14
|
-
end
|
15
|
-
|
16
|
-
def to_html
|
17
|
-
og = get_opengraph
|
18
|
-
escaped_src = ::Onebox::Helpers.normalize_url_for_output(og[:url])
|
19
|
-
|
20
|
-
<<-HTML
|
21
|
-
<iframe src="#{escaped_src}"
|
22
|
-
width="100%"
|
23
|
-
height="600px"
|
24
|
-
scrolling="no"
|
25
|
-
frameborder="0">
|
26
|
-
</iframe>
|
27
|
-
HTML
|
28
|
-
end
|
29
|
-
end
|
30
|
-
end
|
31
|
-
end
|