i18n_checker 0.7.3 → 0.8.0
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/Gemfile.lock +17 -14
- data/i18n-checker.gemspec +1 -0
- data/lib/i18n_checker/locale/collector/haml.rb +1 -1
- data/lib/i18n_checker/locale/text_processor.rb +1 -1
- data/lib/i18n_checker/not_found/detector.rb +3 -3
- data/lib/i18n_checker/rake_task/check.rb +1 -1
- data/lib/i18n_checker/rake_task/clean.rb +1 -1
- data/lib/i18n_checker/unused/detector.rb +1 -1
- data/lib/i18n_checker/unused/result.rb +2 -2
- data/lib/i18n_checker/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: f0695d2dccfc42be22b1aeb675d5a45e790c72f0
|
4
|
+
data.tar.gz: a2cc2fa299502efb639c81dcec86474cef9455aa
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 0b097f01d168bc6bc4a16f223d94d04b39574ca4a01dbae50fb62825ce043f1a86dcb226fdae431b7cd9372cab83e222d427bfea7c29d1c0daa4e9991220ef00
|
7
|
+
data.tar.gz: e71cbda4f6ce0ecf1f647bca537da00ecd1119f22039d6c7729227efdde20b4c3ad1c712e9f3e1c068713cb50453695b075eebee78988d38c2433be9de42dea8
|
data/Gemfile.lock
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
i18n_checker (0.
|
4
|
+
i18n_checker (0.8.0)
|
5
5
|
colorator (~> 1.1.0)
|
6
6
|
haml_parser (~> 0.4)
|
7
7
|
parser
|
@@ -12,24 +12,26 @@ GEM
|
|
12
12
|
ansi (1.5.0)
|
13
13
|
ast (2.3.0)
|
14
14
|
colorator (1.1.0)
|
15
|
-
coveralls (0.8.
|
15
|
+
coveralls (0.8.21)
|
16
16
|
json (>= 1.8, < 3)
|
17
|
-
simplecov (~> 0.
|
17
|
+
simplecov (~> 0.14.1)
|
18
18
|
term-ansicolor (~> 1.3)
|
19
|
-
thor (~> 0.19.
|
19
|
+
thor (~> 0.19.4)
|
20
20
|
tins (~> 1.6)
|
21
21
|
diff-lcs (1.3)
|
22
22
|
docile (1.1.5)
|
23
23
|
haml_parser (0.4.1)
|
24
24
|
hirb (0.7.3)
|
25
25
|
json (2.1.0)
|
26
|
-
onkcop (0.
|
27
|
-
rubocop (~> 0.
|
28
|
-
rubocop-rspec (>= 1.
|
26
|
+
onkcop (0.49.1.0)
|
27
|
+
rubocop (~> 0.49.1)
|
28
|
+
rubocop-rspec (>= 1.15.1)
|
29
|
+
parallel (1.12.0)
|
29
30
|
parser (2.4.0.0)
|
30
31
|
ast (~> 2.2)
|
31
32
|
powerpack (0.1.1)
|
32
|
-
rainbow (2.2.
|
33
|
+
rainbow (2.2.2)
|
34
|
+
rake
|
33
35
|
rake (10.5.0)
|
34
36
|
rspec (3.6.0)
|
35
37
|
rspec-core (~> 3.6.0)
|
@@ -46,16 +48,17 @@ GEM
|
|
46
48
|
rspec-support (3.6.0)
|
47
49
|
rspec-temp_dir (1.0.0)
|
48
50
|
rspec (>= 3.0)
|
49
|
-
rubocop (0.
|
51
|
+
rubocop (0.49.1)
|
52
|
+
parallel (~> 1.10)
|
50
53
|
parser (>= 2.3.3.1, < 3.0)
|
51
54
|
powerpack (~> 0.1)
|
52
55
|
rainbow (>= 1.99.1, < 3.0)
|
53
56
|
ruby-progressbar (~> 1.7)
|
54
57
|
unicode-display_width (~> 1.0, >= 1.0.1)
|
55
|
-
rubocop-rspec (1.
|
58
|
+
rubocop-rspec (1.15.1)
|
56
59
|
rubocop (>= 0.42.0)
|
57
60
|
ruby-progressbar (1.8.1)
|
58
|
-
simplecov (0.
|
61
|
+
simplecov (0.14.1)
|
59
62
|
docile (~> 1.1.0)
|
60
63
|
json (>= 1.8, < 3)
|
61
64
|
simplecov-html (~> 0.10.0)
|
@@ -64,11 +67,11 @@ GEM
|
|
64
67
|
hirb
|
65
68
|
simplecov
|
66
69
|
simplecov-html (0.10.1)
|
67
|
-
term-ansicolor (1.
|
70
|
+
term-ansicolor (1.6.0)
|
68
71
|
tins (~> 1.0)
|
69
72
|
thor (0.19.4)
|
70
|
-
tins (1.
|
71
|
-
unicode-display_width (1.
|
73
|
+
tins (1.15.0)
|
74
|
+
unicode-display_width (1.3.0)
|
72
75
|
yard (0.9.9)
|
73
76
|
|
74
77
|
PLATFORMS
|
data/i18n-checker.gemspec
CHANGED
@@ -13,14 +13,14 @@ module I18nChecker
|
|
13
13
|
private
|
14
14
|
|
15
15
|
def detect_not_found(locale_text)
|
16
|
-
not_founds = @locale_texts.
|
16
|
+
not_founds = @locale_texts.reject do |_lang, texts|
|
17
17
|
next false if texts.nil?
|
18
|
-
|
18
|
+
texts.key?(locale_text.text)
|
19
19
|
end
|
20
20
|
not_founds.keys.map do |not_found_lang|
|
21
21
|
Text.new(
|
22
22
|
lang: not_found_lang.to_sym,
|
23
|
-
locale_text: locale_text
|
23
|
+
locale_text: locale_text,
|
24
24
|
)
|
25
25
|
end
|
26
26
|
end
|
@@ -39,7 +39,7 @@ module I18nChecker
|
|
39
39
|
commmand = I18nChecker::Command::Check.new(
|
40
40
|
reporter: reporter,
|
41
41
|
source_paths: source_paths,
|
42
|
-
locale_file_paths: locale_file_paths
|
42
|
+
locale_file_paths: locale_file_paths,
|
43
43
|
)
|
44
44
|
commmand.run do |result|
|
45
45
|
exit 1 unless result.empty?
|
@@ -39,7 +39,7 @@ module I18nChecker
|
|
39
39
|
command = I18nChecker::Command::Clean.new(
|
40
40
|
reporter: reporter,
|
41
41
|
source_paths: source_paths,
|
42
|
-
locale_file_paths: locale_file_paths
|
42
|
+
locale_file_paths: locale_file_paths,
|
43
43
|
)
|
44
44
|
command.run do |result|
|
45
45
|
exit 1 unless result.empty?
|
@@ -29,8 +29,8 @@ module I18nChecker
|
|
29
29
|
# @return [Array<I18nChecker::Locale::File>]
|
30
30
|
def apply(target_locale_files)
|
31
31
|
locale_files = target_locale_files.
|
32
|
-
|
33
|
-
|
32
|
+
group_by(&:file_name).
|
33
|
+
map { |k, v| [k, v.first] }
|
34
34
|
|
35
35
|
cleanup_locale_files = locale_files.map do |file_name, locale_file|
|
36
36
|
return locale_file unless @locale_files.key?(file_name)
|
data/lib/i18n_checker/version.rb
CHANGED