i18n-tasks 1.0.6 → 1.0.7
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 +4 -4
- data/README.md +1 -1
- data/lib/i18n/tasks/scanners/ast_matchers/message_receivers_matcher.rb +3 -1
- data/lib/i18n/tasks/version.rb +1 -1
- 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: 26d45ca4e98198694a1b869901564fa5a3a31b94007e5b197c1052f35e061b95
|
|
4
|
+
data.tar.gz: 02e4e39e851ac4d5679040a3d14cf78a9f5fb847f742deee425d1474a3fab21e
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 5d13237444214c4075bfd99a58c877119dbfb0a1f74793694e387e4e22b96a5711d34b3157f7c908e7c24f59d7f3090d1aebfb2bcc12b33dd50c1a5452f107e0
|
|
7
|
+
data.tar.gz: cd57edb53f1ad30c5411e452fde1935b6e0a740ca0cf57b393f7a7b06b816522f94e192b659db71ce19ba91735df3edcfa9cd01382f17a529d4e8af7d9946781
|
data/README.md
CHANGED
|
@@ -24,7 +24,7 @@ i18n-tasks can be used with any project using the ruby [i18n gem][i18n-gem] (def
|
|
|
24
24
|
Add i18n-tasks to the Gemfile:
|
|
25
25
|
|
|
26
26
|
```ruby
|
|
27
|
-
gem 'i18n-tasks', '~> 1.0.
|
|
27
|
+
gem 'i18n-tasks', '~> 1.0.7'
|
|
28
28
|
```
|
|
29
29
|
|
|
30
30
|
Copy the default [configuration file](#configuration):
|
|
@@ -27,6 +27,8 @@ module I18n::Tasks::Scanners::AstMatchers
|
|
|
27
27
|
|
|
28
28
|
key, default_arg = process_options(node: second_arg_node, key: key)
|
|
29
29
|
|
|
30
|
+
return if key.nil?
|
|
31
|
+
|
|
30
32
|
[
|
|
31
33
|
full_key(receiver: receiver, key: key, location: location, calling_method: method_name),
|
|
32
34
|
I18n::Tasks::Scanners::Results::Occurrence.from_range(
|
|
@@ -71,7 +73,7 @@ module I18n::Tasks::Scanners::AstMatchers
|
|
|
71
73
|
array_flatten: true,
|
|
72
74
|
array_reject_blank: true
|
|
73
75
|
)
|
|
74
|
-
return
|
|
76
|
+
return nil if scope.nil? && scope_node.type != :nil
|
|
75
77
|
|
|
76
78
|
key = [scope, key].join('.') unless scope == ''
|
|
77
79
|
end
|
data/lib/i18n/tasks/version.rb
CHANGED
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: i18n-tasks
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 1.0.
|
|
4
|
+
version: 1.0.7
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- glebm
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2022-04-
|
|
11
|
+
date: 2022-04-05 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: activesupport
|