commit rubygem-liquid for openSUSE:Factory
Script 'mail_helper' called by obssrc Hello community, here is the log from the commit of package rubygem-liquid for openSUSE:Factory checked in at 2022-09-26 18:48:09 Comparing /work/SRC/openSUSE:Factory/rubygem-liquid (Old) and /work/SRC/openSUSE:Factory/.rubygem-liquid.new.2275 (New) Package is "rubygem-liquid" Mon Sep 26 18:48:09 2022 rev:11 rq:1005990 version:5.4.0 Changes: --- /work/SRC/openSUSE:Factory/rubygem-liquid/rubygem-liquid.changes 2022-08-09 15:26:53.369374395 +0200 +++ /work/SRC/openSUSE:Factory/.rubygem-liquid.new.2275/rubygem-liquid.changes 2022-09-26 18:48:10.492050974 +0200 @@ -1,0 +2,5 @@ +Sat Sep 24 22:29:44 UTC 2022 - Marcus Rueckert + +- limit to ruby 2.7 and 3.1 on leap + +--- Other differences: -- ++ rubygem-liquid.spec ++ --- /var/tmp/diff_new_pack.rngR4p/_old 2022-09-26 18:48:10.892051730 +0200 +++ /var/tmp/diff_new_pack.rngR4p/_new 2022-09-26 18:48:10.896051738 +0200 @@ -28,6 +28,12 @@ Release:0 %define mod_name liquid %define mod_full_name %{mod_name}-%{version} +# MANUAL +%if 0%{suse_version} && 0%{suse_version} < 1550 +%define rb_build_versions ruby31 ruby27 +%define rb_build_ruby_abis ruby:3.1.0 ruby:2.7.0 +%endif +# /MANUAL BuildRoot: %{_tmppath}/%{name}-%{version}-build BuildRequires: %{ruby >= 2.7.0} BuildRequires: %{rubygem gem2rpm} @@ -48,6 +54,7 @@ %install %gem_install \ + --no-document \ --doc-files="History.md LICENSE README.md" \ -f ++ gem2rpm.yml ++ --- /var/tmp/diff_new_pack.rngR4p/_old 2022-09-26 18:48:10.936051813 +0200 +++ /var/tmp/diff_new_pack.rngR4p/_new 2022-09-26 18:48:10.940051821 +0200 @@ -67,5 +67,10 @@ # bar # :post: |- # /bin/echo foo -# +:preamble: |- +%if 0%{suse_version} && 0%{suse_version} < 1550 +%define rb_build_versions ruby31 ruby27 +%define rb_build_ruby_abis ruby:3.1.0 ruby:2.7.0 +%endif +:disable_docs: true
commit rubygem-liquid for openSUSE:Factory
Script 'mail_helper' called by obssrc Hello community, here is the log from the commit of package rubygem-liquid for openSUSE:Factory checked in at 2022-08-09 15:26:40 Comparing /work/SRC/openSUSE:Factory/rubygem-liquid (Old) and /work/SRC/openSUSE:Factory/.rubygem-liquid.new.1521 (New) Package is "rubygem-liquid" Tue Aug 9 15:26:40 2022 rev:10 rq:993495 version:5.4.0 Changes: --- /work/SRC/openSUSE:Factory/rubygem-liquid/rubygem-liquid.changes 2022-04-30 22:52:38.508232692 +0200 +++ /work/SRC/openSUSE:Factory/.rubygem-liquid.new.1521/rubygem-liquid.changes 2022-08-09 15:26:53.369374395 +0200 @@ -1,0 +2,23 @@ +Thu Aug 4 13:17:29 UTC 2022 - Stephan Kulow + +updated to version 5.4.0 + see installed History.md + + ## 5.4.0 2022-07-29 + + ### Breaking Changes + * Drop support for end-of-life Ruby versions (2.5 and 2.6) (#1578) [Andy Waite] + + ### Features + * Allow `#` to be used as an inline comment tag (#1498) [CP Clermont] + + ### Fixes + * `PartialCache` now shares snippet cache with subcontexts by default (#1553) [Chris AtLee] + * Hash registers no longer leak into subcontexts as static registers (#1564) [Chris AtLee] + * Fix `ParseTreeVisitor` for `with` variable expressions in `Render` tag (#1596) [CP Clermont] + + ### Changed + * Liquid::Context#registers now always returns a Liquid::Registers object, though supports the most used Hash functions for compatibility (#1553) + + +--- Old: liquid-5.3.0.gem New: liquid-5.4.0.gem Other differences: -- ++ rubygem-liquid.spec ++ --- /var/tmp/diff_new_pack.kR1i4J/_old 2022-08-09 15:26:55.365380098 +0200 +++ /var/tmp/diff_new_pack.kR1i4J/_new 2022-08-09 15:26:55.369380109 +0200 @@ -24,12 +24,12 @@ # Name: rubygem-liquid -Version:5.3.0 +Version:5.4.0 Release:0 %define mod_name liquid %define mod_full_name %{mod_name}-%{version} BuildRoot: %{_tmppath}/%{name}-%{version}-build -BuildRequires: %{ruby >= 2.5.0} +BuildRequires: %{ruby >= 2.7.0} BuildRequires: %{rubygem gem2rpm} BuildRequires: ruby-macros >= 5 URL:http://www.liquidmarkup.org ++ liquid-5.3.0.gem -> liquid-5.4.0.gem ++ 10624 lines of diff (skipped)
commit rubygem-liquid for openSUSE:Factory
Script 'mail_helper' called by obssrc Hello community, here is the log from the commit of package rubygem-liquid for openSUSE:Factory checked in at 2022-04-30 22:52:29 Comparing /work/SRC/openSUSE:Factory/rubygem-liquid (Old) and /work/SRC/openSUSE:Factory/.rubygem-liquid.new.1538 (New) Package is "rubygem-liquid" Sat Apr 30 22:52:29 2022 rev:9 rq:974053 version:5.3.0 Changes: --- /work/SRC/openSUSE:Factory/rubygem-liquid/rubygem-liquid.changes 2022-03-04 20:20:49.152685089 +0100 +++ /work/SRC/openSUSE:Factory/.rubygem-liquid.new.1538/rubygem-liquid.changes 2022-04-30 22:52:38.508232692 +0200 @@ -1,0 +2,7 @@ +Thu Apr 28 05:34:44 UTC 2022 - Stephan Kulow + +updated to version 5.3.0 + see installed History.md + + +--- Old: liquid-5.2.0.gem New: liquid-5.3.0.gem Other differences: -- ++ rubygem-liquid.spec ++ --- /var/tmp/diff_new_pack.EuZtUC/_old 2022-04-30 22:52:39.124233526 +0200 +++ /var/tmp/diff_new_pack.EuZtUC/_new 2022-04-30 22:52:39.128233531 +0200 @@ -24,7 +24,7 @@ # Name: rubygem-liquid -Version:5.2.0 +Version:5.3.0 Release:0 %define mod_name liquid %define mod_full_name %{mod_name}-%{version} ++ liquid-5.2.0.gem -> liquid-5.3.0.gem ++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/History.md new/History.md --- old/History.md 2022-03-01 16:20:24.0 +0100 +++ new/History.md 2022-03-22 19:51:32.0 +0100 @@ -1,6 +1,16 @@ # Liquid Change Log -## 5.2.0 2021-03-01 +## 5.3.0 2022-03-22 + +### Fixes +* StandardFilter: Fix missing @context on iterations (#1525) [Thierry Joyal] +* Test under Ruby 3.1 (#1533) [petergoldstein] +* Fix warning about block and default value in `static_registers.rb` (#1531) [Peter Zhu] + +### Deprecation +* Condition#evaluate to require mandatory context argument in Liquid 6.0.0 (#1527) [Thierry Joyal] + +## 5.2.0 2022-03-01 ### Features * Add `remove_last`, and `replace_last` filters (#1422) [Anders Hagbard] @@ -10,7 +20,6 @@ * Fix some internal errors in filters from invalid input (#1476) [Dylan Thacker-Smith] * Allow dash in filter kwarg name for consistency with Liquid::C (#1518) [CP Clermont] - ## 5.1.0 / 2021-09-09 ### Features Binary files old/checksums.yaml.gz and new/checksums.yaml.gz differ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/lib/liquid/condition.rb new/lib/liquid/condition.rb --- old/lib/liquid/condition.rb 2022-03-01 16:20:24.0 +0100 +++ new/lib/liquid/condition.rb 2022-03-22 19:51:32.0 +0100 @@ -61,7 +61,7 @@ @child_condition = nil end -def evaluate(context = Context.new) +def evaluate(context = deprecated_default_context) condition = self result = nil loop do @@ -150,6 +150,12 @@ end end +def deprecated_default_context + warn("DEPRECATION WARNING: Condition#evaluate without a context argument is deprecated" \ +" and will be removed from Liquid 6.0.0.") + Context.new +end + class ParseTreeVisitor < Liquid::ParseTreeVisitor def children [ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/lib/liquid/standardfilters.rb new/lib/liquid/standardfilters.rb --- old/lib/liquid/standardfilters.rb 2022-03-01 16:20:24.0 +0100 +++ new/lib/liquid/standardfilters.rb 2022-03-22 19:51:32.0 +0100 @@ -582,8 +582,9 @@ def each @input.each do |e| + e = e.respond_to?(:to_liquid) ? e.to_liquid : e e.context = @context if e.respond_to?(:context=) - yield(e.respond_to?(:to_liquid) ? e.to_liquid : e) + yield(e) end end end diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/lib/liquid/static_registers.rb new/lib/liquid/static_registers.rb --- old/lib/liquid/static_registers.rb 2022-03-01 16:20:24.0 +0100 +++ new/lib/liquid/static_registers.rb 2022-03-22 19:51:32.0 +0100 @@ -31,7 +31,11 @@ if @registers.key?(key) @registers.fetch(key) elsif default != UNDEFINED -@static.fetch(key, default, &block) +if block_given? + @static.fetch(key, &block) +else + @static.fetch(key, default) +end else @static.fetch(key, &block) end diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/lib/liquid/version.rb new/lib/liquid/version.rb --- old/lib/liquid/version.rb 2022-03-01 16:20:24.0 +0100 +++ new/lib/liquid
commit rubygem-liquid for openSUSE:Factory
Script 'mail_helper' called by obssrc Hello community, here is the log from the commit of package rubygem-liquid for openSUSE:Factory checked in at 2022-03-04 20:16:59 Comparing /work/SRC/openSUSE:Factory/rubygem-liquid (Old) and /work/SRC/openSUSE:Factory/.rubygem-liquid.new.1958 (New) Package is "rubygem-liquid" Fri Mar 4 20:16:59 2022 rev:8 rq:959331 version:5.2.0 Changes: --- /work/SRC/openSUSE:Factory/rubygem-liquid/rubygem-liquid.changes 2022-02-07 23:38:47.134159049 +0100 +++ /work/SRC/openSUSE:Factory/.rubygem-liquid.new.1958/rubygem-liquid.changes 2022-03-04 20:20:49.152685089 +0100 @@ -1,0 +2,18 @@ +Thu Mar 3 08:22:17 UTC 2022 - Stephan Kulow + +updated to version 5.2.0 + see installed History.md + + ## 5.2.0 2021-03-01 + + ### Features + * Add `remove_last`, and `replace_last` filters (#1422) [Anders Hagbard] + * Eagerly cache global filters (#1524) [Jean Boussier] + + ### Fixes + * Fix some internal errors in filters from invalid input (#1476) [Dylan Thacker-Smith] + * Allow dash in filter kwarg name for consistency with Liquid::C (#1518) [CP Clermont] + + + +--- Old: liquid-5.1.0.gem New: liquid-5.2.0.gem Other differences: -- ++ rubygem-liquid.spec ++ --- /var/tmp/diff_new_pack.N6iIry/_old 2022-03-04 20:20:49.656684689 +0100 +++ /var/tmp/diff_new_pack.N6iIry/_new 2022-03-04 20:20:49.660684686 +0100 @@ -24,7 +24,7 @@ # Name: rubygem-liquid -Version:5.1.0 +Version:5.2.0 Release:0 %define mod_name liquid %define mod_full_name %{mod_name}-%{version} ++ liquid-5.1.0.gem -> liquid-5.2.0.gem ++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/History.md new/History.md --- old/History.md 2021-09-15 21:16:18.0 +0200 +++ new/History.md 2022-03-01 16:20:24.0 +0100 @@ -1,5 +1,16 @@ # Liquid Change Log +## 5.2.0 2021-03-01 + +### Features +* Add `remove_last`, and `replace_last` filters (#1422) [Anders Hagbard] +* Eagerly cache global filters (#1524) [Jean Boussier] + +### Fixes +* Fix some internal errors in filters from invalid input (#1476) [Dylan Thacker-Smith] +* Allow dash in filter kwarg name for consistency with Liquid::C (#1518) [CP Clermont] + + ## 5.1.0 / 2021-09-09 ### Features diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/README.md new/README.md --- old/README.md 2021-09-15 21:16:18.0 +0200 +++ new/README.md 2022-03-01 16:20:24.0 +0100 @@ -5,7 +5,7 @@ * [Contributing guidelines](CONTRIBUTING.md) * [Version history](History.md) -* [Liquid documentation from Shopify](http://docs.shopify.com/themes/liquid-basics) +* [Liquid documentation from Shopify](https://shopify.dev/api/liquid) * [Liquid Wiki at GitHub](https://github.com/Shopify/liquid/wiki) * [Website](http://liquidmarkup.org/) @@ -56,7 +56,7 @@ Setting the error mode of Liquid lets you specify how strictly you want your templates to be interpreted. Normally the parser is very lax and will accept almost anything without error. Unfortunately this can make -it very hard to debug and can lead to unexpected behaviour. +it very hard to debug and can lead to unexpected behaviour. Liquid also comes with a stricter parser that can be used when editing templates to give better error messages when templates are invalid. You can enable this new parser like this: Binary files old/checksums.yaml.gz and new/checksums.yaml.gz differ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/lib/liquid/block_body.rb new/lib/liquid/block_body.rb --- old/lib/liquid/block_body.rb2021-09-15 21:16:18.0 +0200 +++ new/lib/liquid/block_body.rb2022-03-01 16:20:24.0 +0100 @@ -231,8 +231,8 @@ end def create_variable(token, parse_context) - token.scan(ContentOfVariable) do |content| -markup = content.first + if token =~ ContentOfVariable +markup = Regexp.last_match(1) return Variable.new(markup, parse_context) end BlockBody.raise_missing_variable_terminator(token, parse_context) diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/lib/liquid/expression.rb new/lib/liquid/expression.rb --- old/lib/liquid/expression.rb2021-09-15 21:16:18.0 +0200 +++ new/lib/liquid/expression.rb2022-03-01 16:20:24.0 +0100 @@ -10,21 +10,23 @@ 'empty' => '' }.freeze -SINGLE_QUOTED_STRING = /\A\s*'(.*)'\s*\z/m -DOUBLE_QUOTED_STRING = /\A\s*"(.*)"\s*\z/m -INTEGERS_REGEX = /
commit rubygem-liquid for openSUSE:Factory
Script 'mail_helper' called by obssrc Hello community, here is the log from the commit of package rubygem-liquid for openSUSE:Factory checked in at 2022-02-07 23:37:44 Comparing /work/SRC/openSUSE:Factory/rubygem-liquid (Old) and /work/SRC/openSUSE:Factory/.rubygem-liquid.new.1898 (New) Package is "rubygem-liquid" Mon Feb 7 23:37:44 2022 rev:7 rq:949086 version:5.1.0 Changes: --- /work/SRC/openSUSE:Factory/rubygem-liquid/rubygem-liquid.changes 2021-07-02 13:28:38.744211880 +0200 +++ /work/SRC/openSUSE:Factory/.rubygem-liquid.new.1898/rubygem-liquid.changes 2022-02-07 23:38:47.134159049 +0100 @@ -1,0 +2,18 @@ +Tue Jan 25 07:09:26 UTC 2022 - Stephan Kulow + +updated to version 5.1.0 + see installed History.md + + ## 5.1.0 / 2021-09-09 + + ### Features + * Add `base64_encode`, `base64_decode`, `base64_url_safe_encode`, and `base64_url_safe_decode` filters (#1450) [Daniel Insley] + * Introduce `to_liquid_value` in `Liquid::Drop` (#1441) [Michael Go] + + ### Fixes + * Fix support for using a String subclass for the liquid source (#1421) [Dylan Thacker-Smith] + * Add `ParseTreeVisitor` to `RangeLookup` (#1470) [CP Clermont] + * Translate `RangeError` to `Liquid::Error` for `truncatewords` with large int (#1431) [Dylan Thacker-Smith] + + +--- Old: liquid-5.0.1.gem New: liquid-5.1.0.gem Other differences: -- ++ rubygem-liquid.spec ++ --- /var/tmp/diff_new_pack.GIhG4d/_old 2022-02-07 23:38:47.586155957 +0100 +++ /var/tmp/diff_new_pack.GIhG4d/_new 2022-02-07 23:38:47.594155902 +0100 @@ -1,7 +1,7 @@ # # spec file for package rubygem-liquid # -# 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-liquid -Version:5.0.1 +Version:5.1.0 Release:0 %define mod_name liquid %define mod_full_name %{mod_name}-%{version} ++ liquid-5.0.1.gem -> liquid-5.1.0.gem ++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/History.md new/History.md --- old/History.md 2021-03-24 21:57:30.0 +0100 +++ new/History.md 2021-09-15 21:16:18.0 +0200 @@ -1,5 +1,16 @@ # Liquid Change Log +## 5.1.0 / 2021-09-09 + +### Features +* Add `base64_encode`, `base64_decode`, `base64_url_safe_encode`, and `base64_url_safe_decode` filters (#1450) [Daniel Insley] +* Introduce `to_liquid_value` in `Liquid::Drop` (#1441) [Michael Go] + +### Fixes +* Fix support for using a String subclass for the liquid source (#1421) [Dylan Thacker-Smith] +* Add `ParseTreeVisitor` to `RangeLookup` (#1470) [CP Clermont] +* Translate `RangeError` to `Liquid::Error` for `truncatewords` with large int (#1431) [Dylan Thacker-Smith] + ## 5.0.1 / 2021-03-24 ### Fixes Binary files old/checksums.yaml.gz and new/checksums.yaml.gz differ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/lib/liquid/condition.rb new/lib/liquid/condition.rb --- old/lib/liquid/condition.rb 2021-03-24 21:57:30.0 +0100 +++ new/lib/liquid/condition.rb 2021-09-15 21:16:18.0 +0200 @@ -8,7 +8,7 @@ # c = Condition.new(1, '==', 1) # c.evaluate #=> true # - class Condition #:nodoc: + class Condition # :nodoc: @@operators = { '==' => ->(cond, left, right) { cond.send(:equal_variables, left, right) }, '!=' => ->(cond, left, right) { !cond.send(:equal_variables, left, right) }, @@ -134,8 +134,8 @@ # return this as the result. return context.evaluate(left) if op.nil? - left = context.evaluate(left) - right = context.evaluate(right) + left = Liquid::Utils.to_liquid_value(context.evaluate(left)) + right = Liquid::Utils.to_liquid_value(context.evaluate(right)) operation = self.class.operators[op] || raise(Liquid::ArgumentError, "Unknown operator #{op}") diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/lib/liquid/context.rb new/lib/liquid/context.rb --- old/lib/liquid/context.rb 2021-03-24 21:57:30.0 +0100 +++ new/lib/liquid/context.rb 2021-09-15 21:16:18.0 +0200 @@ -124,7 +124,7 @@ # context['var'] = 'hi' # end # -# context['var] #=> nil +# context['var'] #=> nil def stack(new_scope = {}) push(new_scope) yield diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/lib/liquid/range_lookup.rb new/lib/liquid/range_lookup.rb --- old/lib/liquid/
commit rubygem-liquid for openSUSE:Factory
Script 'mail_helper' called by obssrc Hello community, here is the log from the commit of package rubygem-liquid for openSUSE:Factory checked in at 2021-07-02 13:27:41 Comparing /work/SRC/openSUSE:Factory/rubygem-liquid (Old) and /work/SRC/openSUSE:Factory/.rubygem-liquid.new.2625 (New) Package is "rubygem-liquid" Fri Jul 2 13:27:41 2021 rev:6 rq:903513 version:5.0.1 Changes: --- /work/SRC/openSUSE:Factory/rubygem-liquid/rubygem-liquid.changes 2021-01-21 21:55:52.477815631 +0100 +++ /work/SRC/openSUSE:Factory/.rubygem-liquid.new.2625/rubygem-liquid.changes 2021-07-02 13:28:38.744211880 +0200 @@ -1,0 +2,17 @@ +Thu Jun 24 17:34:45 UTC 2021 - Stephan Kulow + +updated to version 5.0.1 + see installed History.md + + ## 5.0.1 / 2021-03-24 + + ### Fixes + * Add ParseTreeVisitor to Echo tag (#1414) [CP Clermont] + * Test with ruby 3.0 as the latest ruby version (#1398) [Dylan Thacker-Smith] + * Handle carriage return in newlines_to_br (#1391) [Unending] + + ### Performance Improvements + * Use split limit in truncatewords (#1361) [Dylan Thacker-Smith] + + +--- Old: liquid-5.0.0.gem New: liquid-5.0.1.gem Other differences: -- ++ rubygem-liquid.spec ++ --- /var/tmp/diff_new_pack.HWPpFY/_old 2021-07-02 13:28:39.192208404 +0200 +++ /var/tmp/diff_new_pack.HWPpFY/_new 2021-07-02 13:28:39.192208404 +0200 @@ -24,7 +24,7 @@ # Name: rubygem-liquid -Version:5.0.0 +Version:5.0.1 Release:0 %define mod_name liquid %define mod_full_name %{mod_name}-%{version} ++ liquid-5.0.0.gem -> liquid-5.0.1.gem ++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/History.md new/History.md --- old/History.md 2021-01-06 16:19:52.0 +0100 +++ new/History.md 2021-03-24 21:57:30.0 +0100 @@ -1,5 +1,15 @@ # Liquid Change Log +## 5.0.1 / 2021-03-24 + +### Fixes +* Add ParseTreeVisitor to Echo tag (#1414) [CP Clermont] +* Test with ruby 3.0 as the latest ruby version (#1398) [Dylan Thacker-Smith] +* Handle carriage return in newlines_to_br (#1391) [Unending] + +### Performance Improvements +* Use split limit in truncatewords (#1361) [Dylan Thacker-Smith] + ## 5.0.0 / 2021-01-06 ### Features Binary files old/checksums.yaml.gz and new/checksums.yaml.gz differ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/lib/liquid/block_body.rb new/lib/liquid/block_body.rb --- old/lib/liquid/block_body.rb2021-01-06 16:19:52.0 +0100 +++ new/lib/liquid/block_body.rb2021-03-24 21:57:30.0 +0100 @@ -99,7 +99,9 @@ end private def parse_liquid_tag(markup, parse_context) - liquid_tag_tokenizer = Tokenizer.new(markup, line_number: parse_context.line_number, for_liquid_tag: true) + liquid_tag_tokenizer = parse_context.new_tokenizer( +markup, start_line_number: parse_context.line_number, for_liquid_tag: true + ) parse_for_liquid_tag(liquid_tag_tokenizer, parse_context) do |end_tag_name, _end_tag_markup| if end_tag_name BlockBody.unknown_tag_in_liquid_tag(end_tag_name, parse_context) diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/lib/liquid/parse_context.rb new/lib/liquid/parse_context.rb --- old/lib/liquid/parse_context.rb 2021-01-06 16:19:52.0 +0100 +++ new/lib/liquid/parse_context.rb 2021-03-24 21:57:30.0 +0100 @@ -23,6 +23,10 @@ Liquid::BlockBody.new end +def new_tokenizer(markup, start_line_number: nil, for_liquid_tag: false) + Tokenizer.new(markup, line_number: start_line_number, for_liquid_tag: for_liquid_tag) +end + def parse_expression(markup) Expression.parse(markup) end diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/lib/liquid/standardfilters.rb new/lib/liquid/standardfilters.rb --- old/lib/liquid/standardfilters.rb 2021-01-06 16:19:52.0 +0100 +++ new/lib/liquid/standardfilters.rb 2021-03-24 21:57:30.0 +0100 @@ -89,13 +89,15 @@ def truncatewords(input, words = 15, truncate_string = "...") return if input.nil? - wordlist = input.to_s.split - words= Utils.to_integer(words) + input = input.to_s + words = Utils.to_integer(words) + words = 1 if words <= 0 - l = words - 1 - l = 0 if l < 0 + wordlist = input.split(" ", words + 1) + return input if wordlist.length <= words - wordlist.length > l ? wordlist[0..l].join(" ").concat(truncate_string.to_s) : input + wordlist.pop + wordlist.join
commit rubygem-liquid for openSUSE:Factory
Script 'mail_helper' called by obssrc Hello community, here is the log from the commit of package rubygem-liquid for openSUSE:Factory checked in at 2021-01-21 21:55:51 Comparing /work/SRC/openSUSE:Factory/rubygem-liquid (Old) and /work/SRC/openSUSE:Factory/.rubygem-liquid.new.28504 (New) Package is "rubygem-liquid" Thu Jan 21 21:55:51 2021 rev:5 rq:865202 version:5.0.0 Changes: --- /work/SRC/openSUSE:Factory/rubygem-liquid/rubygem-liquid.changes 2019-03-27 16:18:07.355570786 +0100 +++ /work/SRC/openSUSE:Factory/.rubygem-liquid.new.28504/rubygem-liquid.changes 2021-01-21 21:55:52.477815631 +0100 @@ -1,0 +2,40 @@ +Wed Jan 20 12:53:21 UTC 2021 - Stephan Kulow + +updated to version 5.0.0 + see installed History.md + + ## 5.0.0 / 2021-01-06 + + ### Features + * Add new `{% render %}` tag (#1122) [Samuel Doiron] + * Add support for `as` in `{% render %}` and `{% include %}` (#1181) [Mike Angell] + * Add `{% liquid %}` and `{% echo %}` tags (#1086) [Justin Li] + * Add [usage tracking](README.md#usage-tracking) [Mike Angell] + * Add `Tag.disable_tags` for disabling tags that prepend `Tag::Disableable` at render time (#1162, #1274, #1275) [Mike Angell] + * Support using a profiler for multiple renders (#1365, #1366) [Dylan Thacker-Smith] + + ### Fixes + * Fix catastrophic backtracking in `RANGES_REGEX` regular expression (#1357) [Dylan Thacker-Smith] + * Make sure the for tag's limit and offset are integers (#1094) [David Cornu] + * Invokable methods for enumerable reject include (#1151) [Thierry Joyal] + * Allow `default` filter to handle `false` as value (#1144) [Mike Angell] + * Fix render length resource limit so it doesn't multiply nested output (#1285) [Dylan Thacker-Smith] + * Fix duplication of text in raw tags (#1304) [Peter Zhu] + * Fix strict parsing of find variable with a name expression (#1317) [Dylan Thacker-Smith] + * Use monotonic time to measure durations in Liquid::Profiler (#1362) [Dylan Thacker-Smith] + + ### Breaking Changes + * Require Ruby >= 2.5 (#1131, #1310) [Mike Angell, Dylan Thacker-Smith] + * Remove support for taint checking (#1268) [Dylan Thacker-Smith] + * Split Strainer class into StrainerFactory and StrainerTemplate (#1208) [Thierry Joyal] + * Remove handling of a nil context in the Strainer class (#1218) [Thierry Joyal] + * Handle `BlockBody#blank?` at parse time (#1287) [Dylan Thacker-Smith] + * Pass the tag markup and tokenizer to `Document#unknown_tag` (#1290) [Dylan Thacker-Smith] + * And several internal changes + + ### Performance Improvements + * Reduce allocations (#1073, #1091, #1115, #1099, #1117, #1141, #1322, #1341) [Richard Monette, Florian Weingarten, Ashwin Maroli] + * Improve resources limits performance (#1093, #1323) [Florian Weingarten, Dylan Thacker-Smith] + + +--- Old: liquid-4.0.3.gem New: liquid-5.0.0.gem Other differences: -- ++ rubygem-liquid.spec ++ --- /var/tmp/diff_new_pack.nce4wv/_old 2021-01-21 21:55:53.021816010 +0100 +++ /var/tmp/diff_new_pack.nce4wv/_new 2021-01-21 21:55:53.025816013 +0100 @@ -1,7 +1,7 @@ # # spec file for package rubygem-liquid # -# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany. +# Copyright (c) 2021 SUSE LLC # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -24,15 +24,15 @@ # Name: rubygem-liquid -Version:4.0.3 +Version:5.0.0 Release:0 %define mod_name liquid %define mod_full_name %{mod_name}-%{version} BuildRoot: %{_tmppath}/%{name}-%{version}-build -BuildRequires: %{ruby >= 2.1.0} +BuildRequires: %{ruby >= 2.5.0} BuildRequires: %{rubygem gem2rpm} BuildRequires: ruby-macros >= 5 -Url:http://www.liquidmarkup.org +URL:http://www.liquidmarkup.org Source: https://rubygems.org/gems/%{mod_full_name}.gem Source1:gem2rpm.yml Summary:A secure, non-evaling end user template engine with aesthetic markup ++ liquid-4.0.3.gem -> liquid-5.0.0.gem ++ 13345 lines of diff (skipped)