i18n_screwdriver 10.7.0 → 10.7.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/i18n_screwdriver/version.rb +1 -1
- data/lib/i18n_screwdriver.rb +3 -3
- metadata +4 -8
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 57a6bec82c2faf9f7cc122a4066d757dc2f9e0c558a8de17221b5b12f5d78942
|
4
|
+
data.tar.gz: e537c9bd5db20c19af05c82f82e1f79ff7ade1c9a533ac61bdc7ffeebc68e16a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 27e340aae80efaa77983dd81f813e465edafc6070881145d04d37ba9f1034b24c67ca8160338712d43b5c74dc06525bf59706309a9cec6d676c4874319ff4826
|
7
|
+
data.tar.gz: 7db431175c45025d4ca6e3965bc3495f78c598cf417e63fa71d3dc97664f3b43159bd861b1bdec9914152c732286955be844fc78ec3c8cd7c33459a273a6aefd
|
data/lib/i18n_screwdriver.rb
CHANGED
@@ -24,12 +24,12 @@ module I18nScrewdriver
|
|
24
24
|
end
|
25
25
|
|
26
26
|
def self.file_with_translations_exists?(locale)
|
27
|
-
File.
|
27
|
+
File.exist?(filename_for_locale(locale))
|
28
28
|
end
|
29
29
|
|
30
30
|
def self.load_translations(locale)
|
31
31
|
path = filename_for_locale(locale)
|
32
|
-
raise Error, "File #{path} not found!" unless File.
|
32
|
+
raise Error, "File #{path} not found!" unless File.exist?(path)
|
33
33
|
sanitize_hash(YAML.load_file(path)[locale])
|
34
34
|
end
|
35
35
|
|
@@ -178,7 +178,7 @@ module I18nScrewdriver
|
|
178
178
|
def self.translate(string, **options)
|
179
179
|
I18n.translate!(generate_key(string), **options)
|
180
180
|
rescue I18n::MissingTranslationData
|
181
|
-
I18n.translate(string, options)
|
181
|
+
I18n.translate(string, **options)
|
182
182
|
end
|
183
183
|
|
184
184
|
def self.extract_text(string)
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: i18n_screwdriver
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 10.7.
|
4
|
+
version: 10.7.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Tobias Miesel
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date:
|
12
|
+
date: 2023-03-01 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: rspec
|
@@ -116,12 +116,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
116
116
|
- !ruby/object:Gem::Version
|
117
117
|
version: '0'
|
118
118
|
requirements: []
|
119
|
-
rubygems_version: 3.
|
119
|
+
rubygems_version: 3.0.3
|
120
120
|
signing_key:
|
121
121
|
specification_version: 4
|
122
122
|
summary: make translating with rails i18n fun again
|
123
|
-
test_files:
|
124
|
-
- spec/i18n_screwdriver_spec.rb
|
125
|
-
- spec/locales/en.yml
|
126
|
-
- spec/locales/it.yml
|
127
|
-
- spec/spec_helper.rb
|
123
|
+
test_files: []
|