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 +4 -4
- data/lib/jekyll/embed/oembed.rb +2 -1
- data/lib/jekyll/embed.rb +4 -0
- 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: 28bf483423f9197271caae346deae52aa1d4b34c229dc723f58624c52f63e4d3
|
4
|
+
data.tar.gz: bffb7fa7898714d8eee3284f35ead0819cecca5359fa0557ef1353c1fb322fe2
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 143344abdd6ef63b5b8133a85697bf3aae0a64679773786a0e9fb96a26f77846abd202234169bed24f810eaf7018d96a6003897fc485d7a15f0af2ace773b589
|
7
|
+
data.tar.gz: fd6f00caec463617d2ce6dc0298db823f324708a5c4770725cc6391e9879fefa65bfc6c585d400652ada0feea838038ffefe73982da7795f3218ed920a2a61bf
|
data/lib/jekyll/embed/oembed.rb
CHANGED
@@ -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.
|
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:
|
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.
|
197
|
+
rubygems_version: 3.3.26
|
198
198
|
signing_key:
|
199
199
|
specification_version: 4
|
200
200
|
summary: Embed URL previsualization in Jekyll posts
|