jekyll_plugin_support 0.7.2 → 0.8.0
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/.rubocop.yml +60 -50
- data/CHANGELOG.md +14 -0
- data/README.md +306 -132
- data/jekyll_plugin_support.gemspec +3 -2
- data/lib/jekyll_plugin_error_handling.rb +48 -0
- data/lib/jekyll_plugin_helper.rb +20 -134
- data/lib/jekyll_plugin_helper_attribution.rb +72 -0
- data/lib/jekyll_plugin_helper_class.rb +33 -0
- data/lib/jekyll_plugin_support/version.rb +1 -1
- data/lib/jekyll_plugin_support.rb +5 -202
- data/lib/jekyll_plugin_support_block.rb +77 -0
- data/lib/jekyll_plugin_support_block_noarg.rb +30 -0
- data/lib/jekyll_plugin_support_class.rb +86 -0
- data/lib/jekyll_plugin_support_tag.rb +75 -0
- data/lib/jekyll_plugin_support_tag_noarg.rb +26 -0
- data/spec/liquid_variable_parsing_spec.rb +34 -0
- data/spec/spec_helper.rb +1 -2
- data/spec/status_persistence.txt +7 -0
- metadata +28 -6
- data/lib/call_chain.rb +0 -54
- data/lib/gem_support.rb +0 -19
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 522c54334332d7fda1dc57bfa90647d419f458ff6153a7afe8bc8a60b0be7bca
|
4
|
+
data.tar.gz: 6ce396d28eefd925fa8a7a367fbca3991b2ca3625b85c0720bc9eb295a107b03
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 65ca01eb7f2a017675220b352ee4f041a87df21cf435ca280acb19e512c547f68004be72e9f8dcd51aaad099a1beaefc3544261a63eae0f44fc9b8a5e636f58a
|
7
|
+
data.tar.gz: 1049865b366c17bdc3b4d6b2e88e9826e3dfa849ff6b35f03b65b5c6d9b4367ccfe0477a4497ffab2cfea3e3210512ae2d8bf163f71450a05e5c5963d5960883
|
data/.rubocop.yml
CHANGED
@@ -1,67 +1,77 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
|
4
|
-
|
5
|
-
|
6
|
-
|
1
|
+
require:
|
2
|
+
# - rubocop-jekyll
|
3
|
+
- rubocop-md
|
4
|
+
- rubocop-performance
|
5
|
+
- rubocop-rake
|
6
|
+
- rubocop-rspec
|
7
7
|
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
TargetRubyVersion: 2.6
|
8
|
+
AllCops:
|
9
|
+
Exclude:
|
10
|
+
- binstub/**/*
|
11
|
+
- demo/_site/*
|
12
|
+
- vendor/**/*
|
13
|
+
- Gemfile*
|
14
|
+
NewCops: enable
|
16
15
|
|
17
|
-
|
18
|
-
|
16
|
+
Gemspec/DeprecatedAttributeAssignment:
|
17
|
+
Enabled: false
|
19
18
|
|
20
|
-
|
21
|
-
|
19
|
+
Gemspec/RequireMFA:
|
20
|
+
Enabled: false
|
22
21
|
|
23
|
-
|
24
|
-
|
25
|
-
EnforcedHashRocketStyle: table
|
22
|
+
Gemspec/RequiredRubyVersion:
|
23
|
+
Enabled: false
|
26
24
|
|
27
|
-
|
28
|
-
|
25
|
+
Layout/HashAlignment:
|
26
|
+
EnforcedColonStyle: table
|
27
|
+
EnforcedHashRocketStyle: table
|
29
28
|
|
30
|
-
|
31
|
-
|
32
|
-
- spec/**/*
|
29
|
+
Layout/LineLength:
|
30
|
+
Max: 150
|
33
31
|
|
34
|
-
|
35
|
-
|
32
|
+
Metrics/AbcSize:
|
33
|
+
Max: 45
|
36
34
|
|
37
|
-
|
38
|
-
|
39
|
-
|
35
|
+
Metrics/BlockLength:
|
36
|
+
Exclude:
|
37
|
+
- jekyll_all_collections.gemspec
|
38
|
+
Max: 30
|
40
39
|
|
41
|
-
|
42
|
-
|
40
|
+
Metrics/CyclomaticComplexity:
|
41
|
+
Max: 25
|
43
42
|
|
44
|
-
|
45
|
-
|
46
|
-
- jekyll_plugin_support.gemspec
|
43
|
+
Metrics/MethodLength:
|
44
|
+
Max: 30
|
47
45
|
|
48
|
-
|
49
|
-
|
46
|
+
Metrics/PerceivedComplexity:
|
47
|
+
Max: 25
|
50
48
|
|
51
|
-
|
52
|
-
|
49
|
+
Naming/FileName:
|
50
|
+
Exclude:
|
51
|
+
- Rakefile
|
53
52
|
|
54
|
-
|
55
|
-
|
53
|
+
RSpec/ExampleLength:
|
54
|
+
Max: 30
|
56
55
|
|
57
|
-
|
58
|
-
|
56
|
+
RSpec/FilePath:
|
57
|
+
Enabled: false
|
58
|
+
IgnoreMethods: true
|
59
|
+
SpecSuffixOnly: true
|
59
60
|
|
60
|
-
|
61
|
-
|
61
|
+
RSpec/IndexedLet:
|
62
|
+
Enabled: false
|
62
63
|
|
63
|
-
|
64
|
-
|
64
|
+
RSpec/MultipleExpectations:
|
65
|
+
Max: 15
|
65
66
|
|
66
|
-
|
67
|
-
|
67
|
+
Style/Documentation:
|
68
|
+
Enabled: false
|
69
|
+
|
70
|
+
Style/FrozenStringLiteralComment:
|
71
|
+
Enabled: false
|
72
|
+
|
73
|
+
Style/StringConcatenation:
|
74
|
+
Enabled: false
|
75
|
+
|
76
|
+
Style/TrailingCommaInHashLiteral:
|
77
|
+
EnforcedStyleForMultiline: comma
|
data/CHANGELOG.md
CHANGED
@@ -1,5 +1,19 @@
|
|
1
1
|
# Change Log
|
2
2
|
|
3
|
+
## 0.8.0 / 2023-11-14
|
4
|
+
|
5
|
+
* Restructured for better support of Liquid variables.
|
6
|
+
* Removed redundant class name in error message.
|
7
|
+
* Improved handling of StandardError.
|
8
|
+
* Demo site now shows how to define and handle custom errors.
|
9
|
+
* Added `@tag_config` variable, which can be inspected to determine whether to die on various types of exceptions.
|
10
|
+
* Added `format_error_message`, `maybe_reraise_error`, and `raise_error` to `JekyllBlock` and `JekyllTag`
|
11
|
+
* Adds a method called `shorten_backtrace` to `StandardError` and all custom error
|
12
|
+
classes defined by `JekyllSupport.define_error`.
|
13
|
+
See the `demo/` directory for examples of how to use this optional feature.
|
14
|
+
* The `plugin-vars` section in `_config.yml` was renamed to `liquid_vars`.
|
15
|
+
|
16
|
+
|
3
17
|
## 0.7.2 / 2023-08-14
|
4
18
|
|
5
19
|
* Hopefully takes care of issue [#4](../../issues/4).
|