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 +4 -4
- data/lib/liquid/variable.rb +12 -6
- data/lib/liquid/version.rb +1 -1
- metadata +4 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: e610d96aad5d08594f89119400b89c2667825d9a4e69936a315f8d5ae4f460ae
|
4
|
+
data.tar.gz: dadd1ed95abb4eab1c4a1186a251b5598698bc93ce21415fb8894a5f3a188382
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: cd5f73dd9cf3d9d6c49d96712eb413152bc61b935c496135374c1b0970d7ac6912adaa18d99d3ad6a0eb1fd87bfc9f57d2907dec68237f2bd46c5a1e69a6184e
|
7
|
+
data.tar.gz: 3cfd49dc70c4ee2456569bda9fe7f5e700d88f471bed88045da6d4e1eef396a9050c6e045d0c2e715ffb509653d06ff507240e158aa4f34dc15d42c1cec23a05
|
data/lib/liquid/variable.rb
CHANGED
@@ -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
|
-
|
100
|
-
|
101
|
-
|
102
|
-
|
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)
|
data/lib/liquid/version.rb
CHANGED
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.
|
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
|
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:
|
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.
|
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.
|