influxdb-client 2.9.0.pre.6293 → 2.9.0.pre.6399
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +4 -0
- data/lib/influxdb2/client/flux_csv_parser.rb +1 -1
- data/test/influxdb/query_api_test.rb +18 -0
- 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: 3bf55d488d924797b5389afb1f4c8e7b3f746a79340f177aad381e8ffcf4cfa4
|
4
|
+
data.tar.gz: c5c1012187ded0a8b18f95b395398997efad0c60201f270670c576833e136dac
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c78f3d8a91d7484a75be736e7755d4b635641776c63aaff824c9e44f9ec3e3456f2046fcb3870b3248a97aae76356615c01975001783138b27a6731b597b71a4
|
7
|
+
data.tar.gz: f8c7d6315f37b2a3a31e4b0e2b8171e9008e8fe7ab18e4558e66195a5b5de8d5acbb2d908522bbd948990809527524ae9102d4949805bbea89c2d85861f12609
|
data/CHANGELOG.md
CHANGED
@@ -1,7 +1,11 @@
|
|
1
1
|
## 2.9.0 [unreleased]
|
2
2
|
|
3
|
+
### Features
|
4
|
+
1. [#126](https://github.com/influxdata/influxdb-client-ruby/pull/126): Add `Task` API
|
5
|
+
|
3
6
|
### Bug Fixes
|
4
7
|
1. [#123](https://github.com/influxdata/influxdb-client-ruby/pull/123): Duplicate columns warning shows in improper situations
|
8
|
+
1. [#124](https://github.com/influxdata/influxdb-client-ruby/pull/124): Query return type is `Array` instead of `Hash`
|
5
9
|
|
6
10
|
## 2.8.0 [2022-10-27]
|
7
11
|
|
@@ -144,4 +144,22 @@ class QueryApiTest < MiniTest::Test
|
|
144
144
|
assert_requested(:post, 'http://localhost:8086/api/v2/query?org=my-org',
|
145
145
|
times: 1, headers: headers)
|
146
146
|
end
|
147
|
+
|
148
|
+
def test_query_result_type
|
149
|
+
stub_request(:post, 'http://localhost:8086/api/v2/query?org=my-org')
|
150
|
+
.to_return(body: SUCCESS_DATA)
|
151
|
+
|
152
|
+
client = InfluxDB2::Client.new('http://localhost:8086', 'my-token',
|
153
|
+
bucket: 'my-bucket',
|
154
|
+
org: 'my-org',
|
155
|
+
use_ssl: false)
|
156
|
+
|
157
|
+
bucket = 'my-bucket'
|
158
|
+
result = client.create_query_api
|
159
|
+
.query(query: "from(bucket:\"#{bucket}\") |> range(start: 1970-01-01T00:00:00.000000001Z) |> last()")
|
160
|
+
|
161
|
+
assert_equal 1, result.length
|
162
|
+
assert_equal 4, result[0].records.length
|
163
|
+
assert_equal Array, result.class
|
164
|
+
end
|
147
165
|
end
|
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: 2.9.0.pre.
|
4
|
+
version: 2.9.0.pre.6399
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Jakub Bednar
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2022-11-
|
11
|
+
date: 2022-11-14 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|