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 +8 -8
- data/CHANGELOG.md +4 -0
- data/lib/traco/locale_fallbacks.rb +1 -1
- data/lib/traco/version.rb +1 -1
- data/spec/locale_fallbacks_spec.rb +2 -2
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,15 +1,15 @@
|
|
1
1
|
---
|
2
2
|
!binary "U0hBMQ==":
|
3
3
|
metadata.gz: !binary |-
|
4
|
-
|
4
|
+
OTY3M2RiMzgxNzI2YzY5YWQ2Nzg5N2VhMmY0ZDg0YjlhOGQwMzQ1Ng==
|
5
5
|
data.tar.gz: !binary |-
|
6
|
-
|
6
|
+
MTI3YWIxYmRjNDQ5MmIxNWIyNmI3NGFjMWEwY2FiZWEwMjNiMWFiOA==
|
7
7
|
SHA512:
|
8
8
|
metadata.gz: !binary |-
|
9
|
-
|
10
|
-
|
11
|
-
|
9
|
+
MGZjNTUyNzg3NDNiOWQyYjM2ZTE4NmRhOGY5Mzc3ZGJlY2ZkOWZiYzJjMTVm
|
10
|
+
OTA3ZDY1ZWMxZDFmMmFkMGM4NTE4Y2I0ZjM1NTY2ODFmY2UwMzY0ZjYwZTQy
|
11
|
+
YWM1N2U2OTkyNWY3YTM1OTU2NDNlMjNlNjczMTBjYmZjMzU2Yzk=
|
12
12
|
data.tar.gz: !binary |-
|
13
|
-
|
14
|
-
|
15
|
-
|
13
|
+
OTUyOGE2M2E0MTM3ODVhMjg1MTA3MDkzNDU3YmUwOTZhMWM5Yjg0MDJhNDU2
|
14
|
+
YzVjM2JhM2E3ZjBhOWJmZTUzOWI2NWIxZTljZjA4MDUxMWUyMzkyMTUyNmI5
|
15
|
+
NmRiOTdhNzA2NmU3OTVmZmM2N2U3MWQzN2NiMmIyOGUyOTU5MDg=
|
data/CHANGELOG.md
CHANGED
@@ -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
|
data/lib/traco/version.rb
CHANGED
@@ -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
|
|