i18n-tasks 0.9.36 → 0.9.37
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/i18n-tasks.gemspec +1 -1
- data/lib/i18n/tasks/scanners/ruby_key_literals.rb +3 -5
- data/lib/i18n/tasks/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 9cad835aebcfc5621cb07d3a5ef4134a01cfed6286411776a9a5e04cfefe5862
|
|
4
|
+
data.tar.gz: 3b9f5a35077463778d1b940bd01738e49225fe7775d02858da5bdd9a9ded8308
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 8ed7363e9cfd2e8cf179aa0f28c0f00b926b4a53ba95f19ca61d8a08901322c561e84ebab51616f592400dac985f32c82b0a08911ec5f22223fe22e7858dd6af
|
|
7
|
+
data.tar.gz: 04b44a9180dc9b1e9d739eb5e5881877f68321bbd7efa1028a2f2d89fd3acf1cf742d587aab566a8cbd43813619693132ec803221d6c7ad31cd703ba516622f3
|
data/README.md
CHANGED
|
@@ -22,7 +22,7 @@ i18n-tasks can be used with any project using the ruby [i18n gem][i18n-gem] (def
|
|
|
22
22
|
Add i18n-tasks to the Gemfile:
|
|
23
23
|
|
|
24
24
|
```ruby
|
|
25
|
-
gem 'i18n-tasks', '~> 0.9.
|
|
25
|
+
gem 'i18n-tasks', '~> 0.9.37'
|
|
26
26
|
```
|
|
27
27
|
|
|
28
28
|
Copy the default [configuration file](#configuration):
|
data/i18n-tasks.gemspec
CHANGED
|
@@ -25,7 +25,7 @@ Gem::Specification.new do |s| # rubocop:disable Metrics/BlockLength
|
|
|
25
25
|
TEXT
|
|
26
26
|
s.homepage = 'https://github.com/glebm/i18n-tasks'
|
|
27
27
|
s.metadata = { 'issue_tracker' => 'https://github.com/glebm/i18n-tasks' } if s.respond_to?(:metadata=)
|
|
28
|
-
s.required_ruby_version = '>= 2.
|
|
28
|
+
s.required_ruby_version = '>= 2.6', '< 4.0' if s.respond_to?(:required_ruby_version=)
|
|
29
29
|
|
|
30
30
|
s.files = `git ls-files`.split($/)
|
|
31
31
|
s.files -= s.files.grep(%r{^(doc/|\.|spec/)}) + %w[CHANGES.md config/i18n-tasks.yml Gemfile]
|
|
@@ -2,12 +2,10 @@
|
|
|
2
2
|
|
|
3
3
|
module I18n::Tasks::Scanners
|
|
4
4
|
module RubyKeyLiterals
|
|
5
|
-
|
|
6
|
-
# "#{double_quoted["hash_pattern"]}" | "#{double_quoted_pattern}" | 'single_quoted_pattern' | :symbol_pattern
|
|
7
|
-
LITERAL_RE = /:?"[^\[]+\["[^"]+"\].+"|:?".+?"|:?'.+?'|:\w+/.freeze
|
|
5
|
+
LITERAL_RE = /:?".+?"|:?'.+?'|:\w+/.freeze
|
|
8
6
|
|
|
9
7
|
# Match literals:
|
|
10
|
-
# * String: '', "#{}"
|
|
8
|
+
# * String: '', "#{}"
|
|
11
9
|
# * Symbol: :sym, :'', :"#{}"
|
|
12
10
|
def literal_re
|
|
13
11
|
LITERAL_RE
|
|
@@ -22,7 +20,7 @@ module I18n::Tasks::Scanners
|
|
|
22
20
|
literal
|
|
23
21
|
end
|
|
24
22
|
|
|
25
|
-
VALID_KEY_CHARS = /(?:[[:word:]]|[-.?!:;À-ž\/
|
|
23
|
+
VALID_KEY_CHARS = /(?:[[:word:]]|[-.?!:;À-ž\/])/.freeze
|
|
26
24
|
VALID_KEY_RE = /^#{VALID_KEY_CHARS}+$/.freeze
|
|
27
25
|
|
|
28
26
|
def valid_key?(key)
|
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: 0.9.
|
|
4
|
+
version: 0.9.37
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- glebm
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2021-12-
|
|
11
|
+
date: 2021-12-26 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: activesupport
|
|
@@ -406,7 +406,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
|
406
406
|
requirements:
|
|
407
407
|
- - ">="
|
|
408
408
|
- !ruby/object:Gem::Version
|
|
409
|
-
version: '2.
|
|
409
|
+
version: '2.6'
|
|
410
410
|
- - "<"
|
|
411
411
|
- !ruby/object:Gem::Version
|
|
412
412
|
version: '4.0'
|