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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: b509e96629351ab9e5dad7429cff1942e09a12a6
4
- data.tar.gz: a54f79bdf60b07015830f44749b8de05127a47e9
3
+ metadata.gz: b04855c6aefc41105ceeada8201cac74438e5e16
4
+ data.tar.gz: 3b7d0be8ad3bf7f468428df6e852791239a6cbe6
5
5
  SHA512:
6
- metadata.gz: 8b1cb6ab011b7a7017548f4a271417a97d3458488190e68338465cec18d28eb90b6cd9c48f6c9a39f2635f1b8ef214e6ba9f3ca8663cdb098ddddbc8990af62c
7
- data.tar.gz: 426effc3a7dc5e304eb3f8fa43d62c9ba7ca6827808e1cfe6d281e1d6774cc40757894b7fa234697d5f3336c6a93eaebb996f11426632c5dc862c285b3e2af9d
6
+ metadata.gz: a23d4e70e17d8d57bc1b7da07c5a411bfa16ab37cefe365038eeaf3ae81bfd51954831d68e828834f8c9d42314be3cb8a3ded4b67c2b740c25916026dd098ba6
7
+ data.tar.gz: 361cb12199df9325047e336f21bce4544d0f1ccecf46c40078d0d9ef431fb7ef31540523db268885a787c26c16a1172f721d1b96d08a2cf81626f42fced6818a
data/LICENSE CHANGED
@@ -1,4 +1,5 @@
1
- Copyright (c) 2013 Alejandro Martinez Ruiz <alex at flawedcode dot org>
1
+ Copyright (c) 2014 Alejandro Martinez Ruiz <alex at flawedcode dot org>
2
+ Copyright (c) 2014 3scale Inc. http://3scale.net
2
3
 
3
4
  MIT License
4
5
 
data/README.md CHANGED
@@ -31,7 +31,7 @@ end
31
31
  class ThisAlsoWantsIt
32
32
  include MyLogger
33
33
 
34
- def some_other_method_with_debug_logging
34
+ def some_other_method_with_invented_logging
35
35
  logger.invented 'some invented info'
36
36
  end
37
37
  end
@@ -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
 
@@ -1,3 +1,3 @@
1
1
  module InjectedLogger
2
- VERSION = '0.0.8'
2
+ VERSION = '0.0.9'
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.8
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-10 00:00:00.000000000 Z
11
+ date: 2014-12-11 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler