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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: c1c41e1810d12f5452b662944c1903eff7b04d944497ce8565e9bd0f7cf42902
4
- data.tar.gz: b5b8592e381e6e5b494018e340cc5e59c8f4422195e719c5c60e9e7252ca37f3
3
+ metadata.gz: 90105bf937a22652cb622a28c288427ea3a631cec5eeb811360eff7bcaa405de
4
+ data.tar.gz: 5564b7d84f0860c7f52f5ff9683f58a9802460d9de9a1ad36f427cfaa3c31df8
5
5
  SHA512:
6
- metadata.gz: 7b49278506aa5230d915bd2bd919c94e5fa111cf1c5414ae0b1cf4d961e12a510b4b22904b50e9bb21b596784cea498a0f982a90c4a443db9fa0b5817cb00fae
7
- data.tar.gz: 3bd38e8915a07260bd17d8eab24c35671b1c7067e9d556cb1b76b9fd75c6c11e471e434f1177cd5dd4b40553bc0fd6addfe19de28ce4cd69d179b599b658d4c2
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='bg_yellow'></span>` tag.
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', '>= 1.0.5'
39
- spec.add_dependency 'jekyll_plugin_support', '>= 1.0.3'
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
@@ -1,3 +1,3 @@
1
1
  module JekyllFlexibleIncludePluginVersion
2
- VERSION = '2.0.25'.freeze
2
+ VERSION = '2.0.26'.freeze
3
3
  end
@@ -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='bg_yellow'>\\0</span>")
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.25
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: 2024-12-16 00:00:00.000000000 Z
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.0.3
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.0.3
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.5.23
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.