Script 'mail_helper' called by obssrc
Hello community,

here is the log from the commit of package rubygem-kramdown for 
openSUSE:Factory checked in at 2022-05-02 16:24:43
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/rubygem-kramdown (Old)
 and      /work/SRC/openSUSE:Factory/.rubygem-kramdown.new.1538 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "rubygem-kramdown"

Mon May  2 16:24:43 2022 rev:17 rq:974052 version:2.4.0

Changes:
--------
--- /work/SRC/openSUSE:Factory/rubygem-kramdown/rubygem-kramdown.changes        
2021-04-18 21:45:39.836778006 +0200
+++ 
/work/SRC/openSUSE:Factory/.rubygem-kramdown.new.1538/rubygem-kramdown.changes  
    2022-05-02 16:24:46.760785486 +0200
@@ -1,0 +2,6 @@
+Thu Apr 28 05:34:21 UTC 2022 - Stephan Kulow <[email protected]>
+
+updated to version 2.4.0
+  no changelog found
+
+-------------------------------------------------------------------

Old:
----
  kramdown-2.3.1.gem

New:
----
  kramdown-2.4.0.gem

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Other differences:
------------------
++++++ rubygem-kramdown.spec ++++++
--- /var/tmp/diff_new_pack.mf4bGx/_old  2022-05-02 16:24:48.344787247 +0200
+++ /var/tmp/diff_new_pack.mf4bGx/_new  2022-05-02 16:24:48.352787256 +0200
@@ -1,7 +1,7 @@
 #
 # spec file for package rubygem-kramdown
 #
-# Copyright (c) 2021 SUSE LLC
+# Copyright (c) 2022 SUSE LLC
 #
 # All modifications and additions to the file contributed by third parties
 # remain the property of their copyright owners, unless otherwise agreed
@@ -24,7 +24,7 @@
 #
 
 Name:           rubygem-kramdown
-Version:        2.3.1
+Version:        2.4.0
 Release:        0
 %define mod_name kramdown
 %define mod_full_name %{mod_name}-%{version}
@@ -52,6 +52,7 @@
 
 %install
 %gem_install \
+  --no-rdoc --no-ri \
   --symlink-binaries \
   --doc-files="COPYING README.md" \
   -f

++++++ kramdown-2.3.1.gem -> kramdown-2.4.0.gem ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/CONTRIBUTERS new/CONTRIBUTERS
--- old/CONTRIBUTERS    2021-03-18 00:51:22.000000000 +0100
+++ new/CONTRIBUTERS    2022-04-25 15:00:33.000000000 +0200
@@ -1,6 +1,6 @@
   Count Name
 ======= ====
-    944 Thomas Leitner <[email protected]>
+    964 Thomas Leitner <[email protected]>
      18 Ashwin Maroli <[email protected]>
       7 Christian Cornelssen <[email protected]>
       6 Gioele Barabucci <[email protected]>
@@ -11,6 +11,7 @@
       4 Arne Brasseur <[email protected]>
       3 Henning Perl <[email protected]>
       3 gettalong <[email protected]>
+      3 Carsten Bormann <[email protected]>
       3 Brandur <[email protected]>
       3 Ben Armston <[email protected]>
       3 Ashwin Maroli <[email protected]>
@@ -28,12 +29,15 @@
       1 Trevor Wennblom <[email protected]>
       1 tomykaira <[email protected]>
       1 tom93 <[email protected]>
+      1 Tobin Yehle <[email protected]>
+      1 timcraft <[email protected]>
       1 Tim Blair <[email protected]>
       1 Tim Besard <[email protected]>
       1 Tim Bates <[email protected]>
       1 Sun Yaozhu <[email protected]>
       1 Stephen <[email protected]>
       1 Stephen Crosby <[email protected]>
+      1 Stan Hu <[email protected]>
       1 Simon Lydell <[email protected]>
       1 Simon Coffey <[email protected]>
       1 Shusaku NAKAZATO <[email protected]>
@@ -65,11 +69,13 @@
       1 Fangyi Zhou <[email protected]>
       1 Diego Galeota <[email protected]>
       1 David Rodr??guez <[email protected]>
+      1 Daniel Bair <[email protected]>
       1 Damien Pollet <[email protected]>
       1 Christopher Jefferson <[email protected]>
       1 C??dric Boutillier <[email protected]>
       1 Bob Lail <[email protected]>
       1 Ashe Connor <[email protected]>
+      1 aschmitz <[email protected]>
       1 Antoine Cotten <[email protected]>
       1 Andrew <[email protected]>
       1 Alpha Chen <[email protected]>
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/VERSION new/VERSION
--- old/VERSION 2021-03-18 00:51:22.000000000 +0100
+++ new/VERSION 2022-04-25 15:00:33.000000000 +0200
@@ -1 +1 @@
-2.3.0
+2.4.0
Binary files old/checksums.yaml.gz and new/checksums.yaml.gz differ
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/lib/kramdown/converter/html.rb 
new/lib/kramdown/converter/html.rb
--- old/lib/kramdown/converter/html.rb  2021-03-18 00:51:22.000000000 +0100
+++ new/lib/kramdown/converter/html.rb  2022-04-25 15:00:33.000000000 +0200
@@ -283,7 +283,7 @@
         hl_opts = {}
         result = highlight_code(el.value, lang, :span, hl_opts)
         if result
-          add_syntax_highlighter_to_class_attr(attr, hl_opts[:default_lang])
+          add_syntax_highlighter_to_class_attr(attr, lang || 
hl_opts[:default_lang])
         else
           result = escape_html(el.value)
         end
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/lib/kramdown/converter/kramdown.rb 
new/lib/kramdown/converter/kramdown.rb
--- old/lib/kramdown/converter/kramdown.rb      2021-03-18 00:51:22.000000000 
+0100
+++ new/lib/kramdown/converter/kramdown.rb      2022-04-25 15:00:33.000000000 
+0200
@@ -27,6 +27,8 @@
         @footnotes = []
         @abbrevs = []
         @stack = []
+        @list_indent = @options[:list_indent]
+        @list_spacing = ' ' * (@list_indent - 2)
       end
 
       def convert(el, opts = {indent: 0})
@@ -77,7 +79,9 @@
         else
           el.value.gsub(/\A\n/) do
             opts[:prev] && opts[:prev].type == :br ? '' : "\n"
-          end.gsub(/\s+/, ' ').gsub(ESCAPED_CHAR_RE) { "\\#{$1 || $2}" }
+          end.gsub(/\s+/, ' ').gsub(ESCAPED_CHAR_RE) do
+            $1 || !opts[:prev] || opts[:prev].type == :br ? "\\#{$1 || $2}" : 
$&
+          end
         end
       end
 
@@ -87,6 +91,7 @@
         first&.gsub!(/^(?:(#|>)|(\d+)\.|([+-]\s))/) { $1 || $3 ? "\\#{$1 || 
$3}" : "#{$2}\\." }
         second&.gsub!(/^([=-]+\s*?)$/, "\\\1")
         res = [first, second, *rest].compact.join("\n") + "\n"
+        res.gsub!(/^[ ]{0,3}:/, "\\:")
         if el.children.length == 1 && el.children.first.type == :math
           res = "\\#{res}"
         elsif res.start_with?('\$$') && res.end_with?("\\$$\n")
@@ -124,7 +129,7 @@
 
       def convert_li(el, opts)
         sym, width = if @stack.last.type == :ul
-                       [+'* ', el.children.first && el.children.first.type == 
:codeblock ? 4 : 2]
+                       ['* ' + @list_spacing, el.children.first && 
el.children.first.type == :codeblock ? 4 : @list_indent]
                      else
                        ["#{opts[:index] + 1}.".ljust(4), 4]
                      end
@@ -151,7 +156,7 @@
       end
 
       def convert_dd(el, opts)
-        sym, width = +": ", (el.children.first && el.children.first.type == 
:codeblock ? 4 : 2)
+        sym, width = ": " + @list_spacing, (el.children.first && 
el.children.first.type == :codeblock ? 4 : @list_indent)
         if (ial = ial_for_element(el))
           sym << ial << " "
         end
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/lib/kramdown/options.rb new/lib/kramdown/options.rb
--- old/lib/kramdown/options.rb 2021-03-18 00:51:22.000000000 +0100
+++ new/lib/kramdown/options.rb 2022-04-25 15:00:33.000000000 +0200
@@ -596,13 +596,22 @@
     define(:forbidden_inline_options, Object, %w[template], <<~EOF) do |val|
       Defines the options that may not be set using the {::options} extension
 
-      Default: template
+      The value needs to be an array of option names.
+
+      Default: [template]
       Used by: HTML converter
     EOF
       val.map! {|item| item.kind_of?(String) ? str_to_sym(item) : item }
       simple_array_validator(val, :forbidden_inline_options)
     end
 
+    define(:list_indent, Integer, 2, <<~EOF)
+      Sets the number of spaces to use for list indentation
+
+      Default: 2
+      Used by: Kramdown converter
+    EOF
+
   end
 
 end
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/lib/kramdown/parser/html.rb 
new/lib/kramdown/parser/html.rb
--- old/lib/kramdown/parser/html.rb     2021-03-18 00:51:22.000000000 +0100
+++ new/lib/kramdown/parser/html.rb     2022-04-25 15:00:33.000000000 +0200
@@ -240,7 +240,14 @@
             return
           when :html_element
           when :root
-            el.children.each {|c| process(c) }
+            el.children.map! do |c|
+              if c.type == :text
+                process_text(c.value, !do_conversion)
+              else
+                process(c)
+                c
+              end
+            end.flatten!
             remove_whitespace_children(el)
             return
           else return
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/lib/kramdown/parser/kramdown/codespan.rb 
new/lib/kramdown/parser/kramdown/codespan.rb
--- old/lib/kramdown/parser/kramdown/codespan.rb        2021-03-18 
00:51:22.000000000 +0100
+++ new/lib/kramdown/parser/kramdown/codespan.rb        2022-04-25 
15:00:33.000000000 +0200
@@ -41,7 +41,11 @@
             text = text[1..-1] if text[0..0] == ' '
             text = text[0..-2] if text[-1..-1] == ' '
           end
-          @tree.children << Element.new(:codespan, text, nil, location: 
start_line_number)
+          @tree.children << Element.new(:codespan, text, nil, {
+                                          codespan_delimiter: result,
+                                          location: start_line_number
+                                        })
+
         else
           @src.revert_pos(saved_pos)
           add_text(result)
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/lib/kramdown/parser/kramdown/list.rb 
new/lib/kramdown/parser/kramdown/list.rb
--- old/lib/kramdown/parser/kramdown/list.rb    2021-03-18 00:51:22.000000000 
+0100
+++ new/lib/kramdown/parser/kramdown/list.rb    2022-04-25 15:00:33.000000000 
+0200
@@ -69,6 +69,7 @@
             eob_found = true
             break
           elsif @src.scan(list_start_re)
+            list.options[:first_list_marker] ||= @src[1].strip
             item = Element.new(:li, nil, nil, location: start_line_number)
             item.value, indentation, content_re, lazy_re, indent_re =
               parse_first_list_line(@src[1].length, @src[2])
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/lib/kramdown/version.rb new/lib/kramdown/version.rb
--- old/lib/kramdown/version.rb 2021-03-18 00:51:22.000000000 +0100
+++ new/lib/kramdown/version.rb 2022-04-25 15:00:33.000000000 +0200
@@ -10,6 +10,6 @@
 module Kramdown
 
   # The kramdown version.
-  VERSION = '2.3.1'
+  VERSION = '2.4.0'
 
 end
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/man/man1/kramdown.1 new/man/man1/kramdown.1
--- old/man/man1/kramdown.1     2021-03-18 00:51:22.000000000 +0100
+++ new/man/man1/kramdown.1     2022-04-25 15:00:33.000000000 +0200
@@ -122,7 +122,9 @@
 Defines the options that may not be set using the {::options} extension
 .RS
 .P
-Default: template Used by: HTML converter
+The value needs to be an array of option names\.
+.P
+Default: [template] Used by: HTML converter
 .RE
 .TP
 \fB\-\-header\-offset\fP \fIARG\fP
@@ -172,6 +174,13 @@
 Default: {} Used by: kramdown parser
 .RE
 .TP
+\fB\-\-list\-indent\fP \fIARG\fP
+Sets the number of spaces to use for list indentation
+.RS
+.P
+Default: 2 Used by: Kramdown converter
+.RE
+.TP
 \fB\-\-math\-engine\fP \fIARG\fP
 Set the math engine
 .RS
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/metadata new/metadata
--- old/metadata        2021-03-18 00:51:22.000000000 +0100
+++ new/metadata        2022-04-25 15:00:33.000000000 +0200
@@ -1,14 +1,14 @@
 --- !ruby/object:Gem::Specification
 name: kramdown
 version: !ruby/object:Gem::Version
-  version: 2.3.1
+  version: 2.4.0
 platform: ruby
 authors:
 - Thomas Leitner
 autorequire: 
 bindir: bin
 cert_chain: []
-date: 2021-03-17 00:00:00.000000000 Z
+date: 2022-04-25 00:00:00.000000000 Z
 dependencies:
 - !ruby/object:Gem::Dependency
   name: rexml
@@ -170,6 +170,8 @@
 - test/testcases/block/03_paragraph/one_para.text
 - test/testcases/block/03_paragraph/standalone_image.html
 - test/testcases/block/03_paragraph/standalone_image.text
+- test/testcases/block/03_paragraph/to_kramdown.kramdown
+- test/testcases/block/03_paragraph/to_kramdown.text
 - test/testcases/block/03_paragraph/two_para.html
 - test/testcases/block/03_paragraph/two_para.text
 - test/testcases/block/03_paragraph/with_html_to_native.html
@@ -661,7 +663,7 @@
     - !ruby/object:Gem::Version
       version: '0'
 requirements: []
-rubygems_version: 3.0.3
+rubygems_version: 3.2.32
 signing_key: 
 specification_version: 4
 summary: kramdown is a fast, pure-Ruby Markdown-superset converter.
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/test/test_files.rb new/test/test_files.rb
--- old/test/test_files.rb      2021-03-18 00:51:22.000000000 +0100
+++ new/test/test_files.rb      2022-04-25 15:00:33.000000000 +0200
@@ -197,6 +197,9 @@
         kdtext = Kramdown::Document.new(File.read(text_file), 
options).to_kramdown
         html = Kramdown::Document.new(kdtext, options).to_html
         assert_equal(tidy_output(File.read(html_file)), tidy_output(html))
+        kdtext4 = Kramdown::Document.new(File.read(text_file), 
options.merge({list_indent: 4})).to_kramdown
+        html = Kramdown::Document.new(kdtext4, options).to_html
+        assert_equal(tidy_output(File.read(html_file)), tidy_output(html))
       end
     end
   end
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' 
old/test/testcases/block/03_paragraph/to_kramdown.kramdown 
new/test/testcases/block/03_paragraph/to_kramdown.kramdown
--- old/test/testcases/block/03_paragraph/to_kramdown.kramdown  1970-01-01 
01:00:00.000000000 +0100
+++ new/test/testcases/block/03_paragraph/to_kramdown.kramdown  2022-04-25 
15:00:33.000000000 +0200
@@ -0,0 +1,7 @@
+aa aaaa aaaa aaaa aaaa aaaa aaaa aaaa aaaa aaaa aaaa aaaa aaaa aaaa aaaa
+\: No definiion list
+
+a:
+
+*a*:
+
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/test/testcases/block/03_paragraph/to_kramdown.text 
new/test/testcases/block/03_paragraph/to_kramdown.text
--- old/test/testcases/block/03_paragraph/to_kramdown.text      1970-01-01 
01:00:00.000000000 +0100
+++ new/test/testcases/block/03_paragraph/to_kramdown.text      2022-04-25 
15:00:33.000000000 +0200
@@ -0,0 +1,5 @@
+aa aaaa aaaa aaaa aaaa aaaa aaaa aaaa aaaa aaaa aaaa aaaa aaaa aaaa aaaa : No 
definiion list
+
+a:
+
+*a*:
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/test/testcases/man/example.man 
new/test/testcases/man/example.man
--- old/test/testcases/man/example.man  2021-03-18 00:51:22.000000000 +0100
+++ new/test/testcases/man/example.man  2022-04-25 15:00:33.000000000 +0200
@@ -114,7 +114,7 @@
 .P
 Abbreviations like MD can be used but the abbreviation title is ignored\.
 .P
-Math elements work \fB\el = 5\fP inline and in block form:
+Math elements work \fB\elambda = 5\fP inline and in block form:
 .sp
 .RS 4
 .EX
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/test/testcases/man/example.text 
new/test/testcases/man/example.text
--- old/test/testcases/man/example.text 2021-03-18 00:51:22.000000000 +0100
+++ new/test/testcases/man/example.text 2022-04-25 15:00:33.000000000 +0200
@@ -80,6 +80,6 @@
 
 *[MD]: Markdown
 
-Math elements work $$\l = 5$$ inline and in block form:
+Math elements work $$\lambda = 5$$ inline and in block form:
 
 $$\lambda_5 = \alpha + 4$$

Reply via email to