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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: bc64af97dba6b97d2887320793f66249a7b17754eb3f21e3007857232bba53a9
4
- data.tar.gz: ac861a05afe512c38ecf28f45e8da9262ef433683b9b12f59274c503d1a869e9
3
+ metadata.gz: f1c3232034512e94f37ffdd823056583093147468723ef0efd169f48d51c0b89
4
+ data.tar.gz: f58e5f60f7a5c9c49332a2b679ebbbe34ff159437367c7a3b1868ab7ad42efab
5
5
  SHA512:
6
- metadata.gz: '0957f4491873f58ac95b6569ed762939ccae6cbeeecb3cbf6fb7d4a2f1b5c34ef00207a189411f7666ead8a0e8bc81a524bdd0af1a2ca43a13778cefddca3450'
7
- data.tar.gz: 4f959f0b3e6dfd264745fa5a55f355311e1e31857b469c0e894ee4cea76e17588e51451dd598ae79bbee62a3251dffd2372a923145357b7215d9e74403033a97
6
+ metadata.gz: 49fcdd1d50ba4740410399a0f9e578f6c663d0c0ea9e424d573d32b9ac33ae09d76d14e0b78ae8a0f014e47c12e1e2885f9a0e2ba88e59f4b22c384cf175b90b
7
+ data.tar.gz: 9e35da2d5f2af938db611d847f850b72cbefe31b3187887a1c53d0cfaacfa311f30ee028353013fb9bb3baa5b583dee292dd291b0beea952c6b6aec9586581fb
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- bookshop-array-structures (2.0.0.pre.alpha.9)
4
+ bookshop-array-structures (2.0.0.pre.alpha.11)
5
5
  dry-inflector (>= 0.1, < 1.0)
6
6
  jekyll (>= 3.7, < 5.0)
7
7
  toml-rb (>= 2.0, < 3.0)
@@ -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"] = {}
@@ -1,5 +1,5 @@
1
1
  module Bookshop
2
2
  module Arraystructures
3
- VERSION = "2.0.0.pre.alpha.11"
3
+ VERSION = "2.0.0.pre.alpha.12"
4
4
  end
5
5
  end
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.11
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-13 00:00:00.000000000 Z
11
+ date: 2021-06-14 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: jekyll