jekyll_pre 1.4.3 → 1.4.5

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: c9c89dfed1bd63dfb97f8eea204a543d7ea06af6dca9f8b627b2bcf51ad0e65d
4
- data.tar.gz: e81ee9721c99b5391d401c6a19fbbd2bca8371225b9cc2bf82ff3bfbcc4ab274
3
+ metadata.gz: a623ca19286effb28908ae20f172fadf4e219d6a63a4e1395eab91a9fab5fa29
4
+ data.tar.gz: 5c10731d8f6c5c5d6cd51006b4e845789e99baedb34b33cd9676481b7ae59f04
5
5
  SHA512:
6
- metadata.gz: 79af8ae474c13a9ad92436e1c916f4b21269b2944fc41725f59976ca543da264ebe8fd669cfe9de119c7f882d138b860006dc70c328c7ad6a58c16c700987a53
7
- data.tar.gz: 004b17970a50fbe7c9df57d47b38456b36d5786d831db067dba9be7d219fac72823768a63247013beffb02ba9c9a24faa2379323dcdb6e8d1fb08dd99e4c628b
6
+ metadata.gz: 02ead3008e59ef610d6a9dd858d8d5e18a02db66e565ebb13da7a1fd3ac5302e86c2d111e19699d9fa06d9b1ae630463849d229b667bb9c72d5615746bf398cd
7
+ data.tar.gz: d15211befa56cea7ecbf23953865f6cf4edf654c5cb088cc788130990f02b522cb9c39245689bd76b0666b4b5c2e3da5b43242724681d9914726a7eb36953e66
data/CHANGELOG.md CHANGED
@@ -1,5 +1,15 @@
1
1
  # Change Log
2
2
 
3
+ ## 1.4.5
4
+
5
+ * Restored implicit labels
6
+
7
+
8
+ ## 1.4.4
9
+
10
+ * Fixed the empty response problem introduced by v1.4.3.
11
+
12
+
3
13
  ## 1.4.3
4
14
 
5
15
  * Added the `no_stderr` option, which discards any STDERR output.
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.7.0'
36
+ spec.add_dependency 'jekyll_plugin_support', '>= 0.8.0'
37
37
  spec.add_dependency 'rack'
38
38
  end
data/lib/exec_tag.rb CHANGED
@@ -113,7 +113,6 @@ module JekyllPreModule
113
113
  " from executing '#{@original_command}' on line #{@line_number} (after front matter) of #{@page['path']}"
114
114
  raise PreError, msg.red, [] if @die_if_error
115
115
  ensure
116
- @child_status = $CHILD_STATUS
117
116
  stdout_str
118
117
  end
119
118
 
@@ -1,3 +1,3 @@
1
1
  module JekyllPreVersion
2
- VERSION = '1.4.3'.freeze
2
+ VERSION = '1.4.5'.freeze
3
3
  end
data/lib/pre_tag_block.rb CHANGED
@@ -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
- @label ||= @helper.argv.join(' ')
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
 
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.3
4
+ version: 1.4.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Mike Slinn
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2023-12-01 00:00:00.000000000 Z
11
+ date: 2024-01-04 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.7.0
33
+ version: 0.8.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.7.0
40
+ version: 0.8.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.3.7
107
+ rubygems_version: 3.4.22
108
108
  signing_key:
109
109
  specification_version: 4
110
110
  summary: Jekyll tags pre and noselect, for HTML <pre/> tag, prompts and unselectable