liquid 5.0.1 → 5.3.0
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/History.md +31 -0
- data/README.md +2 -2
- data/lib/liquid/block_body.rb +2 -2
- data/lib/liquid/condition.rb +10 -4
- data/lib/liquid/context.rb +1 -1
- data/lib/liquid/expression.rb +11 -10
- data/lib/liquid/range_lookup.rb +8 -0
- data/lib/liquid/standardfilters.rb +87 -20
- data/lib/liquid/static_registers.rb +5 -1
- data/lib/liquid/strainer_factory.rb +11 -10
- data/lib/liquid/strainer_template.rb +5 -0
- data/lib/liquid/tags/case.rb +8 -1
- data/lib/liquid/tags/if.rb +5 -1
- data/lib/liquid/tags/unless.rb +10 -2
- data/lib/liquid/tokenizer.rb +2 -2
- data/lib/liquid/utils.rb +8 -0
- data/lib/liquid/variable_lookup.rb +3 -0
- data/lib/liquid/version.rb +1 -1
- data/lib/liquid.rb +2 -2
- data/test/integration/context_test.rb +12 -14
- data/test/integration/filter_kwarg_test.rb +24 -0
- data/test/integration/profiler_test.rb +33 -6
- data/test/integration/standard_filter_test.rb +119 -32
- data/test/integration/template_test.rb +14 -0
- data/test/integration/variable_test.rb +31 -0
- data/test/test_helper.rb +48 -10
- data/test/unit/condition_unit_test.rb +27 -14
- data/test/unit/parse_tree_visitor_test.rb +7 -0
- data/test/unit/strainer_factory_unit_test.rb +2 -1
- data/test/unit/strainer_template_unit_test.rb +1 -1
- metadata +48 -46
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.0
|
4
|
+
version: 5.3.0
|
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:
|
11
|
+
date: 2022-03-22 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rake
|
@@ -120,6 +120,7 @@ files:
|
|
120
120
|
- test/integration/drop_test.rb
|
121
121
|
- test/integration/error_handling_test.rb
|
122
122
|
- test/integration/expression_test.rb
|
123
|
+
- test/integration/filter_kwarg_test.rb
|
123
124
|
- test/integration/filter_test.rb
|
124
125
|
- test/integration/hash_ordering_test.rb
|
125
126
|
- test/integration/output_test.rb
|
@@ -187,65 +188,66 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
187
188
|
- !ruby/object:Gem::Version
|
188
189
|
version: 1.3.7
|
189
190
|
requirements: []
|
190
|
-
rubygems_version: 3.
|
191
|
+
rubygems_version: 3.2.20
|
191
192
|
signing_key:
|
192
193
|
specification_version: 4
|
193
194
|
summary: A secure, non-evaling end user template engine with aesthetic markup.
|
194
195
|
test_files:
|
195
|
-
- test/
|
196
|
-
- test/unit/condition_unit_test.rb
|
197
|
-
- test/unit/variable_unit_test.rb
|
198
|
-
- test/unit/template_unit_test.rb
|
199
|
-
- test/unit/strainer_template_unit_test.rb
|
200
|
-
- test/unit/file_system_unit_test.rb
|
196
|
+
- test/unit/parser_unit_test.rb
|
201
197
|
- test/unit/static_registers_unit_test.rb
|
202
|
-
- test/unit/
|
203
|
-
- test/unit/tags/if_tag_unit_test.rb
|
204
|
-
- test/unit/tags/case_tag_unit_test.rb
|
198
|
+
- test/unit/tag_unit_test.rb
|
205
199
|
- test/unit/strainer_factory_unit_test.rb
|
206
|
-
- test/unit/parse_tree_visitor_test.rb
|
207
|
-
- test/unit/lexer_unit_test.rb
|
208
|
-
- test/unit/block_unit_test.rb
|
209
|
-
- test/unit/regexp_unit_test.rb
|
210
200
|
- test/unit/partial_cache_unit_test.rb
|
211
|
-
- test/unit/
|
212
|
-
- test/unit/
|
201
|
+
- test/unit/strainer_template_unit_test.rb
|
202
|
+
- test/unit/lexer_unit_test.rb
|
203
|
+
- test/unit/parse_tree_visitor_test.rb
|
213
204
|
- test/unit/i18n_unit_test.rb
|
214
205
|
- test/unit/tokenizer_unit_test.rb
|
215
206
|
- test/unit/template_factory_unit_test.rb
|
207
|
+
- test/unit/condition_unit_test.rb
|
208
|
+
- test/unit/block_unit_test.rb
|
209
|
+
- test/unit/file_system_unit_test.rb
|
210
|
+
- test/unit/variable_unit_test.rb
|
211
|
+
- test/unit/template_unit_test.rb
|
212
|
+
- test/unit/tags/if_tag_unit_test.rb
|
213
|
+
- test/unit/tags/case_tag_unit_test.rb
|
214
|
+
- test/unit/tags/for_tag_unit_test.rb
|
215
|
+
- test/unit/regexp_unit_test.rb
|
216
216
|
- test/test_helper.rb
|
217
|
-
- test/integration/
|
218
|
-
- test/integration/
|
219
|
-
- test/integration/
|
220
|
-
- test/integration/
|
221
|
-
- test/integration/
|
222
|
-
- test/integration/error_handling_test.rb
|
217
|
+
- test/integration/document_test.rb
|
218
|
+
- test/integration/tag_test.rb
|
219
|
+
- test/integration/filter_kwarg_test.rb
|
220
|
+
- test/integration/trim_mode_test.rb
|
221
|
+
- test/integration/profiler_test.rb
|
223
222
|
- test/integration/security_test.rb
|
224
223
|
- test/integration/capture_test.rb
|
225
|
-
- test/integration/
|
226
|
-
- test/integration/
|
224
|
+
- test/integration/parsing_quirks_test.rb
|
225
|
+
- test/integration/blank_test.rb
|
226
|
+
- test/integration/template_test.rb
|
227
|
+
- test/integration/tag/disableable_test.rb
|
228
|
+
- test/integration/variable_test.rb
|
229
|
+
- test/integration/output_test.rb
|
230
|
+
- test/integration/drop_test.rb
|
231
|
+
- test/integration/standard_filter_test.rb
|
232
|
+
- test/integration/expression_test.rb
|
233
|
+
- test/integration/block_test.rb
|
234
|
+
- test/integration/hash_ordering_test.rb
|
235
|
+
- test/integration/filter_test.rb
|
227
236
|
- test/integration/tags/break_tag_test.rb
|
228
|
-
- test/integration/tags/
|
237
|
+
- test/integration/tags/standard_tag_test.rb
|
229
238
|
- test/integration/tags/liquid_tag_test.rb
|
230
|
-
- test/integration/tags/
|
231
|
-
- test/integration/tags/
|
239
|
+
- test/integration/tags/table_row_test.rb
|
240
|
+
- test/integration/tags/render_tag_test.rb
|
232
241
|
- test/integration/tags/include_tag_test.rb
|
242
|
+
- test/integration/tags/increment_tag_test.rb
|
243
|
+
- test/integration/tags/if_else_tag_test.rb
|
244
|
+
- test/integration/tags/continue_tag_test.rb
|
233
245
|
- test/integration/tags/echo_test.rb
|
234
|
-
- test/integration/tags/statements_test.rb
|
235
|
-
- test/integration/tags/render_tag_test.rb
|
236
246
|
- test/integration/tags/raw_tag_test.rb
|
237
|
-
- test/integration/tags/
|
238
|
-
- test/integration/tags/
|
239
|
-
- test/integration/tags/
|
240
|
-
- test/integration/
|
241
|
-
- test/integration/
|
242
|
-
- test/integration/
|
243
|
-
- test/
|
244
|
-
- test/integration/drop_test.rb
|
245
|
-
- test/integration/expression_test.rb
|
246
|
-
- test/integration/filter_test.rb
|
247
|
-
- test/integration/document_test.rb
|
248
|
-
- test/integration/trim_mode_test.rb
|
249
|
-
- test/integration/output_test.rb
|
250
|
-
- test/integration/hash_ordering_test.rb
|
251
|
-
- test/integration/tag_test.rb
|
247
|
+
- test/integration/tags/for_tag_test.rb
|
248
|
+
- test/integration/tags/statements_test.rb
|
249
|
+
- test/integration/tags/unless_else_tag_test.rb
|
250
|
+
- test/integration/context_test.rb
|
251
|
+
- test/integration/error_handling_test.rb
|
252
|
+
- test/integration/assign_test.rb
|
253
|
+
- test/fixtures/en_locale.yml
|