Package: ruby-liquid / 5.4.0-5
Metadata
| Package | Version | Patches format |
|---|---|---|
| ruby-liquid | 5.4.0-5 | 3.0 (quilt) |
Patch series
view the series file| Patch | File delta | Description |
|---|---|---|
| 0001 context_test disable test_interrupt_avoids_object_al.patch | (download) |
test/integration/context_test.rb |
1 1 + 0 - 0 ! |
context_test: disable test_interrupt_avoids_object_allocations This test does not work correctly on all Debian architectures (e.g. it fails on i386) |
| 0002 Bring back Registers each.patch | (download) |
lib/liquid/registers.rb |
10 10 + 0 - 0 ! |
bring back registers#each
Registers#each are being used in the template.rb anyway.
Basically merely passing registers from context to template options crashes
liquid version 5.4, while it worked in liquid-5.3.
Addressing:
/opt/hostedtoolcache/Ruby/3.1.2/x64/lib/ruby/gems/3.1.0/gems/liquid-5.4.0/lib/liquid/template.rb:176:in `render': undefined method `each' for #<Liquid::Registers:0x00007f2b142ddfc0>
options[:registers]&.each do |key, register|
^^^^^^
from /opt/hostedtoolcache/Ruby/3.1.2/x64/lib/ruby/gems/3.1.0/gems/liquid-5.4.0/lib/liquid/template.rb:204:in `render!'
from /opt/hostedtoolcache/Ruby/3.1.2/x64/lib/ruby/gems/3.1.0/gems/jekyll-seo-tag-2.8.0/lib/jekyll-seo-tag.rb:36:in `render'
from /opt/hostedtoolcache/Ruby/3.1.2/x64/lib/ruby/gems/3.1.0/gems/liquid-5.4.0/lib/liquid/tag.rb:51:in `render_to_output_buffer'
from /opt/hostedtoolcache/Ruby/3.1.2/x64/lib/ruby/gems/3.1.0/gems/liquid-5.4.0/lib/liquid/block_body.rb:80:in `render_node'
from /opt/hostedtoolcache/Ruby/3.1.2/x64/lib/ruby/gems/3.1.0/gems/liquid-5.4.0/lib/liquid/block_body.rb:230:in `render_node'
from /opt/hostedtoolcache/Ruby/3.1.2/x64/lib/ruby/gems/3.1.0/gems/liquid-5.4.0/lib/liquid/block_body.rb:213:in `render_to_output_buffer'
from /opt/hostedtoolcache/Ruby/3.1.2/x64/lib/ruby/gems/3.1.0/gems/liquid-5.4.0/lib/liquid/document.rb:41:in `render_to_output_buffer'
from /opt/hostedtoolcache/Ruby/3.1.2/x64/lib/ruby/gems/3.1.0/gems/liquid-5.4.0/lib/liquid/template.rb:194:in `render'
from /opt/hostedtoolcache/Ruby/3.1.2/x64/lib/ruby/gems/3.1.0/gems/liquid-5.4.0/lib/liquid/template.rb:204:in `render!'
Source: https://github.com/Shopify/liquid/pull/1663
|
| 0003 Adapt StandardFiltersTest test_map_calls_context for.patch | (download) |
test/integration/standard_filter_test.rb |
2 1 + 1 - 0 ! |
adapt standardfilterstest#test_map_calls_context for ruby3.3 and ruby3.4 |
1
