influxdb 0.4.0 → 0.4.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 2b441a52f7c991073a898e33debc4844e21c4fab
4
- data.tar.gz: d5b4e6eb7b16e760fa2ead3e3ae104e743aad45d
3
+ metadata.gz: 9ed83d11d5fa7d16964912a9d586796f26bd785c
4
+ data.tar.gz: 4a30560d5455f23971e4d86afb87ea0d2918049b
5
5
  SHA512:
6
- metadata.gz: d8933fc82bca429acb600186ba3c42e946b071d138a231e86f0344d6a28f0f6cbf55ba14419c49c32a531a3112dff47ff96cf2e9be03a2a99e8265c3b1a1bd59
7
- data.tar.gz: 2b5a07855185ccefd02948b4889838944901dc13cb4e3142ab1a5eeda639f465021659aa42f4764b11339df65b1ce18c6c0f3d27005da804b3e45ded73acdd85
6
+ metadata.gz: f3a132de196624683b6cf3a2ecc02ec9e0f6ba2fd013432f72ca5d87c2b8e8e827250260414df002507cb554e6acca4181a05b6be6d40d4f0c36add80ffb60d7
7
+ data.tar.gz: 9265b98d24c2a5ebfbd1569eaf25d926285c9a45f70b1ffc480156eac612b10b59cb3277c269c8a26eac4963bd00213570d5272aa546eef979fbc3ab0c3d9186
@@ -2,7 +2,15 @@
2
2
 
3
3
  For the full commit log, [see here](https://github.com/influxdata/influxdb-ruby/commits/master).
4
4
 
5
- ## v0.4.0 (unreleased)
5
+ ## Unreleased changes
6
+
7
+ - None yet.
8
+
9
+ ## v0.4.1, released 2017-08-30
10
+
11
+ - Bugfix in async client: Flush queue before exit (#198, #199 @onlynone)
12
+
13
+ ## v0.4.0, released 2017-08-19
6
14
 
7
15
  - **Dropped support for Ruby < 2.2.**
8
16
  - Updated dependencies.
@@ -55,11 +55,16 @@ module InfluxDB
55
55
  @stopped = false
56
56
  @writer = find_writer
57
57
 
58
- at_exit { stop! } if config.retry > 0
58
+ at_exit { stop! }
59
59
  end
60
60
 
61
61
  def stop!
62
- writer.worker.stop! if config.async?
62
+ if config.async?
63
+ # If retry was infinite (-1), set it to zero to give the main thread one
64
+ # last chance to flush the queue
65
+ config.retry = 0 if config.retry < 0
66
+ writer.worker.stop!
67
+ end
63
68
  @stopped = true
64
69
  end
65
70
 
@@ -1,3 +1,3 @@
1
1
  module InfluxDB # :nodoc:
2
- VERSION = "0.4.0".freeze
2
+ VERSION = "0.4.1".freeze
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: influxdb
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.0
4
+ version: 0.4.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Todd Persen
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-08-19 00:00:00.000000000 Z
11
+ date: 2017-08-30 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rake