chrono_logger 1.1.0 → 1.1.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.travis.yml +1 -0
- data/lib/chrono_logger.rb +6 -1
- data/lib/chrono_logger/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: 97bed9c7ad6f06d08927b617a1d7b75f2e95aa55
|
4
|
+
data.tar.gz: 8276b26110368c35b54b2ea1eaf12bdd073034a8
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c2c29589a695f8bb9657803e44d307939c7affe75a2f2d153a1903eef0ef41705f014a4ddb319d117484017bd50b28cfabfe2d5da4f190bfa1a030a32d499535
|
7
|
+
data.tar.gz: 8d0524b4bfb8a4b6228cf9ce1b93e9755e33911692e9de42759baa2908a7a5ff4561a97e1e6cca9090c749672e4e868c00dfcff771c201c63541629b8122d00d
|
data/.travis.yml
CHANGED
data/lib/chrono_logger.rb
CHANGED
@@ -55,7 +55,12 @@ class ChronoLogger < Logger
|
|
55
55
|
|
56
56
|
def initialize(log = nil, opt = {})
|
57
57
|
@dev = @filename = nil
|
58
|
-
|
58
|
+
if defined?(LogDeviceMutex) # Ruby < 2.3
|
59
|
+
@mutex = LogDeviceMutex.new
|
60
|
+
else
|
61
|
+
mon_initialize
|
62
|
+
@mutex = self
|
63
|
+
end
|
59
64
|
if log.respond_to?(:write) and log.respond_to?(:close)
|
60
65
|
@dev = log
|
61
66
|
else
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: chrono_logger
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.1.
|
4
|
+
version: 1.1.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Takayuki Matsubara
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2016-04-21 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|