jekyll-embed-urls 0.5.13 → 0.5.15

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: f9d655501c8c248453c0a86f56c3f57f5c116c443759acb8fd65c36491b80cfb
4
- data.tar.gz: a76403395f3f25de91b2313ae50f5e63f752811591c1ed57494209cde1759f67
3
+ metadata.gz: ec6bd87ed1305e3c6b813f1a17ae6b1f57293f1e53f70052d4a92285f9d10674
4
+ data.tar.gz: a26acd7ccac02577798927a11d04bf7a6676da9d7b9efcf62c72d0400f10c949
5
5
  SHA512:
6
- metadata.gz: 400c69c71f1c7ea2f728a57455db734d713fe84d84808971305c7821c584ff8c4d92231f0de9f4d64372863fd8cf3850d97dbb9a70edb3e3005c51bd9d51f5dd
7
- data.tar.gz: dd2c8923bcc5a6a5410c1c4587fac15c6bb29acab5df3a2e583acdfa1ec675257eef9b0dfbd22621ff5748e3fefeff46e95d5217ba9b453ab41f395234ec6bc2
6
+ metadata.gz: a197fb8c7458e8e05610a111389d81552371e536ba56ebe7ab94cabc87ffc6c1ad36dfd8448a096cf541dcfe5cb815644503cb82bc1ce0194f9510da60ee752b
7
+ data.tar.gz: 55dbfd919087ebc2cda92a72e8cb51dcbcd5edfb40cd0f0f14bf5fb76460d32a1cc91477b0756075bf325a2515c6a6969389930cd081342fffdb52be225f99c2
@@ -18,6 +18,9 @@ module Jekyll
18
18
  next unless a.parent.children.last == a
19
19
 
20
20
  url = a['href']
21
+
22
+ next unless url == a.text.strip
23
+
21
24
  embed = Jekyll::Embed.embed url
22
25
 
23
26
  next if url == embed
data/lib/jekyll/embed.rb CHANGED
@@ -153,7 +153,9 @@ module Jekyll
153
153
  # @param [String] URL
154
154
  # @return [String] HTML
155
155
  def embed(url)
156
- url.strip!
156
+ raise URI::Error unless url.is_a? String
157
+
158
+ url = url.strip
157
159
 
158
160
  # Quick check
159
161
  raise URI::Error unless url.start_with? 'http'
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.13
4
+ version: 0.5.15
5
5
  platform: ruby
6
6
  authors:
7
7
  - f
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2023-04-13 00:00:00.000000000 Z
11
+ date: 2023-09-21 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: jekyll