jekyll-webmention_io 3.3.4 → 3.3.5
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/jekyll/webmention_io.rb +3 -3
- data/lib/jekyll/webmention_io/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: f5e94b3d25611a1f41f6c0b51c1cc66f3f4f4729
|
4
|
+
data.tar.gz: 295d558282c0d3c4078960cd1f9a90daea462900
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 9e2211c5b25e95e63b0d85ecd95bc4d3a624a2b10f6d84eba4e81399797cb913d3bef3ab7121e7abfcf779dd1535ffb07f89f2138254df358998a6d2e4aad461
|
7
|
+
data.tar.gz: b507326f46e381d1bc7ae7d40a42c1397c4c72e854e88a183817c813f72e226fc47f1bf27514f206d6460957d89f99030b74e49212f3f74a90bf30975b5dbb1a
|
data/lib/jekyll/webmention_io.rb
CHANGED
@@ -286,7 +286,7 @@ module Jekyll
|
|
286
286
|
return response.body.force_encoding("UTF-8")
|
287
287
|
when Net::HTTPRedirection then
|
288
288
|
redirect_to = URI.parse(URI.encode(response["location"]))
|
289
|
-
redirect_to = redirect_to.relative? ? "#{
|
289
|
+
redirect_to = redirect_to.relative? ? "#{original_uri.scheme}://#{original_uri.host}" + redirect_to.to_s : redirect_to.to_s
|
290
290
|
return get_uri_source(redirect_to, redirect_limit - 1, original_uri)
|
291
291
|
else
|
292
292
|
uri_is_not_ok(uri)
|
@@ -352,7 +352,7 @@ module Jekyll
|
|
352
352
|
|
353
353
|
# Cache bad URLs for a bit
|
354
354
|
def self.uri_is_not_ok(uri)
|
355
|
-
uri = URI.parse(URI.encode(uri))
|
355
|
+
uri = URI.parse(URI.encode(uri.to_s))
|
356
356
|
# Never cache webmention.io in here
|
357
357
|
return if uri.host == "webmention.io"
|
358
358
|
|
@@ -363,7 +363,7 @@ module Jekyll
|
|
363
363
|
end
|
364
364
|
|
365
365
|
def self.uri_ok?(uri)
|
366
|
-
uri = URI.parse(URI.encode(uri))
|
366
|
+
uri = URI.parse(URI.encode(uri.to_s))
|
367
367
|
now = Time.now.to_s
|
368
368
|
bad_uris = load_yaml(@cache_files["bad_uris"])
|
369
369
|
if bad_uris.key? uri.host
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: jekyll-webmention_io
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 3.3.
|
4
|
+
version: 3.3.5
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Aaron Gustafson
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2019-
|
11
|
+
date: 2019-03-11 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: jekyll
|