cloudcannon-jekyll 1.6.0 → 1.6.1

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: 10ce07fce474de172ceafec1ecbe0a0d4e6d012d2357befc0cef41e2418a992e
4
- data.tar.gz: 418f38e206327042999eca17c901477e7fd864bce425a5410a6b49cc503760f3
3
+ metadata.gz: a266498a3b883dfc9855310c042b181cef8b0949feab77d8918e345e9c72fe68
4
+ data.tar.gz: d4884d8ca59e5cddb15e395fc9c058667e28c82fbd25b953b8cae4feaace2b82
5
5
  SHA512:
6
- metadata.gz: db5ebdba978110b1b312dafb9b1e3f9928edd4259b9095af266a2be1964bdf3028a0fe303080353b8a5a18685ae52705dd630cf16285e1be9f7c129c328fc525
7
- data.tar.gz: 76f36521f6b0888b90be9e0a071bd5c3258e97ec2623d996ebf3a5cdc7f0f3f771e35bf6b0f258f4e5654538e7dcc17524f32fd37223414b0cb5ffbf8f24700d
6
+ metadata.gz: 43d10a91998d62ff91e67935912d752415212cf3c6162731c761af6fcf1a4af967b51a3f711c815a8b8a3c8a5407818fd927ec7cd6444561a3efa6d2171f5bc9
7
+ data.tar.gz: 23b4eae55f04f524c949856a264818548159567c3b121f892ee86776fe582cf7d9817e646222ea7a68a6ff2fbd88749435b260951d8cd26bb0384997cdcd5de7
data/HISTORY.md CHANGED
@@ -1,3 +1,7 @@
1
+ # 1.6.1
2
+
3
+ * Increase max depth for array structures defined outside of global
4
+
1
5
  # 1.6.0
2
6
 
3
7
  * Add `collections_dir` to details collection item paths
@@ -63,7 +63,8 @@ module CloudCannonJekyll
63
63
  next if prevent.include? key
64
64
 
65
65
  prevent.push key
66
- "#{key.to_json}: #{JsonifyFilter.to_json(value, depth, max_depth)}"
66
+ next_max_depth = key == "_array_structures" ? 20 : max_depth
67
+ "#{key.to_json}: #{JsonifyFilter.to_json(value, depth, next_max_depth)}"
67
68
  end
68
69
 
69
70
  out.compact
@@ -146,8 +147,9 @@ module CloudCannonJekyll
146
147
 
147
148
  def self.hash_to_json(input, depth, max_depth, key_swaps = {})
148
149
  out = input.map do |key, value|
150
+ next_max_depth = key == "_array_structures" ? 20 : max_depth
149
151
  string_key = (key_swaps[key] || key).to_s.to_json
150
- "#{string_key}: #{JsonifyFilter.to_json(value, depth, max_depth, key_swaps)}"
152
+ "#{string_key}: #{JsonifyFilter.to_json(value, depth, next_max_depth, key_swaps)}"
151
153
  end
152
154
 
153
155
  "{#{out.join(",")}}"
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module CloudCannonJekyll
4
- VERSION = "1.6.0"
4
+ VERSION = "1.6.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: 1.6.0
4
+ version: 1.6.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-02-22 00:00:00.000000000 Z
11
+ date: 2021-03-04 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: jekyll