i18n_screwdriver 10.7.1 → 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 +2 -2
- 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: 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
|
|
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: 2023-
|
12
|
+
date: 2023-03-01 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: rspec
|