i18n_checker 0.6.0 → 0.6.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +1 -1
- data/lib/i18n_checker/command/check.rb +1 -1
- data/lib/i18n_checker/locale.rb +2 -1
- data/lib/i18n_checker/rake_task/check.rb +1 -1
- data/lib/i18n_checker/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: c71d969ddf7b59a8c0082056dd1ee96a85db65b7
|
4
|
+
data.tar.gz: 5b5f7a01a302e4085e8cedb8eea056af07e3209e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 6661d556df7bb32254cff25183c9147f829543744a7f2ef9f23e15e8bec1c6574a0eca1ef68584aa2cd7a3241ad979153726fe8ed1e994b816b8ff4dd049f142
|
7
|
+
data.tar.gz: e39fd221820bb1856006a939f1e9c93785f87e30ce659e7f619756bd9e7a4e99b5874372b84dd69bf893fcdcc0e910a694d0c20ee20112399d30807a0bfeb1fe
|
data/Gemfile.lock
CHANGED
@@ -11,7 +11,7 @@ module I18nChecker
|
|
11
11
|
@locale_files = I18nChecker::Locale.load_of(locale_file_paths)
|
12
12
|
end
|
13
13
|
|
14
|
-
def
|
14
|
+
def run
|
15
15
|
not_found_detector = I18nChecker::NotFound::Detector.new(@locale_files)
|
16
16
|
not_found_result = @locale_texts.detect(not_found_detector)
|
17
17
|
@reporter.report not_found_result
|
data/lib/i18n_checker/locale.rb
CHANGED
@@ -26,7 +26,8 @@ module I18nChecker
|
|
26
26
|
grouped_locale_texts = grouped_files.map do |k, v|
|
27
27
|
text_collector_of(k, caches: caches).collect_all(v)
|
28
28
|
end
|
29
|
-
|
29
|
+
result = I18nChecker::Locale::Texts.new
|
30
|
+
grouped_locale_texts.reduce(result) { |locale_texts, n| locale_texts.concat(n) }.uniq!
|
30
31
|
end
|
31
32
|
|
32
33
|
def text_collector_of(file_extname, caches:)
|
data/lib/i18n_checker/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: i18n_checker
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.6.
|
4
|
+
version: 0.6.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- holyshared
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2017-08-
|
11
|
+
date: 2017-08-07 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: haml_parser
|