traco 3.2.0 → 3.2.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,15 +1,15 @@
1
1
  ---
2
2
  !binary "U0hBMQ==":
3
3
  metadata.gz: !binary |-
4
- ODYwOGJlNTZiOWNkMmU1Y2MxYTA1ZDExZTc0ZGQ0MjQ5ZjhjMjI5ZA==
4
+ OTY3M2RiMzgxNzI2YzY5YWQ2Nzg5N2VhMmY0ZDg0YjlhOGQwMzQ1Ng==
5
5
  data.tar.gz: !binary |-
6
- MmYzNmJhMjkwYjRjNmYzMThjYjk2NmFmOTYxOGNlMThkM2U0MGU0Ng==
6
+ MTI3YWIxYmRjNDQ5MmIxNWIyNmI3NGFjMWEwY2FiZWEwMjNiMWFiOA==
7
7
  SHA512:
8
8
  metadata.gz: !binary |-
9
- OWY1ZDRhZmVkNDIzOTNiOThjNmU4MjIxMTViMWE5ZTI2MzU4NGI3MzgyZGYx
10
- YmU5OWE3YTA5YmNhMWNkOWI0MjNmZjdjZWY5ZWNiN2E0YWVlYWMzZDY3MGUx
11
- ODgxM2MwNGYzZjNkMjY1MGVhNmM3NjM4NjVjMGUyYTFjYWRhYmM=
9
+ MGZjNTUyNzg3NDNiOWQyYjM2ZTE4NmRhOGY5Mzc3ZGJlY2ZkOWZiYzJjMTVm
10
+ OTA3ZDY1ZWMxZDFmMmFkMGM4NTE4Y2I0ZjM1NTY2ODFmY2UwMzY0ZjYwZTQy
11
+ YWM1N2U2OTkyNWY3YTM1OTU2NDNlMjNlNjczMTBjYmZjMzU2Yzk=
12
12
  data.tar.gz: !binary |-
13
- NzMzNzFkOGM0NjUwN2MwOGM4NDUzYTRhYTQzZDY3NWNmYzEzNmNmODFmNGQ2
14
- ZTgzYjYwNDFiMDhiZGNiMmMyZjViNDc1YjBjMjA4NzkzYTFlMjY5MjQyNDJj
15
- YWZiYmU2ZTIwNzE4MjFmYzJmYmYyOTlmMDJmNThjYzBlYjI3NmU=
13
+ OTUyOGE2M2E0MTM3ODVhMjg1MTA3MDkzNDU3YmUwOTZhMWM5Yjg0MDJhNDU2
14
+ YzVjM2JhM2E3ZjBhOWJmZTUzOWI2NWIxZTljZjA4MDUxMWUyMzkyMTUyNmI5
15
+ NmRiOTdhNzA2NmU3OTVmZmM2N2U3MWQzN2NiMmIyOGUyOTU5MDg=
@@ -1,5 +1,9 @@
1
1
  # Changelog
2
2
 
3
+ ## 3.2.1
4
+
5
+ * Bugfix: with `fallback: [:sv]`, always look at current locale before any fallbacks.
6
+
3
7
  ## 3.2.0
4
8
 
5
9
  * Introduce e.g. `fallback: [:sv]` to explicitly specify fallbacks.
@@ -26,7 +26,7 @@ module Traco
26
26
  when ANY_FALLBACK then [ current_locale, @default_locale, *@available_locales ].uniq
27
27
  when NO_FALLBACK then [ current_locale ]
28
28
  when DEFAULT_FIRST_FALLBACK then [ @default_locale, *@available_locales ].uniq
29
- when Array then fallback_option
29
+ when Array then [ current_locale, *fallback_option ]
30
30
  else raise "Unknown fallback." # Should never get here.
31
31
  end
32
32
  end
@@ -1,3 +1,3 @@
1
1
  module Traco
2
- VERSION = "3.2.0"
2
+ VERSION = "3.2.1"
3
3
  end
@@ -36,9 +36,9 @@ describe Traco::LocaleFallbacks do
36
36
  end
37
37
 
38
38
  context "with an explicit list of locales" do
39
- it "returns only those locales" do
39
+ it "returns only those locales, after the current one" do
40
40
  subject = Traco::LocaleFallbacks.new([ :en ])
41
- expect(subject[:sv]).to eq [ :en ]
41
+ expect(subject[:sv]).to eq [ :sv, :en ]
42
42
  end
43
43
  end
44
44
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: traco
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.2.0
4
+ version: 3.2.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Henrik Nyh