jekyll-open-sdg-plugins 1.0.0.rc5 → 1.0.0.rc6

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: ddb67e20c43456b22e036b6eb4bd15c6b97347a41a4df12c41e5b900f3667db6
4
- data.tar.gz: 40fe001e82c32aee1f9861f989d2fa78acc84de643d6f23fa919388d9e13321a
3
+ metadata.gz: 8007d07bf097d9475a171e78389891a753f69338de2a859de6754013fc84ec17
4
+ data.tar.gz: 6bad1a307d617c391b03970471310aa8be6f04571f17340391caaee50a21033e
5
5
  SHA512:
6
- metadata.gz: 1573ee2f00780f71aacd3c369baf518d7e01e6ec1f3c95c18a585a99609fa6fecdce61ac38ea154d0be555e2c1140f2514e5aa2da9925d0f606cb12f5b654a5d
7
- data.tar.gz: 5229e6d494619d2763781dab24f8bfed67f0f9907a10eb2d2e37882cdce7bcc839c1ee816a57d46893d358e1229e6c300095619d51fcb2fc3bbb9ccd915ac826
6
+ metadata.gz: 9ebe2ef38212facd07500e1d02976bc14f34fbab8624dfe324e6f696c0abb37571e6aec6dcef7f84422c5eb5b27ac646111b4949f694b5db14ec794d9abbcd1e
7
+ data.tar.gz: 1a4070ac2858484f3819be479b0041095eb3a7f4ee3b002cd36ef7656dc8639022a453c4fbf244a9bc076e67954651d3696a7665343b010ab7d866d234392798
@@ -1,6 +1,9 @@
1
1
  require "jekyll"
2
2
  require_relative "helpers"
3
3
 
4
+ # This plugin will be removed before version 1.0.0.
5
+ # Do not rely on this!
6
+
4
7
  module Jekyll
5
8
  module IndicatorName
6
9
 
@@ -1,5 +1,8 @@
1
1
  require "jekyll"
2
2
 
3
+ # This plugin will be removed before version 1.0.0.
4
+ # Do not rely on this!
5
+
3
6
  module JekyllOpenSdgPlugins
4
7
  class MultilingualMetadataGenerator < Jekyll::Generator
5
8
  safe true
@@ -313,6 +313,10 @@ module JekyllOpenSdgPlugins
313
313
  else
314
314
  raise "Error: An indicator does not have 'indicator_number' property."
315
315
  end
316
+ # Force the indicator number to be a string.
317
+ if indicator_number.is_a? Numeric
318
+ indicator_number = indicator_number.to_s
319
+ end
316
320
  goal_number = get_goal_number(indicator_number)
317
321
  target_number = get_target_number(indicator_number)
318
322
  doc.data['goal'] = available_goals[language].find {|x| x['number'] == goal_number}
@@ -328,6 +332,10 @@ module JekyllOpenSdgPlugins
328
332
  else
329
333
  raise "Error: A goal does not have 'goal_number' property."
330
334
  end
335
+ # Force the goal number to be a string.
336
+ if goal_number.is_a? Numeric
337
+ goal_number = goal_number.to_s
338
+ end
331
339
  doc.data['goal'] = available_goals[language].find {|x| x['number'] == goal_number}
332
340
  end
333
341
  end
@@ -1,3 +1,3 @@
1
1
  module JekyllOpenSdgPlugins
2
- VERSION = "1.0.0.rc5".freeze
2
+ VERSION = "1.0.0.rc6".freeze
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: jekyll-open-sdg-plugins
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.0.rc5
4
+ version: 1.0.0.rc6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Brock Fanning