onebox 1.8.92 → 1.8.93
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +3 -3
- data/README.md +3 -3
- data/lib/onebox/helpers.rb +1 -1
- data/lib/onebox/mixins/twitch_onebox.rb +4 -0
- data/lib/onebox/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: bddc5c24a613ebb261bde4bdae37bd371bd9afbef7294f00bde75104d52e4e3d
|
4
|
+
data.tar.gz: 4e0e6ea8d69715b828e5fd224305e9b7b859e558abc72cb985ff5c173c42b682
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: bbff0cd3c0c99eee5045c014e46d3f3fe0cdf3cde3a45fe97a8940c1aa4a0315d4ca43824f95217c743d0a3fb5a10cf0433ceee65d5a39404c6bbfb6e5594231
|
7
|
+
data.tar.gz: 1b9c30083bb3edcf82ba1827197750bc274f2fc3fef8c81a389b2e5e651c238cbc8371d7ee0af3f03bf02b399463e8fd98731b094017a250a73fd4ef9cf0304f
|
data/Gemfile.lock
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
onebox (1.8.
|
4
|
+
onebox (1.8.93)
|
5
5
|
htmlentities (~> 4.3)
|
6
6
|
moneta (~> 1.0)
|
7
7
|
multi_json (~> 1.11)
|
@@ -51,12 +51,12 @@ GEM
|
|
51
51
|
mini_portile2 (2.4.0)
|
52
52
|
mocha (1.8.0)
|
53
53
|
metaclass (~> 0.0.1)
|
54
|
-
moneta (1.
|
54
|
+
moneta (1.1.1)
|
55
55
|
multi_json (1.13.1)
|
56
56
|
multipart-post (2.0.0)
|
57
57
|
mustache (1.1.0)
|
58
58
|
nenv (0.3.0)
|
59
|
-
nokogiri (1.10.
|
59
|
+
nokogiri (1.10.3)
|
60
60
|
mini_portile2 (~> 2.4.0)
|
61
61
|
nokogumbo (2.0.1)
|
62
62
|
nokogiri (~> 1.8, >= 1.8.4)
|
data/README.md
CHANGED
@@ -1,9 +1,9 @@
|
|
1
1
|
onebox
|
2
2
|
======
|
3
3
|
|
4
|
-
[![Gem Version](https://badge.fury.io/rb/onebox.
|
5
|
-
[![Code Climate](https://codeclimate.com/github/dysania/onebox.
|
6
|
-
[![Build Status](https://travis-ci.org/discourse/onebox.
|
4
|
+
[![Gem Version](https://badge.fury.io/rb/onebox.svg)](https://rubygems.org/gems/onebox)
|
5
|
+
[![Code Climate](https://codeclimate.com/github/dysania/onebox.svg)](https://codeclimate.com/github/dysania/onebox)
|
6
|
+
[![Build Status](https://travis-ci.org/discourse/onebox.svg)](https://travis-ci.org/discourse/onebox)
|
7
7
|
|
8
8
|
Onebox is a library for turning media URLs into simple HTML previews of the resource.
|
9
9
|
|
data/lib/onebox/helpers.rb
CHANGED
@@ -19,6 +19,10 @@ module Onebox
|
|
19
19
|
"player.twitch.tv/?"
|
20
20
|
end
|
21
21
|
|
22
|
+
def placeholder_html
|
23
|
+
"<span class='onebox-video-placeholder'></span>"
|
24
|
+
end
|
25
|
+
|
22
26
|
def to_html
|
23
27
|
"<iframe src=\"//#{base_url}#{query_params}&autoplay=false\" width=\"620\" height=\"378\" frameborder=\"0\" style=\"overflow: hidden;\" scrolling=\"no\" allowfullscreen=\"allowfullscreen\"></iframe>"
|
24
28
|
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.93
|
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: 2019-
|
13
|
+
date: 2019-06-26 00:00:00.000000000 Z
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
16
|
name: multi_json
|