injectedlogger 0.0.12 → 0.0.13
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/injectedlogger/logger.rb +2 -0
- 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: 4b957d8f6379f2342bacfe0c82a5d2ed08e0ad3d
|
4
|
+
data.tar.gz: 48330b8c10cd023613a4d9307529d9942961b636
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c3dbfd85147c8c01f3da7648e3edfa705e6528f2e3473c7adf6a22fb17db6ca76057833ccdaf71ef98a6f58822c36453b07c5958789831638fa7e3358b57308f
|
7
|
+
data.tar.gz: 1ddff66afff341dee5f371bd7e854baefc447a63e872ef46bdba104aadcf6ac09bf37c1274f5613a15ac81c40b46b4ca98bf26b4cb9ef498875eb8580d6fff35
|
@@ -49,6 +49,8 @@ module InjectedLogger
|
|
49
49
|
end
|
50
50
|
|
51
51
|
def inject!(logger_obj, levels: LOGLEVELS, fallback: UNKNOWN, prefix: nil)
|
52
|
+
# allow injecting ourselves without stacking delegators
|
53
|
+
logger_obj = logger_obj.send :logger if logger_obj.is_a? self.class
|
52
54
|
self.logger = logger_obj
|
53
55
|
set_prefix prefix
|
54
56
|
set_levels levels
|
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.13
|
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-31 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|