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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 3763d8989955e67be855bd1a9aa76c1a3855b45252983a282b2711626a798c35
4
- data.tar.gz: 3e7634977e521e98f6a3db54e52385bc809f1841da8309c99508e9a3c3a5f263
3
+ metadata.gz: 3bf55d488d924797b5389afb1f4c8e7b3f746a79340f177aad381e8ffcf4cfa4
4
+ data.tar.gz: c5c1012187ded0a8b18f95b395398997efad0c60201f270670c576833e136dac
5
5
  SHA512:
6
- metadata.gz: c7760b125d3b9a3753ac3fcbedb091f13e6b393454f34ba2d42fba8f1828164cf16d6a7c6c8816bb7f455e178c2002d2c1ad435f0457b85b139939f76a6a3c16
7
- data.tar.gz: '01904b82d64c3689553425dd171da69d8cdb36b6a62135b83f4b5fdea3d1bfc549b395f03094085805f9d0938a1a8a337611d3a5c369b796e70b7c8286e78400'
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
 
@@ -60,7 +60,7 @@ module InfluxDB2
60
60
  def initialize(response, stream: false, response_mode: InfluxDB2::FluxResponseMode::FULL)
61
61
  @response = response
62
62
  @stream = stream
63
- @tables = {}
63
+ @tables = []
64
64
 
65
65
  @table_index = 0
66
66
  @table_id = -1
@@ -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.6293
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-02 00:00:00.000000000 Z
11
+ date: 2022-11-14 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler