cloudcannon-jekyll 1.2.0 → 1.2.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/HISTORY.md +13 -1
- data/lib/cloudcannon-jekyll/safe-jsonify-filter.rb +15 -9
- 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: 61354938ea8f9342c8ce20f8e376dbf441fd97008ade2794eab7b3f1b8754c61
|
4
|
+
data.tar.gz: ebd474b9bcb955654a4b62b7e2be99cb42f4de6cb42bb6d1a5828808ec1885ce
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 5b94f1c5e89f86faea90781700330f8845b140947af56f29aba021514959aef744f4d0213b904c7c9a3c5e84c9415f6d17a97ebe8bdf1259202370ce62203532
|
7
|
+
data.tar.gz: bbb6c0ba8ec08c3f0e10877aea8e647246cb7660feb0a31968d108160b7be66802c1e23c5465df594766006bb942b47b47fc85709f5b1a12c1b739eca767a8ee
|
data/HISTORY.md
CHANGED
@@ -1,6 +1,18 @@
|
|
1
|
+
# 1.2.3
|
2
|
+
|
3
|
+
* Add more ignore keys for legacy select data filter
|
4
|
+
|
5
|
+
# 1.2.2
|
6
|
+
|
7
|
+
* Reduce methods added from other plugins clashing
|
8
|
+
|
9
|
+
# 1.2.1
|
10
|
+
|
11
|
+
* Fix invalid output when unsupported class found
|
12
|
+
|
1
13
|
# 1.2.0
|
2
14
|
|
3
|
-
|
15
|
+
* Add output config file
|
4
16
|
|
5
17
|
# 1.1.0
|
6
18
|
|
@@ -135,25 +135,31 @@ module CloudCannonJekyll
|
|
135
135
|
documents posts related_posts time source timezone include exclude
|
136
136
|
baseurl collections _comments _editor _source_editor _explore
|
137
137
|
uploads_dir plugins_dir data_dir collections_dir includes_dir
|
138
|
-
layouts_dir _array_structures cloudcannon rdiscount redcarpet
|
138
|
+
layouts_dir _array_structures _options cloudcannon rdiscount redcarpet
|
139
|
+
redcloth jekyll-archives archives)
|
139
140
|
|
140
141
|
if Jekyll::VERSION.start_with?("2.")
|
141
|
-
prevent = prevent.concat input["collections"].keys
|
142
142
|
prevent.push "gems"
|
143
|
+
prevent = prevent.concat input["collections"].keys
|
143
144
|
elsif Jekyll::VERSION.match?(%r!3\.[0-4]\.!)
|
144
|
-
prevent
|
145
|
-
prevent
|
145
|
+
prevent.push "gems"
|
146
|
+
prevent.push "plugins"
|
147
|
+
prevent = prevent.concat(input["collections"].map { |c| c["label"] })
|
146
148
|
else
|
147
149
|
prevent.push "plugins"
|
150
|
+
prevent = prevent.concat(input.content_methods).uniq
|
148
151
|
end
|
149
152
|
|
150
|
-
out =
|
151
|
-
|
153
|
+
out = []
|
154
|
+
|
155
|
+
input.each_key { |key|
|
152
156
|
next if prevent.include? key
|
153
157
|
prevent.push key
|
154
158
|
|
155
|
-
|
156
|
-
|
159
|
+
next unless input[key].is_a?(Array) || input[key].is_a?(Hash)
|
160
|
+
|
161
|
+
out << "#{key.to_json}: #{SafeJsonifyFilter.to_json(input[key], depth + 1)}"
|
162
|
+
}
|
157
163
|
|
158
164
|
"{#{out.join(",")}}" if out.any?
|
159
165
|
end
|
@@ -176,7 +182,7 @@ module CloudCannonJekyll
|
|
176
182
|
elsif input.is_a?(Hash)
|
177
183
|
SafeJsonifyFilter.hash_to_json(input, depth)
|
178
184
|
else
|
179
|
-
|
185
|
+
input.class.to_s.prepend("UNSUPPORTED:").to_json
|
180
186
|
end
|
181
187
|
end
|
182
188
|
|
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.2.
|
4
|
+
version: 1.2.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- CloudCannon
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2020-
|
11
|
+
date: 2020-09-01 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: jekyll
|