influxdb-client 1.0.0.pre.54 → 1.0.0.pre.58

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
- SHA1:
3
- metadata.gz: 3bbc9a6f17ebbf623e4a356c17f5afd3c32251c9
4
- data.tar.gz: da7baeffd5c0af685110a4c957854e2e07ad9d5a
2
+ SHA256:
3
+ metadata.gz: 2ca853bd97d56b3608c928e0945dcb43ca586f4e4bace69a73557de1c0ce438d
4
+ data.tar.gz: c9ba19cbf71b481617aa111494bd5769ca7ef6e30f54eccaa47ebfffc4c0e00e
5
5
  SHA512:
6
- metadata.gz: 49d327d16e44078b43c246569263bf511f0c3d8fa393ee501c78cfe370abe2c20f1931a169eb44e3407f11292acd0394ae548564bc01ceee2cb3b4ed1abf8ad8
7
- data.tar.gz: 0100197a27f44cb27f59b93475b587c634c9d31d2bccb58b441cee1ef05e5873ba0df7476fa0822583963d9767304ef131f2fb0c0f8a15efa56040732da4dea1
6
+ metadata.gz: 53c9a2ebc784125e6402cd11d6394fce0bede273e54886522e1fcb649ecd3b4ad92201575910f207404974daa19ec194ec4cc475c3c965554a3e58dbede2b2fa
7
+ data.tar.gz: 78acedec661f54fbe4a846f7f71121990805cd4f8bd2eca995aaff9189453bcb73d67f888db7518cae57585bf712d385f28d350d16a0b2178377a3f3b167954a
data/.circleci/config.yml CHANGED
@@ -23,22 +23,26 @@
23
23
  version: 2.1
24
24
 
25
25
  commands:
26
- influxdb-restart:
26
+ influxdb-onboarding:
27
27
  steps:
28
28
  - run:
29
- name: "Start InfluxDB 2"
30
- command: ./bin/influxdb-restart.sh
29
+ name: "Post onBoarding request to InfluxDB 2"
30
+ command: ./bin/influxdb-onboarding.sh
31
31
  prepare:
32
32
  description: "Prepare environment to tests"
33
33
  steps:
34
34
  - checkout
35
- - influxdb-restart
35
+ - influxdb-onboarding
36
36
  test:
37
+ parameters:
38
+ ruby-image:
39
+ type: string
37
40
  steps:
38
41
  - restore_cache:
39
42
  name: Restoring Gem Cache
40
43
  keys:
41
- - &cache-key gem-cache-{{ checksum "influxdb-client.gemspec" }}
44
+ - &cache-key gem-cache-{{ checksum "influxdb-client.gemspec" }}-<< parameters.ruby-image >>
45
+ - gem-cache-{{ checksum "influxdb-client.gemspec" }}
42
46
  - gem-cache-
43
47
  - run:
44
48
  name: Install dependencies
@@ -67,14 +71,23 @@ commands:
67
71
 
68
72
  jobs:
69
73
  tests-ruby:
70
- machine: true
74
+ parameters:
75
+ ruby-image:
76
+ type: string
77
+ default: &default-ruby-image "circleci/ruby:2.6-stretch"
78
+ docker:
79
+ - image: << parameters.ruby-image >>
80
+ - image: &influx-image quay.io/influxdb/influx:nightly
71
81
  steps:
72
82
  - prepare
73
- - test
83
+ - test:
84
+ ruby-image: << parameters.ruby-image >>
74
85
  - storing-test-results
75
86
 
76
87
  deploy-preview:
77
- machine: true
88
+ docker:
89
+ - image: *default-ruby-image
90
+ - image: *influx-image
78
91
  steps:
79
92
  - run:
80
93
  name: Early return if this build is from a forked repository
@@ -99,10 +112,19 @@ workflows:
99
112
  version: 2
100
113
  build:
101
114
  jobs:
102
- - tests-ruby
115
+ - tests-ruby:
116
+ name: ruby-2.6
117
+ - tests-ruby:
118
+ name: ruby-2.5
119
+ ruby-image: "circleci/ruby:2.5-stretch"
120
+ - tests-ruby:
121
+ name: ruby-2.4
122
+ ruby-image: "circleci/ruby:2.4-stretch"
103
123
  - deploy-preview:
104
124
  requires:
105
- - tests-ruby
125
+ - ruby-2.6
126
+ - ruby-2.5
127
+ - ruby-2.4
106
128
  filters:
107
129
  branches:
108
130
  only: master
@@ -0,0 +1,39 @@
1
+ #!/usr/bin/env bash
2
+ #
3
+ # The MIT License
4
+ #
5
+ # Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ # of this software and associated documentation files (the "Software"), to deal
7
+ # in the Software without restriction, including without limitation the rights
8
+ # to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ # copies of the Software, and to permit persons to whom the Software is
10
+ # furnished to do so, subject to the following conditions:
11
+ #
12
+ # The above copyright notice and this permission notice shall be included in
13
+ # all copies or substantial portions of the Software.
14
+ #
15
+ # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ # FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
21
+ # THE SOFTWARE.
22
+ #
23
+
24
+ set -e
25
+
26
+ echo "Wait to start InfluxDB 2.0"
27
+ wget -S --spider --tries=20 --retry-connrefused --waitretry=5 http://localhost:9999/metrics
28
+
29
+ echo
30
+ echo "Post onBoarding request, to setup initial user (my-user@my-password), org (my-org) and bucketSetup (my-bucket)"
31
+ echo
32
+ curl -i -X POST http://localhost:9999/api/v2/setup -H 'accept: application/json' \
33
+ -d '{
34
+ "username": "my-user",
35
+ "password": "my-password",
36
+ "org": "my-org",
37
+ "bucket": "my-bucket",
38
+ "token": "my-token"
39
+ }'
@@ -30,6 +30,8 @@ DEFAULT_INFLUXDB_V2_VERSION="nightly"
30
30
  INFLUXDB_V2_VERSION="${INFLUXDB_V2_VERSION:-$DEFAULT_INFLUXDB_V2_VERSION}"
31
31
  INFLUXDB_V2_IMAGE=${DOCKER_REGISTRY}influx:${INFLUXDB_V2_VERSION}
32
32
 
33
+ SCRIPT_PATH="$( cd "$(dirname "$0")" ; pwd -P )"
34
+
33
35
  docker kill influxdb_v2 || true
34
36
  docker rm influxdb_v2 || true
35
37
  docker network rm influx_network || true
@@ -50,17 +52,7 @@ docker run \
50
52
  --publish 9999:9999 \
51
53
  "${INFLUXDB_V2_IMAGE}"
52
54
 
53
- echo "Wait to start InfluxDB 2.0"
54
- wget -S --spider --tries=20 --retry-connrefused --waitretry=5 http://localhost:9999/metrics
55
-
56
- echo
57
- echo "Post onBoarding request, to setup initial user (my-user@my-password), org (my-org) and bucketSetup (my-bucket)"
58
- echo
59
- curl -i -X POST http://localhost:9999/api/v2/setup -H 'accept: application/json' \
60
- -d '{
61
- "username": "my-user",
62
- "password": "my-password",
63
- "org": "my-org",
64
- "bucket": "my-bucket",
65
- "token": "my-token"
66
- }'
55
+ #
56
+ # Post onBoarding request to InfluxDB 2
57
+ #
58
+ "${SCRIPT_PATH}"/influxdb-onboarding.sh
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: influxdb-client
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.0.pre.54
4
+ version: 1.0.0.pre.58
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jakub Bednar
@@ -139,6 +139,7 @@ files:
139
139
  - LICENSE.txt
140
140
  - README.md
141
141
  - Rakefile
142
+ - bin/influxdb-onboarding.sh
142
143
  - bin/influxdb-restart.sh
143
144
  - influxdb-client.gemspec
144
145
  - lib/influxdb/client.rb
@@ -174,8 +175,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
174
175
  - !ruby/object:Gem::Version
175
176
  version: 1.3.1
176
177
  requirements: []
177
- rubyforge_project:
178
- rubygems_version: 2.6.13
178
+ rubygems_version: 3.0.3
179
179
  signing_key:
180
180
  specification_version: 4
181
181
  summary: Ruby library for InfluxDB 2.