jekyll-template 0.8.0 → 0.9.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/jekyll/template.rb +2 -2
- data/lib/jekyll/template/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: 1391c7dc45ccf7e136c7fc9f1052136d7ce84327
|
4
|
+
data.tar.gz: 637faf6d93e0120a7483da762bb78fa697dc3405
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 7c42e6f942e5a73ea74e6f993b773c2ec9accacac598a36e8ef2fa2c4b5c243c94f47a80b9ab0a035f874ca1fc28da4c6bf00e63565fa9ffec5ed3733b9ac51d
|
7
|
+
data.tar.gz: 6e686e58e962e7a263a362d03de7f92d942fbaa41067b8ad383cfc15ffae2f210804c414f53598bc3f72351edae241c65bcffef2270950072075e46f3e0aceb9
|
data/lib/jekyll/template.rb
CHANGED
@@ -166,8 +166,8 @@ module Jekyll
|
|
166
166
|
# Remove indentations
|
167
167
|
whitespace_regex = %r!^\s*!m
|
168
168
|
if content =~ whitespace_regex
|
169
|
-
indentation = Regexp.last_match(0)
|
170
|
-
content = content.gsub(indentation
|
169
|
+
indentation = Regexp.last_match(0).length
|
170
|
+
content = content.gsub(/^\ {#{indentation}}/, "")
|
171
171
|
end
|
172
172
|
|
173
173
|
content
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: jekyll-template
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.9.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- ItsJonQ
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2017-
|
11
|
+
date: 2017-02-06 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: jekyll
|