i18n 1.8.3 → 1.8.4

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: 461ee8866033d12fb5dd2daaa85703916b83ba58c225afd5bfe31e30c3231aa6
4
- data.tar.gz: 9bd10034e9629c3fb72c07974fef0b069047b269dbab165ecbd5b8c38c9c5567
3
+ metadata.gz: 37cc527d32916bffa8e32840086ef15b9f30c8eb08cb8f65bb6a4faf5d00a66e
4
+ data.tar.gz: f3f6a1a5724fe61ee5e9111bc167708d248fe7e3d700c10c0485fbd4bdf7b17e
5
5
  SHA512:
6
- metadata.gz: feb783a73598b1ab9e319f5569d71b14c061816bdb8e7d887262fed6531ec0a3c77afa36a4257080bbc7a1ec5239963a08b2f37a3dd449db82f9e402c5f57fbc
7
- data.tar.gz: fdb2f914e53484a8cf925b71de1004a4d0c1bfa3da4b7d50bd14fcda1ab036ae12d773e692cbf85ade5e78906af24fcc05b22156e280a4615e26430f8929eb75
6
+ metadata.gz: 638f732a18f9b9a26a4085320b24a56e3205944cdd1db8d6e751ca106ec848e88224e212fc83ce6324c61d34c471b66d67e3319620f16ae7d4b9ce43d053124e
7
+ data.tar.gz: ba6baab0a49d1e18b7fff46c0bf8c1f8d23bb74d68cca6ae33b7ddf6484de02ae9de24d7d2ee9cb3e77d2acd67e5b69df7e1e7ae19fc7bb265dd47707354f763
@@ -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?(I18n::Locale::Fallbacks) ? fallbacks : I18n::Locale::Fallbacks.new(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 if method_defined? :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", :"de-DE", :de, :"en-US", :en]
29
+ # I18n.fallbacks[:"de-AT"] # => [:"de-AT", :de, :"de-DE"]
30
30
  #
31
31
  # # using a custom locale as default fallback locale
32
32
  #
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module I18n
4
- VERSION = "1.8.3"
4
+ VERSION = "1.8.4"
5
5
  end
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.3
4
+ version: 1.8.4
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-06-05 00:00:00.000000000 Z
16
+ date: 2020-07-20 00:00:00.000000000 Z
17
17
  dependencies:
18
18
  - !ruby/object:Gem::Dependency
19
19
  name: concurrent-ruby
@@ -122,7 +122,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
122
122
  version: 1.3.5
123
123
  requirements: []
124
124
  rubygems_version: 3.1.2
125
- signing_key:
125
+ signing_key:
126
126
  specification_version: 4
127
127
  summary: New wave Internationalization support for Ruby
128
128
  test_files: []
129
+ ...