i18n 1.8.6 → 1.8.7

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: d9b8df30b8d8d663013890240fddf75eda1bd6c117b160ce5bfd319fc6a0e573
4
- data.tar.gz: 1dbf4d1a8318f5000647f0d11a0ac8d779221e47668a0bc2717f39979b47c127
3
+ metadata.gz: ecfb802a53a50fa0b480295092adbe3064584ef69f06b81851b95bd15f49bca2
4
+ data.tar.gz: 84e6ce2a82b2ce6f52ba8358b5c409c7fe48ff790ca7f3680d922557b06c7f56
5
5
  SHA512:
6
- metadata.gz: b4f2bf69569a1cf19f77905a58aff61bc764229adf57b3f539a6d59e7006a5b9299de3db48360ae09b33817512096af052925569480cc387494058c635451d97
7
- data.tar.gz: 9e8df6cd121e09dfcfdb2384542bbfa4837b7ddb5442d0d5f7ee14832e1b0b7fab0ba65192b733c490b8b25dfd1cfc0bc7e0c87ec57e1b47327caeec067337ad
6
+ metadata.gz: c8cf31834170e4aea3f2b25cfad6930372f4ab5f781a9fb7c5f78e6ddabb5316f45a67c5258375d50b5b4ea7f7a97d3a44eda6c34d1a8e7b8c5e5a5f21a95042
7
+ data.tar.gz: 49532d4362b42b2dcf5f8ef60afd677e64d23aece076933623f0e102f3a803383bff1f6c9add7d00097044459cbd609dd71ead49a965af1636c7a3452f3a885b
@@ -10,15 +10,17 @@
10
10
  #
11
11
  # I18n::Backend::Simple.include(I18n::Backend::Fallbacks)
12
12
  module I18n
13
+ @@fallbacks = nil
14
+
13
15
  class << self
14
16
  # Returns the current fallbacks implementation. Defaults to +I18n::Locale::Fallbacks+.
15
17
  def fallbacks
16
- Thread.current[:i18n_fallbacks] ||= I18n::Locale::Fallbacks.new
18
+ @@fallbacks ||= I18n::Locale::Fallbacks.new
17
19
  end
18
20
 
19
21
  # Sets the current fallbacks implementation. Use this to set a different fallbacks implementation.
20
22
  def fallbacks=(fallbacks)
21
- Thread.current[:i18n_fallbacks] = fallbacks.is_a?(Array) ? I18n::Locale::Fallbacks.new(fallbacks) : fallbacks
23
+ @@fallbacks = fallbacks.is_a?(Array) ? I18n::Locale::Fallbacks.new(fallbacks) : fallbacks
22
24
  end
23
25
  end
24
26
 
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module I18n
4
- VERSION = "1.8.6"
4
+ VERSION = "1.8.7"
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.6
4
+ version: 1.8.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - Sven Fuchs
@@ -13,7 +13,7 @@ authors:
13
13
  autorequire:
14
14
  bindir: bin
15
15
  cert_chain: []
16
- date: 2021-01-01 00:00:00.000000000 Z
16
+ date: 2021-01-04 00:00:00.000000000 Z
17
17
  dependencies:
18
18
  - !ruby/object:Gem::Dependency
19
19
  name: concurrent-ruby