cloudcannon-jekyll 3.0.0 → 3.0.1

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: 37060b4654f27c7236d0952625b91b56b081c6be24c1a76c034036a80ba1735d
4
- data.tar.gz: 055c7dbc77a247c254b05bcecedf5a45a9595c0b4ceae671676ec32fa1f771c3
3
+ metadata.gz: 726de702565cba929f871a0f61317b250f691ca552b6175b466fc84ef9ea3edd
4
+ data.tar.gz: 1313e07afea85c8d6f2db84ee5a826ca8270eefc31f8becf963f9526046c8b40
5
5
  SHA512:
6
- metadata.gz: 4b9536ca8a4097fa234c35a30226a9c17bd9a020e5d883ef82f38883a9a93d6e8f6afbfe17197b949468baec9d6a077f3467ec9b3a23fdaf19740590ce28ba1b
7
- data.tar.gz: 89bdca52d720c403ddcaf8dc3d20debc1e1da51664874585b132332b199ef444c20c5104686b7ab576b0b5a6ccfad4cabd91157bc38e08a78ca5300e313ea211
6
+ metadata.gz: 10f106d6cd9e49c319383d7789c589f9d27b64c53b4b3514d6a90d1ecbeccc881c15d65e531f3061ffbe8832ad5d5b41f05f714e8c4611d8f2262f8d43e5aa34
7
+ data.tar.gz: 44bdfbbfea06be2b1c8bb77031aafb0ad777905fab94e004e55b548e55d8508253cf70e019923d40dd933bfbef020566080221b3b00338a910c03cad3ef6dae4
data/HISTORY.md CHANGED
@@ -1,3 +1,7 @@
1
+ # 3.0.1
2
+
3
+ * Support aliases in YAML configuration files
4
+
1
5
  # 3.0.0
2
6
 
3
7
  * Add `collections_config_override`
data/README.md CHANGED
@@ -12,7 +12,7 @@ create a JSON file used to automatically integrate the site with CloudCannon.
12
12
 
13
13
  - [Installation](#installation)
14
14
  - [Configuration](#configuration)
15
- - [Development](#plugin-options)
15
+ - [Development](#development)
16
16
  - [License](#license)
17
17
 
18
18
  ***
@@ -55,7 +55,7 @@ module CloudCannonJekyll
55
55
  end
56
56
 
57
57
  def config_file(path)
58
- loaded = YAML.safe_load(File.read(path)) # Also works for JSON
58
+ loaded = YAML.safe_load(File.read(path), aliases: true) # Also loads JSON
59
59
  Logger.info "⚙️ Using config file at #{path.bold}"
60
60
  loaded
61
61
  rescue Errno::ENOENT
@@ -88,11 +88,11 @@ module CloudCannonJekyll
88
88
  '_inputs' => @site_config['_inputs'],
89
89
  '_editables' => @site_config['_editables'],
90
90
  '_structures' => @site_config['_structures'],
91
+ '_enabled_editors' => @site_config['_enabled_editors'],
91
92
 
92
93
  # Deprecated keys
93
94
  '_array_structures' => @site_config['_array_structures'],
94
95
  '_comments' => @site_config['_comments'],
95
- '_enabled_editors' => @site_config['_enabled_editors'],
96
96
  '_instance_values' => @site_config['_instance_values'],
97
97
  '_options' => @site_config['_options']
98
98
  }
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module CloudCannonJekyll
4
- VERSION = '3.0.0'
4
+ VERSION = '3.0.1'
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: 3.0.0
4
+ version: 3.0.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - CloudCannon
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2021-12-12 00:00:00.000000000 Z
11
+ date: 2022-01-19 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: jekyll