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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 5f5558d107c756fa782ad6a425a9c13189e96fc5
4
- data.tar.gz: 321f55bfa86d773d871532ce7c4aab9105e0eb31
3
+ metadata.gz: c71d969ddf7b59a8c0082056dd1ee96a85db65b7
4
+ data.tar.gz: 5b5f7a01a302e4085e8cedb8eea056af07e3209e
5
5
  SHA512:
6
- metadata.gz: f83fcce7f6caba897b78d27557090394e69802fd3034ecde81d2dbacafd992b4cbfb464a326535ac16615e9739152085de28b81003b834e685a74de5bd047d1f
7
- data.tar.gz: df76434f18429622f5da5680e6b55a9db20d138f61d525d83b2bf6bb361b8415878095ebfde46fd55fd6dca76ccfa24305d065c46d07f209ccec6916a249800d
6
+ metadata.gz: 6661d556df7bb32254cff25183c9147f829543744a7f2ef9f23e15e8bec1c6574a0eca1ef68584aa2cd7a3241ad979153726fe8ed1e994b816b8ff4dd049f142
7
+ data.tar.gz: e39fd221820bb1856006a939f1e9c93785f87e30ce659e7f619756bd9e7a4e99b5874372b84dd69bf893fcdcc0e910a694d0c20ee20112399d30807a0bfeb1fe
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- i18n_checker (0.6.0)
4
+ i18n_checker (0.6.1)
5
5
  colorator (~> 1.1.0)
6
6
  haml_parser (~> 0.4)
7
7
  parser
@@ -11,7 +11,7 @@ module I18nChecker
11
11
  @locale_files = I18nChecker::Locale.load_of(locale_file_paths)
12
12
  end
13
13
 
14
- def check
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
@@ -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
- grouped_locale_texts.reduce { |locale_texts, n| locale_texts.concat(n) }.uniq!
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:)
@@ -41,7 +41,7 @@ module I18nChecker
41
41
  source_paths: source_paths,
42
42
  locale_file_paths: locale_file_paths
43
43
  )
44
- commmand.check do |result|
44
+ commmand.run do |result|
45
45
  exit 1 unless result.empty?
46
46
  end
47
47
  end
@@ -1,3 +1,3 @@
1
1
  module I18nChecker
2
- VERSION = '0.6.0'.freeze
2
+ VERSION = '0.6.1'.freeze
3
3
  end
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.0
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-05 00:00:00.000000000 Z
11
+ date: 2017-08-07 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: haml_parser