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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 5e230ce5d0532e009909dda54ffd7c0c5b25f0813d812e82c451f7e40e92419f
4
- data.tar.gz: ecc06259f731e6bc706823f5b7127bf8e7df0fbc8e126a4354cdfe186abceedf
3
+ metadata.gz: 61354938ea8f9342c8ce20f8e376dbf441fd97008ade2794eab7b3f1b8754c61
4
+ data.tar.gz: ebd474b9bcb955654a4b62b7e2be99cb42f4de6cb42bb6d1a5828808ec1885ce
5
5
  SHA512:
6
- metadata.gz: 6ddbd00faaa307f6564b5c12ea06885b39bb4808154c6a28b0ef157fe88bff85e4965d43655b32b151c96b410c7c0af64ac9167fe5ec6469ea663fcd9432a860
7
- data.tar.gz: 3d283321203ee14bc9df0ad6d7243410e2c709086153f467642fa5c85eb8585ab547d449a9e310d3833137c471f034646b3325d503ff7532659621b4e8e4d8bd
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
- # Add output config file
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 redcloth)
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 = prevent.concat input["collections"].map { |c| c["label"] }
145
- prevent = prevent.concat %w(plugins gems)
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 = input.map { |key, value|
151
- next unless value.is_a?(Array) || value.is_a?(Hash)
153
+ out = []
154
+
155
+ input.each_key { |key|
152
156
  next if prevent.include? key
153
157
  prevent.push key
154
158
 
155
- "#{key.to_json}: #{SafeJsonifyFilter.to_json(value, depth + 1)}"
156
- }.compact
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
- "\"UNSUPPORTED:#{input.class.to_json}\""
185
+ input.class.to_s.prepend("UNSUPPORTED:").to_json
180
186
  end
181
187
  end
182
188
 
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module CloudCannonJekyll
4
- VERSION = "1.2.0"
4
+ VERSION = "1.2.3"
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.2.0
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-08-31 00:00:00.000000000 Z
11
+ date: 2020-09-01 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: jekyll