ndd-rspec-rails 0.2.1 → 0.2.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
  SHA1:
3
- metadata.gz: 5335b4358888653cf0468af49063137e084bfb35
4
- data.tar.gz: 674717de6685ee9a06e8a3273caa36fbb7082c33
3
+ metadata.gz: 55a683df4ad00ab1023522eafa090ca8086e4f69
4
+ data.tar.gz: d62c66f4c2a802719b31c804ebd0d7160fa67140
5
5
  SHA512:
6
- metadata.gz: d8f2abf42b37e2eb0b62a2f11b81687ef186dee8afb6ef60f3235cceb75cb6f9a3d3136a735c4653d5eb6c41a7e4638e86f7da887316f8170fd5959c2bb39d97
7
- data.tar.gz: 61ba7a24b0cbf76211039a2ee94bc88de33325150d527cf7b544100f7e8594e3b5d5ca45c1f73b0c6668d2a78ea991f7e4f3c0be37c7331c0527414281776bdc
6
+ metadata.gz: 18b3f11077c99ecf60b15ab7f3167fb2d84db19ffe01025c2ba2c5c6388c1e0d30b83501a67c8f4e4b0ae95687fe76657020c59234b42650e6b9755b8f8795f9
7
+ data.tar.gz: 236df4835e05b9e58400b307c41e06a451183eefc875850fe4fab556bd4a6fed712e4f190980858a1e458dfb8d6b6b22eff1295ab1a7d33bb841e840810de1f8
@@ -1,5 +1,9 @@
1
1
  # NDD RSpec Rails changelog
2
2
 
3
+ ## Version 0.2.2
4
+
5
+ - Fix translation fallback
6
+
3
7
  ## Version 0.2.1
4
8
 
5
9
  - Fix missing RSpec require
@@ -43,7 +43,7 @@ module Ndd
43
43
  # @param key [String] the key of the translation to lookup.
44
44
  # @return [Boolean] true if a translation exists for the given key in the given locale, false otherwise.
45
45
  def translated?(locale, key)
46
- I18n.with_locale(locale) { I18n.t(key, raise: true) }
46
+ I18n.with_locale(locale) { I18n.translate!(key, fallback: false) }
47
47
  return true
48
48
  rescue I18n::MissingTranslationData
49
49
  return false
@@ -1,7 +1,7 @@
1
1
  module Ndd
2
2
  module RSpec
3
3
  module Rails
4
- VERSION = '0.2.1'.freeze
4
+ VERSION = '0.2.2'.freeze
5
5
  end
6
6
  end
7
7
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ndd-rspec-rails
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.1
4
+ version: 0.2.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - David DIDIER