jekyll-embed-urls 0.3.1 → 0.3.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +4 -0
- data/lib/jekyll-embed-urls.rb +2 -2
- 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: 86a05f056af82a80530f94e5603268c1b1585526c24dd84642b4b28a7bc2d042
|
4
|
+
data.tar.gz: b38019babee0326fd1b87d7a474ff3d72abc86f6e6a4772d30ea624182803848
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e0d665f99bb9eaf9459aad988716b97fc2fb598938584e2725d320be84771a0e7e46045960f62840d90d0402b37d33c562c0792ba680c516c5093e855f667d9b
|
7
|
+
data.tar.gz: 776dc09d88365fb23d251e450e8da3af8e0ed1b911b50b2959af810506018d025b2f2d0d083854d529efc61dd25c75b4fb70e1b99e8a03b86b185c26818e08e3
|
data/CHANGELOG.md
CHANGED
data/lib/jekyll-embed-urls.rb
CHANGED
@@ -75,12 +75,12 @@ Jekyll::Hooks.register :site, :pre_render do |site|
|
|
75
75
|
srcdoc="#{CGI.escape_html result.html}"></iframe>
|
76
76
|
IFRAME
|
77
77
|
end
|
78
|
-
rescue OEmbed::
|
78
|
+
rescue OEmbed::Error => e
|
79
79
|
# If the URL doesn't support OEmbed just return an external
|
80
80
|
# link.
|
81
81
|
#
|
82
82
|
# TODO: Fetch information with OGP and render a template.
|
83
|
-
Jekyll.logger.warn "#{p} is not oembeddable or URL can't be fetched, showing as URL"
|
83
|
+
Jekyll.logger.warn "#{p} is not oembeddable or URL can't be fetched, showing as URL: #{e}"
|
84
84
|
|
85
85
|
%(<p><a href="#{p}" target="_blank" referrerpolicy="#{referrer_policy}">#{p}</a></p>)
|
86
86
|
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.3.
|
4
|
+
version: 0.3.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- f
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2020-
|
11
|
+
date: 2020-10-26 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: jekyll
|
@@ -97,7 +97,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
97
97
|
- !ruby/object:Gem::Version
|
98
98
|
version: '0'
|
99
99
|
requirements: []
|
100
|
-
rubygems_version: 3.
|
100
|
+
rubygems_version: 3.1.2
|
101
101
|
signing_key:
|
102
102
|
specification_version: 4
|
103
103
|
summary: Embed URL previsualization in Jekyll posts
|