liquid 4.0.2 → 4.0.3

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
  SHA256:
3
- metadata.gz: e3124f91e43cab43cf6782b093c0387d9189bd951b911ab1ade84024e5b84bf3
4
- data.tar.gz: 40c04d46b3a1a51a775832cabf161fc870bde43b72d2857a8a8cf736e1909a43
3
+ metadata.gz: e41c3a6ffee8037dec34a186cf023e2ccb09ac4f94d0c9a812ea02fd50559bf7
4
+ data.tar.gz: ff088908363f5a54e5833c64d32b441fb679503340b5f7511de99eb257fd4289
5
5
  SHA512:
6
- metadata.gz: 71deb80c6d970684e424fb8e4ca0a817399dc0b6564a7308093158a94ace0e24cac5d8e08a8b015327937b8dd45be25532dd8d9e02de0c3677f08297a08638dd
7
- data.tar.gz: 79490a2f0db69914e01c69fdcf135cc3541609cfca29017154d3c33325c57f682c3d90bbfa0bca1a7f3d82e4cbe4af5259a77cf42861c142921491e21949bddf
6
+ metadata.gz: 6b726a02e92f8d9fac005e07034aeee32dd2eae3a2b342fb4e9e648dc79da4c086de92e1e1a24bf52054a4a2b0a74af17f89fdd6c3cbbb2982e4b5b5971a23c2
7
+ data.tar.gz: e875f98a0b30f914ec1703781bfb443e737ea11675829c3e98fca96524dfe30a72fb9adf59c7855f85eda8014c2e6a9850d911b22cb96a63d2eac52e91273a42
data/History.md CHANGED
@@ -1,5 +1,10 @@
1
1
  # Liquid Change Log
2
2
 
3
+ ## 4.0.3 / 2019-03-12
4
+
5
+ ### Fixed
6
+ * Fix break and continue tags inside included templates in loops (#1072) [Justin Li]
7
+
3
8
  ## 4.0.2 / 2019-03-08
4
9
 
5
10
  ### Changed
@@ -89,6 +89,7 @@ module Liquid
89
89
  break
90
90
  else # Other non-Block tags
91
91
  render_node_to_output(node, output, context)
92
+ break if context.interrupt? # might have happened through an include
92
93
  end
93
94
  idx += 1
94
95
  end
@@ -1,5 +1,5 @@
1
1
  # encoding: utf-8
2
2
 
3
3
  module Liquid
4
- VERSION = "4.0.2".freeze
4
+ VERSION = "4.0.3".freeze
5
5
  end
@@ -30,6 +30,9 @@ class TestFileSystem
30
30
  when 'assignments'
31
31
  "{% assign foo = 'bar' %}"
32
32
 
33
+ when 'break'
34
+ "{% break %}"
35
+
33
36
  else
34
37
  template_path
35
38
  end
@@ -242,4 +245,9 @@ class IncludeTagTest < Minitest::Test
242
245
 
243
246
  assert_equal [], template.errors
244
247
  end
248
+
249
+ def test_break_through_include
250
+ assert_template_result "1", "{% for i in (1..3) %}{{ i }}{% break %}{{ i }}{% endfor %}"
251
+ assert_template_result "1", "{% for i in (1..3) %}{{ i }}{% include 'break' %}{{ i }}{% endfor %}"
252
+ end
245
253
  end # IncludeTagTest
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: 4.0.2
4
+ version: 4.0.3
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: 2019-03-08 00:00:00.000000000 Z
11
+ date: 2019-03-12 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rake