liquid 5.6.2 → 5.6.4
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/context.rb +1 -4
- data/lib/liquid/expression.rb +0 -2
- data/lib/liquid/variable_lookup.rb +1 -1
- data/lib/liquid/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 33f5ba5a5f6175dc7ddf6f0f618581fac11cf81b33ed508f174590f2a0911b4a
|
4
|
+
data.tar.gz: 07e512179364e4c9be0649ada3495a5314e1c57d97e91b697cac098c175bd1c7
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 7f54ca814d38f03c384b147776cb645686c61a5962bf9e736220d60bd2b6c0a9e5e853643429349170a1920ce5b1373b3d0c6ff47118afc0568368823e6dc920
|
7
|
+
data.tar.gz: 46ecbe3e271d8a7083d8d58f360d9476594d434561cbafec829cd1294ceb44c2a623096e084206ef220808974f7a804a92945b0a60290d414ca9651ceb74f20c
|
data/lib/liquid/context.rb
CHANGED
@@ -1,7 +1,5 @@
|
|
1
1
|
# frozen_string_literal: true
|
2
2
|
|
3
|
-
require "lru_redux"
|
4
|
-
|
5
3
|
module Liquid
|
6
4
|
# Context keeps the variable stack and resolves variables, as well as keywords
|
7
5
|
#
|
@@ -41,7 +39,6 @@ module Liquid
|
|
41
39
|
@filters = []
|
42
40
|
@global_filter = nil
|
43
41
|
@disabled_tags = {}
|
44
|
-
@expression_cache = LruRedux::ThreadSafeCache.new(1000)
|
45
42
|
|
46
43
|
# Instead of constructing new StringScanner objects for each Expression parse,
|
47
44
|
# we recycle the same one.
|
@@ -183,7 +180,7 @@ module Liquid
|
|
183
180
|
# Example:
|
184
181
|
# products == empty #=> products.empty?
|
185
182
|
def [](expression)
|
186
|
-
evaluate(Expression.parse(expression, @string_scanner
|
183
|
+
evaluate(Expression.parse(expression, @string_scanner))
|
187
184
|
end
|
188
185
|
|
189
186
|
def key?(key)
|
data/lib/liquid/expression.rb
CHANGED
data/lib/liquid/version.rb
CHANGED
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: liquid
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 5.6.
|
4
|
+
version: 5.6.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Tobias Lütke
|
8
8
|
bindir: bin
|
9
9
|
cert_chain: []
|
10
|
-
date: 2025-01-
|
10
|
+
date: 2025-01-14 00:00:00.000000000 Z
|
11
11
|
dependencies:
|
12
12
|
- !ruby/object:Gem::Dependency
|
13
13
|
name: strscan
|