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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 626a55a436c0caa8acbf1b7f4d4f8d62e6e2e120895c7779d0cdf246741c3df3
4
- data.tar.gz: b9a3952c3d7fd4f397eae457f852981ac95bfc5de462fa0b11f24be911ee6b64
3
+ metadata.gz: 26d45ca4e98198694a1b869901564fa5a3a31b94007e5b197c1052f35e061b95
4
+ data.tar.gz: 02e4e39e851ac4d5679040a3d14cf78a9f5fb847f742deee425d1474a3fab21e
5
5
  SHA512:
6
- metadata.gz: f80fa2dcbe418c139b9b647b56279616dd93bfe9907f385106cc4c3a8a0bdd45bfeef6d42c0a40d0302f8b509b6264fa3d7029759248ffb0ee99d273ef9510a6
7
- data.tar.gz: 65f3ca7fac75aea396192796d302aa2af95917ff3f27834e5989da25574c7c2d195b82422bd36215fe3b5a21f793f2594ca0dd6be029df9368f1c63681eae51d
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.6'
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 [key, nil] if scope.nil? && scope_node.type != :nil
76
+ return nil if scope.nil? && scope_node.type != :nil
75
77
 
76
78
  key = [scope, key].join('.') unless scope == ''
77
79
  end
@@ -2,6 +2,6 @@
2
2
 
3
3
  module I18n
4
4
  module Tasks
5
- VERSION = '1.0.6'
5
+ VERSION = '1.0.7'
6
6
  end
7
7
  end
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.6
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-04 00:00:00.000000000 Z
11
+ date: 2022-04-05 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activesupport