jekyll-bookshop 2.0.0.pre.beta.38 → 2.0.0

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: 367c1fec8c2064692ff8562725868b4cabd0fe4dbf18cfeeb3d3d1a8e5fc2930
4
- data.tar.gz: 3d9707cc34e8fd7d386ed5af62f926ca72922faaad46f39cef6e6233ac2c1bd9
3
+ metadata.gz: a1c166dff101fe347031739fd8ced37a23a79494455aaf8c9c50c1b8acba0a60
4
+ data.tar.gz: 35f590667f767e398e1203cca0015d4f1b5a66815b78d4a14b350c01f1804021
5
5
  SHA512:
6
- metadata.gz: '089b81bf2d2f576fed338459153dd0645dd0e204bbb7ef1050c84069fbcb3d910a87103f7db2a8560826af5c67d35f26bee5c7b0b5c53dd05e9888695802f776'
7
- data.tar.gz: c6cf92c48d5643b04bd20b143e6fe1e66e12b718201dad797cb3aab607b4a41bdfc1daf289989040270840fae98a26c28bfa8fef3e3d6a0f0e177ef09fb5aa9e
6
+ metadata.gz: 2baa99f3b6c8c22154056d4e147badbbe5c1f6758d6a14b79c32e783a9d47ec5342ef11fd2a6b42f7b3deeb1ca0e983aa2443039c9051e955bf6fcd5c1d247ba
7
+ data.tar.gz: aa8046007eb533cff872cb7cb037dc1839b1f95e91122535cdf19927e8b883dc1f749b9458cd00c5336a449ca0773ce27360556199a16eb5cd88ffad23912c56
@@ -30,10 +30,19 @@ module JekyllBookshop
30
30
 
31
31
  partial = load_cached_partial(path, context)
32
32
 
33
+ loop_context = ""
34
+ if context.scopes[0]["forloop"]
35
+ name = context.scopes[0]["forloop"].name
36
+ index = context.scopes[0]["forloop"].index - 1
37
+ loop_context = "#{name}[#{index}]"
38
+ end
39
+
33
40
  context.stack do
34
41
  context["include"] = parse_params(context) if @params
35
42
  begin
36
- partial.render!(context)
43
+ "<!--bookshop-live name(#{file}) params(#{@params}) context(#{loop_context.gsub(/-/, '=').gsub(/=include\./, '=')}) -->
44
+ #{partial.render!(context)}
45
+ <!--bookshop-live end-->"
37
46
  rescue Liquid::Error => e
38
47
  e.template_name = path
39
48
  e.markup_context = "included " if e.markup_context.nil?
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module JekyllBookshop
4
- VERSION = "2.0.0.pre.beta.38"
4
+ VERSION = "2.0.0"
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: jekyll-bookshop
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.0.0.pre.beta.38
4
+ version: 2.0.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - CloudCannon
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2021-10-04 00:00:00.000000000 Z
11
+ date: 2021-10-05 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: jekyll
@@ -109,9 +109,9 @@ required_ruby_version: !ruby/object:Gem::Requirement
109
109
  version: '0'
110
110
  required_rubygems_version: !ruby/object:Gem::Requirement
111
111
  requirements:
112
- - - ">"
112
+ - - ">="
113
113
  - !ruby/object:Gem::Version
114
- version: 1.3.1
114
+ version: '0'
115
115
  requirements: []
116
116
  rubygems_version: 3.0.3
117
117
  signing_key: