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.
Files changed (4) hide show
  1. checksums.yaml +4 -4
  2. data/VERSION +1 -1
  3. data/lib/slack_log_device.rb +6 -2
  4. metadata +2 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 9cfc79231db8c0601302350b62ab1dfcf9ba35e1
4
- data.tar.gz: 940ea3dc4ae1abbdf0fac69e52d3b91b675fd19d
3
+ metadata.gz: debd72bd838db685f41bcacb494995d7d7799c74
4
+ data.tar.gz: 2a6e040e10b2e3b9893084a5b7c0fc4a91c6ee34
5
5
  SHA512:
6
- metadata.gz: 73a6a4b5678ed1a78d89363a8f3dcf0c9e69522e67c8868b45f6620b615494c439619f36faa95b9e3c4a6de3da09733913a92c2f01ccc22ee8c0050c0a7d7c56
7
- data.tar.gz: 62491db406792b5faabef96ab8e3e7713d17d10e82bfab7f6714a3c63f7c564c83849cd356cd3b3d6d1dbc83d894d1f3cfb768f408d774b974175f0d6cc4f4f0
6
+ metadata.gz: 5557006f0dded1f072c3eac04668decf9886a8e88454512667640aa07a44b4ba12b2381d4b64471f2485b8d2e2954abb8d06fe3cb37bf1c6d6b688fa36ebca3d
7
+ data.tar.gz: 852d5ad43d9aab584705503b51050ce754eb298e2d634e9969468344900a80b830563ce08bf05fad6f138e63f2e7fee1362911fd37ef4541ca092bb7dea21256
data/VERSION CHANGED
@@ -1 +1 @@
1
- 2.2.1
1
+ 2.2.2
@@ -113,9 +113,13 @@ class SlackLogDevice
113
113
  @buffer << message
114
114
  end
115
115
  @flush_thread.kill if @flush_thread
116
- @flush_thread = Thread.new do
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.1
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-23 00:00:00.000000000 Z
11
+ date: 2017-01-24 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activesupport