onebox 1.8.60 → 1.8.61
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/onebox/engine/steam_store_onebox.rb +1 -1
- data/lib/onebox/preview.rb +3 -1
- data/lib/onebox/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 4ff34d2d09c9f87a9061f22511b67db32547f05ace46cd93b7910c8bbb375ce2
|
4
|
+
data.tar.gz: a3e4286602644a7cfa463e2a35ac5ff0a15509f7e90eecf49f33ac74d6802178
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d5116284c50bc2a976289770d13bc33ec2dbccb0d8c1ac6f641d6b63b7b7f633c4da3f1c2b2ab200585eb57ea06e68e72d07ff6a3996a1ad3c52ea308e47e4c0
|
7
|
+
data.tar.gz: 2ee91162d0fa0874f774b32e39990b40f0e2fdb6ca440563a89cb9a2ca0438a6c83eda7c6c7786f5d2cbb9b4b251cec47cd76c0b04afc5209eee105fe45ce22c
|
@@ -14,7 +14,7 @@ module Onebox
|
|
14
14
|
<div style='width:100%; height:190px; background-color:#262626; color:#9e9e9e; margin:15px 0;'>
|
15
15
|
<div style='padding:10px'>
|
16
16
|
<h3 style='color:#fff; margin:10px 0 10px 5px;'>#{og[:title]}</h3>
|
17
|
-
<img src='escaped_src' style='float:left; max-width:184px; margin:5px 15px 0 5px'/>
|
17
|
+
<img src='#{escaped_src}' style='float:left; max-width:184px; margin:5px 15px 0 5px'/>
|
18
18
|
<p>#{og[:description]}</p>
|
19
19
|
</div>
|
20
20
|
</div>
|
data/lib/onebox/preview.rb
CHANGED
@@ -2,7 +2,9 @@ module Onebox
|
|
2
2
|
class Preview
|
3
3
|
attr_reader :cache
|
4
4
|
|
5
|
-
|
5
|
+
# see https://bugs.ruby-lang.org/issues/14688
|
6
|
+
client_exception = defined?(Net::HTTPClientException) ? Net::HTTPClientException : Net::HTTPServerException
|
7
|
+
WEB_EXCEPTIONS ||= [client_exception, OpenURI::HTTPError, Timeout::Error, Net::HTTPError, Errno::ECONNREFUSED]
|
6
8
|
|
7
9
|
def initialize(link, parameters = Onebox.options)
|
8
10
|
@url = link
|
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.61
|
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-
|
13
|
+
date: 2018-09-19 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.7.
|
416
|
+
rubygems_version: 2.7.7
|
417
417
|
signing_key:
|
418
418
|
specification_version: 4
|
419
419
|
summary: A gem for generating embeddable HTML previews from URLs.
|