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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 0701226a4844564067a36a5d01a23de9fba80a19
4
- data.tar.gz: d6d6e8b220383059413b3d13a1541162fae8edae
3
+ metadata.gz: 4b957d8f6379f2342bacfe0c82a5d2ed08e0ad3d
4
+ data.tar.gz: 48330b8c10cd023613a4d9307529d9942961b636
5
5
  SHA512:
6
- metadata.gz: 2eed8c42de293300f6dbaf60a03a9328e860f8ee7560d64e69e9162629c0d8faca070b56289c4ed238cdc7d786933f06e1a3af2278e89f5a471e276e0d3fac06
7
- data.tar.gz: 4f35da7700138c6045a9b6c5f867d3a3ea8a9dcd16c83315fe61dfab44db79dc3d89c8269e8613a78dbc331229c140f0c5dd304680c84ff8e9f86816e2d999b1
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
@@ -1,3 +1,3 @@
1
1
  module InjectedLogger
2
- VERSION = '0.0.12'
2
+ VERSION = '0.0.13'
3
3
  end
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.12
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-29 00:00:00.000000000 Z
11
+ date: 2014-12-31 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler