tagged_logger 0.4.2 → 0.4.5

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,9 +1,9 @@
1
1
  if defined?(Rails::Railtie)
2
2
  module TaggedLogger
3
3
  class Railtie < Rails::Railtie
4
- ActiveSupport.on_load(:action_controller) {debugger; TaggedLogger.send(:inject_logger_method_in_call_chain, ActionController::Base)}
5
- ActiveSupport.on_load(:active_record) {debugger; TaggedLogger.send(:inject_logger_method_in_call_chain, ActiveRecord::Base)}
6
- ActiveSupport.on_load(:action_mailer) {debugger; TaggedLogger.send(:inject_logger_method_in_call_chain, ActionMailer::Base)}
4
+ ActiveSupport.on_load(:action_controller) { TaggedLogger.send(:inject_logger_method_in_call_chain, ActionController::Base)}
5
+ ActiveSupport.on_load(:active_record) { TaggedLogger.send(:inject_logger_method_in_call_chain, ActiveRecord::Base)}
6
+ ActiveSupport.on_load(:action_mailer) { TaggedLogger.send(:inject_logger_method_in_call_chain, ActionMailer::Base)}
7
7
  end
8
8
  end
9
9
  end
data/test/test.rb CHANGED
@@ -30,7 +30,7 @@ class TaggedLoggerTest < Test::Unit::TestCase
30
30
  end
31
31
  TaggedLogger.rules do
32
32
  reset
33
- debug(/.*/) { |level, tag, msg| debugger; @@stub_out.write("hmmm, something new") }
33
+ debug(/.*/) { |level, tag, msg| @@stub_out.write("hmmm, something new") }
34
34
  end
35
35
  mock(@@stub_out).write("debug")
36
36
  Object.new.foo
data/test/test_rails.rb CHANGED
@@ -45,7 +45,7 @@ class TaggedLoggerRailsTest < Test::Unit::TestCase
45
45
 
46
46
  should "be possible to restore old logger methods" do
47
47
  TaggedLogger.rules(:override=>true) do
48
- info(/.*/) {|level, tag, message| debugger; stop = 9}
48
+ info(/.*/) {|level, tag, message|}
49
49
  end
50
50
  TaggedLogger.restore_old_logger_methods
51
51
  mock(Test.rails_log_device).write("hi\n")
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: tagged_logger
3
3
  version: !ruby/object:Gem::Version
4
- hash: 11
4
+ hash: 5
5
5
  prerelease: false
6
6
  segments:
7
7
  - 0
8
8
  - 4
9
- - 2
10
- version: 0.4.2
9
+ - 5
10
+ version: 0.4.5
11
11
  platform: ruby
12
12
  authors:
13
13
  - Aleksandr Furmanov