zenweb 3.10.7 → 3.10.8

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: 01e3cb1c4a6f9989e24beda9df68db5371f2080146b9b25b01a95af133f61e77
4
- data.tar.gz: 0ad4b847828bbc507ee26cc30d68abf9df3899a2df582840a47d3096a5eab788
3
+ metadata.gz: 448821783e1068f92a0284e93d3072d8501cf21cc0ab94da3f6fc63d251de7d0
4
+ data.tar.gz: 314bda2c7bc1882f01e5c7b5ff37da023dc46bfd7e0b73de67e605f7260e20f0
5
5
  SHA512:
6
- metadata.gz: 3ea4ac607e3341abfb5120abe57cd3614671b8c2659feddad45c621aac669300737864b6b4418e6966d3dbd53bd830862f622fa498a61cefe4096c8244bb882b
7
- data.tar.gz: c5765b977e8798763cd16a9f3cf0cba8bf19c5fd9bb8804899191e8f5170db8fee001a3152538fc9e700df48461636ab8651d911bf416721841d7b33feef68c3
6
+ metadata.gz: d4753d177c0ab4b46a58e929f57e1d1c26fcda263c24aa7cc2d0b7875b2b13a2103903664af997a2c15b8903ce7d2d74dc9a13838947338c7ef4d5e45f4602de
7
+ data.tar.gz: 0d59fdbee4361cce03ef42aac407a39dd25ee2a4a025964de78ab50b5b68ef070d2a54c1b8ef95d0b03d0c07785606978f19367cbd8beeba3c046c17990c3c84
checksums.yaml.gz.sig CHANGED
Binary file
data/History.rdoc CHANGED
@@ -1,3 +1,9 @@
1
+ === 3.10.8 / 2023-08-30
2
+
3
+ * 1 bug fix:
4
+
5
+ * Fixed configuration of no_line_numbers for kramdown v2 changes
6
+
1
7
  === 3.10.7 / 2023-07-25
2
8
 
3
9
  * 1 minor enhancement:
@@ -40,7 +40,10 @@ class Zenweb::Page
40
40
  require "coderay/zenweb_extensions"
41
41
 
42
42
  config = KRAMDOWN_CONFIG.dup
43
- config[:coderay_line_numbers] = nil if no_line_numbers
43
+ if no_line_numbers then
44
+ config[:syntax_highlighter_opts] = config[:syntax_highlighter_opts].dup
45
+ config[:syntax_highlighter_opts][:line_numbers] = nil
46
+ end
44
47
 
45
48
  Kramdown::Document.new(content, config).to_html
46
49
  end
data/lib/zenweb.rb CHANGED
@@ -6,7 +6,7 @@ require "time"
6
6
 
7
7
  module Zenweb
8
8
  # duh
9
- VERSION = "3.10.7"
9
+ VERSION = "3.10.8"
10
10
  end
11
11
 
12
12
  require "zenweb/site"
@@ -18,8 +18,8 @@ class MarkdownTest < Minitest::Test
18
18
  end
19
19
 
20
20
  class TestUgh < MarkdownTest
21
- def assert_markdown_code lang, line, *exps
22
- act = page.markdown "``` #{lang}\n#{line}\n```"
21
+ def assert_markdown_code lang, line, *exps, no_lineno: false
22
+ act = page.markdown "``` #{lang}\n#{line}\n```", no_lineno
23
23
 
24
24
  exps.each do |exp|
25
25
  assert_includes act, exp, act
@@ -33,6 +33,14 @@ class TestUgh < MarkdownTest
33
33
  '<span class="keyword">def</span>')
34
34
  end
35
35
 
36
+ def test_coderay_ruby__no_line_numbers
37
+ assert_markdown_code("ruby",
38
+ "def x\n 42\nend",
39
+ '<div class="language-ruby highlighter-coderay"><div class="CodeRay">',
40
+ '<span class="keyword">def</span>',
41
+ no_lineno: true)
42
+ end
43
+
36
44
  def test_coderay_clojure
37
45
  assert_markdown_code("clojure",
38
46
  "(+ 1 1)",
data.tar.gz.sig CHANGED
Binary file
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: zenweb
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.10.7
4
+ version: 3.10.8
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ryan Davis
@@ -29,7 +29,7 @@ cert_chain:
29
29
  ROfWo9Uyp8ba/j9eVG14KkYRaLydAY1MNQk2yd3R5CGfeOpD1kttxjoypoUJ2dOG
30
30
  nsNBRuQJ1UfiCG97a6DNm+Fr
31
31
  -----END CERTIFICATE-----
32
- date: 2023-07-25 00:00:00.000000000 Z
32
+ date: 2023-08-30 00:00:00.000000000 Z
33
33
  dependencies:
34
34
  - !ruby/object:Gem::Dependency
35
35
  name: rake
metadata.gz.sig CHANGED
@@ -1 +1 @@
1
- �ߏ�i ��W�)��Y6q˟��ۦ3*��Ë�� ��A9*��-����A6�-���1��7H5��_����ƈ��_5b����$�)���6J���K
1
+ W��F\:�:Nڌ�=(:�� AKi�^*��=��A zr���^�ӧK[2����I��