cloudcannon-jekyll 4.0.1 → 4.0.2

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: 7be8e0835f8eaa063ec3669eaf538951304a13e66173335c66ff8ef0de99fb9a
4
- data.tar.gz: 4fb906e15c40bb8c63f678074e65f61a1d6557217e339d03b9610d01238f513e
3
+ metadata.gz: 787bae32d731d9cae9e4449fb385f7fed6f9457e682c78830c291ecf79294b2c
4
+ data.tar.gz: 29d1786c961cd6d2c6d12bc34cd2259c1389c84e139a473ab5123bf76f8a843a
5
5
  SHA512:
6
- metadata.gz: e8c195eaa6969fc92b4bb5a3d6439ba5b2f7d7d83cf68bea3286079deb2049bfb138c31180ac011be5acaadc3280482438cc4c7e3ef3917a1eadf838938b4643
7
- data.tar.gz: ca5ddb63afde7d94efe7b3833010da1501031fe54b16167672fbf661fe6e40e3c9168f5214ae9a7df3d821bd03b39fa97320454b6d8a18f6bc1771439beb1069
6
+ metadata.gz: 9b019fcb347c49cbbf5ec77553031c4a81d1820bbf96a43201b310275608847e7ccfd06e46950461ee355c579dbc2cecad455b08707759b1db6d8ad6e1af85a6
7
+ data.tar.gz: f0bbbe7ada0c89c63fe115b282a9313d3f577d8e6c140f101d770df72300dd6806bea2ca4f2d7c4f2feaa3d3e46c92fc0b4cf7cc20bcaea1d09e565e3dce8970
data/HISTORY.md CHANGED
@@ -1,3 +1,7 @@
1
+ # 4.0.2
2
+
3
+ * Prevent reading PageWithoutAFile documents
4
+
1
5
  # 4.0.1
2
6
 
3
7
  * Fix nested post and draft collection mapping
@@ -297,7 +297,9 @@ module CloudCannonJekyll
297
297
  end
298
298
 
299
299
  def allowed_document?(doc)
300
- if doc.instance_of?(Jekyll::Page)
300
+ if !IS_JEKYLL_2_X_X && !IS_JEKYLL_3_04_X && doc.instance_of?(Jekyll::PageWithoutAFile)
301
+ false
302
+ elsif doc.instance_of?(Jekyll::Page)
301
303
  allowed_page?(doc)
302
304
  elsif doc.instance_of?(Jekyll::StaticFile)
303
305
  allowed_static_file?(doc)
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module CloudCannonJekyll
4
- VERSION = '4.0.1'
4
+ VERSION = '4.0.2'
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.1
4
+ version: 4.0.2
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-06 00:00:00.000000000 Z
11
+ date: 2023-03-07 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: jekyll