jekyll-open-sdg-plugins 2.0.0.pre.beta1 → 2.0.0.pre.beta2

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: f6de9152fa38e922c20c0a0ad30146daf4fa4366dcd3d7adfdf40f2c2db47485
4
- data.tar.gz: 3b667053f64fac03603e2510fc7d64129d4693975aa88673d2b98e191df305d7
3
+ metadata.gz: cb19c3882511945e349e4287135dab4646f9eb76e223fcdf4a66cb71fa2b0255
4
+ data.tar.gz: 81c36042c51555555ecb9a20fc9c23bb66faabe3f6bba670c70b414a41828590
5
5
  SHA512:
6
- metadata.gz: 47e4c01c0e3a26dadc816e509eb4fe7256357f627a2ad37a5cc4cfe0825bc59a017b157a798654aa2e3a810c213c2f376a731fa3e089e4e7cf01c222d133270b
7
- data.tar.gz: 321ff77fc2b09632bb75e41f2a13cca2ac6fbe4b85e487539ebeb13e7181e3c199b95f00d30d9203b21148cb13b5b0ccd1e3a3191ff4450172fe226e36e05d0c
6
+ metadata.gz: 0425bed0630eff8a5ef64ca847a93fe01d0eb040774fd8de1681675e505b197069ef72f92128f5db51bb9c1b97e4598f579716c99721a96cd21579b67f32c2bd
7
+ data.tar.gz: 551577a071d49cbcb5d24c73de802a61738ea9f85258eb84e737d458d086aff686d12ce7e5d670ed164a39767d0cfc659e5a7f89eb58adc6e394aa5681872174
@@ -25,6 +25,11 @@ module JekyllOpenSdgPlugins
25
25
  # as the Open SDG API changes over time.
26
26
  def generate(site)
27
27
 
28
+ # Abort if some configurations from 1.x are still being used.
29
+ if (site.config.has_key?('metadata_tabs') && site.config['metadata_tabs'].is_a?(Hash))
30
+ opensdg_error('The metadata_tabs setting is not in the correct format. Please consult the latest documentation: https://open-sdg.readthedocs.io/en/latest/configuration/#metadata_tabs')
31
+ end
32
+
28
33
  # Handle legacy treatment of reporting status types.
29
34
  unless (site.config.has_key?('reporting_status') &&
30
35
  site.config['reporting_status'].has_key?('status_types') &&
@@ -570,7 +570,7 @@
570
570
  "title": "Graph color set",
571
571
  "description": "This setting can be used to customize the color set used in the charts.",
572
572
  "examples": [],
573
- "enum": ["default", "accessible", "sdg", "goal", "custom"],
573
+ "enum": ["accessible", "classic", "sdg", "goal", "custom"],
574
574
  "links": [
575
575
  {
576
576
  "rel": "More information on the graph color set setting",
@@ -15,7 +15,7 @@ module Jekyll
15
15
  translated = opensdg_translate_key(key, translations, language)
16
16
  # Also look for references to site configuration within the translation,
17
17
  # as "%" parameters.
18
- translated = translated.gsub(/%([a-zA-Z0-9_.\-]+)/) do |match|
18
+ translated = translated.gsub(/%([a-zA-Z0-9_.]+)/) do |match|
19
19
  # Special case for trailing dots.
20
20
  trailing_dot = match.end_with?('.')
21
21
  key_candidate = match.delete_suffix('.').delete_prefix('%')
@@ -1,3 +1,3 @@
1
1
  module JekyllOpenSdgPlugins
2
- VERSION = "2.0.0-beta1".freeze
2
+ VERSION = "2.0.0-beta2".freeze
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: jekyll-open-sdg-plugins
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.0.0.pre.beta1
4
+ version: 2.0.0.pre.beta2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Brock Fanning
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2022-06-17 00:00:00.000000000 Z
11
+ date: 2022-06-22 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: jekyll