jekyll_pre 1.4.4 → 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: e7d377e36ea0a56b8f739226880016398a4f777fb510c43bee01bd3010c7ddd3
4
- data.tar.gz: 9a3330b73d8f8c314ce9c363fe9f0acf1a3092de37c3a156b4ba0bc65a2e8d43
3
+ metadata.gz: a623ca19286effb28908ae20f172fadf4e219d6a63a4e1395eab91a9fab5fa29
4
+ data.tar.gz: 5c10731d8f6c5c5d6cd51006b4e845789e99baedb34b33cd9676481b7ae59f04
5
5
  SHA512:
6
- metadata.gz: cd099f9d1b63bfd5be501d998a7ed594cb9597a433d644dce96554b642079c94e944e28ebc99260bdf08ee0ee649593843063a14c9559b8a19f290242ffe6d95
7
- data.tar.gz: 8b5e35e564f47477a96a7bab9b69aee4477e3ab11e0977d062357df2691c5c6b03054a75d4f524387e364a2d0e5c7f1653db7b0b9653f71cbb76e1e23474eddb
6
+ metadata.gz: 02ead3008e59ef610d6a9dd858d8d5e18a02db66e565ebb13da7a1fd3ac5302e86c2d111e19699d9fa06d9b1ae630463849d229b667bb9c72d5615746bf398cd
7
+ data.tar.gz: d15211befa56cea7ecbf23953865f6cf4edf654c5cb088cc788130990f02b522cb9c39245689bd76b0666b4b5c2e3da5b43242724681d9914726a7eb36953e66
data/CHANGELOG.md CHANGED
@@ -1,5 +1,10 @@
1
1
  # Change Log
2
2
 
3
+ ## 1.4.5
4
+
5
+ * Restored implicit labels
6
+
7
+
3
8
  ## 1.4.4
4
9
 
5
10
  * Fixed the empty response problem introduced by v1.4.3.
@@ -1,3 +1,3 @@
1
1
  module JekyllPreVersion
2
- VERSION = '1.4.4'.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.4
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-07 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
@@ -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