i18n-tasks 1.0.7 → 1.0.8
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/base_matcher.rb +2 -2
- 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: 9d1d2fc604c929450bdf96a547513004630f57a1da7e368020b0313f4e4c67f4
|
|
4
|
+
data.tar.gz: 4b1a226b25f08c76d92998bc8cecd37de5e698f2f805da606804b8faa3fc0203
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
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.
|
|
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
|
|
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)
|
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.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-
|
|
11
|
+
date: 2022-04-06 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: activesupport
|