liquid 5.6.0.rc1 → 5.6.0.rc3

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: b042c3b4620911f60fdb52415f5c97976f97f03f00b4e0cd959f4ae7136d4851
4
- data.tar.gz: 33d1dd5ecb3f0003dac373e50e2eff5b97d5fcd5b58321254c47ccd13ec37d5f
3
+ metadata.gz: cc76381e6691327b799c2cc0514a2ce02e9d8523c3bff35d2f095d7d2670f415
4
+ data.tar.gz: 0ff5b5a39b82239dd20335411b501eb9e894f152bd8ade391b5707b8ee7587e0
5
5
  SHA512:
6
- metadata.gz: e9de04776b0b83d1756ff0090bfdb0a855201b5c4ffff3b04184eb495a26f7e291fec9112d61051f5dfc3ca92b35529f4c6dca1924fe880beb72e70ae0f59012
7
- data.tar.gz: 62db5e16575572ce90e6d98a856c05b301b87dd2b2e78a70183db33b39d71638c23efa45de7a123bd36b762ef190c564c5514789ba2d34af2035ebe6cc0ba512
6
+ metadata.gz: c27d60862e62ac85952dde78f8cc7485f27f264266a40e963602415e0cfa9965ded4ab6bdc9add27289bff18ea4a00b8505486b396aff68c1f86ee33f3ac2a69
7
+ data.tar.gz: 2211dc8f0781228b051a8c0985ffe30eaa51e9d5cbe5dbae2e1ae79572384ef3965ce868185e2a0168b7efd870d24e987d2c7c31cff466300da1e21ca627966b
data/History.md CHANGED
@@ -1,5 +1,12 @@
1
1
  # Liquid Change Log
2
2
 
3
+ ## 5.6.0 (unreleased)
4
+
5
+ ### Fixes
6
+
7
+ * Fix Tokenizer to handle null source value (#1873) [Bahar Pourazar]
8
+
9
+
3
10
  ## 5.5.0 2024-03-21
4
11
 
5
12
  Please reference the GitHub release for more information.
@@ -5,7 +5,7 @@ module Liquid
5
5
  attr_reader :line_number, :for_liquid_tag
6
6
 
7
7
  def initialize(source, line_numbers = false, line_number: nil, for_liquid_tag: false)
8
- @source = source
8
+ @source = source.to_s.to_str
9
9
  @line_number = line_number || (line_numbers ? 1 : nil)
10
10
  @for_liquid_tag = for_liquid_tag
11
11
  @offset = 0
@@ -95,15 +95,21 @@ module Liquid
95
95
 
96
96
  def render_to_output_buffer(context, output)
97
97
  obj = render(context)
98
+ render_obj_to_output(obj, output)
99
+ output
100
+ end
98
101
 
99
- if obj.is_a?(Array)
100
- output << obj.join
101
- elsif obj.nil?
102
- else
102
+ def render_obj_to_output(obj, output)
103
+ case obj
104
+ when NilClass
105
+ # Do nothing
106
+ when Array
107
+ obj.each do |o|
108
+ render_obj_to_output(o, output)
109
+ end
110
+ when
103
111
  output << obj.to_s
104
112
  end
105
-
106
- output
107
113
  end
108
114
 
109
115
  def disabled?(_context)
@@ -2,5 +2,5 @@
2
2
  # frozen_string_literal: true
3
3
 
4
4
  module Liquid
5
- VERSION = "5.6.0.rc1"
5
+ VERSION = "5.6.0.rc3"
6
6
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: liquid
3
3
  version: !ruby/object:Gem::Version
4
- version: 5.6.0.rc1
4
+ version: 5.6.0.rc3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Tobias Lütke
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2024-11-04 00:00:00.000000000 Z
11
+ date: 2024-12-18 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: strscan
@@ -141,7 +141,7 @@ files:
141
141
  - lib/liquid/variable.rb
142
142
  - lib/liquid/variable_lookup.rb
143
143
  - lib/liquid/version.rb
144
- homepage: http://www.liquidmarkup.org
144
+ homepage: https://shopify.github.io/liquid/
145
145
  licenses:
146
146
  - MIT
147
147
  metadata:
@@ -161,7 +161,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
161
161
  - !ruby/object:Gem::Version
162
162
  version: 1.3.7
163
163
  requirements: []
164
- rubygems_version: 3.5.22
164
+ rubygems_version: 3.5.23
165
165
  signing_key:
166
166
  specification_version: 4
167
167
  summary: A secure, non-evaling end user template engine with aesthetic markup.