govspeak 10.8.0 → 10.8.1
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 +4 -4
- data/CHANGELOG.md +4 -0
- data/lib/govspeak/version.rb +1 -1
- data/lib/govspeak.rb +2 -2
- data/test/govspeak_test.rb +4 -0
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 733f9a53a5ef973b6a5342613ba74a3511ffd72e35c90d03e6aafee6179812cf
|
|
4
|
+
data.tar.gz: b79467615c87b31c19448b30a95d8abf9cef2392afa756b9844aac539ce41f24
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 582e8c1dc672de89f3dd8baa795df2d6ff90646b313cca6ec71cd6d63d0a3b506e2b1aef8e8ed7d729195557496d934a98b810249111eb2690eafe68c322c8c8
|
|
7
|
+
data.tar.gz: fd31d88a87ab6b5148666387230d83b36af33bf74d6270fe65c6a7ff5f5d555820364fec601c04ec3298ab2fc5f5f4b5f26d4ea7bec53445e49b09ce2067b217
|
data/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,9 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 10.8.1
|
|
4
|
+
|
|
5
|
+
* fix: Ensure i18n load paths are flattened [PR #453](https://github.com/alphagov/govspeak/pull/453)
|
|
6
|
+
|
|
3
7
|
## 10.8.0
|
|
4
8
|
|
|
5
9
|
* feature: Allow callers to specify which headers will be auto-numbered [PR #451](https://github.com/alphagov/govspeak/pull/451)
|
data/lib/govspeak/version.rb
CHANGED
data/lib/govspeak.rb
CHANGED
|
@@ -439,9 +439,9 @@ module Govspeak
|
|
|
439
439
|
end
|
|
440
440
|
end
|
|
441
441
|
|
|
442
|
-
locale_paths =
|
|
442
|
+
locale_paths = Dir.glob(File.expand_path("locales/*.yml", Govspeak.root))
|
|
443
443
|
|
|
444
|
-
I18n.load_path.unshift(locale_paths)
|
|
444
|
+
I18n.load_path.unshift(*locale_paths)
|
|
445
445
|
I18n.available_locales = locale_paths.map do |path|
|
|
446
446
|
path.match(/([^\/]+).yml/)[1].to_sym
|
|
447
447
|
end
|
data/test/govspeak_test.rb
CHANGED