influxdb-client 1.0.0.pre.92 → 1.0.0.pre.100
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/influxdb/client/client.rb +4 -4
- data/test/influxdb/client_test.rb +2 -2
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: af9a8c5ca8d1c35e286e83210d5b7061af6a3377dd6805b589548636f979e6c1
|
4
|
+
data.tar.gz: fe71919d4a1f5cc370bf00d4b0b67f926a08346278caeeae8f0f741742e9a841
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ed6dec7435b0c568dad08516ef56fa691cf6d7f63ed4f475c106687f14027720f5c6fb09b32831e1e47e9d997987d2fd0be124be7adf1089adbd3bf0ff26f0fc
|
7
|
+
data.tar.gz: d2f2c48d7d7d0fe07009eac23740a71ef3e6ea7a196b6a73220f3f02a35e926cc293f508b0f1bcc958be54a813dccc1a7ab241b215fdf1baef73e465bbcdb5be
|
@@ -31,8 +31,8 @@ module InfluxDB
|
|
31
31
|
# InfluxDBClient::Client.new(url: 'http://localhost:9999', token: 'my-token')
|
32
32
|
#
|
33
33
|
# @param [Hash] options The options to be used by the client.
|
34
|
-
# @param [String] url InfluxDB
|
35
|
-
# @param [String] token
|
34
|
+
# @param [String] url InfluxDB URL to connect to (ex. http://localhost:9999).
|
35
|
+
# @param [String] token Access Token used for authenticating/authorizing the InfluxDB request sent by client.
|
36
36
|
#
|
37
37
|
# @option options [String] :bucket the default destination bucket for writes
|
38
38
|
# @option options [String] :org the default organization bucket for writes
|
@@ -48,7 +48,7 @@ module InfluxDB
|
|
48
48
|
@options[:token] = token if token.is_a? String
|
49
49
|
@closed = false
|
50
50
|
|
51
|
-
at_exit { close }
|
51
|
+
at_exit { close! }
|
52
52
|
end
|
53
53
|
|
54
54
|
# Write time series data into InfluxDB thought WriteApi.
|
@@ -61,7 +61,7 @@ module InfluxDB
|
|
61
61
|
# Close all connections into InfluxDB 2.
|
62
62
|
#
|
63
63
|
# @return [ true ] Always true.
|
64
|
-
def close
|
64
|
+
def close!
|
65
65
|
@closed = true
|
66
66
|
true
|
67
67
|
end
|
@@ -55,8 +55,8 @@ class ClientTest < Minitest::Test
|
|
55
55
|
def test_close
|
56
56
|
client = InfluxDB::Client.new('http://localhost:9999', 'my-token')
|
57
57
|
|
58
|
-
assert_equal true, client.close
|
59
|
-
assert_equal true, client.close
|
58
|
+
assert_equal true, client.close!
|
59
|
+
assert_equal true, client.close!
|
60
60
|
end
|
61
61
|
|
62
62
|
def test_get_write_api
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: influxdb-client
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.0.pre.
|
4
|
+
version: 1.0.0.pre.100
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Jakub Bednar
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2020-01-
|
11
|
+
date: 2020-01-07 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|