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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 8007d07bf097d9475a171e78389891a753f69338de2a859de6754013fc84ec17
|
4
|
+
data.tar.gz: 6bad1a307d617c391b03970471310aa8be6f04571f17340391caaee50a21033e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 9ebe2ef38212facd07500e1d02976bc14f34fbab8624dfe324e6f696c0abb37571e6aec6dcef7f84422c5eb5b27ac646111b4949f694b5db14ec794d9abbcd1e
|
7
|
+
data.tar.gz: 1a4070ac2858484f3819be479b0041095eb3a7f4ee3b002cd36ef7656dc8639022a453c4fbf244a9bc076e67954651d3696a7665343b010ab7d866d234392798
|
@@ -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
|