jekyll_pre 1.4.4 → 1.4.6
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.rubocop.yml +31 -17
- data/CHANGELOG.md +10 -0
- data/jekyll_pre.gemspec +1 -1
- data/lib/exec_tag.rb +4 -4
- data/lib/jekyll_pre/version.rb +1 -1
- data/lib/noselect_tag.rb +2 -2
- data/lib/pre_tag_block.rb +5 -4
- metadata +5 -5
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 5b84c77d011c319901f75350aab6ecfcad105dcaa3068b478911150d6fccc4b4
|
4
|
+
data.tar.gz: 6d6a2852fb621a33bb09b3ca9084be581b543f9022213728fbba5396f6864b67
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d92536fab946b2917acfe3e9f442514a1be3ca1d7cf5b0073118451c71496a9f55e912b3e0e509d7ac40e3bea65e74d398e23ca05c5207589e214cacfb8d0453
|
7
|
+
data.tar.gz: 3629760054527aac3d0447d65ba6ccf90873d750e1345d1214a19d915e8bbf5052346f7606d8e53b085d0a575dc24ac2b9bf290c94980dec17d5178f7a9b11bc
|
data/.rubocop.yml
CHANGED
@@ -8,6 +8,7 @@ require:
|
|
8
8
|
AllCops:
|
9
9
|
Exclude:
|
10
10
|
- binstub/**/*
|
11
|
+
- demo/_site/*
|
11
12
|
- vendor/**/*
|
12
13
|
- Gemfile*
|
13
14
|
NewCops: enable
|
@@ -15,10 +16,10 @@ AllCops:
|
|
15
16
|
Gemspec/DeprecatedAttributeAssignment:
|
16
17
|
Enabled: false
|
17
18
|
|
18
|
-
Gemspec/
|
19
|
+
Gemspec/RequireMFA:
|
19
20
|
Enabled: false
|
20
21
|
|
21
|
-
Gemspec/
|
22
|
+
Gemspec/RequiredRubyVersion:
|
22
23
|
Enabled: false
|
23
24
|
|
24
25
|
Layout/HashAlignment:
|
@@ -29,25 +30,45 @@ Layout/LineLength:
|
|
29
30
|
Max: 150
|
30
31
|
|
31
32
|
Metrics/AbcSize:
|
32
|
-
Max:
|
33
|
+
Max: 55
|
33
34
|
|
34
35
|
Metrics/BlockLength:
|
35
36
|
Exclude:
|
36
|
-
-
|
37
|
+
- jekyll_plugin_support.gemspec
|
37
38
|
Max: 30
|
38
39
|
|
39
40
|
Metrics/CyclomaticComplexity:
|
40
|
-
Max:
|
41
|
+
Max: 25
|
41
42
|
|
42
43
|
Metrics/MethodLength:
|
43
|
-
Max:
|
44
|
+
Max: 50
|
44
45
|
|
45
46
|
Metrics/PerceivedComplexity:
|
46
|
-
Max:
|
47
|
+
Max: 25
|
47
48
|
|
48
49
|
Naming/FileName:
|
49
50
|
Exclude:
|
50
51
|
- Rakefile
|
52
|
+
- "*.md"
|
53
|
+
|
54
|
+
RSpec/ExampleLength:
|
55
|
+
Max: 30
|
56
|
+
|
57
|
+
RSpec/SpecFilePathFormat:
|
58
|
+
Enabled: false
|
59
|
+
IgnoreMethods: true
|
60
|
+
|
61
|
+
RSpec/SpecFilePathSuffix:
|
62
|
+
Enabled: false
|
63
|
+
|
64
|
+
RSpec/IndexedLet:
|
65
|
+
Enabled: false
|
66
|
+
|
67
|
+
RSpec/MultipleExpectations:
|
68
|
+
Max: 15
|
69
|
+
|
70
|
+
Style/ClassVars:
|
71
|
+
Enabled: false
|
51
72
|
|
52
73
|
Style/Documentation:
|
53
74
|
Enabled: false
|
@@ -55,15 +76,8 @@ Style/Documentation:
|
|
55
76
|
Style/FrozenStringLiteralComment:
|
56
77
|
Enabled: false
|
57
78
|
|
79
|
+
Style/StringConcatenation:
|
80
|
+
Enabled: false
|
81
|
+
|
58
82
|
Style/TrailingCommaInHashLiteral:
|
59
83
|
EnforcedStyleForMultiline: comma
|
60
|
-
|
61
|
-
RSpec/FilePath:
|
62
|
-
IgnoreMethods: true
|
63
|
-
SpecSuffixOnly: true
|
64
|
-
|
65
|
-
RSpec/ExampleLength:
|
66
|
-
Max: 30
|
67
|
-
|
68
|
-
RSpec/MultipleExpectations:
|
69
|
-
Max: 15
|
data/CHANGELOG.md
CHANGED
data/jekyll_pre.gemspec
CHANGED
@@ -33,6 +33,6 @@ Gem::Specification.new do |spec|
|
|
33
33
|
spec.version = JekyllPreVersion::VERSION
|
34
34
|
|
35
35
|
spec.add_dependency 'jekyll', '>= 3.5.0'
|
36
|
-
spec.add_dependency 'jekyll_plugin_support', '>= 0.
|
36
|
+
spec.add_dependency 'jekyll_plugin_support', '>= 1.0.0'
|
37
37
|
spec.add_dependency 'rack'
|
38
38
|
end
|
data/lib/exec_tag.rb
CHANGED
@@ -11,7 +11,7 @@ module JekyllPreModule
|
|
11
11
|
result
|
12
12
|
end
|
13
13
|
|
14
|
-
class ExecTag < JekyllSupport::JekyllTag
|
14
|
+
class ExecTag < ::JekyllSupport::JekyllTag
|
15
15
|
include JekyllPreVersion
|
16
16
|
|
17
17
|
def self.remove_html_tags(string)
|
@@ -21,7 +21,7 @@ module JekyllPreModule
|
|
21
21
|
def render_impl
|
22
22
|
parse_args
|
23
23
|
@original_command = @helper.remaining_markup_original
|
24
|
-
command = JekyllPluginHelper.expand_env @original_command
|
24
|
+
command = ::JekyllSupport::JekyllPluginHelper.expand_env @original_command
|
25
25
|
if command.strip.empty?
|
26
26
|
msg = "Command is empty on on line #{@line_number} (after front matter) of #{@page['path']}"
|
27
27
|
unless @die_if_error
|
@@ -73,7 +73,7 @@ module JekyllPreModule
|
|
73
73
|
|
74
74
|
def parse_args
|
75
75
|
@cd = @helper.parameter_specified? 'cd'
|
76
|
-
@cd = JekyllPluginHelper.expand_env(@cd) if @cd
|
76
|
+
@cd = ::JekyllSupport::JekyllPluginHelper.expand_env(@cd) if @cd
|
77
77
|
|
78
78
|
@no_escape = @helper.parameter_specified? 'no_escape'
|
79
79
|
@no_strip = @helper.parameter_specified? 'no_strip'
|
@@ -116,6 +116,6 @@ module JekyllPreModule
|
|
116
116
|
stdout_str
|
117
117
|
end
|
118
118
|
|
119
|
-
JekyllPluginHelper.register(self, 'exec')
|
119
|
+
::JekyllSupport::JekyllPluginHelper.register(self, 'exec')
|
120
120
|
end
|
121
121
|
end
|
data/lib/jekyll_pre/version.rb
CHANGED
data/lib/noselect_tag.rb
CHANGED
@@ -4,7 +4,7 @@ require_relative 'jekyll_pre/version'
|
|
4
4
|
module JekyllPreModule
|
5
5
|
# """\\{% noselect %} or \\{% noselect this all gets copied.
|
6
6
|
# Also, space before the closing percent is signficant %}"""
|
7
|
-
class NoSelectTag < JekyllSupport::JekyllTagNoArgParsing
|
7
|
+
class NoSelectTag < ::JekyllSupport::JekyllTagNoArgParsing
|
8
8
|
include JekyllPreVersion
|
9
9
|
|
10
10
|
def render_impl
|
@@ -13,6 +13,6 @@ module JekyllPreModule
|
|
13
13
|
"<span class='unselectable'>#{text}</span>"
|
14
14
|
end
|
15
15
|
|
16
|
-
JekyllPluginHelper.register(self, 'noselect')
|
16
|
+
::JekyllSupport::JekyllPluginHelper.register(self, 'noselect')
|
17
17
|
end
|
18
18
|
end
|
data/lib/pre_tag_block.rb
CHANGED
@@ -3,7 +3,7 @@ require 'securerandom'
|
|
3
3
|
require_relative 'jekyll_pre/version'
|
4
4
|
|
5
5
|
module JekyllPreModule
|
6
|
-
class PreTagBlock < JekyllSupport::JekyllBlock
|
6
|
+
class PreTagBlock < ::JekyllSupport::JekyllBlock
|
7
7
|
include JekyllPreVersion
|
8
8
|
|
9
9
|
@@prefix = "<button class='copyBtn' data-clipboard-target="
|
@@ -56,7 +56,6 @@ module JekyllPreModule
|
|
56
56
|
@dark = ' dark' if option 'dark'
|
57
57
|
@dedent = option 'dedent'
|
58
58
|
@highlight = option 'highlight'
|
59
|
-
@label = option 'label'
|
60
59
|
@make_copy_button = option 'copyButton'
|
61
60
|
@number_lines = option 'number'
|
62
61
|
@style = option 'style'
|
@@ -69,7 +68,9 @@ module JekyllPreModule
|
|
69
68
|
@wrapper_style = @wrapper_style ? " style='#{@wrapper_style}'" : ''
|
70
69
|
|
71
70
|
# If a label was specified, use it, otherwise concatenate any dangling parameters and use that as the label
|
72
|
-
|
71
|
+
label_implicit = @helper.argv.join(' ')
|
72
|
+
label_option = option 'label'
|
73
|
+
@label = label_option && label_option.to_s != 'true' ? label_option : label_implicit
|
73
74
|
|
74
75
|
@logger.debug { "@make_copy_button = '#{@make_copy_button}'; @label = '#{@label}'" }
|
75
76
|
|
@@ -113,6 +114,6 @@ module JekyllPreModule
|
|
113
114
|
END_OUTPUT
|
114
115
|
end
|
115
116
|
|
116
|
-
JekyllPluginHelper.register(self, 'pre')
|
117
|
+
::JekyllSupport::JekyllPluginHelper.register(self, 'pre')
|
117
118
|
end
|
118
119
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: jekyll_pre
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.4.
|
4
|
+
version: 1.4.6
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Mike Slinn
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2024-07-26 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: jekyll
|
@@ -30,14 +30,14 @@ dependencies:
|
|
30
30
|
requirements:
|
31
31
|
- - ">="
|
32
32
|
- !ruby/object:Gem::Version
|
33
|
-
version: 0.
|
33
|
+
version: 1.0.0
|
34
34
|
type: :runtime
|
35
35
|
prerelease: false
|
36
36
|
version_requirements: !ruby/object:Gem::Requirement
|
37
37
|
requirements:
|
38
38
|
- - ">="
|
39
39
|
- !ruby/object:Gem::Version
|
40
|
-
version: 0.
|
40
|
+
version: 1.0.0
|
41
41
|
- !ruby/object:Gem::Dependency
|
42
42
|
name: rack
|
43
43
|
requirement: !ruby/object:Gem::Requirement
|
@@ -104,7 +104,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
104
104
|
- !ruby/object:Gem::Version
|
105
105
|
version: '0'
|
106
106
|
requirements: []
|
107
|
-
rubygems_version: 3.
|
107
|
+
rubygems_version: 3.5.16
|
108
108
|
signing_key:
|
109
109
|
specification_version: 4
|
110
110
|
summary: Jekyll tags pre and noselect, for HTML <pre/> tag, prompts and unselectable
|