i18n 1.8.3 → 1.8.5
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/i18n/backend/fallbacks.rb +1 -1
- data/lib/i18n/interpolate/ruby.rb +1 -1
- data/lib/i18n/locale/fallbacks.rb +1 -1
- data/lib/i18n/version.rb +1 -1
- metadata +6 -5
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: c0af2c5dbaed2aca864b85e22cf0f7d84d36f37f5337d9759c0b7866a6215f49
|
4
|
+
data.tar.gz: 4abf3d970c3916609be3671e8920450241713cf88a8846adbcf86cdeca37f4cc
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 242ea3d4a1ecc037c18df92c92bc10fd31cca67ce41ce938a51654d76acab75f2dad4d37eda00247dc50760ee8f714bd4006bedde38db6c17e36db2ec29cf629
|
7
|
+
data.tar.gz: efd51bcc1f5b0838bf9f99b2bec2ba985ab04e6dbc5976468612b7f7b06ac71a59d21876e2f469f9d3a8ab819e52b3656b9d93a5a4711b592290d40a073d8cd4
|
@@ -20,7 +20,7 @@ module I18n
|
|
20
20
|
|
21
21
|
# Sets the current fallbacks implementation. Use this to set a different fallbacks implementation.
|
22
22
|
def fallbacks=(fallbacks)
|
23
|
-
@@fallbacks = fallbacks
|
23
|
+
@@fallbacks = fallbacks.is_a?(Array) ? I18n::Locale::Fallbacks.new(fallbacks) : fallbacks
|
24
24
|
end
|
25
25
|
end
|
26
26
|
|
@@ -8,7 +8,7 @@ module I18n
|
|
8
8
|
/%<(\w+)>(.*?\d*\.?\d*[bBdiouxXeEfgGcps])/ # matches placeholders like "%<foo>.d"
|
9
9
|
].freeze
|
10
10
|
INTERPOLATION_PATTERN = Regexp.union(DEFAULT_INTERPOLATION_PATTERNS)
|
11
|
-
deprecate_constant :INTERPOLATION_PATTERN
|
11
|
+
deprecate_constant :INTERPOLATION_PATTERN
|
12
12
|
|
13
13
|
class << self
|
14
14
|
# Return String or raises MissingInterpolationArgument exception.
|
@@ -26,7 +26,7 @@
|
|
26
26
|
#
|
27
27
|
# I18n.default_locale = :"en-US"
|
28
28
|
# I18n.fallbacks = I18n::Locale::Fallbacks.new(:"de-AT" => :"de-DE")
|
29
|
-
# I18n.fallbacks[:"de-AT"] # => [:"de-AT", :
|
29
|
+
# I18n.fallbacks[:"de-AT"] # => [:"de-AT", :de, :"de-DE"]
|
30
30
|
#
|
31
31
|
# # using a custom locale as default fallback locale
|
32
32
|
#
|
data/lib/i18n/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: i18n
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.8.
|
4
|
+
version: 1.8.5
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Sven Fuchs
|
@@ -10,10 +10,10 @@ authors:
|
|
10
10
|
- Stephan Soller
|
11
11
|
- Saimon Moore
|
12
12
|
- Ryan Bigg
|
13
|
-
autorequire:
|
13
|
+
autorequire:
|
14
14
|
bindir: bin
|
15
15
|
cert_chain: []
|
16
|
-
date: 2020-
|
16
|
+
date: 2020-07-23 00:00:00.000000000 Z
|
17
17
|
dependencies:
|
18
18
|
- !ruby/object:Gem::Dependency
|
19
19
|
name: concurrent-ruby
|
@@ -121,8 +121,9 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
121
121
|
- !ruby/object:Gem::Version
|
122
122
|
version: 1.3.5
|
123
123
|
requirements: []
|
124
|
-
rubygems_version: 3.
|
125
|
-
signing_key:
|
124
|
+
rubygems_version: 3.0.3
|
125
|
+
signing_key:
|
126
126
|
specification_version: 4
|
127
127
|
summary: New wave Internationalization support for Ruby
|
128
128
|
test_files: []
|
129
|
+
...
|