i18n 1.8.1 → 1.8.2

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: d32ff36d5385248b7ee10b2f56290d334d8960c4bf2ad235586cb3ced8076ba3
4
- data.tar.gz: 61ce5e019df9b588683df2f5d7450d9a59e11c1113149c621a52ade0e8008c12
3
+ metadata.gz: 633b59a1d482d2e8dee6baa5a22bcf93eaba9ec941fa38991576cc977e4037c8
4
+ data.tar.gz: 45d65177fa4c32288c396f6f845bb489cbb46b7c5397180a1042da73d7e72b08
5
5
  SHA512:
6
- metadata.gz: 447fbf79001dabdeb67c2f40fced56fc33996c97e04aa9fafed6944f105c57d8b76f2a01a7f962501f3b9c746d0f20e14815210e9cdad5c38387f7ea75e95949
7
- data.tar.gz: 0a520450edfe558d3441e1d14bbd5a23c6e3ee2814286979722a43c8e570f4d130c3a953c558ed1ab4e9149035752b59a0d2a41475ddb84122825839bdcf3ecd
6
+ metadata.gz: b3af86a4ed93947c57bfa9d70da30350fc353e57e12a79a5ae50a230ea5a86c90be9e376103f0ecfc849a23fb76e0281fff0226025d32e918e89a68b47d88336
7
+ data.tar.gz: 492e7c5fe9e27b6208faa5cf02880440d138ce8d4b2b261832608345b97a5cc1dc0d0d23dbf8bbfc9f5d6e81934ea579ceece446e554cdb2d3d7c3ded697822e
@@ -29,7 +29,7 @@ module I18n
29
29
  # either pick a special :zero translation even for languages where the
30
30
  # pluralizer does not return a :zero key.
31
31
  def pluralize(locale, entry, count)
32
- return entry unless entry.is_a?(Hash) && count && entry.values.none? { |v| v.is_a?(Hash) }
32
+ return entry unless entry.is_a?(Hash) && count
33
33
 
34
34
  pluralizer = pluralizer(locale)
35
35
  if pluralizer.respond_to?(:call)
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module I18n
4
- VERSION = "1.8.1"
4
+ VERSION = "1.8.2"
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.1
4
+ version: 1.8.2
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: 2020-01-09 00:00:00.000000000 Z
16
+ date: 2020-01-13 00:00:00.000000000 Z
17
17
  dependencies:
18
18
  - !ruby/object:Gem::Dependency
19
19
  name: concurrent-ruby
@@ -95,11 +95,15 @@ post_install_message: |2+
95
95
  HEADS UP! i18n 1.1 changed fallbacks to exclude default locale.
96
96
  But that may break your application.
97
97
 
98
+ If you are upgrading your Rails application from an older version of Rails:
99
+
98
100
  Please check your Rails app for 'config.i18n.fallbacks = true'.
99
101
  If you're using I18n (>= 1.1.0) and Rails (< 5.2.2), this should be
100
102
  'config.i18n.fallbacks = [I18n.default_locale]'.
101
103
  If not, fallbacks will be broken in your app by I18n 1.1.x.
102
104
 
105
+ If you are starting a NEW Rails application, you can ignore this notice.
106
+
103
107
  For more info see:
104
108
  https://github.com/svenfuchs/i18n/releases/tag/v1.1.0
105
109