jekyll_flexible_include 2.0.25 → 2.0.26
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 +8 -0
- data/README.md +1 -1
- 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 -7
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 90105bf937a22652cb622a28c288427ea3a631cec5eeb811360eff7bcaa405de
|
4
|
+
data.tar.gz: 5564b7d84f0860c7f52f5ff9683f58a9802460d9de9a1ad36f427cfaa3c31df8
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e5bc5bbeac42ca37bd83058b1adf392e6029a31fc3ed2b2edd968dba0211adef8e1f72a6dc84722a6de3adb88f2fc672bf51ef6722af1dd01855d6420ebb4b6c
|
7
|
+
data.tar.gz: 9d41c9be9c84f77f5338ada0c22441b035d7f050d619cf10dad50aed4adbc7da117faa66cd0114fdad471274d40ab535af74879e335474949b1276d41b5bab8e
|
data/CHANGELOG.md
CHANGED
@@ -1,5 +1,13 @@
|
|
1
1
|
# Change Log
|
2
2
|
|
3
|
+
## 2.0.26 / 2025-09-13
|
4
|
+
|
5
|
+
* Replaced the CSS class `bg_yellow` with `bg_yellow_nopad`.
|
6
|
+
* Windows environment variables references provided to the `file` option are looked up.
|
7
|
+
If they are not found, they are removed (just like CMD.EXE.)
|
8
|
+
Requires `jekyll_plugin_support` .
|
9
|
+
|
10
|
+
|
3
11
|
## 2.0.25 / 2024-12-11
|
4
12
|
|
5
13
|
* 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
|
@@ -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.26
|
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
|
@@ -121,8 +120,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
121
120
|
- !ruby/object:Gem::Version
|
122
121
|
version: '0'
|
123
122
|
requirements: []
|
124
|
-
rubygems_version: 3.
|
125
|
-
signing_key:
|
123
|
+
rubygems_version: 3.7.2
|
126
124
|
specification_version: 4
|
127
125
|
summary: Jekyll plugin supports various ways to include content into the generated
|
128
126
|
site.
|