jekyll-embed-urls 0.5.9 → 0.5.10

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. checksums.yaml +4 -4
  2. data/lib/jekyll/embed/content.rb +1 -1
  3. metadata +2 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: e5ec0df3dfa0876c1bdd5288ee70e5c7466dddb1d4f592339ee8855ee8b0d680
4
- data.tar.gz: 12936601d35523b31d85233c53c9663834012af1631f07155a550d89e9e99af4
3
+ metadata.gz: 4f66f81ca34c06a06a4c8519a1d9546895f6698f5fd7c424c055fa8b8608cced
4
+ data.tar.gz: 0c1ebc0d78a87f5a70aae5d05d28e91f5ad055b062a4f0a6b48c5d5121f480be
5
5
  SHA512:
6
- metadata.gz: 81cf85b599fbf906e97cdf613a72491b00201c3ee5146d5dc79b9905c653e0129ccfde210ba64575c9e354df8e9f4c52345e88771e6ef4b58d4255a01a140878
7
- data.tar.gz: ccefa67e84ec9d2f24a3b1cba04dfb2cc285726b48528a486f468b50e335bd6902d07f3b2be016c4527a2f9e5d2cb69ebb9f60ff988974911e4da8989f60133a
6
+ metadata.gz: '093281bf98dc26ce527765278ae0b3c355fa26e8b95f8bb6e1aa7315f8d5b8c379edd89b7f1de7d12a056712efc7c8a4bdba6f3968b112fda8515cd255e84cf7'
7
+ data.tar.gz: 7b6e74bedcb632fd8849ce806c498fed855e71807f7f65b25265afa276ee5bad9378ee1f9115e6cc569fc8576e56c1566a1f2834ebc43096bf8c145a8851107e
@@ -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
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.10
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-01 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: jekyll