influxdb-client 2.4.0 → 2.5.0.pre.5041

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: bf18416001dfef02e317c689587de67582a54bec8aba1653b77224780945ba7e
4
- data.tar.gz: fba0b624ed780efce689e2610e14a9c1f2c62e74d4277096a27148d93f839404
3
+ metadata.gz: b8985e79e0ff30ed524028f04ba5da69c5dc9cb6d8ca418d19fa07fd12da75e7
4
+ data.tar.gz: 0baf7df8cdeaeedd6950d4dc270c902afb50d28b7410de15407751629453aff3
5
5
  SHA512:
6
- metadata.gz: db366cc2a9d6eacd09c84c6fa27284a3f4415f877b83a965c0111a14a4bebc62c063b8f907993d2fb385c7b22b22bc3fece3d2e6644e8ea559ae7f6c41b6b18e
7
- data.tar.gz: 28a819f848efbe89a543acbaf37277c496e88c84e9f0f259af471253fbe141f6374fc26a26ce018e34c1da267169758b30c94f9d3377b0f009a2f49b36647e49
6
+ metadata.gz: 876e0dfb9516ff0392d25ca137ab7695c71824d71a3f0a4428b298d31b079e4bb4f38b9811b1f19095039e0e4dfc72fc1b2759921ea77d6c60875e839c722fb4
7
+ data.tar.gz: 7ce2a069fa9c92d922860e9e3ceb79d1e10448467c09e7b2f6b076a2d48ce05db52011684566b17d638c98969724c5eeef352a42fc51ff6ded666dca30f30015
data/CHANGELOG.md CHANGED
@@ -1,7 +1,12 @@
1
+ ## 2.5.0 [unreleased]
2
+
3
+ ### Breaking Changes
4
+ 1. [#103](https://github.com/influxdata/influxdb-client-ruby/pull/103): Rename `InvocableScripts` to `InvokableScripts`
5
+
1
6
  ## 2.4.0 [2022-04-19]
2
7
 
3
8
  ### Features
4
- 1. [#101](https://github.com/influxdata/influxdb-client-ruby/pull/101): Add `InvocableScriptsApi` to create, update, list, delete and invoke scripts by seamless way
9
+ 1. [#101](https://github.com/influxdata/influxdb-client-ruby/pull/101): Add `InvokableScriptsApi` to create, update, list, delete and invoke scripts by seamless way
5
10
 
6
11
  ## 2.3.0 [2022-03-18]
7
12
 
@@ -27,7 +27,7 @@ require 'influxdb2/client/query_api'
27
27
  require 'influxdb2/client/delete_api'
28
28
  require 'influxdb2/client/health_api'
29
29
  require 'influxdb2/client/ping_api'
30
- require 'influxdb2/client/invocable_scripts_api'
30
+ require 'influxdb2/client/invokable_scripts_api'
31
31
  require 'influxdb2/client/point'
32
32
  require 'influxdb2/client/flux_table'
33
33
  require 'influxdb2/client/write_retry'
@@ -85,11 +85,11 @@ module InfluxDB2
85
85
  DeleteApi.new(options: @options)
86
86
  end
87
87
 
88
- # Create an InvocableScripts API instance.
88
+ # Create an InvokableScripts API instance.
89
89
  #
90
- # @return [InvocableScriptsApi] New instance of InvocableScriptsApi.
91
- def create_invocable_scripts_api
92
- InvocableScriptsApi.new(options: @options)
90
+ # @return [InvokableScriptsApi] New instance of InvokableScriptsApi.
91
+ def create_invokable_scripts_api
92
+ InvokableScriptsApi.new(options: @options)
93
93
  end
94
94
 
95
95
  # Get the health of an instance.
@@ -46,7 +46,7 @@ module InfluxDB2
46
46
  class FluxResponseMode
47
47
  # full information about types, default values and groups
48
48
  FULL = 'full'.freeze
49
- # useful for Invocable scripts
49
+ # useful for Invokable scripts
50
50
  ONLY_NAMES = 'only_names'.freeze
51
51
  end
52
52
 
@@ -25,7 +25,7 @@ module InfluxDB2
25
25
  #
26
26
  # API invokable scripts let you assign scripts to API endpoints and then execute them as standard REST operations
27
27
  # in InfluxDB Cloud.
28
- class InvocableScriptsApi < DefaultApi
28
+ class InvokableScriptsApi < DefaultApi
29
29
  # @param [Hash] options The options to be used by the client.
30
30
  def initialize(options:)
31
31
  super(options: options)
@@ -53,7 +53,9 @@ module InfluxDB2
53
53
  }
54
54
 
55
55
  if attributes.key?(:'params')
56
- self.params = attributes[:'params']
56
+ if (value = attributes[:'params']).is_a?(Hash)
57
+ self.params = value
58
+ end
57
59
  end
58
60
  end
59
61
 
@@ -19,5 +19,5 @@
19
19
  # THE SOFTWARE.
20
20
 
21
21
  module InfluxDB2
22
- VERSION = '2.4.0'.freeze
22
+ VERSION = '2.5.0'.freeze
23
23
  end
@@ -20,7 +20,7 @@
20
20
 
21
21
  require 'test_helper'
22
22
 
23
- class InvocableScriptsApiTest < MiniTest::Test
23
+ class InvokableScriptsApiTest < MiniTest::Test
24
24
  def setup
25
25
  WebMock.disable_net_connect!
26
26
  @client = InfluxDB2::Client.new('http://localhost:8086', 'my-token',
@@ -35,7 +35,7 @@ class InvocableScriptsApiTest < MiniTest::Test
35
35
  end
36
36
 
37
37
  def test_create_instance
38
- invocable_scripts_api = @client.create_invocable_scripts_api
39
- refute_nil invocable_scripts_api
38
+ invokable_scripts_api = @client.create_invokable_scripts_api
39
+ refute_nil invokable_scripts_api
40
40
  end
41
41
  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.4.0
4
+ version: 2.5.0.pre.5041
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-04-19 00:00:00.000000000 Z
11
+ date: 2022-05-12 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -128,7 +128,7 @@ files:
128
128
  - lib/influxdb2/client/flux_table.rb
129
129
  - lib/influxdb2/client/health_api.rb
130
130
  - lib/influxdb2/client/influx_error.rb
131
- - lib/influxdb2/client/invocable_scripts_api.rb
131
+ - lib/influxdb2/client/invokable_scripts_api.rb
132
132
  - lib/influxdb2/client/models/delete_predicate_request.rb
133
133
  - lib/influxdb2/client/models/dialect.rb
134
134
  - lib/influxdb2/client/models/health_check.rb
@@ -151,7 +151,7 @@ files:
151
151
  - test/influxdb/delete_api_integration_test.rb
152
152
  - test/influxdb/delete_api_test.rb
153
153
  - test/influxdb/flux_csv_parser_test.rb
154
- - test/influxdb/invocable_scripts_api_test.rb
154
+ - test/influxdb/invokable_scripts_api_test.rb
155
155
  - test/influxdb/point_test.rb
156
156
  - test/influxdb/query_api_integration_test.rb
157
157
  - test/influxdb/query_api_stream_test.rb
@@ -179,11 +179,11 @@ required_ruby_version: !ruby/object:Gem::Requirement
179
179
  version: 2.2.0
180
180
  required_rubygems_version: !ruby/object:Gem::Requirement
181
181
  requirements:
182
- - - ">="
182
+ - - ">"
183
183
  - !ruby/object:Gem::Version
184
- version: '0'
184
+ version: 1.3.1
185
185
  requirements: []
186
- rubygems_version: 3.0.3.1
186
+ rubygems_version: 3.3.11
187
187
  signing_key:
188
188
  specification_version: 4
189
189
  summary: Ruby library for InfluxDB 2.
@@ -193,7 +193,7 @@ test_files:
193
193
  - test/influxdb/delete_api_integration_test.rb
194
194
  - test/influxdb/delete_api_test.rb
195
195
  - test/influxdb/flux_csv_parser_test.rb
196
- - test/influxdb/invocable_scripts_api_test.rb
196
+ - test/influxdb/invokable_scripts_api_test.rb
197
197
  - test/influxdb/point_test.rb
198
198
  - test/influxdb/query_api_integration_test.rb
199
199
  - test/influxdb/query_api_stream_test.rb