cloudcannon-jekyll 1.6.0 → 1.6.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 +4 -4
- data/HISTORY.md +4 -0
- data/lib/cloudcannon-jekyll/jsonify-filter.rb +4 -2
- data/lib/cloudcannon-jekyll/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: a266498a3b883dfc9855310c042b181cef8b0949feab77d8918e345e9c72fe68
|
4
|
+
data.tar.gz: d4884d8ca59e5cddb15e395fc9c058667e28c82fbd25b953b8cae4feaace2b82
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 43d10a91998d62ff91e67935912d752415212cf3c6162731c761af6fcf1a4af967b51a3f711c815a8b8a3c8a5407818fd927ec7cd6444561a3efa6d2171f5bc9
|
7
|
+
data.tar.gz: 23b4eae55f04f524c949856a264818548159567c3b121f892ee86776fe582cf7d9817e646222ea7a68a6ff2fbd88749435b260951d8cd26bb0384997cdcd5de7
|
data/HISTORY.md
CHANGED
@@ -63,7 +63,8 @@ module CloudCannonJekyll
|
|
63
63
|
next if prevent.include? key
|
64
64
|
|
65
65
|
prevent.push key
|
66
|
-
|
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,
|
152
|
+
"#{string_key}: #{JsonifyFilter.to_json(value, depth, next_max_depth, key_swaps)}"
|
151
153
|
end
|
152
154
|
|
153
155
|
"{#{out.join(",")}}"
|
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.
|
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-
|
11
|
+
date: 2021-03-04 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: jekyll
|