influxdb-async_queue 0.1.0 → 0.1.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: 144067720dc33c090446d5f38eca137100e1c84a
4
- data.tar.gz: bd1faa76de45e8ec1d5be6f6b88385643062140c
3
+ metadata.gz: 715e3011cc267a33cec61ab4b51fac219a426557
4
+ data.tar.gz: 504ddd6deaa8d476b6d289c636b3e4361088d999
5
5
  SHA512:
6
- metadata.gz: 927facca10a3f073bf8ebb58ee3cfacdfe19d1844efd6d08353196103b95b188d83908c69e0272c396601c1f9591e2927d25e843c3a5f425f19405772551a234
7
- data.tar.gz: a01c42d6cf55a4c03622ddcb6fe5f22400c91a68c7fff33bc9a4b9acd88c4b19985698c258384715899eaa31335dd32ad53b8ff271d0c757226da50342df9399
6
+ metadata.gz: 296909332d9904a884fcb8bf15d44205c7b31593af5471c879e2e6ec214502cc59c4a83382515d92facd0c1303c53deb893171a7af90bfe8ed14b50e1e095c3b
7
+ data.tar.gz: baa2c745fbf8292eaff896cb74694c63c3bff782d0941461c4893fa49fcca20fc9c49c4ed614de6483921e17e804c598617828c0c968d1a96aebaa7904f6c53c
@@ -24,7 +24,7 @@ module InfluxDB
24
24
  end
25
25
  rescue Interrupt
26
26
  config.logger.info('Interrupted; exit(0)'.freeze)
27
- queue.push(points) if points
27
+ queue.push(*points) if points
28
28
  exit(0)
29
29
  end
30
30
 
@@ -46,7 +46,10 @@ module InfluxDB
46
46
  true
47
47
  rescue InfluxDB::Error => e
48
48
  config.logger.error(e.inspect)
49
- queue.push(points) if points
49
+ if points
50
+ queue.push(*points)
51
+ config.logger.debug(points.inspect)
52
+ end
50
53
  true
51
54
  rescue => e
52
55
  config.logger.error(e.inspect)
@@ -1,5 +1,5 @@
1
1
  module InfluxDB
2
2
  module AsyncQueue
3
- VERSION = "0.1.0"
3
+ VERSION = "0.1.1"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: influxdb-async_queue
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - mugimaru