liquid 5.6.0.rc1 → 5.6.0.rc2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: b042c3b4620911f60fdb52415f5c97976f97f03f00b4e0cd959f4ae7136d4851
4
- data.tar.gz: 33d1dd5ecb3f0003dac373e50e2eff5b97d5fcd5b58321254c47ccd13ec37d5f
3
+ metadata.gz: e610d96aad5d08594f89119400b89c2667825d9a4e69936a315f8d5ae4f460ae
4
+ data.tar.gz: dadd1ed95abb4eab1c4a1186a251b5598698bc93ce21415fb8894a5f3a188382
5
5
  SHA512:
6
- metadata.gz: e9de04776b0b83d1756ff0090bfdb0a855201b5c4ffff3b04184eb495a26f7e291fec9112d61051f5dfc3ca92b35529f4c6dca1924fe880beb72e70ae0f59012
7
- data.tar.gz: 62db5e16575572ce90e6d98a856c05b301b87dd2b2e78a70183db33b39d71638c23efa45de7a123bd36b762ef190c564c5514789ba2d34af2035ebe6cc0ba512
6
+ metadata.gz: cd5f73dd9cf3d9d6c49d96712eb413152bc61b935c496135374c1b0970d7ac6912adaa18d99d3ad6a0eb1fd87bfc9f57d2907dec68237f2bd46c5a1e69a6184e
7
+ data.tar.gz: 3cfd49dc70c4ee2456569bda9fe7f5e700d88f471bed88045da6d4e1eef396a9050c6e045d0c2e715ffb509653d06ff507240e158aa4f34dc15d42c1cec23a05
@@ -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.rc2"
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.rc2
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-11 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.