r18n-core 3.0.2 → 3.0.3

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
- SHA1:
3
- metadata.gz: 6c2b5bc9e67ee5b4b0790810e601865dc2082e65
4
- data.tar.gz: 034de9f18b155603529243ec4700982d30ce2b00
2
+ SHA256:
3
+ metadata.gz: 872f0c756206953b74029b1d28dc7b08451891e46d9658471c4a8e97edcde8ef
4
+ data.tar.gz: 06cce85cf3acb6e0fdf4d9491cf2ec3371634621a23d770ad16f57c8828ae64b
5
5
  SHA512:
6
- metadata.gz: bc910ba240e8aca034b83da0efce3dc0e1fcd293769b95548a3b60f37df0d1151604577174ce6e51958a90f44e13f882bc3420ba0b2118b2fc07067500fff4a7
7
- data.tar.gz: b0d541ebd712f5246e5720fb563b2c4ae282b319ad32e6ea8e2803488fb09ba4efc0ef1077442bbf9369461ba045193b758ecb9d3bfc04a80f910095e97f692c
6
+ metadata.gz: d4343d08637cb686d13e9578fa9a5e64e71c7ac2917b01251fef313768fd563ded2a6b326492eeac0bc44694b2e9fed529fc9712c886cc11c4ea42dc55834a72
7
+ data.tar.gz: 99ba4318d206002baae5c7c79d7af2350f8b3bfa8603760609580529b0191ece36f2726d573bc09550bd97b5f53d6fff8894bdb570d17f8139984894097f57f0
data/ChangeLog.md CHANGED
@@ -1,5 +1,8 @@
1
1
  # Change Log
2
2
 
3
+ ## 3.0.3 (〥)
4
+ * Fix missed filters in `Untranslted` initialization (by Alexander Popov).
5
+
3
6
  ## 3.0.2 (Ё)
4
7
  * Fix `Untranslted.to_s` (by Patrik Rak).
5
8
 
@@ -56,7 +56,7 @@ module R18n
56
56
  end
57
57
 
58
58
  if value.class == String
59
- TranslatedString.new(value, config[:locale], config[:path])
59
+ TranslatedString.new(value, config[:locale], config[:path], self)
60
60
  else
61
61
  value
62
62
  end
@@ -2,5 +2,5 @@
2
2
 
3
3
  # Version of R18n Core
4
4
  module R18n
5
- VERSION = '3.0.2'.freeze unless defined? R18n::VERSION
5
+ VERSION = '3.0.3'.freeze unless defined? R18n::VERSION
6
6
  end
data/spec/filters_spec.rb CHANGED
@@ -194,6 +194,8 @@ describe R18n::Filters do
194
194
  expect(@i18n.in.not.to_s).to eq('in.[not]')
195
195
  expect(@i18n.in.not.to_str).to eq('in.[not]')
196
196
 
197
+ expect(@i18n.one.not_exists.to_s).to eq('one.[not_exists]')
198
+
197
199
  R18n::Filters.off(:untranslated)
198
200
  expect(@i18n.in.not.to_s).to eq('in.not')
199
201
 
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: r18n-core
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.0.2
4
+ version: 3.0.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Andrey Sitnik
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2018-03-16 00:00:00.000000000 Z
11
+ date: 2018-04-11 00:00:00.000000000 Z
12
12
  dependencies: []
13
13
  description: |2
14
14
  R18n is a i18n tool to translate your Ruby application.
@@ -174,7 +174,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
174
174
  version: '0'
175
175
  requirements: []
176
176
  rubyforge_project:
177
- rubygems_version: 2.5.2.2
177
+ rubygems_version: 2.7.6
178
178
  signing_key:
179
179
  specification_version: 4
180
180
  summary: I18n tool to translate your Ruby application.