jekyll_flexible_include 2.0.25 → 2.0.27
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.
- checksums.yaml +4 -4
- data/CHANGELOG.md +13 -0
- data/README.md +8 -3
- data/jekyll_flexible_include_plugin.gemspec +2 -2
- data/lib/flexible_include/version.rb +1 -1
- data/lib/flexible_include.rb +3 -0
- data/lib/flexible_include_private_methods.rb +1 -1
- metadata +5 -9
- data/spec/status_persistence.txt +0 -7
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 67f3e7b3a00f5c61ca7a1a811076e3658e1455bc4b9a846095dff44cbac849a3
|
4
|
+
data.tar.gz: 3393282c6df4d789b490bc2b93259c1ab19b12135ef2e374d5e075ce669d19de
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a06435f6b338f5391c301401e62109fd75ee8f0099cb8a8eb39f64a49a1c7d76d36ad46b9916347535dbd068625ce69b9eeef6e1e8a73bb9f8b6e96f16118e7a
|
7
|
+
data.tar.gz: c80358ed148a45ce66b0cef6baabc9c2db5cc36d5d6745c620b56100426bfccd55d470933bdbc63c3bdbbb0c39e0389dc1b34bab74ca13c18821ffa1132d0486
|
data/CHANGELOG.md
CHANGED
@@ -1,5 +1,18 @@
|
|
1
1
|
# Change Log
|
2
2
|
|
3
|
+
## 2.0.27 / 2025-09-25
|
4
|
+
|
5
|
+
* Handle evaluation of Windows-style env var on a non-Windows machine #16
|
6
|
+
|
7
|
+
|
8
|
+
## 2.0.26 / 2025-09-13
|
9
|
+
|
10
|
+
* Replaced the CSS class `bg_yellow` with `bg_yellow_nopad`.
|
11
|
+
* Windows environment variables references provided to the `file` option are looked up.
|
12
|
+
If they are not found, they are removed (just like CMD.EXE.)
|
13
|
+
Requires `jekyll_plugin_support` .
|
14
|
+
|
15
|
+
|
3
16
|
## 2.0.25 / 2024-12-11
|
4
17
|
|
5
18
|
* Fixed `from` / `to` / `until` issue
|
data/README.md
CHANGED
@@ -93,7 +93,7 @@ and are not intended to be written literally.
|
|
93
93
|
- `from='regex'` specifies that the beginning of the output should discarded until the matching string or regex is encountered.
|
94
94
|
|
95
95
|
- `highlight='regex pattern here'` wraps content matching the regex pattern within a
|
96
|
-
`<span class='
|
96
|
+
`<span class='bg_yellow_nopad'></span>` tag.
|
97
97
|
Note that the pattern can simply consist of the exact text that you want to highlight.
|
98
98
|
|
99
99
|
- `pre` is a keyword option that causes the included file to be wrapped inside a
|
@@ -268,8 +268,13 @@ You can load it from your project, as shown below, or from a CDN.
|
|
268
268
|
|
269
269
|
## Additional Information
|
270
270
|
|
271
|
-
|
272
|
-
[Mike Slinn’s website](https://
|
271
|
+
The complete documentation is available on
|
272
|
+
[Mike Slinn’s website](https://mslinn.com/jekyll_plugins/jekyll_flexible_include.html).
|
273
|
+
|
274
|
+
Topics that are not mentioned in this `README.md` file include:
|
275
|
+
|
276
|
+
- How environment variables are expanded on Linux, Mac and Windows.
|
277
|
+
- Numbering lines.
|
273
278
|
|
274
279
|
|
275
280
|
## GitHub Pages
|
@@ -35,8 +35,8 @@ Gem::Specification.new do |spec| # rubocop:disable Metrics/BlockLength
|
|
35
35
|
spec.test_files = spec.files.grep(%r!^(test|spec|features)/!)
|
36
36
|
spec.version = JekyllFlexibleIncludePluginVersion::VERSION
|
37
37
|
|
38
|
-
spec.add_dependency 'jekyll_from_to_until',
|
39
|
-
spec.add_dependency 'jekyll_plugin_support', '>= 1.
|
38
|
+
spec.add_dependency 'jekyll_from_to_until', '>= 1.0.5'
|
39
|
+
spec.add_dependency 'jekyll_plugin_support', '>= 3.1.1'
|
40
40
|
spec.add_dependency 'jekyll-sass-converter', '= 2.2.0'
|
41
41
|
spec.add_dependency 'rugged'
|
42
42
|
end
|
data/lib/flexible_include.rb
CHANGED
@@ -34,9 +34,12 @@ module FlexibleInclude
|
|
34
34
|
END_MSG
|
35
35
|
end
|
36
36
|
|
37
|
+
# Look for *nix version of @path if Windows expansion did not yield a file that exists
|
37
38
|
def render_impl
|
38
39
|
setup
|
39
40
|
@path = ::JekyllSupport::JekyllPluginHelper.expand_env @filename, @logger
|
41
|
+
linux_path = `wslpath '#{@path}' 2>/dev/null`.chomp
|
42
|
+
@path = linux_path if !File.exist?(@path) && File.exist?(linux_path)
|
40
43
|
handle_path_types
|
41
44
|
render_completion
|
42
45
|
rescue Errno::EACCES => e
|
@@ -19,7 +19,7 @@ module FlexibleInclude
|
|
19
19
|
def highlight(content, pattern)
|
20
20
|
raise FlexibleIncludeError, "content is a #{content.class}, not a String" unless content.instance_of? String
|
21
21
|
|
22
|
-
content.gsub(Regexp.new(pattern), "<span class='
|
22
|
+
content.gsub(Regexp.new(pattern), "<span class='bg_yellow_nopad'>\\0</span>")
|
23
23
|
end
|
24
24
|
|
25
25
|
def maybe_raise_error(msg, throw_error: true)
|
metadata
CHANGED
@@ -1,16 +1,15 @@
|
|
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.27
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Mike Slinn
|
8
8
|
- Tan Nhu
|
9
9
|
- Maarten Brakkee
|
10
|
-
autorequire:
|
11
10
|
bindir: exe
|
12
11
|
cert_chain: []
|
13
|
-
date:
|
12
|
+
date: 1980-01-02 00:00:00.000000000 Z
|
14
13
|
dependencies:
|
15
14
|
- !ruby/object:Gem::Dependency
|
16
15
|
name: jekyll_from_to_until
|
@@ -32,14 +31,14 @@ dependencies:
|
|
32
31
|
requirements:
|
33
32
|
- - ">="
|
34
33
|
- !ruby/object:Gem::Version
|
35
|
-
version: 1.
|
34
|
+
version: 3.1.1
|
36
35
|
type: :runtime
|
37
36
|
prerelease: false
|
38
37
|
version_requirements: !ruby/object:Gem::Requirement
|
39
38
|
requirements:
|
40
39
|
- - ">="
|
41
40
|
- !ruby/object:Gem::Version
|
42
|
-
version: 1.
|
41
|
+
version: 3.1.1
|
43
42
|
- !ruby/object:Gem::Dependency
|
44
43
|
name: jekyll-sass-converter
|
45
44
|
requirement: !ruby/object:Gem::Requirement
|
@@ -93,7 +92,6 @@ files:
|
|
93
92
|
- spec/flexible_include_spec.rb
|
94
93
|
- spec/git_file_reader_spec.rb
|
95
94
|
- spec/spec_helper.rb
|
96
|
-
- spec/status_persistence.txt
|
97
95
|
homepage: https://www.mslinn.com/jekyll_plugins/jekyll_flexible_include.html
|
98
96
|
licenses:
|
99
97
|
- MIT
|
@@ -121,8 +119,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
121
119
|
- !ruby/object:Gem::Version
|
122
120
|
version: '0'
|
123
121
|
requirements: []
|
124
|
-
rubygems_version: 3.
|
125
|
-
signing_key:
|
122
|
+
rubygems_version: 3.7.2
|
126
123
|
specification_version: 4
|
127
124
|
summary: Jekyll plugin supports various ways to include content into the generated
|
128
125
|
site.
|
@@ -130,5 +127,4 @@ test_files:
|
|
130
127
|
- spec/flexible_include_spec.rb
|
131
128
|
- spec/git_file_reader_spec.rb
|
132
129
|
- spec/spec_helper.rb
|
133
|
-
- spec/status_persistence.txt
|
134
130
|
...
|
data/spec/status_persistence.txt
DELETED
@@ -1,7 +0,0 @@
|
|
1
|
-
example_id | status | run_time |
|
2
|
-
------------------------------------ | ------ | --------------- |
|
3
|
-
./spec/flexible_include_spec.rb[1:1] | passed | 0.00164 seconds |
|
4
|
-
./spec/git_file_reader_spec.rb[1:1] | failed | 0.04395 seconds |
|
5
|
-
./spec/git_file_reader_spec.rb[1:2] | passed | 0.0411 seconds |
|
6
|
-
./spec/git_file_reader_spec.rb[1:3] | passed | 0.03189 seconds |
|
7
|
-
./spec/git_file_reader_spec.rb[1:4] | passed | 0.02975 seconds |
|