jekyll_flexible_include 2.0.9 → 2.0.10
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +4 -1
- data/lib/flexible_include/version.rb +1 -1
- data/lib/flexible_include.rb +2 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: d22302901e7a454d82515fd64525479b2932d8856ee572565ea2fae672b6bb28
|
4
|
+
data.tar.gz: 22c05d1fb04c976ebfb6a7e005e998bc572a21cb5fce7eed4ac2284c38840c2e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 04f0e0f7a4ecc3e929a2084311b4c6ee70483256117703a56642c78ab2962b8cfdbc01d3e027dc9fbae188ee8d2adeac202bb0dfa28759ff32fa46262d5c985c
|
7
|
+
data.tar.gz: 66b2a6c4383bcc86d5492a0c4155ecbf168e0dedd1c680d005a5f5cfca319b978158c5e71d2027f58109ae9ee02d449fd189044cb4860f793945fd2ce6d7971b
|
data/CHANGELOG.md
CHANGED
@@ -1,5 +1,8 @@
|
|
1
|
+
## 2.0.10 / 2022-04-15
|
2
|
+
* Fixed nil pointer
|
3
|
+
|
1
4
|
## 2.0.9 / 2022-04-15
|
2
|
-
*
|
5
|
+
* Changed how path matching was implemented.
|
3
6
|
|
4
7
|
## 2.0.8 / 2022-04-14
|
5
8
|
* Added the ability to restrict arbitrary command execution, and specify the allowable directories to read from.
|
data/lib/flexible_include.rb
CHANGED
@@ -27,7 +27,8 @@ class FlexibleInclude < Liquid::Tag
|
|
27
27
|
@execution_denied = ENV['DISABLE_FLEXIBLE_INCLUDE']
|
28
28
|
|
29
29
|
unless @read_regexes
|
30
|
-
|
30
|
+
flexible_include_paths = ENV['FLEXIBLE_INCLUDE_PATHS']
|
31
|
+
read_paths = normalize_path(flexible_include_paths) if flexible_include_paths
|
31
32
|
if read_paths
|
32
33
|
@read_regexes = read_paths.split(":").map do |path|
|
33
34
|
abs_path = path.start_with?('/') ? path : (Pathname.new(Dir.pwd) + path).to_s
|