onebox 1.8.73 → 1.8.74
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +1 -1
- data/lib/onebox/engine/video_onebox.rb +6 -4
- data/lib/onebox/version.rb +1 -1
- metadata +3 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 0045a894e8206ed9be96b5c915781f61a1cc6e4f3147633aa8a565c0071e3a6b
|
4
|
+
data.tar.gz: d32d8dd2e23eec29ba02a9f2b921f8784025e176aacfdd74a8540f2e6fb11483
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 12942cd2f8963b3fc8414bb65a0e793602bb26407a5ae2cf7d41d3045d05d6ed10ad28481b84c104db22caa1ef4484f51f489bc7b5efd8029f47f6d1ae679598
|
7
|
+
data.tar.gz: f33d31fd1f35d4c560235553050d7de8127ff71dde542dffcf108bc2ad6cc22de073e5fa41d6c86506b3fd270974963ab0467615c9589df34b0974c84e6f4dd3
|
data/README.md
CHANGED
@@ -184,7 +184,7 @@ Adding Support for a new URL
|
|
184
184
|
Whitelisted Generic Onebox caveats
|
185
185
|
----------------------------------
|
186
186
|
|
187
|
-
The
|
187
|
+
The Whitelisted Generic Onebox has some caveats for it's use, beyond simply whitelisting the domain.
|
188
188
|
|
189
189
|
1. The domain must be whitelisted
|
190
190
|
2. The URL you're oneboxing cannot be a root url (e.g. `http://example.com` won't work, but `http://example.com/page` will)
|
@@ -12,10 +12,12 @@ module Onebox
|
|
12
12
|
def to_html
|
13
13
|
escaped_url = ::Onebox::Helpers.normalize_url_for_output(@url)
|
14
14
|
<<-HTML
|
15
|
-
<
|
16
|
-
<
|
17
|
-
|
18
|
-
|
15
|
+
<div class="onebox video-onebox">
|
16
|
+
<video width='100%' height='100%' controls>
|
17
|
+
<source src='#{escaped_url}'>
|
18
|
+
<a href='#{escaped_url}'>#{@url}</a>
|
19
|
+
</video>
|
20
|
+
</div>
|
19
21
|
HTML
|
20
22
|
end
|
21
23
|
end
|
data/lib/onebox/version.rb
CHANGED
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.74
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Joanna Zeta
|
@@ -413,7 +413,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
413
413
|
- !ruby/object:Gem::Version
|
414
414
|
version: '0'
|
415
415
|
requirements: []
|
416
|
-
|
416
|
+
rubyforge_project:
|
417
|
+
rubygems_version: 2.7.8
|
417
418
|
signing_key:
|
418
419
|
specification_version: 4
|
419
420
|
summary: A gem for generating embeddable HTML previews from URLs.
|