jekyll_flexible_include 2.0.21 → 2.0.23
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +10 -0
- data/jekyll_flexible_include_plugin.gemspec +2 -1
- data/lib/flexible_include/version.rb +1 -1
- data/lib/flexible_include.rb +3 -3
- data/lib/flexible_include_class.rb +2 -2
- data/lib/flexible_include_private_methods.rb +2 -0
- data/spec/flexible_include_spec.rb +1 -1
- metadata +19 -5
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: a2bbd3d775f087cefca7f18e68966dc58afb1b19099154b7e56dce5fba9b6f25
|
4
|
+
data.tar.gz: '065912548161e1cce5d139566f370cabe68ad0521e87e7dd50f424e3a8e958f0'
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 6c965faec3f89eb9d005dc2ad7fea3847f77d716039b9f903f8f84ea20e49ba991f016664013826d0fb4e044203a7ae82338aca7b1b7a699a8d1e59ae18f4f62
|
7
|
+
data.tar.gz: b4fb7d8c8b0afddef8f0c5d359b5bbe7077ae4418b38641e6f52dd537005a75c7a47a2eb371ea3de24cc4269295e423f8ff8a3b1c719e2f8b8c862f9ed4f8b20
|
data/CHANGELOG.md
CHANGED
@@ -36,6 +36,7 @@ Gem::Specification.new do |spec| # rubocop:disable Metrics/BlockLength
|
|
36
36
|
spec.version = JekyllFlexibleIncludePluginVersion::VERSION
|
37
37
|
|
38
38
|
spec.add_dependency 'jekyll_from_to_until'
|
39
|
-
spec.add_dependency 'jekyll_plugin_support', '>= 0.
|
39
|
+
spec.add_dependency 'jekyll_plugin_support', '>= 1.0.0'
|
40
|
+
spec.add_dependency 'jekyll-sass-converter', '= 2.2.0'
|
40
41
|
spec.add_dependency 'rugged'
|
41
42
|
end
|
data/lib/flexible_include.rb
CHANGED
@@ -25,7 +25,7 @@ module FlexibleInclude
|
|
25
25
|
|
26
26
|
def render_impl
|
27
27
|
setup
|
28
|
-
@path = JekyllPluginHelper.expand_env @filename
|
28
|
+
@path = ::JekyllSupport::JekyllPluginHelper.expand_env @filename, @logger
|
29
29
|
handle_path_types
|
30
30
|
render_completion
|
31
31
|
rescue Errno::EACCES => e
|
@@ -89,7 +89,7 @@ module FlexibleInclude
|
|
89
89
|
"of #{@page['name']} denied by DISABLE_FLEXIBLE_INCLUDE value.")
|
90
90
|
end
|
91
91
|
|
92
|
-
@filename = JekyllPluginHelper.remove_quotes(@helper.argv.first) if @helper.argv.first
|
92
|
+
@filename = ::JekyllSupport::JekyllPluginHelper.remove_quotes(@helper.argv.first) if @helper.argv.first
|
93
93
|
@filename = @filename.delete_prefix '!'
|
94
94
|
@contents = run(@filename)
|
95
95
|
else # Relative path
|
@@ -99,6 +99,6 @@ module FlexibleInclude
|
|
99
99
|
end
|
100
100
|
end
|
101
101
|
|
102
|
-
JekyllPluginHelper.register(self, 'flexible_include')
|
102
|
+
::JekyllSupport::JekyllPluginHelper.register(self, 'flexible_include')
|
103
103
|
end
|
104
104
|
end
|
@@ -14,8 +14,8 @@ module FlexibleInclude
|
|
14
14
|
end
|
15
15
|
|
16
16
|
def normalize_path(path)
|
17
|
-
JekyllPluginHelper.expand_env(path, die_if_undefined: true)
|
18
|
-
|
17
|
+
::JekyllSupport::JekyllPluginHelper.expand_env(path, die_if_undefined: true)
|
18
|
+
.gsub('~', Dir.home)
|
19
19
|
end
|
20
20
|
|
21
21
|
def number_content(content)
|
@@ -1,4 +1,5 @@
|
|
1
1
|
require 'pathname'
|
2
|
+
require 'English'
|
2
3
|
require 'jekyll_from_to_until'
|
3
4
|
|
4
5
|
module FlexibleInclude
|
@@ -98,6 +99,7 @@ module FlexibleInclude
|
|
98
99
|
raise e
|
99
100
|
rescue StandardError => e
|
100
101
|
@do_not_escape = true
|
102
|
+
e = e.exception "'#{e.message}' while executing '#{cmd}'"
|
101
103
|
maybe_reraise_error(e, throw_error: @die_on_run_error)
|
102
104
|
end
|
103
105
|
|
@@ -11,7 +11,7 @@ RSpec.describe(FlexibleInclude) do
|
|
11
11
|
|
12
12
|
expect(described_class.access_allowed('~/.mem_settings.yaml')).to be_truthy
|
13
13
|
|
14
|
-
home_file = JekyllPluginHelper.expand_env
|
14
|
+
home_file = JekyllPluginHelper.expand_env '$HOME/.mem_settings.yaml'
|
15
15
|
expect(described_class.access_allowed(home_file)).to be_truthy
|
16
16
|
|
17
17
|
expect(described_class.access_allowed('/asdf')).to be_falsey
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: jekyll_flexible_include
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.0.
|
4
|
+
version: 2.0.23
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Mike Slinn
|
@@ -10,7 +10,7 @@ authors:
|
|
10
10
|
autorequire:
|
11
11
|
bindir: exe
|
12
12
|
cert_chain: []
|
13
|
-
date:
|
13
|
+
date: 2024-07-26 00:00:00.000000000 Z
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
16
|
name: jekyll_from_to_until
|
@@ -32,14 +32,28 @@ dependencies:
|
|
32
32
|
requirements:
|
33
33
|
- - ">="
|
34
34
|
- !ruby/object:Gem::Version
|
35
|
-
version: 0.
|
35
|
+
version: 1.0.0
|
36
36
|
type: :runtime
|
37
37
|
prerelease: false
|
38
38
|
version_requirements: !ruby/object:Gem::Requirement
|
39
39
|
requirements:
|
40
40
|
- - ">="
|
41
41
|
- !ruby/object:Gem::Version
|
42
|
-
version: 0.
|
42
|
+
version: 1.0.0
|
43
|
+
- !ruby/object:Gem::Dependency
|
44
|
+
name: jekyll-sass-converter
|
45
|
+
requirement: !ruby/object:Gem::Requirement
|
46
|
+
requirements:
|
47
|
+
- - '='
|
48
|
+
- !ruby/object:Gem::Version
|
49
|
+
version: 2.2.0
|
50
|
+
type: :runtime
|
51
|
+
prerelease: false
|
52
|
+
version_requirements: !ruby/object:Gem::Requirement
|
53
|
+
requirements:
|
54
|
+
- - '='
|
55
|
+
- !ruby/object:Gem::Version
|
56
|
+
version: 2.2.0
|
43
57
|
- !ruby/object:Gem::Dependency
|
44
58
|
name: rugged
|
45
59
|
requirement: !ruby/object:Gem::Requirement
|
@@ -107,7 +121,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
107
121
|
- !ruby/object:Gem::Version
|
108
122
|
version: '0'
|
109
123
|
requirements: []
|
110
|
-
rubygems_version: 3.
|
124
|
+
rubygems_version: 3.5.16
|
111
125
|
signing_key:
|
112
126
|
specification_version: 4
|
113
127
|
summary: Jekyll plugin supports various ways to include content into the generated
|