route_translator 11.0.1 → 12.0.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 57f6d2b95c1eb0c14132ac204d9b81cb81d4143c667010c857fcb02027a7514e
4
- data.tar.gz: 80c6928fdfe7023bbd677f134ac87aa7e5fa1461c5496d9422f3a26e59e8a898
3
+ metadata.gz: 67af9e1b02cca5669da31e3de5ee80a70010828cdf8b7b40ad9e281a4b336384
4
+ data.tar.gz: 9464d33a1006b8208ecddb10bac6fbea0b582d0183cc8be3b726307e665ace80
5
5
  SHA512:
6
- metadata.gz: 47642df20cbec7b90ea1d94de309a457fc0b21c7378bd5a1234d11dd49cd34f5809e1233dc50554107bfd7aa70840ae2445ffa33bcd0a8180578e9c4fe194ca1
7
- data.tar.gz: 2883c62611df844cdf0a5523e824226b5d160904530b72e7c1a00e7efe786c3ecc73f0504b37c6ad39f6e57325beeba224e43df493411b5440e8fe6198c29ade
6
+ metadata.gz: 0e65a1a4017de472931459fa414e0066ebf9f3c1dadcfc2889093bda3ea67a7e2aa031e89e2e39d9c6821e5b55d25b3fa0d5084c9604413fe6176d45a0b90619
7
+ data.tar.gz: ad478ac354cfd4aa7732aa6bc9921cf2f9f544e716e6a2e3d8b1f4788b4aff3f0a0274348f4b41c10098a22ac70c789598cfb2ca7fa557c34892090946d9e83f
data/CHANGELOG.md CHANGED
@@ -1,5 +1,10 @@
1
1
  # Changelog
2
2
 
3
+ ## 12.0.0 / 2021-11-28
4
+
5
+ * [BUGFIX] Fix disable_fallback behavior ([#241](https://github.com/enriclluelles/route_translator/issues/241))
6
+ * [ENHANCEMENT] Update development dependencies
7
+
3
8
  ## 11.0.1 / 2021-11-15
4
9
 
5
10
  * [ENHANCEMENT] Require MFA to publish gems
@@ -9,7 +9,7 @@ module RouteTranslator
9
9
 
10
10
  def fallback_options(str, locale)
11
11
  if RouteTranslator.config.disable_fallback && locale.to_s != I18n.default_locale.to_s
12
- { scope: :routes, fallback: true }
12
+ { scope: :routes, fallback: false }
13
13
  else
14
14
  { scope: :routes, default: str }
15
15
  end
@@ -25,7 +25,7 @@ module RouteTranslator
25
25
  opts = { locale: locale, scope: scope }
26
26
 
27
27
  if I18n.t(str, **opts.merge(exception_handler: handler)).is_a?(I18n::MissingTranslation)
28
- I18n.t str, **opts.merge(fallback_options(str, locale))
28
+ I18n.t! str, **opts.merge(fallback_options(str, locale))
29
29
  else
30
30
  I18n.t str, **opts
31
31
  end
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module RouteTranslator
4
- VERSION = '11.0.1'
4
+ VERSION = '12.0.0'
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: route_translator
3
3
  version: !ruby/object:Gem::Version
4
- version: 11.0.1
4
+ version: 12.0.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Geremia Taglialatela
@@ -10,7 +10,7 @@ authors:
10
10
  autorequire:
11
11
  bindir: bin
12
12
  cert_chain: []
13
- date: 2021-11-15 00:00:00.000000000 Z
13
+ date: 2021-11-28 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: actionpack