cloudcannon-jekyll 2.0.0 → 2.0.1

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: aa855266f0cf697d2c9933a087c363ee3f1b81659a71f0b9dbdc2d36d42d5c29
4
- data.tar.gz: d43d27f97b01e437f4ca6e4f73b066cd7fa53aa67623637a43edfa6b9931cf28
3
+ metadata.gz: 53ae411ed9f49f16499909a76dac7d5ed5b2081e5bfe68f689bab9d50579f5f3
4
+ data.tar.gz: 8a7706bf17a6f5ccb3b2c7d25d2b13ba32b4e957e2f190cf2cdc889f641cb16e
5
5
  SHA512:
6
- metadata.gz: 8e9dc486faa0469d5a93b68a48f8c9bbc36330db04e383ac6e801491581a768aa0c57705b09274a4585d1b796ae4b7a097d1209b17cfa6fc5150b57e680a7af9
7
- data.tar.gz: 37973b235d6ba9c4e30590d25b01de05cc027f90539ca51bc3438b1a09fc510323bbd19cb58e6083e89c683b27caab655f8be0233d6c27e8b282d4cf830f40cc
6
+ metadata.gz: f86f4d41b7ad221de5008fe53d1ff81e0f3d74b2e096d41169db2b311ecbc12d62fe176d285171f2a0a54e4ac33eb3b8a6011296e52c2792b89e11f0fa0d7c56
7
+ data.tar.gz: 9b0ff63a9a2753e8195b99c05607c08225f33636898ae31eb082c77ad930c7c6308c4393c019e0a74484eb9acb53c3d12ad50b923da47773e7a6342dc6a32441
data/HISTORY.md CHANGED
@@ -1,3 +1,7 @@
1
+ # 2.0.1
2
+
3
+ * Fix potential for null keys in cc_jsonify filter
4
+
1
5
  # 2.0.0
2
6
 
3
7
  * Rename a number of top level configuration keys to match source keys
@@ -60,7 +60,7 @@ module CloudCannonJekyll
60
60
  prevent += %w(content output next previous excerpt)
61
61
 
62
62
  out = data.map do |key, value|
63
- next if prevent.include? key
63
+ next if prevent.include?(key) || key.nil?
64
64
 
65
65
  prevent.push key
66
66
  next_max_depth = key == "_array_structures" ? 20 : max_depth
@@ -167,7 +167,7 @@ module CloudCannonJekyll
167
167
 
168
168
  out = input.map do |key, value|
169
169
  next unless value.is_a?(Array) || value.is_a?(Hash)
170
- next if prevent.include? key
170
+ next if prevent.include?(key) || key.nil?
171
171
 
172
172
  prevent.push key
173
173
  "#{key.to_s.to_json}: #{JsonifyFilter.to_json(value, depth)}"
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module CloudCannonJekyll
4
- VERSION = "2.0.0"
4
+ VERSION = "2.0.1"
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: cloudcannon-jekyll
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.0.0
4
+ version: 2.0.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - CloudCannon
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2021-06-14 00:00:00.000000000 Z
11
+ date: 2021-07-21 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: jekyll