Script 'mail_helper' called by obssrc
Hello community,

here is the log from the commit of package rubygem-tilt for openSUSE:Factory 
checked in at 2022-08-09 15:26:56
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/rubygem-tilt (Old)
 and      /work/SRC/openSUSE:Factory/.rubygem-tilt.new.1521 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "rubygem-tilt"

Tue Aug  9 15:26:56 2022 rev:21 rq:993525 version:2.0.11

Changes:
--------
--- /work/SRC/openSUSE:Factory/rubygem-tilt/rubygem-tilt.changes        
2019-11-13 13:25:30.039521019 +0100
+++ /work/SRC/openSUSE:Factory/.rubygem-tilt.new.1521/rubygem-tilt.changes      
2022-08-09 15:27:13.209431083 +0200
@@ -1,0 +2,6 @@
+Thu Aug  4 13:32:11 UTC 2022 - Stephan Kulow <[email protected]>
+
+updated to version 2.0.11
+  no changelog found
+
+-------------------------------------------------------------------

Old:
----
  tilt-2.0.10.gem

New:
----
  tilt-2.0.11.gem

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

Other differences:
------------------
++++++ rubygem-tilt.spec ++++++
--- /var/tmp/diff_new_pack.nSrykY/_old  2022-08-09 15:27:13.753432637 +0200
+++ /var/tmp/diff_new_pack.nSrykY/_new  2022-08-09 15:27:13.757432649 +0200
@@ -1,7 +1,7 @@
 #
 # spec file for package rubygem-tilt
 #
-# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany.
+# 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-tilt
-Version:        2.0.10
+Version:        2.0.11
 Release:        0
 %define mod_name tilt
 %define mod_full_name %{mod_name}-%{version}
@@ -34,7 +34,7 @@
 BuildRequires:  %{ruby}
 BuildRequires:  ruby-macros >= 5
 BuildRequires:  update-alternatives
-Url:            http://github.com/rtomayko/tilt/
+URL:            https://github.com/rtomayko/tilt/
 Source:         https://rubygems.org/gems/%{mod_full_name}.gem
 Source1:        gem2rpm.yml
 Summary:        Generic interface to multiple Ruby template engines

++++++ tilt-2.0.10.gem -> tilt-2.0.11.gem ++++++
Binary files old/checksums.yaml.gz and new/checksums.yaml.gz differ
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/lib/tilt/commonmarker.rb new/lib/tilt/commonmarker.rb
--- old/lib/tilt/commonmarker.rb        2019-09-23 20:34:22.000000000 +0200
+++ new/lib/tilt/commonmarker.rb        2022-07-22 21:14:59.000000000 +0200
@@ -9,21 +9,31 @@
       :smartypants => :SMART
     }
     PARSE_OPTIONS = [
+      :FOOTNOTES,
+      :LIBERAL_HTML_TAG,
       :SMART,
       :smartypants,
+      :STRIKETHROUGH_DOUBLE_TILDE,
+      :UNSAFE,
+      :VALIDATE_UTF8,
     ].freeze
     RENDER_OPTIONS = [
+      :FOOTNOTES,
+      :FULL_INFO_STRING,
       :GITHUB_PRE_LANG,
       :HARDBREAKS,
       :NOBREAKS,
-      :SAFE,
+      :SAFE, # Removed in v0.18.0 (2018-10-17)
       :SOURCEPOS,
+      :TABLE_PREFER_STYLE_ATTRIBUTES,
+      :UNSAFE,
     ].freeze
     EXTENSIONS = [
       :autolink,
       :strikethrough,
       :table,
       :tagfilter,
+      :tasklist,
     ].freeze
 
     def extensions
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/lib/tilt/csv.rb new/lib/tilt/csv.rb
--- old/lib/tilt/csv.rb 2019-09-23 20:34:22.000000000 +0200
+++ new/lib/tilt/csv.rb 2022-07-22 21:14:59.000000000 +0200
@@ -50,7 +50,7 @@
 
     def precompiled_template(locals)
       <<-RUBY
-        #{@outvar} = #{self.class.engine}.generate(#{options}) do |csv|
+        #{@outvar} = #{self.class.engine}.generate(**#{options}) do |csv|
           #{data}
         end
       RUBY
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/lib/tilt/pandoc.rb new/lib/tilt/pandoc.rb
--- old/lib/tilt/pandoc.rb      2019-09-23 20:34:22.000000000 +0200
+++ new/lib/tilt/pandoc.rb      2022-07-22 21:14:59.000000000 +0200
@@ -7,30 +7,38 @@
   class PandocTemplate < Template
     self.default_mime_type = 'text/html'
 
-    def tilt_to_pandoc_mapping
-      { :smartypants => :smart,
-        :escape_html => { :f => 'markdown-raw_html' },
-        :commonmark => { :f => 'commonmark' },
-        :markdown_strict => { :f => 'markdown_strict' }
-      }
-    end
-
     # turn options hash into an array
     # Map tilt options to pandoc options
     # Replace hash keys with value true with symbol for key
     # Remove hash keys with value false
     # Leave other hash keys untouched
     def pandoc_options
-      options.reduce([]) do |sum, (k,v)|
-        case v
-        when true
-          sum << (tilt_to_pandoc_mapping[k] || k)
-        when false
-          sum
+      result = []
+      from = "markdown"
+      smart_extension = "-smart"
+      options.each do |k,v|
+        case k
+        when :smartypants
+          smart_extension = "+smart" if v
+        when :escape_html
+          from = "markdown-raw_html" if v
+        when :commonmark
+          from = "commonmark" if v
+        when :markdown_strict
+          from = "markdown_strict" if v
         else
-          sum << { k => v }
+          case v
+          when true
+            result << k
+          when false
+            # do nothing
+          else
+            result << { k => v }
+          end
         end
       end
+      result << { :f => from + smart_extension }
+      result
     end
 
     def prepare
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/lib/tilt/redcarpet.rb new/lib/tilt/redcarpet.rb
--- old/lib/tilt/redcarpet.rb   2019-09-23 20:34:22.000000000 +0200
+++ new/lib/tilt/redcarpet.rb   2022-07-22 21:14:59.000000000 +0200
@@ -75,9 +75,12 @@
   end
 
   if defined? ::Redcarpet::Render and defined? ::Redcarpet::Markdown
-    RedcarpetTemplate = Redcarpet2Template
+    superclass = Redcarpet2Template
   else
-    RedcarpetTemplate = Redcarpet1Template
+    superclass = Redcarpet1Template
+  end
+
+  class RedcarpetTemplate < superclass
   end
 end
 
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/lib/tilt/rst-pandoc.rb new/lib/tilt/rst-pandoc.rb
--- old/lib/tilt/rst-pandoc.rb  2019-09-23 20:34:22.000000000 +0200
+++ new/lib/tilt/rst-pandoc.rb  2022-07-22 21:14:59.000000000 +0200
@@ -1,18 +1,23 @@
 require 'tilt/template'
-require 'tilt/pandoc'
+require 'pandoc'
 
 module Tilt
   # Pandoc reStructuredText implementation. See:
   # http://pandoc.org/
-  # Use PandocTemplate and specify input format
   class RstPandocTemplate < PandocTemplate
-    def tilt_to_pandoc_mapping
-      { :smartypants => :smart }
+    self.default_mime_type = 'text/html'
+
+    def prepare
+      @engine = PandocRuby.new(data, :f => "rst")
+      @output = nil
+    end
+
+    def evaluate(scope, locals, &block)
+      @output ||= @engine.to_html.strip
     end
 
-    def pandoc_options
-      options.merge!(f: 'rst')
-      super
+    def allows_script?
+      false
     end
   end
 end
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/lib/tilt/sass.rb new/lib/tilt/sass.rb
--- old/lib/tilt/sass.rb        2019-09-23 20:34:22.000000000 +0200
+++ new/lib/tilt/sass.rb        2022-07-22 21:14:59.000000000 +0200
@@ -9,23 +9,35 @@
     self.default_mime_type = 'text/css'
 
     begin
-      require 'sassc'
-      Sass = ::SassC
+      require 'sass-embedded'
+      require 'uri'
+      Engine = nil
     rescue LoadError => err
       begin
-        require 'sass'
-        Sass = ::Sass
+        require 'sassc'
+        Engine = ::SassC::Engine
       rescue LoadError
-        raise err
+        begin
+          require 'sass'
+          Engine = ::Sass::Engine
+        rescue LoadError
+          raise err
+        end
       end
     end
 
     def prepare
-      @engine = Sass::Engine.new(data, sass_options)
+      @engine = unless Engine.nil?
+                  Engine.new(data, sass_options)
+                end
     end
 
     def evaluate(scope, locals, &block)
-      @output ||= @engine.render
+      @output ||= if @engine.nil?
+                    ::Sass.compile_string(data, **sass_embedded_options).css
+                  else
+                    @engine.render
+                  end
     end
 
     def allows_script?
@@ -33,6 +45,16 @@
     end
 
   private
+    def eval_file_url
+      path = File.absolute_path(eval_file)
+      path = '/' + path unless path.start_with?('/')
+      ::URI::File.build([nil, ::URI::DEFAULT_PARSER.escape(path)]).to_s
+    end
+
+    def sass_embedded_options
+      options.merge(:url => eval_file_url, :syntax => :indented)
+    end
+
     def sass_options
       options.merge(:filename => eval_file, :line => line, :syntax => :sass)
     end
@@ -43,6 +65,10 @@
     self.default_mime_type = 'text/css'
 
   private
+    def sass_embedded_options
+      options.merge(:url => eval_file_url, :syntax => :scss)
+    end
+
     def sass_options
       options.merge(:filename => eval_file, :line => line, :syntax => :scss)
     end
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/lib/tilt/template.rb new/lib/tilt/template.rb
--- old/lib/tilt/template.rb    2019-09-23 20:34:22.000000000 +0200
+++ new/lib/tilt/template.rb    2022-07-22 21:14:59.000000000 +0200
@@ -157,6 +157,8 @@
       raise NotImplementedError
     end
 
+    CLASS_METHOD = Kernel.instance_method(:class)
+
     # Execute the compiled template and return the result string. Template
     # evaluation is guaranteed to be performed in the scope object with the
     # locals specified and with support for yielding to the block.
@@ -166,7 +168,16 @@
     def evaluate(scope, locals, &block)
       locals_keys = locals.keys
       locals_keys.sort!{|x, y| x.to_s <=> y.to_s}
-      method = compiled_method(locals_keys, scope.is_a?(Module) ? scope : 
scope.class)
+      case scope
+      when Object
+        method = compiled_method(locals_keys, Module === scope ? scope : 
scope.class)
+      else
+        if RUBY_VERSION >= '2'
+          method = compiled_method(locals_keys, CLASS_METHOD.bind(scope).call)
+        else
+          method = compiled_method(locals_keys, Object)
+        end
+      end
       method.bind(scope).call(locals, &block)
     end
 
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/lib/tilt.rb new/lib/tilt.rb
--- old/lib/tilt.rb     2019-09-23 20:34:22.000000000 +0200
+++ new/lib/tilt.rb     2022-07-22 21:14:59.000000000 +0200
@@ -4,7 +4,7 @@
 # Namespace for Tilt. This module is not intended to be included anywhere.
 module Tilt
   # Current version.
-  VERSION = '2.0.10'
+  VERSION = '2.0.11'
 
   @default_mapping = Mapping.new
 
@@ -161,6 +161,7 @@
   register_lazy 'Slim::Template',            'slim',            'slim'
   register_lazy 'Tilt::HandlebarsTemplate',  'tilt/handlebars', 'handlebars', 
'hbs'
   register_lazy 'Tilt::OrgTemplate',         'org-ruby',        'org'
+  register_lazy 'Tilt::EmacsOrgTemplate',    'tilt/emacs_org',  'org'
   register_lazy 'Opal::Processor',           'opal',            'opal', 'rb'
   register_lazy 'Tilt::JbuilderTemplate',    'tilt/jbuilder',   'jbuilder'
 end
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/metadata new/metadata
--- old/metadata        2019-09-23 20:34:22.000000000 +0200
+++ new/metadata        2022-07-22 21:14:59.000000000 +0200
@@ -1,14 +1,14 @@
 --- !ruby/object:Gem::Specification
 name: tilt
 version: !ruby/object:Gem::Version
-  version: 2.0.10
+  version: 2.0.11
 platform: ruby
 authors:
 - Ryan Tomayko
-autorequire: 
+autorequire:
 bindir: bin
 cert_chain: []
-date: 2019-09-23 00:00:00.000000000 Z
+date: 2022-07-22 00:00:00.000000000 Z
 dependencies: []
 description: Generic interface to multiple Ruby template engines
 email: [email protected]
@@ -58,11 +58,11 @@
 - lib/tilt/typescript.rb
 - lib/tilt/wikicloth.rb
 - lib/tilt/yajl.rb
-homepage: http://github.com/rtomayko/tilt/
+homepage: https://github.com/rtomayko/tilt/
 licenses:
 - MIT
 metadata: {}
-post_install_message: 
+post_install_message:
 rdoc_options:
 - "--line-numbers"
 - "--inline-source"
@@ -83,9 +83,8 @@
     - !ruby/object:Gem::Version
       version: '0'
 requirements: []
-rubyforge_project: 
-rubygems_version: 2.6.11
-signing_key: 
+rubygems_version: 3.2.29
+signing_key:
 specification_version: 2
 summary: Generic interface to multiple Ruby template engines
 test_files: []

Reply via email to