cloudcannon-jekyll 0.0.6 → 0.0.7

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 3db71cd9bcacadb8f15366629da8293090b1d69c978036cf268b5a92ea85df67
4
- data.tar.gz: 1f56b1012167361c96d4f1fd503fe05f966d477e514bf119049c866c611d6286
3
+ metadata.gz: f01b60e0d604a23c3cf74c0b7623735de62970b11e09837b7dbb3061dc7c7a6d
4
+ data.tar.gz: b5be4e5fabb243a3c4d7887a6016bdc985a2fcc5afb2d2d1914819afa4fc4906
5
5
  SHA512:
6
- metadata.gz: 2b937bad2c330cdb0508123e368af6ccf92d409945f25ca1c09d1c33735f2fba3b14814a4096719d45d1b7e15da785d674a3381c5e89a1bfba6306013d6b952e
7
- data.tar.gz: f4d83f61a966a9514f88d6ce45819bc89ed110cbf133fca24eb9314fa0b0b40a8d7cd0d7790236226766e5073cf57c43b97c4eb28268d2cac25b68b71f4e3864
6
+ metadata.gz: d0e2734eb0cc53acd5feffd553739e92884bea64d56fc7ff52cf0ace0de0f7fea5ab91213e9c161b26efb0846e01e8ab13380ec8c154fcaabbf7a0ad4f5dbd6c
7
+ data.tar.gz: 3b627c6c89aa20ddbdd9309da96021ad90b9e2ce1f67783046b14c491a89a9badad9255fde240b008c6773e51fd931c9c61dfb59111ec001a67df39efbb7cec5
data/HISTORY.md CHANGED
@@ -1,3 +1,7 @@
1
+ # 0.0.7
2
+
3
+ * Fix invalid JSON issue for sites built with Jekyll 2 and no collections
4
+
1
5
  # 0.0.6
2
6
 
3
7
  * Fixed unsupported Fixnum for Ruby 2.3
@@ -2,13 +2,11 @@
2
2
 
3
3
  require "jekyll"
4
4
 
5
- module CloudCannonJekyll
6
- autoload :PageWithoutAFile, "cloudcannon-jekyll/page-without-a-file"
7
- autoload :Generator, "cloudcannon-jekyll/generator"
8
- autoload :Configuration, "cloudcannon-jekyll/configuration"
9
- autoload :SafeJsonifyFilter, "cloudcannon-jekyll/safe-jsonify-filter"
10
- autoload :VERSION, "cloudcannon-jekyll/version"
11
- end
5
+ require_relative "cloudcannon-jekyll/page-without-a-file"
6
+ require_relative "cloudcannon-jekyll/generator"
7
+ require_relative "cloudcannon-jekyll/configuration"
8
+ require_relative "cloudcannon-jekyll/safe-jsonify-filter"
9
+ require_relative "cloudcannon-jekyll/version"
12
10
 
13
11
  Liquid::Template.register_filter(CloudCannonJekyll::SafeJsonifyFilter)
14
12
 
@@ -16,7 +16,7 @@
16
16
  },{% if site.cloudcannon.data %}
17
17
  "data": {{ site.data | cc_safe_jsonify }},{% endif %}
18
18
  "collections": {
19
- "posts": {{ site.posts | reverse | cc_safe_jsonify }},
19
+ "posts": {{ site.posts | reverse | cc_safe_jsonify }}{% if site.collections.size > 0 %},{% endif %}
20
20
  {% for collection in site.collections %}"{{ collection[0] | xml_escape }}": {{ collection[1].docs | cc_safe_jsonify }}{% unless forloop.last %},{% endunless %}
21
21
  {% endfor %}
22
22
  },
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module CloudCannonJekyll
4
- VERSION = "0.0.6"
4
+ VERSION = "0.0.7"
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: 0.0.6
4
+ version: 0.0.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - CloudCannon
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2019-11-21 00:00:00.000000000 Z
11
+ date: 2019-12-19 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: jekyll