i18n_checker 0.8.0 → 0.8.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: f0695d2dccfc42be22b1aeb675d5a45e790c72f0
4
- data.tar.gz: a2cc2fa299502efb639c81dcec86474cef9455aa
3
+ metadata.gz: '00138b291e22894b6beffebb4ab1332f98d5bae0'
4
+ data.tar.gz: ac641342d31374cd17b9292ff78808760ade2cf5
5
5
  SHA512:
6
- metadata.gz: 0b097f01d168bc6bc4a16f223d94d04b39574ca4a01dbae50fb62825ce043f1a86dcb226fdae431b7cd9372cab83e222d427bfea7c29d1c0daa4e9991220ef00
7
- data.tar.gz: e71cbda4f6ce0ecf1f647bca537da00ecd1119f22039d6c7729227efdde20b4c3ad1c712e9f3e1c068713cb50453695b075eebee78988d38c2433be9de42dea8
6
+ metadata.gz: 5a7be1b6c288c48ebf122d8797f7b49c951f247c52480fb420d0452cfcc5121ab31f1c0db0b53ddd54d7a665eea7ece23f4caa2f3e053bfe50d57ae0289d0cc9
7
+ data.tar.gz: 995d236b18d1c362e5a93fd322e64fa0b624ad3251ea677d1078ded0ca38594cf971a3d048863c3b487f14b1941dc46828709814b31d715d3a51147202769a12
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- i18n_checker (0.8.0)
4
+ i18n_checker (0.8.1)
5
5
  colorator (~> 1.1.0)
6
6
  haml_parser (~> 0.4)
7
7
  parser
@@ -50,7 +50,7 @@ module I18nChecker
50
50
  current_locale_texts.delete_if { |locale_text| registry.key?(locale_text) }
51
51
 
52
52
  remain_texts = {}
53
- remain_texts[@lang] = current_locale_texts
53
+ remain_texts[@lang] = tree_of(current_locale_texts)
54
54
 
55
55
  self.class.new(file_name, remain_texts)
56
56
  end
@@ -95,8 +95,8 @@ module I18nChecker
95
95
  last_key = paths.pop
96
96
  dest = result
97
97
  paths.each do |p|
98
- result[p] = {} unless result.key?(p)
99
- dest = result[p]
98
+ dest[p] = {} unless dest.key?(p)
99
+ dest = dest[p]
100
100
  end
101
101
  dest[last_key] = value
102
102
  end
@@ -1,4 +1,5 @@
1
1
  require 'colorator'
2
+ require 'i18n_checker/unused/reporter/base'
2
3
 
3
4
  module I18nChecker
4
5
  module NotFound
@@ -1,6 +1,4 @@
1
- require 'i18n_checker/unused/result'
2
- require 'i18n_checker/unused/result'
3
- require 'i18n_checker/unused/detector'
1
+ require 'colorator'
4
2
  require 'i18n_checker/unused/reporter/base'
5
3
 
6
4
  module I18nChecker
@@ -1,3 +1,3 @@
1
1
  module I18nChecker
2
- VERSION = '0.8.0'.freeze
2
+ VERSION = '0.8.1'.freeze
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: i18n_checker
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.8.0
4
+ version: 0.8.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - holyshared