jekyll-embed-urls 0.5.7 → 0.5.8

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: '009ec95cb733855d621b7b063e4922c79873296fdebd99f16ad6f2856854a7af'
4
- data.tar.gz: e56ca532db963a099a4c4c6950c4382ca25d83c5102703b8bf2d66fd98d8f2a9
3
+ metadata.gz: 28bf483423f9197271caae346deae52aa1d4b34c229dc723f58624c52f63e4d3
4
+ data.tar.gz: bffb7fa7898714d8eee3284f35ead0819cecca5359fa0557ef1353c1fb322fe2
5
5
  SHA512:
6
- metadata.gz: d60e0cfb3395976201a2b9b4174aaf1b888ef88fede4c802302002787471a0d8268c89d8d1cb447fa24bcebee7ac5f4ce83865b5770e0fe5ca38cd93ebb7e8e4
7
- data.tar.gz: 4310e1aa4409b2724e8dfc9b68ecc96e4eabe83709a19cb7e5d3745a895b9e7bb32af78dece340f6c4e37807813582cdb07517253a40f739c7206db03db606f3
6
+ metadata.gz: 143344abdd6ef63b5b8133a85697bf3aae0a64679773786a0e9fb96a26f77846abd202234169bed24f810eaf7018d96a6003897fc485d7a15f0af2ace773b589
7
+ data.tar.gz: fd6f00caec463617d2ce6dc0298db823f324708a5c4770725cc6391e9879fefa65bfc6c585d400652ada0feea838038ffefe73982da7795f3218ed920a2a61bf
@@ -6,7 +6,7 @@ module OEmbed
6
6
  module ProviderDecorator
7
7
  def self.included(base)
8
8
  base.class_eval do
9
- def http_get(url, _)
9
+ private def http_get(url, _)
10
10
  Jekyll::Embed.get(url.to_s).body
11
11
  rescue Faraday::Error
12
12
  raise OEmbed::UnknownResponse
@@ -17,3 +17,4 @@ module OEmbed
17
17
  end
18
18
 
19
19
  OEmbed::Provider.include OEmbed::ProviderDecorator
20
+ OEmbed::ProviderDiscovery.singleton_class.include OEmbed::ProviderDecorator
data/lib/jekyll/embed.rb CHANGED
@@ -265,6 +265,10 @@ module Jekyll
265
265
  # @return [Faraday::Connection]
266
266
  def http_client
267
267
  @http_client ||= Faraday.new do |builder|
268
+ builder.options.timeout = 4
269
+ builder.options.open_timeout = 1
270
+ builder.options.read_timeout = 1
271
+ builder.options.write_timeout = 1
268
272
  builder.use FaradayMiddleware::FollowRedirects
269
273
  builder.use :http_cache, shared_cache: false, store: cache, serializer: Marshal
270
274
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: jekyll-embed-urls
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.5.7
4
+ version: 0.5.8
5
5
  platform: ruby
6
6
  authors:
7
7
  - f
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2022-04-21 00:00:00.000000000 Z
11
+ date: 2023-03-15 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: jekyll
@@ -194,7 +194,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
194
194
  - !ruby/object:Gem::Version
195
195
  version: '0'
196
196
  requirements: []
197
- rubygems_version: 3.1.6
197
+ rubygems_version: 3.3.26
198
198
  signing_key:
199
199
  specification_version: 4
200
200
  summary: Embed URL previsualization in Jekyll posts