influxdb-client 3.2.0 → 3.3.0.pre.11290

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 768a8d2d224d9692a0bd5e6c1fa7bd4d759f98363145b790ee1fa0a25abb3daa
4
- data.tar.gz: d6318011de76ea13c6bf102ecd347da2e4fda3c8dfe7ac2e303c4ba034766c55
3
+ metadata.gz: 4cff52047bd3f6df3b716c59893b79fcccef3f23dfe14b65978863d0b67cbc73
4
+ data.tar.gz: f12fa55bd1cc900e2f35361431995176ae3399a6896359ba35e6e1df698ab46b
5
5
  SHA512:
6
- metadata.gz: 1252419af7c5e238769c87692d16f153e848c8ccd822175b963f33b81aebbd60ec5ad3dec04253819b29f6725d7e635b8fa1ae98adaaf0987937c8fa29b4a47e
7
- data.tar.gz: 3f236e4d15de593ab911da0f9ac7ae28f3cf4c53aeab11a624a04e2af6fcd217e4438abc761b98ae5e4279af85f173236f512710519a8a6e2f204bc1b34a87c1
6
+ metadata.gz: f5b57e81070e9902389b9fd3108601ade71c807e6c8520baa7ae25f0bef68e7eac2df0a720de3d815d86cf9f86274c2ee696949fb93ab2b9f81936f97cc8d334
7
+ data.tar.gz: be2192b9d7015ec309d3cdfb685a05530d5186b78dc64bf2632e4cd9f8f3c60f1b65efa5bd27fa01bacb443b93cf324b1696739483e9f67f8f3884788c757148
data/CHANGELOG.md CHANGED
@@ -1,3 +1,12 @@
1
+ ## 3.3.0 [unreleased]
2
+
3
+ ### CI
4
+ 1. [152](https://github.com/influxdata/influxdb-client-ruby/pull/152):
5
+ - Switches the JRuby jobs from jruby:9.3.1.0-jdk11 to jruby:9.4-dev-jdk11.
6
+ - Adds a monkeypatch for REXML::Document#initialize to tolerate malformed XML emitted during Cobertura report formatting.
7
+
8
+ 1. [#149](https://github.com/influxdata/influxdb-client-ruby/pull/149): Fix FrozenError in Point#to_line_protocol when frozen string literals are enabled
9
+
1
10
  ## 3.2.0 [2024-11-27]
2
11
 
3
12
  ### Others
@@ -240,4 +249,3 @@ To overcome this limitation you have to set the client property `redirect_forwar
240
249
 
241
250
  ### Features
242
251
  1. [#4](https://github.com/influxdata/influxdb-client-ruby/pull/4): Added WriteApi that will be used for Fluentd plugin
243
-
@@ -114,7 +114,7 @@ module InfluxDB2
114
114
  #
115
115
  # @return a string representation of the point
116
116
  def to_line_protocol
117
- line_protocol = ''
117
+ line_protocol = String.new
118
118
  measurement = _escape_key(@name || '', ESCAPE_MEASUREMENT_LIST)
119
119
 
120
120
  line_protocol << measurement
@@ -19,5 +19,5 @@
19
19
  # THE SOFTWARE.
20
20
 
21
21
  module InfluxDB2
22
- VERSION = '3.2.0'.freeze
22
+ VERSION = '3.3.0'.freeze
23
23
  end
data/test/test_helper.rb CHANGED
@@ -27,6 +27,26 @@ end
27
27
  if ENV['CI'] == 'true'
28
28
  require 'simplecov-cobertura'
29
29
  SimpleCov.formatter = SimpleCov::Formatter::CoberturaFormatter
30
+
31
+ # Monkeypatch REXML to handle malformed XML from simplecov-cobertura 1.4.2/2.1.0
32
+ # see: https://github.com/dashingrocket/simplecov-cobertura/issues/31
33
+ # TODO: remove this when simplecov-cobertura is updated
34
+ require 'rexml/document'
35
+ module REXML
36
+ class Document
37
+ alias original_initialize initialize
38
+ def initialize(source = nil, context = {})
39
+ if source.is_a?(String) && source.include?('Generated by simplecov-cobertura') && !source.include?('<coverage')
40
+ source_with_root = source + "\n<coverage/>"
41
+ original_initialize(source_with_root, context)
42
+ # Remove the dummy root element so simplecov-cobertura can add its own
43
+ delete_element('/coverage')
44
+ else
45
+ original_initialize(source, context)
46
+ end
47
+ end
48
+ end
49
+ end
30
50
  end
31
51
 
32
52
  $LOAD_PATH.unshift File.expand_path('../lib', __dir__)
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.2.0
4
+ version: 3.3.0.pre.11290
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jakub Bednar
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2024-11-27 00:00:00.000000000 Z
11
+ date: 2026-03-09 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: csv
@@ -194,27 +194,27 @@ required_ruby_version: !ruby/object:Gem::Requirement
194
194
  version: 2.2.0
195
195
  required_rubygems_version: !ruby/object:Gem::Requirement
196
196
  requirements:
197
- - - ">="
197
+ - - ">"
198
198
  - !ruby/object:Gem::Version
199
- version: '0'
199
+ version: 1.3.1
200
200
  requirements: []
201
- rubygems_version: 3.0.3.1
201
+ rubygems_version: 3.3.11
202
202
  signing_key:
203
203
  specification_version: 4
204
204
  summary: Ruby library for InfluxDB 2.
205
205
  test_files:
206
- - test/influxdb/query_api_integration_test.rb
207
- - test/influxdb/default_api_test.rb
208
206
  - test/influxdb/client_test.rb
209
- - test/influxdb/query_api_test.rb
207
+ - test/influxdb/default_api_test.rb
210
208
  - test/influxdb/delete_api_integration_test.rb
211
- - test/influxdb/write_api_integration_test.rb
212
- - test/influxdb/query_api_stream_test.rb
213
- - test/influxdb/flux_csv_parser_test.rb
214
209
  - test/influxdb/delete_api_test.rb
210
+ - test/influxdb/flux_csv_parser_test.rb
211
+ - test/influxdb/invokable_scripts_api_test.rb
212
+ - test/influxdb/point_test.rb
213
+ - test/influxdb/query_api_integration_test.rb
214
+ - test/influxdb/query_api_stream_test.rb
215
+ - test/influxdb/query_api_test.rb
215
216
  - test/influxdb/redirect_test.rb
216
- - test/influxdb/write_api_test.rb
217
217
  - test/influxdb/write_api_batching_test.rb
218
- - test/influxdb/point_test.rb
219
- - test/influxdb/invokable_scripts_api_test.rb
218
+ - test/influxdb/write_api_integration_test.rb
219
+ - test/influxdb/write_api_test.rb
220
220
  - test/test_helper.rb