r18n-core 3.1.1 → 3.1.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/r18n-core/translation.rb +6 -0
- data/lib/r18n-core/version.rb +1 -1
- data/spec/translation_spec.rb +7 -0
- data/spec/translations/general/en.yml +5 -0
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 489041ceb7db5e8cf6b743a024fb28208a2b8aa8bb259b33fc1b5c83af27adcc
|
4
|
+
data.tar.gz: 2a8bba59036684b3c5ea7e3c5794adc87d10fe67e9970ed6f43fe519a5c9eef7
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 6e307a9fac93250e9616ddac0b375ae23817dcc09179beb851bdc6e81c41bd5b14f55b1dc0705ff0bcc0d513197c967adf79f0727d72ee225504d6fedac0cdf3
|
7
|
+
data.tar.gz: 0bb8acf70cb671e5e43b31795c9e930e508223d0f3504d383c92e2dd33c3356f71461fe536e2586adc725acf5c7c8f7680ef94ee5181eb8ed72787bd577dc239
|
data/lib/r18n-core/version.rb
CHANGED
data/spec/translation_spec.rb
CHANGED
@@ -161,4 +161,11 @@ describe R18n::Translation do
|
|
161
161
|
it { is_expected.not_to be_translated }
|
162
162
|
end
|
163
163
|
end
|
164
|
+
|
165
|
+
context '`itself` key' do
|
166
|
+
subject { R18n::I18n.new('en', DIR).page.itself.not_found }
|
167
|
+
|
168
|
+
it { is_expected.to be_translated }
|
169
|
+
it { is_expected.to eq 'Not found' }
|
170
|
+
end
|
164
171
|
end
|
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.1.
|
4
|
+
version: 3.1.2
|
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-
|
11
|
+
date: 2018-09-03 00:00:00.000000000 Z
|
12
12
|
dependencies: []
|
13
13
|
description: |2
|
14
14
|
R18n is a i18n tool to translate your Ruby application.
|