jekyll 3.8.1 → 3.8.2

Sign up to get free protection for your applications and to get access to all the features.

Potentially problematic release.


This version of jekyll might be problematic. Click here for more details.

checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 870de62d5a0315a598dd5391eb89d50b178527de
4
- data.tar.gz: 84d5a1fcc6968364871bcd968df1357b91efc465
3
+ metadata.gz: 23e84467f190b5462ee61a7145080d7a50e95417
4
+ data.tar.gz: 0df3a252f434ef3694c93e0bace7ca816c253a6d
5
5
  SHA512:
6
- metadata.gz: a33ecc5e9012fcbc128343f55ccdf56261287033c81de211f51773152d2a2b0dfd99081d3e9a5644762be88d8255f137a3e30e6be8a96e8f77990e7eb614ce82
7
- data.tar.gz: 0f53c1490f75ebae72b09df73cbac14461125b01580388904bfb6ec4dcda646bc8119e74d340d959a282a3973941d1ce3fba2d40103bd0369c435828243b71d7
6
+ metadata.gz: cb527f80aa37942f4e2b92a44605c60dffc020e198fb9e2dc4ffe3311e58f771bcb72a3d6b2ddd2ab86532576c0535d7fc4835c43f78c8d05f2303114842f304
7
+ data.tar.gz: 9db5a3f35fd59aa42943e66a6cb678b4f4860dde179b4ff1de11c7ea732be311ee202fe53a175cabec3d839f33c54c7043d2bc0f6432c80a1b2302d87074b2c5
@@ -128,7 +128,7 @@ module Jekyll
128
128
  #
129
129
  # Returns excerpt String
130
130
 
131
- LIQUID_TAG_REGEX = %r!{%\s*(\w+).+\s*%}!m
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!{%\s*end#{tag_name}\s*%}!).nil?
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
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Jekyll
4
- VERSION = "3.8.1".freeze
4
+ VERSION = "3.8.2".freeze
5
5
  end
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.1
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-01 00:00:00.000000000 Z
11
+ date: 2018-05-19 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: addressable