i18nliner 0.1.1 → 0.1.2

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
  SHA256:
3
- metadata.gz: b2db12d6bdf711b5e95c9a5d4ad41b9f89099090bcb3be1555d0487beaf643cb
4
- data.tar.gz: c8f147f4df24fca4cd39f5960d168431947ef2b3963a67b771394ff86a5d5cdc
3
+ metadata.gz: cfc705d5ce5735092cebbf57dd2d4241e0f9c29565163a7a300659b7b8fb39a1
4
+ data.tar.gz: e477d3007a6ecfa1914bc2acf0798f84ca00d0f75a18450e793fc47743b3a45a
5
5
  SHA512:
6
- metadata.gz: 668686f434bf422b7eea80e953274702946f3698c56f3a5d3f74fb8f679230d52babb1454a7722c4df3c4dcbe48fed09a1b0dc662bc5fab744f8b14ce618c916
7
- data.tar.gz: a953fff2982e2266056f065c0375b5c5631d005092bdd6f5a07f631e83eda27d3e8bae1a2cf5d21f34f734950b42654cad8396262c53faa507731045b54e089e
6
+ metadata.gz: c9b27ba1617c266b3b627848ba465beb66674e55733274c5a850069845bea80c60acdddaea07cad3ed5de8c36ff432f159ffae7595cef4d94ba181f6f742a351
7
+ data.tar.gz: 736d2e7a69ededb1cc61d2cc6e6538c4ce1d187e58ea54a6c7dde845b6c22ac03d86b2677fdcd58d30e01c6dcdd39a79e00f1d83d608d510bbf571c66bb309d6
@@ -3,6 +3,6 @@ require 'i18nliner/base'
3
3
 
4
4
  require 'i18nliner/extensions/core'
5
5
  I18n.send :extend, I18nliner::Extensions::Core
6
- I18n::RESERVED_KEYS << :i18nliner_scope << :i18nliner_inferred_key
6
+ require 'i18nliner/reserved_keys'
7
7
 
8
8
  require 'i18nliner/railtie' if defined?(Rails)
@@ -0,0 +1,4 @@
1
+ keys = I18n::RESERVED_KEYS.dup
2
+ keys << :i18nliner_scope << :i18nliner_inferred_key
3
+ I18n.send(:remove_const, :RESERVED_KEYS)
4
+ I18n.const_set(:RESERVED_KEYS, keys)
@@ -0,0 +1,8 @@
1
+ require 'i18nliner/reserved_keys'
2
+
3
+ describe I18n do
4
+ it "adds new reserved keys" do
5
+ expect(I18n::RESERVED_KEYS).to include(:i18nliner_scope)
6
+ expect(I18n::RESERVED_KEYS).to include(:i18nliner_inferred_key)
7
+ end
8
+ end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: i18nliner
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.1
4
+ version: 0.1.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jon Jensen
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2019-10-07 00:00:00.000000000 Z
11
+ date: 2020-02-25 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activesupport
@@ -188,6 +188,7 @@ files:
188
188
  - lib/i18nliner/processors/erb_processor.rb
189
189
  - lib/i18nliner/processors/ruby_processor.rb
190
190
  - lib/i18nliner/railtie.rb
191
+ - lib/i18nliner/reserved_keys.rb
191
192
  - lib/i18nliner/scope.rb
192
193
  - lib/tasks/i18nliner.rake
193
194
  - spec/commands/check_spec.rb
@@ -205,6 +206,7 @@ files:
205
206
  - spec/pre_processors/erb_pre_processor_spec.rb
206
207
  - spec/processors/erb_processor_spec.rb
207
208
  - spec/processors/ruby_processor_spec.rb
209
+ - spec/reserved_keys_spec.rb
208
210
  homepage: http://github.com/jenseng/i18nliner
209
211
  licenses: []
210
212
  metadata: {}