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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: ad28be99ede56ff0af43bbc41a9897a5123f9ae092092472274606621a923a8a
4
- data.tar.gz: 82371cfb9fbe2c3f039c66f6d94dfbd6970eaf760eb6558a08581654c54f58ea
3
+ metadata.gz: 4ff34d2d09c9f87a9061f22511b67db32547f05ace46cd93b7910c8bbb375ce2
4
+ data.tar.gz: a3e4286602644a7cfa463e2a35ac5ff0a15509f7e90eecf49f33ac74d6802178
5
5
  SHA512:
6
- metadata.gz: 732251f9df0f6ac6e539820e2f11af06c104f5af2607ab5c42d5622553fa87d468f9a32f517c9600b553627d4d3a2b031902f3b974b5e7a5202d02b9f19c9f5a
7
- data.tar.gz: 556c8b4b9e50064e35e57221be5767bec8b6cf95d4d35e2195af162b6211164213f3ca2106f6dd72dea76097896ff5a45254beadf07a856d9d60770524a06062
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>
@@ -2,7 +2,9 @@ module Onebox
2
2
  class Preview
3
3
  attr_reader :cache
4
4
 
5
- WEB_EXCEPTIONS ||= [Net::HTTPServerException, OpenURI::HTTPError, Timeout::Error, Net::HTTPError, Errno::ECONNREFUSED]
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
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Onebox
4
- VERSION = "1.8.60"
4
+ VERSION = "1.8.61"
5
5
  end
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.60
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-08-31 00:00:00.000000000 Z
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.6
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.