influxdb-client 1.4.0.pre.827 → 1.4.0.pre.841

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: 3f07f57cbad7ef808ff1fa63def34ff6f06f29c1b2e14b5859f9a55e9ab7398a
4
- data.tar.gz: f4af2e128dbf11e3465c469a0899c3898c01e81b4970fdfaecb0b3e8e6e2f771
3
+ metadata.gz: 928f85d4335a21d90202d6752354082574d5393baef2bccafd06471e9c95476d
4
+ data.tar.gz: e225468b8df1efd6b68072863ada2d42274c9092fca3915a272da7e9948a3116
5
5
  SHA512:
6
- metadata.gz: 277df5a8efc57fa2a087bf2b4a45b6d2a2e54b7752df1b0ea20e445b0a34ed22690b9a5dff184db11bd7cf9df58b7cd95b0596c13374847963931d9860123de7
7
- data.tar.gz: 6aab7f0f004344524d988502bbe8819cc959f4d3060ef4779f3bdd11dd9e6aa0b5e9b4c5efcb4faa2cfc94ae1a9c6b3327367ead9b1cecd0081f67fc68000390
6
+ metadata.gz: 1bfa615cb0187e6afaf0807e0566b5cc5985244bbfc61581e5165f20b74c47add51e3db9b35ee1d53cba62e703191df9e0b2bbeeb37344a9b219977b33c55b14
7
+ data.tar.gz: 12b2b88ce812ab4d76ca8ba1ba11f18c84c9d2a84199f1015f400513f25ac7ea56bac2ae5946333c07a9f2d7b7aa3fa9d97e5c8a6701609201747b120557ee3b
data/.rubocop.yml CHANGED
@@ -24,6 +24,9 @@ AllCops:
24
24
  Exclude:
25
25
  - 'lib/influxdb2/client/models/**/*'
26
26
  - 'vendor/**/*'
27
+ Naming/FileName:
28
+ Exclude:
29
+ - 'lib/influxdb-client.rb'
27
30
  Metrics/LineLength:
28
31
  Max: 120
29
32
  Metrics/MethodLength:
data/CHANGELOG.md CHANGED
@@ -4,6 +4,10 @@
4
4
 
5
5
  1. [#38](https://github.com/influxdata/influxdb-client-ruby/pull/38): Remove trailing slash from connection URL
6
6
 
7
+ ### Documentation
8
+
9
+ 1. [#37](https://github.com/influxdata/influxdb-client-ruby/pull/37): Fix documentation: replace references to InfluxDB module by InfluxDB2. Allow `require 'influxdb-client'`
10
+
7
11
  ## 1.3.0 [2020-04-17]
8
12
 
9
13
  ### Features
data/README.md CHANGED
@@ -160,10 +160,10 @@ write_api = client.create_write_api
160
160
  write_api.write(data: 'h2o,location=west value=33i 15', precision: InfluxDB2::WritePrecision::SECOND)
161
161
  ```
162
162
  Allowed values for precision are:
163
- - `InfluxDB::WritePrecision::NANOSECOND` for nanosecond
164
- - `InfluxDB::WritePrecision::MICROSECOND` for microsecond
165
- - `InfluxDB::WritePrecision::MILLISECOND` for millisecond
166
- - `InfluxDB::WritePrecision::SECOND` for second
163
+ - `InfluxDB2::WritePrecision::NANOSECOND` for nanosecond
164
+ - `InfluxDB2::WritePrecision::MICROSECOND` for microsecond
165
+ - `InfluxDB2::WritePrecision::MILLISECOND` for millisecond
166
+ - `InfluxDB2::WritePrecision::SECOND` for second
167
167
 
168
168
  #### Configure destination
169
169
 
@@ -1,5 +1,5 @@
1
1
  $LOAD_PATH.unshift File.expand_path('../lib', __dir__)
2
- require 'influxdb2/client'
2
+ require 'influxdb-client'
3
3
 
4
4
  username = 'username'
5
5
  password = 'password'
File without changes
@@ -28,7 +28,7 @@ module InfluxDB2
28
28
  class Point
29
29
  # Create DataPoint instance for specified measurement name.
30
30
  #
31
- # @example InfluxDB::Point.new(name: "h2o",
31
+ # @example InfluxDB2::Point.new(name: "h2o",
32
32
  # tags: {host: 'aws', region: 'us'},
33
33
  # fields: {level: 5, saturation: "99%"},
34
34
  # time: 123)
@@ -64,7 +64,7 @@ module InfluxDB2
64
64
 
65
65
  # Adds or replaces a tag value for a point.
66
66
  #
67
- # @example InfluxDB::Point.new(name: "h2o")
67
+ # @example InfluxDB2::Point.new(name: "h2o")
68
68
  # .add_tag("location", "europe")
69
69
  # .add_field("level", 2)
70
70
  #
@@ -77,7 +77,7 @@ module InfluxDB2
77
77
 
78
78
  # Adds or replaces a field value for a point.
79
79
  #
80
- # @example InfluxDB::Point.new(name: "h2o")
80
+ # @example InfluxDB2::Point.new(name: "h2o")
81
81
  # .add_tag("location", "europe")
82
82
  # .add_field("level", 2)
83
83
  #
@@ -90,15 +90,15 @@ module InfluxDB2
90
90
 
91
91
  # Updates the timestamp for the point.
92
92
  #
93
- # @example InfluxDB::Point.new(name: "h2o")
93
+ # @example InfluxDB2::Point.new(name: "h2o")
94
94
  # .add_tag("location", "europe")
95
95
  # .add_field("level", 2)
96
- # .time(Time.new(2015, 10, 15, 8, 20, 15), InfluxDB::WritePrecision::MILLISECOND)
96
+ # .time(Time.new(2015, 10, 15, 8, 20, 15), InfluxDB2::WritePrecision::MILLISECOND)
97
97
  #
98
- # @example InfluxDB::Point.new(name: "h2o")
98
+ # @example InfluxDB2::Point.new(name: "h2o")
99
99
  # .add_tag("location", "europe")
100
100
  # .add_field("level", 2)
101
- # .time(123, InfluxDB::WritePrecision::NANOSECOND)
101
+ # .time(123, InfluxDB2::WritePrecision::NANOSECOND)
102
102
  #
103
103
  # @param [Object] time the timestamp
104
104
  # @param [WritePrecision] precision the timestamp precision
@@ -101,14 +101,14 @@ module InfluxDB2
101
101
  # },
102
102
  # {name: 'gpu', fields: {value: 0.9999}}
103
103
  # ],
104
- # precision: InfluxDB::WritePrecision::NANOSECOND,
104
+ # precision: InfluxDB2::WritePrecision::NANOSECOND,
105
105
  # bucket: 'my-bucket',
106
106
  # org: 'my-org'
107
107
  # )
108
108
  #
109
109
  # @example write(data: 'h2o,location=west value=33i 15')
110
110
  #
111
- # @example point = InfluxDB::Point.new(name: 'h2o')
111
+ # @example point = InfluxDB2::Point.new(name: 'h2o')
112
112
  # .add_tag('location', 'europe')
113
113
  # .add_field('level', 2)
114
114
  #
data/test/test_helper.rb CHANGED
@@ -30,7 +30,7 @@ if ENV['CI'] == 'true'
30
30
  end
31
31
 
32
32
  $LOAD_PATH.unshift File.expand_path('../lib', __dir__)
33
- require 'influxdb2/client'
33
+ require 'influxdb-client'
34
34
 
35
35
  require 'minitest/autorun'
36
36
  require 'minitest/reporters'
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: 1.4.0.pre.827
4
+ version: 1.4.0.pre.841
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jakub Bednar
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2020-05-11 00:00:00.000000000 Z
11
+ date: 2020-05-14 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -147,7 +147,7 @@ files:
147
147
  - bin/swagger.yml
148
148
  - examples/influxdb_18_example.rb
149
149
  - influxdb-client.gemspec
150
- - lib/influxdb2/client.rb
150
+ - lib/influxdb-client.rb
151
151
  - lib/influxdb2/client/client.rb
152
152
  - lib/influxdb2/client/default_api.rb
153
153
  - lib/influxdb2/client/delete_api.rb