jekyll-embed-urls 0.5.9 → 0.5.11

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: e5ec0df3dfa0876c1bdd5288ee70e5c7466dddb1d4f592339ee8855ee8b0d680
4
- data.tar.gz: 12936601d35523b31d85233c53c9663834012af1631f07155a550d89e9e99af4
3
+ metadata.gz: 03d7cd1080bdb9a0e1aa58e6c296c9bf636205b43d9d681869f9bccffcfac20d
4
+ data.tar.gz: a002d3bc62adbf3c08855f2eb2fa57ae04839b281f682fd54407498d1a7be027
5
5
  SHA512:
6
- metadata.gz: 81cf85b599fbf906e97cdf613a72491b00201c3ee5146d5dc79b9905c653e0129ccfde210ba64575c9e354df8e9f4c52345e88771e6ef4b58d4255a01a140878
7
- data.tar.gz: ccefa67e84ec9d2f24a3b1cba04dfb2cc285726b48528a486f468b50e335bd6902d07f3b2be016c4527a2f9e5d2cb69ebb9f60ff988974911e4da8989f60133a
6
+ metadata.gz: 735f828c5920822d1771aa09854669c4d5ed3324c3121c9d98e3ca69c9b4e815e22f929f6dc34d8bca673334e274f786bc096d3f220411fa522da677f1ae1b06
7
+ data.tar.gz: 4f0eac0ce78f62d5b84b1fc4d3fd6c9e28d35875d3a4255c70a7955c9fd484524a4a4fd0e984cca8877bedf5f25b707f429fa11c0c0b235adbad9d6ad787a369
@@ -15,7 +15,7 @@ module Jekyll
15
15
  def embed(content)
16
16
  Nokogiri::HTML5.fragment(content).tap do |html|
17
17
  html.css('p > a:first-of-type').each do |a|
18
- next if a.parent.children.last == a
18
+ next unless a.parent.children.last == a
19
19
 
20
20
  url = a['href']
21
21
  embed = Jekyll::Embed.embed url
data/lib/jekyll/embed.rb CHANGED
@@ -3,6 +3,7 @@
3
3
  require 'faraday'
4
4
  require 'faraday-http-cache'
5
5
  require 'faraday_middleware/response/follow_redirects'
6
+ require 'faraday_middleware/redirect_limit_reached'
6
7
  require 'loofah'
7
8
  require 'ogp'
8
9
  require 'url_privacy'
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.9
4
+ version: 0.5.11
5
5
  platform: ruby
6
6
  authors:
7
7
  - f
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2023-03-15 00:00:00.000000000 Z
11
+ date: 2023-04-03 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: jekyll