onebox 2.2.15 → 2.2.16
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/onebox/helpers.rb +2 -4
- data/lib/onebox/version.rb +1 -1
- metadata +5 -5
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: c57e1039d85f6005208f898053d0b2310eeb7f1e6fc4b2fc3f1281f41489585d
|
4
|
+
data.tar.gz: 354950404fa80f8eeeea21b1193647ce61ae6bc32d97c1400ed82095fd8f8355
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b5a7f2ea81cce57035c904afd2c893db32b98c7768ab69f810b2183a0330c43f2af655e6670116463566d1cc2248d592db04983be1b129148551f5e4ca303702
|
7
|
+
data.tar.gz: 4840463df258379f8e0838c0ad7d4dc320b2706d85e260ed962342b9d40a3b2872b69e40e9ba9667ead20f48ba39a321352f182a306240db871508d12db0d2ea
|
data/lib/onebox/helpers.rb
CHANGED
@@ -63,8 +63,7 @@ module Onebox
|
|
63
63
|
end
|
64
64
|
|
65
65
|
result = StringIO.new
|
66
|
-
Net::HTTP.start(uri.host, uri.port, use_ssl: uri.normalized_scheme == 'https') do |http|
|
67
|
-
http.open_timeout = Onebox.options.connect_timeout
|
66
|
+
Net::HTTP.start(uri.host, uri.port, open_timeout: Onebox.options.connect_timeout, use_ssl: uri.normalized_scheme == 'https') do |http|
|
68
67
|
http.read_timeout = Onebox.options.timeout
|
69
68
|
http.verify_mode = OpenSSL::SSL::VERIFY_NONE # Work around path building bugs
|
70
69
|
|
@@ -118,8 +117,7 @@ module Onebox
|
|
118
117
|
def self.fetch_content_length(location)
|
119
118
|
uri = URI(location)
|
120
119
|
|
121
|
-
Net::HTTP.start(uri.host, uri.port, use_ssl: uri.is_a?(URI::HTTPS)) do |http|
|
122
|
-
http.open_timeout = Onebox.options.connect_timeout
|
120
|
+
Net::HTTP.start(uri.host, uri.port, open_timeout: Onebox.options.connect_timeout, use_ssl: uri.is_a?(URI::HTTPS)) do |http|
|
123
121
|
http.read_timeout = Onebox.options.timeout
|
124
122
|
if uri.is_a?(URI::HTTPS)
|
125
123
|
http.use_ssl = true
|
data/lib/onebox/version.rb
CHANGED
metadata
CHANGED
@@ -1,16 +1,16 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: onebox
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.2.
|
4
|
+
version: 2.2.16
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Joanna Zeta
|
8
8
|
- Vyki Englert
|
9
9
|
- Robin Ward
|
10
|
-
autorequire:
|
10
|
+
autorequire:
|
11
11
|
bindir: bin
|
12
12
|
cert_chain: []
|
13
|
-
date: 2021-
|
13
|
+
date: 2021-06-22 00:00:00.000000000 Z
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
16
|
name: addressable
|
@@ -407,7 +407,7 @@ homepage: https://github.com/discourse/onebox
|
|
407
407
|
licenses:
|
408
408
|
- MIT
|
409
409
|
metadata: {}
|
410
|
-
post_install_message:
|
410
|
+
post_install_message:
|
411
411
|
rdoc_options: []
|
412
412
|
require_paths:
|
413
413
|
- lib
|
@@ -423,7 +423,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
423
423
|
version: '0'
|
424
424
|
requirements: []
|
425
425
|
rubygems_version: 3.0.3
|
426
|
-
signing_key:
|
426
|
+
signing_key:
|
427
427
|
specification_version: 4
|
428
428
|
summary: A gem for generating embeddable HTML previews from URLs.
|
429
429
|
test_files: []
|