logcast 0.2.0 → 0.2.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
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