jekyll_plugin_support 0.7.2 → 0.8.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.rubocop.yml +63 -50
- data/CHANGELOG.md +19 -0
- data/README.md +306 -132
- data/jekyll_plugin_support.gemspec +3 -2
- data/lib/jekyll_custom_error.rb +55 -0
- data/lib/jekyll_plugin_error_handling.rb +51 -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 +73 -0
- data/lib/jekyll_plugin_support/version.rb +1 -1
- data/lib/jekyll_plugin_support.rb +6 -202
- data/lib/jekyll_plugin_support_block.rb +94 -0
- data/lib/jekyll_plugin_support_block_noarg.rb +30 -0
- data/lib/jekyll_plugin_support_class.rb +88 -0
- data/lib/jekyll_plugin_support_tag.rb +91 -0
- data/lib/jekyll_plugin_support_tag_noarg.rb +26 -0
- data/spec/custom_error_spec.rb +39 -0
- data/spec/liquid_variable_parsing_spec.rb +34 -0
- data/spec/spec_helper.rb +1 -2
- data/spec/status_persistence.txt +6 -0
- metadata +31 -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: 4efc790e49d3b2d98eb4e96bee8c75a18df25fcf7c08d66a44ef96d7c6db19c6
|
4
|
+
data.tar.gz: 6629e04d2170911427e4914c0d356e3f9c95149b7a673b2638242ba43cbe11fa
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 5afd0123f178c5fe89ddbfbf55e48a63630a3ebdffe07b28b60e6ba5d0df0ee1c7f6c5b4dc25ca0c77c5e0fe4329a46cf9902585cadbcc9ea90fed032dc4b459
|
7
|
+
data.tar.gz: fd6cb95f84f50655b12e81a069a6cdf85ec265f244159b200909ec9d7c8559871c4a781ddf162b10dd9a53eefb07614ed7cec172877130a52e2859a306df0512
|
data/.rubocop.yml
CHANGED
@@ -1,67 +1,80 @@
|
|
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: 55
|
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/ClassVars:
|
68
|
+
Enabled: false
|
69
|
+
|
70
|
+
Style/Documentation:
|
71
|
+
Enabled: false
|
72
|
+
|
73
|
+
Style/FrozenStringLiteralComment:
|
74
|
+
Enabled: false
|
75
|
+
|
76
|
+
Style/StringConcatenation:
|
77
|
+
Enabled: false
|
78
|
+
|
79
|
+
Style/TrailingCommaInHashLiteral:
|
80
|
+
EnforcedStyleForMultiline: comma
|
data/CHANGELOG.md
CHANGED
@@ -1,5 +1,24 @@
|
|
1
1
|
# Change Log
|
2
2
|
|
3
|
+
## 0.8.1 / 2023-12-10
|
4
|
+
|
5
|
+
* Added the `JekyllPluginHelper.remove_html_tags` method.
|
6
|
+
|
7
|
+
|
8
|
+
## 0.8.0 / 2023-11-14
|
9
|
+
|
10
|
+
* Restructured for better support of Liquid variables.
|
11
|
+
* Removed redundant class name in error message.
|
12
|
+
* Improved handling of StandardError.
|
13
|
+
* Demo site now shows how to define and handle custom errors.
|
14
|
+
* Added `@tag_config` variable, which can be inspected to determine whether to die on various types of exceptions.
|
15
|
+
* Added `format_error_message`, `maybe_reraise_error`, and `raise_error` to `JekyllBlock` and `JekyllTag`
|
16
|
+
* Adds a method called `shorten_backtrace` to `StandardError` and all custom error
|
17
|
+
classes defined by `JekyllSupport.define_error`.
|
18
|
+
See the `demo/` directory for examples of how to use this optional feature.
|
19
|
+
* The `plugin-vars` section in `_config.yml` was renamed to `liquid_vars`.
|
20
|
+
|
21
|
+
|
3
22
|
## 0.7.2 / 2023-08-14
|
4
23
|
|
5
24
|
* Hopefully takes care of issue [#4](../../issues/4).
|