slack_log_device 2.2.1 → 2.2.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/VERSION +1 -1
- data/lib/slack_log_device.rb +6 -2
- 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: debd72bd838db685f41bcacb494995d7d7799c74
|
4
|
+
data.tar.gz: 2a6e040e10b2e3b9893084a5b7c0fc4a91c6ee34
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 5557006f0dded1f072c3eac04668decf9886a8e88454512667640aa07a44b4ba12b2381d4b64471f2485b8d2e2954abb8d06fe3cb37bf1c6d6b688fa36ebca3d
|
7
|
+
data.tar.gz: 852d5ad43d9aab584705503b51050ce754eb298e2d634e9969468344900a80b830563ce08bf05fad6f138e63f2e7fee1362911fd37ef4541ca092bb7dea21256
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
2.2.
|
1
|
+
2.2.2
|
data/lib/slack_log_device.rb
CHANGED
@@ -113,9 +113,13 @@ class SlackLogDevice
|
|
113
113
|
@buffer << message
|
114
114
|
end
|
115
115
|
@flush_thread.kill if @flush_thread
|
116
|
-
|
117
|
-
sleep(flush_delay) unless auto_flush?
|
116
|
+
if flush?
|
118
117
|
flush
|
118
|
+
else
|
119
|
+
@flush_thread = Thread.new do
|
120
|
+
sleep(flush_delay)
|
121
|
+
flush
|
122
|
+
end
|
119
123
|
end
|
120
124
|
nil
|
121
125
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: slack_log_device
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.2.
|
4
|
+
version: 2.2.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Alexis Toulotte
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2017-01-
|
11
|
+
date: 2017-01-24 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activesupport
|