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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: '0920f169885278f664642da1cb6d8441a856b175779b4ad701aa966051644d25'
4
- data.tar.gz: f0924a2e6574dc0b8c79ca819195368696b20b3c1e1943c3db283b98d3fada34
3
+ metadata.gz: 733f9a53a5ef973b6a5342613ba74a3511ffd72e35c90d03e6aafee6179812cf
4
+ data.tar.gz: b79467615c87b31c19448b30a95d8abf9cef2392afa756b9844aac539ce41f24
5
5
  SHA512:
6
- metadata.gz: 75028eeb6446acc724c97b76f8f1ccbc04447e21c2016b89abfdb4154e18bea563b5176cb5ba014ef7c60579e07311ecae50a669999f4502253ce4951c25e810
7
- data.tar.gz: 884b2da2acb61aaa721201b80c67d40d57a2cc0ce517b1ff15114d8e530f37de35ab11473b4dca946ad34c8537e14eaaae9f7bc57d629228565f8f06cae4285c
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)
@@ -1,3 +1,3 @@
1
1
  module Govspeak
2
- VERSION = "10.8.0".freeze
2
+ VERSION = "10.8.1".freeze
3
3
  end
data/lib/govspeak.rb CHANGED
@@ -439,9 +439,9 @@ module Govspeak
439
439
  end
440
440
  end
441
441
 
442
- locale_paths = *Dir.glob(File.expand_path("locales/*.yml", Govspeak.root))
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
@@ -1601,4 +1601,8 @@ Or so we thought.)
1601
1601
  )
1602
1602
  end
1603
1603
  end
1604
+
1605
+ test "I18n load_path is not set as a nested array" do
1606
+ assert_equal I18n.load_path.count, I18n.load_path.flatten.count
1607
+ end
1604
1608
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: govspeak
3
3
  version: !ruby/object:Gem::Version
4
- version: 10.8.0
4
+ version: 10.8.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - GOV.UK Dev