cloudcannon-jekyll-bookshop 2.0.8 → 2.0.9

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: '038f7a7501b7d6a71c9761749d193ed2afd2edb1bcc69d954e0a62f61a3335ca'
4
- data.tar.gz: 67e6cd9f9a024acb7e3be50174722acfe45f7da91ed9709b334d36b77ad8430f
3
+ metadata.gz: 1276dc52be27660e3b083e2f45a765a20341671884ab60d913a167cc871889f4
4
+ data.tar.gz: cdb5b1d344df44451064adcea8d37da0757f4771ba5b92823b22c399bd304e6c
5
5
  SHA512:
6
- metadata.gz: d79cd68cab59614f93d486583b1fbfb9db5aa01d26f4eba75ee64676d154ad487309dad91a62f2950facfe5278e7cfce1ccdbc129192d54c945de10b0f2d6830
7
- data.tar.gz: 491e22beed820e04ce22c979f49913e41d7aeef5a2a4c8bd08932a816c117db5accfa80ff69a8efb3b094294c318177fa3937d7208446bfe384f28cee5a7a50c
6
+ metadata.gz: 1d1130c4851747de84020731a90e568c731367cdbe1ab49514fb7bb729eaa169675c0b08f8352125780f1fbfd383073353c76e8dd0cccacbe16690287298ef1c
7
+ data.tar.gz: b77c3992d5597a4a80fbbad2e7854cd354fc7ce923da84378bd498e89d8306d39c6e9c7a982869c9091253e724016e2264037d33d625aafc2cbbf39dd37b9da7
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- cloudcannon-jekyll-bookshop (2.0.8)
4
+ cloudcannon-jekyll-bookshop (2.0.9)
5
5
  dry-inflector (>= 0.1, < 1.0)
6
6
  jekyll (>= 3.7, < 5.0)
7
7
  node-runner-temp-fix-windows (>= 1.0, < 2.0)
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module CloudCannonJekyllBookshop
4
- VERSION = "2.0.8"
4
+ VERSION = "2.0.9"
5
5
  end
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@bookshop/cloudcannon-structures",
3
3
  "packageManager": "yarn@3.0.0",
4
- "version": "2.0.8",
4
+ "version": "2.0.9",
5
5
  "description": "Convert a Bookshop object into a CloudCannon structure",
6
6
  "main": "main.js",
7
7
  "scripts": {
@@ -17,7 +17,7 @@
17
17
  "access": "public"
18
18
  },
19
19
  "devDependencies": {
20
- "@bookshop/toml-narrator": "2.0.8",
20
+ "@bookshop/toml-narrator": "2.0.9",
21
21
  "@ltd/j-toml": "^1.17.0",
22
22
  "ava": "^3.15.0",
23
23
  "nyc": "^15.1.0",
@@ -7,7 +7,6 @@ module.exports = {
7
7
  const isVariableComment = /^[a-z0-9\-_\.\s]+=.*?#.+?$/i;
8
8
  // [some_section] #: Some comment
9
9
  const isBlockComment = /^\s*?\[.*?#.+?$/i;
10
-
11
10
  const extractComment = /#:([^#]+)$/i;
12
11
  const extractVariable = /^\s*?([a-z0-9\-_\.]+)\s?=/i;
13
12
 
@@ -15,12 +14,10 @@ module.exports = {
15
14
  const [, comment] = extractComment.exec(line) || [];
16
15
  const [, variable_name] = extractVariable.exec(line) || [];
17
16
  if (!comment || !variable_name) return line;
18
-
19
- return `${variable_name}--bookshop_comment = "${comment.trim()}"\n${line}`
17
+ return `${variable_name}--bookshop_comment = "${comment.replace(/"/g, '\"').trim()}"\n${line}`
20
18
  } else if (isBlockComment.test(line)) {
21
19
  const [, comment] = extractComment.exec(line) || [];
22
20
  if (!comment) return line;
23
-
24
21
  return `${line}\n--bookshop_comment = "${comment.trim()}"`
25
22
  } else {
26
23
  return line;
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@bookshop/toml-narrator",
3
3
  "packageManager": "yarn@3.0.0",
4
- "version": "2.0.8",
4
+ "version": "2.0.9",
5
5
  "description": "Rewrite Bookshop TOML files to preserve comments",
6
6
  "main": "main.js",
7
7
  "scripts": {
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: cloudcannon-jekyll-bookshop
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.0.8
4
+ version: 2.0.9
5
5
  platform: ruby
6
6
  authors:
7
7
  - Liam Bigelow
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2021-10-12 00:00:00.000000000 Z
11
+ date: 2021-10-13 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: jekyll