jekyll 3.8.1 → 3.8.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Potentially problematic release.
This version of jekyll might be problematic. Click here for more details.
- checksums.yaml +4 -4
- data/lib/jekyll/excerpt.rb +7 -2
- data/lib/jekyll/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 23e84467f190b5462ee61a7145080d7a50e95417
|
4
|
+
data.tar.gz: 0df3a252f434ef3694c93e0bace7ca816c253a6d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: cb527f80aa37942f4e2b92a44605c60dffc020e198fb9e2dc4ffe3311e58f771bcb72a3d6b2ddd2ab86532576c0535d7fc4835c43f78c8d05f2303114842f304
|
7
|
+
data.tar.gz: 9db5a3f35fd59aa42943e66a6cb678b4f4860dde179b4ff1de11c7ea732be311ee202fe53a175cabec3d839f33c54c7043d2bc0f6432c80a1b2302d87074b2c5
|
data/lib/jekyll/excerpt.rb
CHANGED
@@ -128,7 +128,7 @@ module Jekyll
|
|
128
128
|
#
|
129
129
|
# Returns excerpt String
|
130
130
|
|
131
|
-
LIQUID_TAG_REGEX = %r!{
|
131
|
+
LIQUID_TAG_REGEX = %r!{%-?\s*(\w+).+\s*-?%}!m
|
132
132
|
MKDWN_LINK_REF_REGEX = %r!^ {0,3}\[[^\]]+\]:.+$!
|
133
133
|
|
134
134
|
def extract_excerpt(doc_content)
|
@@ -141,7 +141,7 @@ module Jekyll
|
|
141
141
|
head =~ LIQUID_TAG_REGEX
|
142
142
|
tag_name = Regexp.last_match(1)
|
143
143
|
|
144
|
-
if liquid_block?(tag_name) && head.match(%r!{
|
144
|
+
if liquid_block?(tag_name) && head.match(%r!{%-?\s*end#{tag_name}\s*-?%}!).nil?
|
145
145
|
print_build_warning
|
146
146
|
head << "\n{% end#{tag_name} %}"
|
147
147
|
end
|
@@ -158,6 +158,11 @@ module Jekyll
|
|
158
158
|
|
159
159
|
def liquid_block?(tag_name)
|
160
160
|
Liquid::Template.tags[tag_name].superclass == Liquid::Block
|
161
|
+
rescue NoMethodError
|
162
|
+
Jekyll.logger.error "Error:",
|
163
|
+
"A Liquid tag in the excerpt of #{doc.relative_path} couldn't be " \
|
164
|
+
"parsed."
|
165
|
+
raise
|
161
166
|
end
|
162
167
|
|
163
168
|
def print_build_warning
|
data/lib/jekyll/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: jekyll
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 3.8.
|
4
|
+
version: 3.8.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Tom Preston-Werner
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2018-05-
|
11
|
+
date: 2018-05-19 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: addressable
|