locomotivecms-liquid 4.0.0.alpha1 → 4.0.0.alpha2
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/tags/inherited_block.rb +4 -5
- data/lib/liquid/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: e16a21f99a84106828a5080a84a4317e45413c40
|
|
4
|
+
data.tar.gz: 1073604f97eec71567d78f24e5c35525aa12069d
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 6363e603880d7f4a13831d3f14056776efe69906b585119637acb5033df0057b2e7ec0523b7ef342d5a04c1bc9f1ffe53469c16db008c667a7b6f3d5229ba721
|
|
7
|
+
data.tar.gz: 720b3a157620a8d2c7e8b23fc61aeda65d348baf448ae8e0414f9075c6e63b299895e129940a52c596ffc4c470f701fb008e7df40d579108f0f7dac6da7eafb2
|
|
@@ -65,10 +65,8 @@ module Liquid
|
|
|
65
65
|
# look for the very first descendant
|
|
66
66
|
block = self_or_first_descendant
|
|
67
67
|
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
context['block'] = InheritedBlockDrop.new(block)
|
|
71
|
-
end
|
|
68
|
+
# the block drop is in charge of rendering "{{ block.super }}"
|
|
69
|
+
context['block'] = InheritedBlockDrop.new(block)
|
|
72
70
|
|
|
73
71
|
block.render_without_inheritance(context)
|
|
74
72
|
end
|
|
@@ -94,7 +92,8 @@ module Liquid
|
|
|
94
92
|
end
|
|
95
93
|
|
|
96
94
|
def inherited_blocks
|
|
97
|
-
|
|
95
|
+
# initialize it in the case the template does not include an extend tag
|
|
96
|
+
options[:inherited_blocks] ||= {
|
|
98
97
|
all: {},
|
|
99
98
|
nested: []
|
|
100
99
|
}
|
data/lib/liquid/version.rb
CHANGED
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: locomotivecms-liquid
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 4.0.0.
|
|
4
|
+
version: 4.0.0.alpha2
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Tobias Luetke
|
|
@@ -10,7 +10,7 @@ authors:
|
|
|
10
10
|
autorequire:
|
|
11
11
|
bindir: bin
|
|
12
12
|
cert_chain: []
|
|
13
|
-
date: 2015-02-
|
|
13
|
+
date: 2015-02-04 00:00:00.000000000 Z
|
|
14
14
|
dependencies:
|
|
15
15
|
- !ruby/object:Gem::Dependency
|
|
16
16
|
name: rake
|