logcast 0.2.0 → 0.2.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (2) hide show
  1. data/lib/logcast/rails.rb +9 -0
  2. metadata +2 -2
data/lib/logcast/rails.rb CHANGED
@@ -1,2 +1,11 @@
1
1
  require 'logcast'
2
2
  Logcast.engage!
3
+
4
+ if defined?(Rails::VERSION::MAJOR) && Rails::VERSION::MAJOR == 3
5
+ # Rails 3 bug, method missing is delegated without a block :/
6
+ ActiveSupport::TaggedLogging.class_eval do
7
+ def method_missing(method, *args, &block)
8
+ @logger.send(method, *args, &block)
9
+ end
10
+ end
11
+ end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: logcast
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.0
4
+ version: 0.2.1
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -10,7 +10,7 @@ authors:
10
10
  autorequire:
11
11
  bindir: bin
12
12
  cert_chain: []
13
- date: 2013-07-19 00:00:00.000000000 Z
13
+ date: 2013-07-20 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: rake