cloudcannon-jekyll 1.4.0 → 1.4.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 +3 -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: 27fc78b980c8ee16f5bb1f9576d7536a16912d5fb41f4074e6768e88488ccf97
|
4
|
+
data.tar.gz: fd725b0483c287da1d952f910d1c8b9e451bd221fe58a8dd190cff4d95531d49
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 67cee5772f33736f2ec69a99a1c3dd9fef9dd0eeacff28c3fe7ebb9dafc4fe2ddf9d26ffc34f82445bd42f4a659fd49e1cad4d6057a28aa24bb000a79822bb4d
|
7
|
+
data.tar.gz: b062438425381b74c995c0566f31ef964788ab310a03f74db7918e7bbab22bd73dfba3249ef33e0243c7d48134ad626b029cebb61a01a07fec223c0a4aeab75e
|
data/HISTORY.md
CHANGED
@@ -133,7 +133,8 @@ module CloudCannonJekyll
|
|
133
133
|
|
134
134
|
def self.hash_to_json(input, depth, key_swaps = {})
|
135
135
|
hash = input.map do |key, value|
|
136
|
-
|
136
|
+
string_key = (key_swaps[key] || key).to_s.to_json
|
137
|
+
"#{string_key}: #{JsonifyFilter.to_json(value, depth + 1, key_swaps)}"
|
137
138
|
end
|
138
139
|
|
139
140
|
"{#{hash.join(",")}}"
|
@@ -154,7 +155,7 @@ module CloudCannonJekyll
|
|
154
155
|
next if prevent.include? key
|
155
156
|
|
156
157
|
prevent.push key
|
157
|
-
"#{key.to_json}: #{JsonifyFilter.to_json(value, depth + 1)}"
|
158
|
+
"#{key.to_s.to_json}: #{JsonifyFilter.to_json(value, depth + 1)}"
|
158
159
|
end
|
159
160
|
|
160
161
|
out.compact!
|
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.4.
|
4
|
+
version: 1.4.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- CloudCannon
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2020-09-
|
11
|
+
date: 2020-09-22 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: jekyll
|