i18n-debug 1.1.1 → 1.2.0

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: 37900abd1219a848074cec1d7634b6eb260f7e1b8d957791e51df881e41484fb
4
- data.tar.gz: e03d0850f408aa7b43495b9850afa948fec7c501d46742d1f618dc56c26544a5
3
+ metadata.gz: 66e5026571047fdd6c3e5dfee0b8571845366a280df61f58bff56ec512a27641
4
+ data.tar.gz: 7a1bd1418dbb415728b75f3c03c2a849c2f36f4ad0fbfb2d5b021968583007f5
5
5
  SHA512:
6
- metadata.gz: d5279c2d922bb713ebd6c2608feb819c9ef6bd4dd6195e27ac63c3d5786755369aa01a6d86bdb853dd63ce3a391efe6f2af1f68ac7ebf9661dc8bf7b5caa7104
7
- data.tar.gz: dfc20ef232774d6aa3bd6b9ddea9137acb029f6c0eca10470230a7898e2ba466db59fdb6b7a42254d17cd61b2a6ada6318602c149c82b0ed0f6f3c4bfac8d7b5
6
+ metadata.gz: 302db3d0a8271dd5cf85d883befd10256025680cc24a6b03fb683f9ee3f504c2ec3b606a0f04c9b6433eb33ce9993202eb65a087a6f3cc775dae457d182dcfe7
7
+ data.tar.gz: 10d0decc417a8867dfa2a2325d32a639d24a28e3c144d4c12b69ebfc66028634ac87d5f193a23dcc786786d9be11fa66d754d51b41257a52569b9f7f717cb800
@@ -1,5 +1,9 @@
1
1
  # Changelog
2
2
 
3
+ # 1.2.0
4
+
5
+ - Don't change method visibility of `#lookup` (#8, @aleksandrs-ledovskis)
6
+
3
7
  ## 1.1.1
4
8
 
5
9
  - Update i18n version
@@ -28,6 +28,8 @@ module I18n
28
28
  end
29
29
 
30
30
  module Hook
31
+ protected
32
+
31
33
  def lookup(*args)
32
34
  super.tap do |result|
33
35
  options = args.last.is_a?(Hash) ? args.pop : {}
@@ -1,5 +1,5 @@
1
1
  module I18n
2
2
  module Debug
3
- VERSION = '1.1.1'
3
+ VERSION = '1.2.0'
4
4
  end
5
5
  end
@@ -19,6 +19,10 @@ class TestI18nDebug < Minitest::Test
19
19
  end
20
20
  end
21
21
 
22
+ def test_does_not_alter_default_i18n_lookup_method_visibility
23
+ assert I18n.backend.class.protected_method_defined?(:lookup)
24
+ end
25
+
22
26
  def test_logger_invoked
23
27
  assert_output(/en\.foo\.bar => "baz"/) do
24
28
  I18n.t('foo.bar')
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: i18n-debug
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.1
4
+ version: 1.2.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Philipe Fatio
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2018-03-05 00:00:00.000000000 Z
11
+ date: 2018-10-11 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -104,7 +104,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
104
104
  version: '0'
105
105
  requirements: []
106
106
  rubyforge_project:
107
- rubygems_version: 2.7.3
107
+ rubygems_version: 2.7.6
108
108
  signing_key:
109
109
  specification_version: 4
110
110
  summary: Ever wondered which translations are being looked up by Rails, a gem, or