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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: c1c41e1810d12f5452b662944c1903eff7b04d944497ce8565e9bd0f7cf42902
4
- data.tar.gz: b5b8592e381e6e5b494018e340cc5e59c8f4422195e719c5c60e9e7252ca37f3
3
+ metadata.gz: 67f3e7b3a00f5c61ca7a1a811076e3658e1455bc4b9a846095dff44cbac849a3
4
+ data.tar.gz: 3393282c6df4d789b490bc2b93259c1ab19b12135ef2e374d5e075ce669d19de
5
5
  SHA512:
6
- metadata.gz: 7b49278506aa5230d915bd2bd919c94e5fa111cf1c5414ae0b1cf4d961e12a510b4b22904b50e9bb21b596784cea498a0f982a90c4a443db9fa0b5817cb00fae
7
- data.tar.gz: 3bd38e8915a07260bd17d8eab24c35671b1c7067e9d556cb1b76b9fd75c6c11e471e434f1177cd5dd4b40553bc0fd6addfe19de28ce4cd69d179b599b658d4c2
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='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
@@ -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
- More information is available on
272
- [Mike Slinn&rsquo;s website](https://www.mslinn.com/blog/2020/10/03/jekyll-plugins.html).
271
+ The complete documentation is available on
272
+ [Mike Slinn&rsquo;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', '>= 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.27'.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.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: 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
@@ -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.5.23
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
  ...
@@ -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 |