dlogger 0.0.1 → 0.0.2

Sign up to get free protection for your applications and to get access to all the features.
@@ -10,8 +10,11 @@ module DLogger
10
10
  end
11
11
 
12
12
  def unbind
13
- EM::add_timer(0.2){ @master.connect }
14
- @master = nil
13
+ if @master
14
+ tmp = @master
15
+ EM::add_timer(0.2){ tmp.connect }
16
+ @master = nil
17
+ end
15
18
  end
16
19
  end
17
20
 
@@ -13,6 +13,8 @@ module DLogger
13
13
  # include the metadata dumped with inspect
14
14
  #
15
15
  def initialize(dump_metadata = true)
16
+ # without this you may not be able to tail the logs
17
+ $stdout.sync = true
16
18
  @dump_metadata = dump_metadata
17
19
  end
18
20
 
@@ -1,3 +1,3 @@
1
1
  module Dlogger
2
- VERSION = "0.0.1"
2
+ VERSION = "0.0.2"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: dlogger
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.1
4
+ version: 0.0.2
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -13,7 +13,7 @@ date: 2012-01-29 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rake
16
- requirement: &70201269940540 !ruby/object:Gem::Requirement
16
+ requirement: &70168315282880 !ruby/object:Gem::Requirement
17
17
  none: false
18
18
  requirements:
19
19
  - - ! '>='
@@ -21,10 +21,10 @@ dependencies:
21
21
  version: '0'
22
22
  type: :development
23
23
  prerelease: false
24
- version_requirements: *70201269940540
24
+ version_requirements: *70168315282880
25
25
  - !ruby/object:Gem::Dependency
26
26
  name: tilt
27
- requirement: &70201269939560 !ruby/object:Gem::Requirement
27
+ requirement: &70168315298480 !ruby/object:Gem::Requirement
28
28
  none: false
29
29
  requirements:
30
30
  - - ! '>='
@@ -32,10 +32,10 @@ dependencies:
32
32
  version: '0'
33
33
  type: :development
34
34
  prerelease: false
35
- version_requirements: *70201269939560
35
+ version_requirements: *70168315298480
36
36
  - !ruby/object:Gem::Dependency
37
37
  name: guard-tilt
38
- requirement: &70201269938640 !ruby/object:Gem::Requirement
38
+ requirement: &70168315297920 !ruby/object:Gem::Requirement
39
39
  none: false
40
40
  requirements:
41
41
  - - ! '>='
@@ -43,7 +43,7 @@ dependencies:
43
43
  version: '0'
44
44
  type: :development
45
45
  prerelease: false
46
- version_requirements: *70201269938640
46
+ version_requirements: *70168315297920
47
47
  description: Advanced logger allowing you to include metadata with your messages
48
48
  email:
49
49
  - schmurfy@gmail.com
@@ -92,7 +92,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
92
92
  version: '0'
93
93
  segments:
94
94
  - 0
95
- hash: -1333174357779250362
95
+ hash: 738648334169580825
96
96
  required_rubygems_version: !ruby/object:Gem::Requirement
97
97
  none: false
98
98
  requirements:
@@ -101,7 +101,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
101
101
  version: '0'
102
102
  segments:
103
103
  - 0
104
- hash: -1333174357779250362
104
+ hash: 738648334169580825
105
105
  requirements: []
106
106
  rubyforge_project:
107
107
  rubygems_version: 1.8.15