injectedlogger 0.0.8 → 0.0.9
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/LICENSE +2 -1
- data/README.md +1 -1
- data/lib/injectedlogger/logger.rb +2 -2
- data/lib/injectedlogger/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: b04855c6aefc41105ceeada8201cac74438e5e16
|
4
|
+
data.tar.gz: 3b7d0be8ad3bf7f468428df6e852791239a6cbe6
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a23d4e70e17d8d57bc1b7da07c5a411bfa16ab37cefe365038eeaf3ae81bfd51954831d68e828834f8c9d42314be3cb8a3ded4b67c2b740c25916026dd098ba6
|
7
|
+
data.tar.gz: 361cb12199df9325047e336f21bce4544d0f1ccecf46c40078d0d9ef431fb7ef31540523db268885a787c26c16a1172f721d1b96d08a2cf81626f42fced6818a
|
data/LICENSE
CHANGED
data/README.md
CHANGED
@@ -20,8 +20,8 @@ module InjectedLogger
|
|
20
20
|
logger[on].inject!(*args, **options)
|
21
21
|
end
|
22
22
|
|
23
|
-
def self.after_injection(&blk)
|
24
|
-
on = blk.binding.eval 'self'
|
23
|
+
def self.after_injection(on: nil, &blk)
|
24
|
+
on = blk.binding.eval 'self' if on.nil?
|
25
25
|
logger[on].after_hook = blk
|
26
26
|
end
|
27
27
|
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: injectedlogger
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.9
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Alejandro Martinez Ruiz
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-12-
|
11
|
+
date: 2014-12-11 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|