bookshop-array-structures 2.0.0.pre.alpha.11 → 2.0.0.pre.alpha.12
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/Gemfile.lock +1 -1
- data/lib/bookshop-array-structures.rb +4 -2
- data/lib/bookshop-array-structures/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: f1c3232034512e94f37ffdd823056583093147468723ef0efd169f48d51c0b89
|
4
|
+
data.tar.gz: f58e5f60f7a5c9c49332a2b679ebbbe34ff159437367c7a3b1868ab7ad42efab
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 49fcdd1d50ba4740410399a0f9e578f6c663d0c0ea9e424d573d32b9ac33ae09d76d14e0b78ae8a0f014e47c12e1e2885f9a0e2ba88e59f4b22c384cf175b90b
|
7
|
+
data.tar.gz: 9e35da2d5f2af938db611d847f850b72cbefe31b3187887a1c53d0cfaacfa311f30ee028353013fb9bb3baa5b583dee292dd291b0beea952c6b6aec9586581fb
|
data/Gemfile.lock
CHANGED
@@ -180,10 +180,12 @@ module Bookshop
|
|
180
180
|
end
|
181
181
|
|
182
182
|
def self.transform_template_component(result)
|
183
|
+
base_template_hash = {"pre.__template_code" => ""}
|
184
|
+
base_comment_hash = {"pre.__template_code" => "Helper liquid to run before the feilds below. Assigns and captures will be available"}
|
183
185
|
schema_result = Marshal.load(Marshal.dump(result))
|
184
186
|
unwrap_structure_template(schema_result, "site")
|
185
|
-
schema_result["value"] = templatize_values(schema_result["value"])
|
186
|
-
schema_result["_comments"] = templatize_comments(schema_result["_comments"])
|
187
|
+
schema_result["value"] = base_template_hash.merge! templatize_values(schema_result["value"])
|
188
|
+
schema_result["_comments"] = base_comment_hash.merge! templatize_comments(schema_result["_comments"])
|
187
189
|
schema_result["value"]["_bookshop_name"] = "#{schema_result["value"]["_bookshop_name"]}.__template"
|
188
190
|
schema_result["label"] = "Templated #{schema_result["label"]}"
|
189
191
|
schema_result["_array_structures"] = {}
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: bookshop-array-structures
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.0.0.pre.alpha.
|
4
|
+
version: 2.0.0.pre.alpha.12
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- CloudCannon
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2021-06-
|
11
|
+
date: 2021-06-14 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: jekyll
|