jekyll_pre 1.4.5 → 1.4.6

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: a623ca19286effb28908ae20f172fadf4e219d6a63a4e1395eab91a9fab5fa29
4
- data.tar.gz: 5c10731d8f6c5c5d6cd51006b4e845789e99baedb34b33cd9676481b7ae59f04
3
+ metadata.gz: 5b84c77d011c319901f75350aab6ecfcad105dcaa3068b478911150d6fccc4b4
4
+ data.tar.gz: 6d6a2852fb621a33bb09b3ca9084be581b543f9022213728fbba5396f6864b67
5
5
  SHA512:
6
- metadata.gz: 02ead3008e59ef610d6a9dd858d8d5e18a02db66e565ebb13da7a1fd3ac5302e86c2d111e19699d9fa06d9b1ae630463849d229b667bb9c72d5615746bf398cd
7
- data.tar.gz: d15211befa56cea7ecbf23953865f6cf4edf654c5cb088cc788130990f02b522cb9c39245689bd76b0666b4b5c2e3da5b43242724681d9914726a7eb36953e66
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/RequiredRubyVersion:
19
+ Gemspec/RequireMFA:
19
20
  Enabled: false
20
21
 
21
- Gemspec/RequireMFA:
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: 35
33
+ Max: 55
33
34
 
34
35
  Metrics/BlockLength:
35
36
  Exclude:
36
- - jekyll_pre.gemspec
37
+ - jekyll_plugin_support.gemspec
37
38
  Max: 30
38
39
 
39
40
  Metrics/CyclomaticComplexity:
40
- Max: 15
41
+ Max: 25
41
42
 
42
43
  Metrics/MethodLength:
43
- Max: 30
44
+ Max: 50
44
45
 
45
46
  Metrics/PerceivedComplexity:
46
- Max: 15
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
@@ -1,5 +1,10 @@
1
1
  # Change Log
2
2
 
3
+ ## 1.4.6
4
+
5
+ * Made compatible with `jekyll_plugin_support` v1.0.0
6
+
7
+
3
8
  ## 1.4.5
4
9
 
5
10
  * Restored implicit labels
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.8.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
@@ -1,3 +1,3 @@
1
1
  module JekyllPreVersion
2
- VERSION = '1.4.5'.freeze
2
+ VERSION = '1.4.6'.freeze
3
3
  end
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="
@@ -114,6 +114,6 @@ module JekyllPreModule
114
114
  END_OUTPUT
115
115
  end
116
116
 
117
- JekyllPluginHelper.register(self, 'pre')
117
+ ::JekyllSupport::JekyllPluginHelper.register(self, 'pre')
118
118
  end
119
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.5
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: 2024-01-04 00:00:00.000000000 Z
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.8.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.8.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.4.22
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