liquid 3.0.3 → 3.0.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/parser.rb +1 -1
- data/lib/liquid/version.rb +1 -1
- data/test/integration/output_test.rb +8 -0
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: ba57f2ab9f172f86a9ec2423ac7d1fe143018f8c
|
4
|
+
data.tar.gz: b70008837aa1d07dae8727da5a101bbc54c9b341
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 87bfbe742ab9d4da0b5afbbe4b111d7feeaf7c7177439b978b422b907ba6aa7a449af112ed245c271e37f6c071d2399d0bde85a1edb26f6bcd646e453eacc7d2
|
7
|
+
data.tar.gz: f89338151cca9e2c8615a14f27555b9f742d5cf161f612fdb173e5c808040fd9f4d4bc1cc7808aefa36b27d811106684e9812a4e913ddc42d552b0ea2b2f98f8
|
data/lib/liquid/parser.rb
CHANGED
data/lib/liquid/version.rb
CHANGED
@@ -44,6 +44,14 @@ class OutputTest < Minitest::Test
|
|
44
44
|
assert_equal expected, Template.parse(text).render!(@assigns)
|
45
45
|
end
|
46
46
|
|
47
|
+
def test_variable_traversing_with_two_brackets
|
48
|
+
text = %({{ site.data.menu[include.menu][include.locale] }})
|
49
|
+
assert_equal "it works!", Template.parse(text).render!(
|
50
|
+
"site" => { "data" => { "menu" => { "foo" => { "bar" => "it works!" } } } },
|
51
|
+
"include" => { "menu" => "foo", "locale" => "bar" }
|
52
|
+
)
|
53
|
+
end
|
54
|
+
|
47
55
|
def test_variable_traversing
|
48
56
|
text = %| {{car.bmw}} {{car.gm}} {{car.bmw}} |
|
49
57
|
|
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: 3.0.
|
4
|
+
version: 3.0.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Tobias Luetke
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-
|
11
|
+
date: 2015-07-17 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rake
|
@@ -161,7 +161,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
161
161
|
version: 1.3.7
|
162
162
|
requirements: []
|
163
163
|
rubyforge_project:
|
164
|
-
rubygems_version: 2.2.
|
164
|
+
rubygems_version: 2.2.1
|
165
165
|
signing_key:
|
166
166
|
specification_version: 4
|
167
167
|
summary: A secure, non-evaling end user template engine with aesthetic markup.
|