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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 4aebabf876501392f8a3690444d4c56d52d0096905e31e00bc3e7da5cb403d1a
4
- data.tar.gz: '059bef8245a97bd656c422875c5404fa8474ee3479b71cb657c8053aaa994e18'
3
+ metadata.gz: 57a6bec82c2faf9f7cc122a4066d757dc2f9e0c558a8de17221b5b12f5d78942
4
+ data.tar.gz: e537c9bd5db20c19af05c82f82e1f79ff7ade1c9a533ac61bdc7ffeebc68e16a
5
5
  SHA512:
6
- metadata.gz: '02892bc1ec500fb139d49f2a3342cfd87a48793f03af0d5594d7c36197d4e108b99931e52e5b2c38c5ff06b3404519c08818bf96506f845dbab367ec2759e5cb'
7
- data.tar.gz: db9129ab71bba74c09efcfce79a6e56a68b8f10da8404ef77e6ca55e5f6fa0feb524e7af250719cfb2016d5bc35bca065a717c106fd2680dacd71b2c7f984b1b
6
+ metadata.gz: 27e340aae80efaa77983dd81f813e465edafc6070881145d04d37ba9f1034b24c67ca8160338712d43b5c74dc06525bf59706309a9cec6d676c4874319ff4826
7
+ data.tar.gz: 7db431175c45025d4ca6e3965bc3495f78c598cf417e63fa71d3dc97664f3b43159bd861b1bdec9914152c732286955be844fc78ec3c8cd7c33459a273a6aefd
@@ -1,3 +1,3 @@
1
1
  module I18nScrewdriver
2
- VERSION = "10.7.0"
2
+ VERSION = "10.7.2"
3
3
  end
@@ -24,12 +24,12 @@ module I18nScrewdriver
24
24
  end
25
25
 
26
26
  def self.file_with_translations_exists?(locale)
27
- File.exists?(filename_for_locale(locale))
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.exists?(path)
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.0
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: 2021-11-25 00:00:00.000000000 Z
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.1.6
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: []