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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 852e41668a172c6d1b960d2f54e3fcfb413f7bcb4a34d12347282ad365c309ce
4
- data.tar.gz: 30365f6bb6efe31a43f764541bfdd7a64242a9dc3e39a94e015369d23044ca6e
3
+ metadata.gz: 86a05f056af82a80530f94e5603268c1b1585526c24dd84642b4b28a7bc2d042
4
+ data.tar.gz: b38019babee0326fd1b87d7a474ff3d72abc86f6e6a4772d30ea624182803848
5
5
  SHA512:
6
- metadata.gz: 7de9cc4b1e4ee6ba29ff0e601f9c724894e4d7aa26b5a4ad4e23fcd518e2983dda6819fbcdcf8ce3d7d1a4ceeb48bdf4bdb3972946a51c7ebbf0c9dc6a1416e8
7
- data.tar.gz: fe996e2c75ed5a66107b38553d549a94733cb1fde2c8b2955490f670fb6cb5c13e373db62e75f39c6757aa38c6cb881cee8f7e26ea1c5377422e41ffbeb56e25
6
+ metadata.gz: e0d665f99bb9eaf9459aad988716b97fc2fb598938584e2725d320be84771a0e7e46045960f62840d90d0402b37d33c562c0792ba680c516c5093e855f667d9b
7
+ data.tar.gz: 776dc09d88365fb23d251e450e8da3af8e0ed1b911b50b2959af810506018d025b2f2d0d083854d529efc61dd25c75b4fb70e1b99e8a03b86b185c26818e08e3
@@ -1,5 +1,9 @@
1
1
  # Changelog
2
2
 
3
+ ## v0.3.2
4
+
5
+ * Rescue `OEmbed::Error`
6
+
3
7
  ## v0.3.1
4
8
 
5
9
  * Put link inside a paragraph so markdown ignores the HTML
@@ -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::NotFound => e
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.1
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-08-15 00:00:00.000000000 Z
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.0.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