influxdb-client 3.0.0 → 3.1.0.pre.7796

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: 7df039eb876d1f1838a22630b2477fd4f07911b633d52e42012153dca539c0ca
4
- data.tar.gz: dd1713ccdd4b0ab34ab71d4b0159a83ef9534c1ed5bed3af2949a11c04a75f36
3
+ metadata.gz: 798243a3e397aacc6176789ca3a9121aac954864e9bfb75c67ee76267e7c6916
4
+ data.tar.gz: 9b2c77bb07d9423cfa252a1208c3922be98255d2f70d2171eeddc810b48fcfc2
5
5
  SHA512:
6
- metadata.gz: c85780d8b6a499f2d9eb7f312351916bd0bf4b6b02fb64fd1f31ca9e0135068057ef304c02e975f4752d2ddb285b19c95538bcb9e77d25c103d917aa05a154d7
7
- data.tar.gz: 54b181dd450e2ba225a916cdb59727423d011c4793eb0cba0d2d95e1c2323a95b0518535e5eb9f39491e6e30fa2d837c21bb20220d3ae213b5f9a1435853d602
6
+ metadata.gz: bb38d9727ebf6f56a8aa9165544a8c1fa5d0a31f8cabf9a2f40e856703f2b30558b03ac06b81d55b20aab7407c5d48c16532c8b0cdce930c84960dbf9a32adf8
7
+ data.tar.gz: a4e3c81e3c0241cb42742eae88aa51e0cc74cc9bb8d5d681614703fbb38cc8f8200d5db08c2def6c4ec38a68a9ecffe5708d51bd76e4e3d78734ba4ef5c12be6
data/CHANGELOG.md CHANGED
@@ -1,3 +1,8 @@
1
+ ## 3.1.0 [unreleased]
2
+
3
+ ### Bug Fixes
4
+ 1. [#134](https://github.com/influxdata/influxdb-client-ruby/pull/134): Support influxdb v1.8 HTTP error response message. Prior to this change, in case of an HTTP error response (influxDB v1.8) the InfluxError had empty message.
5
+
1
6
  ## 3.0.0 [2023-12-05]
2
7
 
3
8
  ### Bug Fixes
@@ -32,7 +32,7 @@ module InfluxDB2
32
32
 
33
33
  def self.from_response(response)
34
34
  json = JSON.parse(response.body)
35
- obj = new(message: json['message'] || '', code: response.code, reference: json['code'] || '',
35
+ obj = new(message: json['message'] || json['error'] || '', code: response.code, reference: json['code'] || '',
36
36
  retry_after: response['Retry-After'] || '')
37
37
  obj
38
38
  rescue JSON::ParserError
@@ -19,5 +19,5 @@
19
19
  # THE SOFTWARE.
20
20
 
21
21
  module InfluxDB2
22
- VERSION = '3.0.0'.freeze
22
+ VERSION = '3.1.0'.freeze
23
23
  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: 3.0.0
4
+ version: 3.1.0.pre.7796
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jakub Bednar
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2023-12-05 00:00:00.000000000 Z
11
+ date: 2024-01-31 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -180,27 +180,27 @@ required_ruby_version: !ruby/object:Gem::Requirement
180
180
  version: 2.2.0
181
181
  required_rubygems_version: !ruby/object:Gem::Requirement
182
182
  requirements:
183
- - - ">="
183
+ - - ">"
184
184
  - !ruby/object:Gem::Version
185
- version: '0'
185
+ version: 1.3.1
186
186
  requirements: []
187
- rubygems_version: 3.0.3.1
187
+ rubygems_version: 3.3.11
188
188
  signing_key:
189
189
  specification_version: 4
190
190
  summary: Ruby library for InfluxDB 2.
191
191
  test_files:
192
- - test/influxdb/query_api_integration_test.rb
193
- - test/influxdb/default_api_test.rb
194
192
  - test/influxdb/client_test.rb
195
- - test/influxdb/query_api_test.rb
193
+ - test/influxdb/default_api_test.rb
196
194
  - test/influxdb/delete_api_integration_test.rb
197
- - test/influxdb/write_api_integration_test.rb
198
- - test/influxdb/query_api_stream_test.rb
199
- - test/influxdb/flux_csv_parser_test.rb
200
195
  - test/influxdb/delete_api_test.rb
196
+ - test/influxdb/flux_csv_parser_test.rb
197
+ - test/influxdb/invokable_scripts_api_test.rb
198
+ - test/influxdb/point_test.rb
199
+ - test/influxdb/query_api_integration_test.rb
200
+ - test/influxdb/query_api_stream_test.rb
201
+ - test/influxdb/query_api_test.rb
201
202
  - test/influxdb/redirect_test.rb
202
- - test/influxdb/write_api_test.rb
203
203
  - test/influxdb/write_api_batching_test.rb
204
- - test/influxdb/point_test.rb
205
- - test/influxdb/invokable_scripts_api_test.rb
204
+ - test/influxdb/write_api_integration_test.rb
205
+ - test/influxdb/write_api_test.rb
206
206
  - test/test_helper.rb