cloudcannon-jekyll 4.0.4 → 4.0.5

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: 2f8cf0b736a3578323fa400e6e891886eb0bad2aa3710136f6bf7baa7ec3f2ab
4
- data.tar.gz: 8a65016f4eba1af443c3e4b9fbaaa168e106264b005512bb3b3329a42d996367
3
+ metadata.gz: 8b1ebbc5ea9251c3a955ea8288e35eb521880b21f61c99831fde8389de98a762
4
+ data.tar.gz: aab449193d9b11643707935fc2382a1d42fa4fbbdd8513d228529a0502eba027
5
5
  SHA512:
6
- metadata.gz: 32cf8db70549016d4c0bee8805ea61ca23cef66576fac26111d8111658cc4e58605d3b6b7683f143e36f62d19611bdfcbd0184ebd0fe8cf37e4db20eb4b33674
7
- data.tar.gz: 81617011ea53c32ec1185f0f5db3d8270c35ce1b749a587af77b52eb17aea6ac528aa13915baed6448f3eb2eb06663e0d96492e14556e56c7acae0620e94e60b
6
+ metadata.gz: f7fb932d4a82f8918eeff082deb6c5ec6670e6e57fbd094694e68616ac6cf9731d5bc77b7008032e56a451246a958934653b9a71148a3c99cc8dd49ee7f58de0
7
+ data.tar.gz: bb57046070c99208660f1f070d2c34a10cca9f613cca92c79aef99c159f47fcf6b6d65dc5eff87cf93c0ef04ff2875450ff4775dcb55cfa77f1b41217679595e
data/HISTORY.md CHANGED
@@ -1,3 +1,7 @@
1
+ # 4.0.5
2
+
3
+ * Fix builds breaking on one unparseable file
4
+
1
5
  # 4.0.4
2
6
 
3
7
  * Fix PageWithoutAFile check for Jekyll ~v3.6
@@ -149,7 +149,15 @@ module CloudCannonJekyll
149
149
  end
150
150
 
151
151
  collections[key] ||= []
152
- collections[key].push(document_to_json(doc, key))
152
+
153
+ begin
154
+ jsonified = document_to_json(doc, key)
155
+ JSON.generate(jsonified) # this is here to catch JSON errors per file
156
+ collections[key].push(jsonified)
157
+ rescue
158
+ Logger.warn "⚠️ Failed to parse #{doc.relative_path.bold}"
159
+ end
160
+
153
161
 
154
162
  assigned_pages[doc.relative_path] = true if doc.instance_of?(Jekyll::Page)
155
163
  end
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module CloudCannonJekyll
4
- VERSION = '4.0.4'
4
+ VERSION = '4.0.5'
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: 4.0.4
4
+ version: 4.0.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - CloudCannon
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2023-03-16 00:00:00.000000000 Z
11
+ date: 2023-04-03 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: jekyll