govspeak 10.8.0 → 10.8.2

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: c41af1b3c9310053d1b671d8da5d6786f0048f4990baecf23b0a2b4729bd5977
4
+ data.tar.gz: 80b87db9445c14a46a65fc3e88c4b58d2ad2d2086a978a909f113622f4d6218a
5
5
  SHA512:
6
- metadata.gz: 75028eeb6446acc724c97b76f8f1ccbc04447e21c2016b89abfdb4154e18bea563b5176cb5ba014ef7c60579e07311ecae50a669999f4502253ce4951c25e810
7
- data.tar.gz: 884b2da2acb61aaa721201b80c67d40d57a2cc0ce517b1ff15114d8e530f37de35ab11473b4dca946ad34c8537e14eaaae9f7bc57d629228565f8f06cae4285c
6
+ metadata.gz: ad36ecdbd7ecae5bf41755023c71c9c0444853f6beda96f74564de70902416e5d2d0cf6eb1a8ac6cec85c967d7402751c84561f6e90ee8a9791d4bae6079dc3d
7
+ data.tar.gz: 84bd68dae456d446dd3f6573dc7eafa468515514022ad0e098be4a71371ae742066e6bf62e35bfe84ece0223a36a03f55a11be2f9f076a4f4c81886d8b9e1549
data/CHANGELOG.md CHANGED
@@ -1,5 +1,13 @@
1
1
  # Changelog
2
2
 
3
+ ## 10.8.2
4
+
5
+ * Update dependencies
6
+
7
+ ## 10.8.1
8
+
9
+ * fix: Ensure i18n load paths are flattened [PR #453](https://github.com/alphagov/govspeak/pull/453)
10
+
3
11
  ## 10.8.0
4
12
 
5
13
  * 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.2".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.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - GOV.UK Dev