influxdb-client 1.12.0.pre.1596 → 1.12.0

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.
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.12.0.pre.1596
4
+ version: 1.12.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jakub Bednar
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2021-02-11 00:00:00.000000000 Z
11
+ date: 2021-03-05 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -70,16 +70,16 @@ dependencies:
70
70
  name: rake
71
71
  requirement: !ruby/object:Gem::Requirement
72
72
  requirements:
73
- - - ">="
73
+ - - "~>"
74
74
  - !ruby/object:Gem::Version
75
- version: 12.3.3
75
+ version: '12.3'
76
76
  type: :development
77
77
  prerelease: false
78
78
  version_requirements: !ruby/object:Gem::Requirement
79
79
  requirements:
80
- - - ">="
80
+ - - "~>"
81
81
  - !ruby/object:Gem::Version
82
- version: 12.3.3
82
+ version: '12.3'
83
83
  - !ruby/object:Gem::Dependency
84
84
  name: rubocop
85
85
  requirement: !ruby/object:Gem::Requirement
@@ -129,26 +129,10 @@ executables: []
129
129
  extensions: []
130
130
  extra_rdoc_files: []
131
131
  files:
132
- - ".circleci/config.yml"
133
- - ".circleci/setup-rubygems.sh"
134
- - ".codecov.yml"
135
- - ".github/ISSUE_TEMPLATE/bug_report.md"
136
- - ".github/ISSUE_TEMPLATE/feature_request.md"
137
- - ".github/PULL_REQUEST_TEMPLATE"
138
- - ".github/semantic.yml"
139
- - ".gitignore"
140
- - ".rubocop.yml"
141
132
  - CHANGELOG.md
142
- - Gemfile
143
133
  - LICENSE
144
134
  - README.md
145
135
  - Rakefile
146
- - bin/generate-sources.sh
147
- - bin/influxdb-onboarding.sh
148
- - bin/influxdb-restart.sh
149
- - bin/pom.xml
150
- - bin/swagger.yml
151
- - examples/influxdb_18_example.rb
152
136
  - influxdb-client.gemspec
153
137
  - lib/influxdb-client.rb
154
138
  - lib/influxdb2/client/client.rb
@@ -198,9 +182,9 @@ required_ruby_version: !ruby/object:Gem::Requirement
198
182
  version: 2.2.0
199
183
  required_rubygems_version: !ruby/object:Gem::Requirement
200
184
  requirements:
201
- - - ">"
185
+ - - ">="
202
186
  - !ruby/object:Gem::Version
203
- version: 1.3.1
187
+ version: '0'
204
188
  requirements: []
205
189
  rubygems_version: 3.0.3
206
190
  signing_key:
data/.circleci/config.yml DELETED
@@ -1,158 +0,0 @@
1
- #
2
- # The MIT License
3
- #
4
- # Permission is hereby granted, free of charge, to any person obtaining a copy
5
- # of this software and associated documentation files (the "Software"), to deal
6
- # in the Software without restriction, including without limitation the rights
7
- # to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
8
- # copies of the Software, and to permit persons to whom the Software is
9
- # furnished to do so, subject to the following conditions:
10
- #
11
- # The above copyright notice and this permission notice shall be included in
12
- # all copies or substantial portions of the Software.
13
- #
14
- # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
15
- # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
16
- # FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
17
- # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
18
- # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
19
- # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
20
- # THE SOFTWARE.
21
- #
22
-
23
- version: 2.1
24
-
25
- commands:
26
- influxdb-onboarding:
27
- steps:
28
- - run:
29
- name: "Post onBoarding request to InfluxDB 2"
30
- command: ./bin/influxdb-onboarding.sh
31
- prepare:
32
- description: "Prepare environment to tests"
33
- steps:
34
- - checkout
35
- - influxdb-onboarding
36
- test:
37
- parameters:
38
- ruby-image:
39
- type: string
40
- steps:
41
- - restore_cache:
42
- name: Restoring Gem Cache
43
- keys:
44
- - &cache-key gem-cache-{{ checksum "influxdb-client.gemspec" }}-<< parameters.ruby-image >>
45
- - gem-cache-{{ checksum "influxdb-client.gemspec" }}
46
- - gem-cache-
47
- - run:
48
- name: Install dependencies
49
- command: |
50
- gem install bundler
51
- bundle config set path 'vendor/bundle'
52
- bundle install --jobs=4 --retry=3
53
- - run:
54
- name: Static code analyze
55
- command: |
56
- bundle exec rake rubocop
57
- - run:
58
- name: Run tests
59
- command: |
60
- export MINITEST_REPORTER=JUnitReporter
61
- bundle exec rake test
62
- - save_cache:
63
- name: Saving Gem Cache
64
- key: *cache-key
65
- paths:
66
- - ./vendor/bundle
67
- when: always
68
- storing-test-results:
69
- steps:
70
- - store_test_results:
71
- path: test/reports
72
-
73
- jobs:
74
- tests-ruby:
75
- parameters:
76
- ruby-image:
77
- type: string
78
- default: &default-ruby-image "circleci/ruby:2.6-stretch"
79
- influxdb-image:
80
- type: string
81
- default: &default-influxdb-image "influxdb:v2.0.4"
82
- docker:
83
- - image: << parameters.ruby-image >>
84
- - image: &influx-image quay.io/influxdb/<< parameters.influxdb-image >>
85
- environment:
86
- INFLUXD_HTTP_BIND_ADDRESS: :8086
87
- steps:
88
- - prepare
89
- - test:
90
- ruby-image: << parameters.ruby-image >>
91
- - storing-test-results
92
-
93
- deploy-preview:
94
- docker:
95
- - image: *default-ruby-image
96
- steps:
97
- - run:
98
- name: Early return if this build is from a forked repository
99
- command: |
100
- if [[ $CIRCLE_PROJECT_USERNAME != "influxdata" ]]; then
101
- echo "Nothing to do for forked repositories, so marking this step successful"
102
- circleci step halt
103
- fi
104
- - checkout
105
- - run:
106
- name: Setup Rubygems
107
- command: bash .circleci/setup-rubygems.sh
108
- - run:
109
- name: Build a Gem bundle
110
- command: |
111
- gem build influxdb-client.gemspec
112
- - run:
113
- name: Deploy pre-release into https://rubygems.org
114
- command: |
115
- gem push influxdb-client-*.pre.$CIRCLE_BUILD_NUM.gem
116
- workflows:
117
- version: 2
118
- build:
119
- jobs:
120
- - tests-ruby:
121
- name: ruby-3.0
122
- ruby-image: "circleci/ruby:3.0-buster"
123
- - tests-ruby:
124
- name: ruby-2.7
125
- ruby-image: "circleci/ruby:2.7-buster"
126
- - tests-ruby:
127
- name: ruby-2.6
128
- - tests-ruby:
129
- name: ruby-2.6-nightly
130
- influxdb-image: "influxdb2:nightly"
131
- - tests-ruby:
132
- name: ruby-2.5
133
- ruby-image: "circleci/ruby:2.5-stretch"
134
- - tests-ruby:
135
- name: ruby-2.4
136
- ruby-image: "circleci/ruby:2.4-stretch"
137
- - deploy-preview:
138
- requires:
139
- - ruby-3.0
140
- - ruby-2.7
141
- - ruby-2.6
142
- - ruby-2.6-nightly
143
- - ruby-2.5
144
- - ruby-2.4
145
- filters:
146
- branches:
147
- only: master
148
-
149
- nightly:
150
- triggers:
151
- - schedule:
152
- cron: "0 0 * * *"
153
- filters:
154
- branches:
155
- only:
156
- - master
157
- jobs:
158
- - tests-ruby
@@ -1,3 +0,0 @@
1
- mkdir ~/.gem || true
2
- echo -e "---\r\n:rubygems_api_key: $GEM_HOST_API_KEY" > ~/.gem/credentials
3
- chmod 0600 ~/.gem/credentials
data/.codecov.yml DELETED
@@ -1,3 +0,0 @@
1
- ignore:
2
- - "lib/influxdb2/client/models/**/*"
3
- - "test/influxdb/**/*"
@@ -1,34 +0,0 @@
1
- ---
2
- name: Bug report
3
- about: Create a report to help us improve
4
- ---
5
-
6
- <!--
7
-
8
- Thank you for reporting a bug.
9
-
10
- * Please add a :+1: or comment on a similar existing bug report instead of opening a new one.
11
- * https://github.com/influxdata/influxdb-client-ruby/issues?utf8=%E2%9C%93&q=is%3Aissue+is%3Aopen+is%3Aclosed+sort%3Aupdated-desc+label%3Abug+
12
- * Please check whether the bug can be reproduced with the latest release.
13
- * The fastest way to fix a bug is to open a Pull Request.
14
- * https://github.com/influxdata/influxdb-client-ruby/pulls
15
-
16
- -->
17
-
18
- __Steps to reproduce:__
19
- List the minimal actions needed to reproduce the behavior.
20
-
21
- 1. ...
22
- 2. ...
23
- 3. ...
24
-
25
- __Expected behavior:__
26
- Describe what you expected to happen.
27
-
28
- __Actual behavior:__
29
- Describe What actually happened.
30
-
31
- __Specifications:__
32
- - Client Version:
33
- - InfluxDB Version:
34
- - Platform:
@@ -1,28 +0,0 @@
1
- ---
2
- name: Feature request
3
- about: Opening a feature request kicks off a discussion
4
- ---
5
-
6
- <!--
7
-
8
- Thank you for suggesting an idea to improve this client.
9
-
10
- * Please add a :+1: or comment on a similar existing feature request instead of opening a new one.
11
- * https://github.com/influxdata/influxdb-client-ruby/issues?utf8=%E2%9C%93&q=is%3Aissue+is%3Aopen+is%3Aclosed+sort%3Aupdated-desc+label%3A%22enhancement%22+
12
-
13
- -->
14
-
15
- __Proposal:__
16
- Short summary of the feature.
17
-
18
- __Current behavior:__
19
- Describe what currently happens.
20
-
21
- __Desired behavior:__
22
- Describe what you want.
23
-
24
- __Alternatives considered:__
25
- Describe other solutions or features you considered.
26
-
27
- __Use case:__
28
- Why is this important (helps with prioritizing requests)?
@@ -1,16 +0,0 @@
1
- Closes #
2
-
3
- ## Proposed Changes
4
-
5
- _Briefly describe your proposed changes:_
6
-
7
- ## Checklist
8
-
9
- <!-- Checkboxes below this note can be erased if not applicable to your Pull Request. -->
10
-
11
- - [ ] CHANGELOG.md updated
12
- - [ ] Rebased/mergeable
13
- - [ ] A test has been added if appropriate
14
- - [ ] `rake test` completes successfully
15
- - [ ] Commit messages are in [semantic format](https://seesparkbox.com/foundry/semantic_commit_messages)
16
- - [ ] Sign [CLA](https://influxdata.com/community/cla/) (if not already signed)
data/.github/semantic.yml DELETED
@@ -1,3 +0,0 @@
1
- # docs: https://github.com/probot/semantic-pull-requests#configuration
2
- # Always validate the PR title AND all the commits
3
- titleAndCommits: true
data/.gitignore DELETED
@@ -1,16 +0,0 @@
1
- /.bundle/
2
- /.idea/
3
- /.yardoc
4
- /_yardoc/
5
- /coverage/
6
- /doc/
7
- /pkg/
8
- /spec/reports/
9
- /tmp/
10
- /Gemfile.lock
11
- /test/reports/
12
- .rakeTasks
13
- /influxdb-client-*.gem
14
- /TAGS
15
- /vendor
16
- /.openapi-generator/
data/.rubocop.yml DELETED
@@ -1,43 +0,0 @@
1
- #
2
- # The MIT License
3
- #
4
- # Permission is hereby granted, free of charge, to any person obtaining a copy
5
- # of this software and associated documentation files (the "Software"), to deal
6
- # in the Software without restriction, including without limitation the rights
7
- # to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
8
- # copies of the Software, and to permit persons to whom the Software is
9
- # furnished to do so, subject to the following conditions:
10
- #
11
- # The above copyright notice and this permission notice shall be included in
12
- # all copies or substantial portions of the Software.
13
- #
14
- # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
15
- # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
16
- # FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
17
- # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
18
- # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
19
- # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
20
- # THE SOFTWARE.
21
- #
22
-
23
- AllCops:
24
- Exclude:
25
- - 'lib/influxdb2/client/models/**/*'
26
- - 'vendor/**/*'
27
- Naming/FileName:
28
- Exclude:
29
- - 'lib/influxdb-client.rb'
30
- Metrics/LineLength:
31
- Max: 120
32
- Metrics/MethodLength:
33
- Max: 50
34
- Metrics/ClassLength:
35
- Max: 300
36
- Metrics/AbcSize:
37
- Max: 50
38
- Metrics/CyclomaticComplexity:
39
- Max: 15
40
- Metrics/PerceivedComplexity:
41
- Max: 15
42
- Metrics/ParameterLists:
43
- Max: 10
data/Gemfile DELETED
@@ -1,24 +0,0 @@
1
- # The MIT License
2
- #
3
- # Permission is hereby granted, free of charge, to any person obtaining a copy
4
- # of this software and associated documentation files (the "Software"), to deal
5
- # in the Software without restriction, including without limitation the rights
6
- # to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
7
- # copies of the Software, and to permit persons to whom the Software is
8
- # furnished to do so, subject to the following conditions:
9
- #
10
- # The above copyright notice and this permission notice shall be included in
11
- # all copies or substantial portions of the Software.
12
- #
13
- # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
14
- # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
15
- # FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
16
- # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
17
- # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
18
- # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
19
- # THE SOFTWARE.
20
-
21
- source 'https://rubygems.org'
22
-
23
- # Specify your gem's dependencies in influxdb-client.gemspec
24
- gemspec
@@ -1,23 +0,0 @@
1
- #!/usr/bin/env bash
2
-
3
- #!/usr/bin/env bash
4
-
5
- SCRIPT_PATH="$( cd "$(dirname "$0")" || exit ; pwd -P )"
6
-
7
- # delete old sources
8
- rm "${SCRIPT_PATH}"/../lib/influxdb2/client/models/*
9
-
10
- # Generate client
11
- cd "${SCRIPT_PATH}"/ || exit
12
- mvn org.openapitools:openapi-generator-maven-plugin:generate
13
-
14
- # Move sources
15
- mkdir -p "${SCRIPT_PATH}"/../lib/influxdb2/client/models
16
- mv "${SCRIPT_PATH}"/../lib/influx_db2/models/* "${SCRIPT_PATH}"/../lib/influxdb2/client/models
17
-
18
- cd "${SCRIPT_PATH}"/../lib/influxdb2/client/models || exit
19
- rm -r $(ls | grep -v "\<health_check.rb\>\|\<dialect.rb\>\|\<query.rb\>\|\<delete_predicate_request.rb\>")
20
-
21
- # Clean
22
- rmdir "${SCRIPT_PATH}"/../lib/influx_db2/models
23
- rmdir "${SCRIPT_PATH}"/../lib/influx_db2/