dohlog 0.1.6 → 0.1.7
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/doh/log/stream_acceptor.rb +1 -2
- metadata +2 -2
@@ -4,13 +4,12 @@ class StreamAcceptor
|
|
4
4
|
attr_reader :ios
|
5
5
|
|
6
6
|
def initialize(flush, ios = nil)
|
7
|
-
@flush = flush
|
8
7
|
@ios = ios || STDOUT
|
8
|
+
@ios.sync = flush
|
9
9
|
end
|
10
10
|
|
11
11
|
def add(event)
|
12
12
|
@ios.puts("#{event.summary}\n#{event.exception_text}")
|
13
|
-
@ios.fsync if @flush
|
14
13
|
end
|
15
14
|
|
16
15
|
def shutdown
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: dohlog
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.7
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -10,7 +10,7 @@ authors:
|
|
10
10
|
autorequire:
|
11
11
|
bindir: bin
|
12
12
|
cert_chain: []
|
13
|
-
date: 2012-08-
|
13
|
+
date: 2012-08-20 00:00:00.000000000 Z
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
16
|
name: dohutil
|