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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 5e2169ef1cfb44f0208566f5ecff7bd7c5d2bbe2f12b58791f50aa24b776e56d
4
- data.tar.gz: 9f9d38b578e46e6ce8c8c007577ff02522eab24f3dcc42f9eabd5b838a668e72
3
+ metadata.gz: c57e1039d85f6005208f898053d0b2310eeb7f1e6fc4b2fc3f1281f41489585d
4
+ data.tar.gz: 354950404fa80f8eeeea21b1193647ce61ae6bc32d97c1400ed82095fd8f8355
5
5
  SHA512:
6
- metadata.gz: e293af57162b61ad0fa3472b7d9b35709f13504308e69eba45f40e9babff53e0258186add06ed4a89bc8305b8903dc49718c274659b5fca0712bc26d281ca7d4
7
- data.tar.gz: 3bb70c552e010149bc32fd4c9dbe416cd6ae0098b4286e5894fbc12c07628b5079c0463ad78b54ab6dc773954e055c9195aea5ac180ab8bdf7dca3847db1bc96
6
+ metadata.gz: b5a7f2ea81cce57035c904afd2c893db32b98c7768ab69f810b2183a0330c43f2af655e6670116463566d1cc2248d592db04983be1b129148551f5e4ca303702
7
+ data.tar.gz: 4840463df258379f8e0838c0ad7d4dc320b2706d85e260ed962342b9d40a3b2872b69e40e9ba9667ead20f48ba39a321352f182a306240db871508d12db0d2ea
@@ -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
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Onebox
4
- VERSION = "2.2.15"
4
+ VERSION = "2.2.16"
5
5
  end
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.15
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-05-13 00:00:00.000000000 Z
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: []