locomotivecms-liquid 4.0.0.alpha1 → 4.0.0.alpha2

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 9146b6c0f563f43a00efbd5656d8642c0cc356b0
4
- data.tar.gz: 5f181a813cd6c5df89507c7d5e0c2dd31c4e378b
3
+ metadata.gz: e16a21f99a84106828a5080a84a4317e45413c40
4
+ data.tar.gz: 1073604f97eec71567d78f24e5c35525aa12069d
5
5
  SHA512:
6
- metadata.gz: 062c89b8f9c5b313705384a2cb16886d87ce8a483546099c0b78fb0da0a339b4de6997a0fbab2f234b62c057451cc7114bacb01b9b2ab6fc3592d704ff1a8300
7
- data.tar.gz: 2ade61abd56b055a10feb20de21f58a1cc2152c94c10408f024cb3d2879b2a9ccf9ab70e666dad3708396ca046a68265c345d973d28ef909f4fb9d5480bd7444
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
- if block != self
69
- # the block drop is in charge of rendering "{{ block.super }}"
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
- options[:inherited_blocks] || {
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
  }
@@ -1,4 +1,4 @@
1
1
  # encoding: utf-8
2
2
  module Liquid
3
- VERSION = "4.0.0.alpha1"
3
+ VERSION = "4.0.0.alpha2"
4
4
  end
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.alpha1
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-03 00:00:00.000000000 Z
13
+ date: 2015-02-04 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: rake