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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 000dda7b37378861311b6663e9e1e246da0479ddde8a115674a1001833655b0a
4
- data.tar.gz: ea530cdba36b41a67e5d60eb6ba15b51ff051e5b13a109cda8f81d362bfc08b0
3
+ metadata.gz: a2bbd3d775f087cefca7f18e68966dc58afb1b19099154b7e56dce5fba9b6f25
4
+ data.tar.gz: '065912548161e1cce5d139566f370cabe68ad0521e87e7dd50f424e3a8e958f0'
5
5
  SHA512:
6
- metadata.gz: 815da6cd2afecfbab624e4392d7127cbc7e238f203c44c7d24b5c98258cf39013ce90026cab5942f061dc894049f899c271b4252bcace82198a2f0abdf7d55cf
7
- data.tar.gz: 07e0cf4ae181bd334aa9fc79a7cb396cad3cf9a2750ba6ca3d37d17782518cd01a1671beac0b83db2ee914b619f41e869ecf0595b6de2fb364fa2c9d380a5508
6
+ metadata.gz: 6c965faec3f89eb9d005dc2ad7fea3847f77d716039b9f903f8f84ea20e49ba991f016664013826d0fb4e044203a7ae82338aca7b1b7a699a8d1e59ae18f4f62
7
+ data.tar.gz: b4fb7d8c8b0afddef8f0c5d359b5bbe7077ae4418b38641e6f52dd537005a75c7a47a2eb371ea3de24cc4269295e423f8ff8a3b1c719e2f8b8c862f9ed4f8b20
data/CHANGELOG.md CHANGED
@@ -1,5 +1,15 @@
1
1
  # Change Log
2
2
 
3
+ ## 2.0.23 / 2024-07-22
4
+
5
+ * Made compatible with `jekyll_plugin_support` v1.0.0
6
+
7
+
8
+ ## 2.0.22 / 2024-02-27
9
+
10
+ * Improved error reporting
11
+
12
+
3
13
  ## 2.0.21 / 2023-11-16
4
14
 
5
15
  * Restructured code
@@ -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.7.3'
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
@@ -1,3 +1,3 @@
1
1
  module JekyllFlexibleIncludePluginVersion
2
- VERSION = '2.0.21'.freeze
2
+ VERSION = '2.0.23'.freeze
3
3
  end
@@ -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
- .gsub('~', Dir.home)
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('$HOME/.mem_settings.yaml')
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.21
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: 2023-11-22 00:00:00.000000000 Z
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.7.3
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.7.3
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.3.7
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