i18n-tasks 1.0.7 → 1.0.8

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: 26d45ca4e98198694a1b869901564fa5a3a31b94007e5b197c1052f35e061b95
4
- data.tar.gz: 02e4e39e851ac4d5679040a3d14cf78a9f5fb847f742deee425d1474a3fab21e
3
+ metadata.gz: 9d1d2fc604c929450bdf96a547513004630f57a1da7e368020b0313f4e4c67f4
4
+ data.tar.gz: 4b1a226b25f08c76d92998bc8cecd37de5e698f2f805da606804b8faa3fc0203
5
5
  SHA512:
6
- metadata.gz: 5d13237444214c4075bfd99a58c877119dbfb0a1f74793694e387e4e22b96a5711d34b3157f7c908e7c24f59d7f3090d1aebfb2bcc12b33dd50c1a5452f107e0
7
- data.tar.gz: cd57edb53f1ad30c5411e452fde1935b6e0a740ca0cf57b393f7a7b06b816522f94e192b659db71ce19ba91735df3edcfa9cd01382f17a529d4e8af7d9946781
6
+ metadata.gz: aeff02b2b63a8d64a37e80342b4dcf41c1a2c0379a8792b1064c6af431e18350c3130b890ee8bb83b4cc0cc6527b0721dabd2c7eb96ea420414b749d7c1b7a35
7
+ data.tar.gz: ce61d0886ca762588e101032f2d51207742f24f30d5c8d681594ea44ae08f508ac5f032f6bad2e27b117bf349794089753cd9669aa9e25de5d72831ac5db2d63
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.7'
27
+ gem 'i18n-tasks', '~> 1.0.8'
28
28
  ```
29
29
 
30
30
  Copy the default [configuration file](#configuration):
@@ -39,7 +39,7 @@ module I18n::Tasks::Scanners::AstMatchers
39
39
  # `nil` is returned when a dynamic value is encountered in strict mode. Propagate:
40
40
  return nil if str.nil?
41
41
  end
42
- elsif !@scanner&.config[:strict] && %i[dsym dstr].include?(node.type)
42
+ elsif !@scanner.config[:strict] && %i[dsym dstr].include?(node.type)
43
43
  node.children.map do |child|
44
44
  if %i[sym str].include?(child.type)
45
45
  child.children[0].to_s
@@ -77,7 +77,7 @@ module I18n::Tasks::Scanners::AstMatchers
77
77
  extract_string child
78
78
  else
79
79
  # ignore dynamic argument in strict mode
80
- return nil if config[:strict]
80
+ return nil if @scanner.config[:strict]
81
81
 
82
82
  if %i[dsym dstr].include?(child.type) || (child.type == :array && array_flatten)
83
83
  extract_string(child, array_join_with: array_join_with)
@@ -2,6 +2,6 @@
2
2
 
3
3
  module I18n
4
4
  module Tasks
5
- VERSION = '1.0.7'
5
+ VERSION = '1.0.8'
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.7
4
+ version: 1.0.8
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-05 00:00:00.000000000 Z
11
+ date: 2022-04-06 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activesupport