influxdb-client 1.0.0.pre.3 → 1.0.0.pre.58
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.circleci/config.yml +38 -14
- data/.circleci/setup-rubygems.sh +3 -0
- data/CHANGELOG.md +5 -0
- data/README.md +2 -2
- data/bin/influxdb-onboarding.sh +39 -0
- data/bin/influxdb-restart.sh +6 -14
- data/influxdb-client.gemspec +1 -0
- metadata +6 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 2ca853bd97d56b3608c928e0945dcb43ca586f4e4bace69a73557de1c0ce438d
|
4
|
+
data.tar.gz: c9ba19cbf71b481617aa111494bd5769ca7ef6e30f54eccaa47ebfffc4c0e00e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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-
|
26
|
+
influxdb-onboarding:
|
27
27
|
steps:
|
28
28
|
- run:
|
29
|
-
name: "
|
30
|
-
command: ./bin/influxdb-
|
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-
|
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
|
-
|
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
|
-
|
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
|
@@ -85,22 +98,33 @@ jobs:
|
|
85
98
|
fi
|
86
99
|
- checkout
|
87
100
|
- run:
|
88
|
-
name:
|
101
|
+
name: Setup Rubygems
|
102
|
+
command: bash .circleci/setup-rubygems.sh
|
103
|
+
- run:
|
104
|
+
name: Build a Gem bundle
|
89
105
|
command: |
|
90
106
|
gem build influxdb-client.gemspec
|
91
|
-
GEM_FILE_NAME=`find . -name 'influxdb-client*.pre.*.gem'`
|
92
107
|
- run:
|
93
|
-
name: Deploy
|
108
|
+
name: Deploy pre-release into https://rubygems.org
|
94
109
|
command: |
|
95
|
-
|
110
|
+
gem push influxdb-client-*.pre.$CIRCLE_BUILD_NUM.gem
|
96
111
|
workflows:
|
97
112
|
version: 2
|
98
113
|
build:
|
99
114
|
jobs:
|
100
|
-
- 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"
|
101
123
|
- deploy-preview:
|
102
124
|
requires:
|
103
|
-
-
|
125
|
+
- ruby-2.6
|
126
|
+
- ruby-2.5
|
127
|
+
- ruby-2.4
|
104
128
|
filters:
|
105
129
|
branches:
|
106
130
|
only: master
|
data/CHANGELOG.md
ADDED
data/README.md
CHANGED
@@ -2,7 +2,7 @@
|
|
2
2
|
|
3
3
|
[![CircleCI](https://circleci.com/gh/bonitoo-io/influxdb-client-ruby.svg?style=svg)](https://circleci.com/gh/bonitoo-io/influxdb-client-ruby)
|
4
4
|
[![codecov](https://codecov.io/gh/bonitoo-io/influxdb-client-ruby/branch/master/graph/badge.svg)](https://codecov.io/gh/bonitoo-io/influxdb-client-ruby)
|
5
|
-
[![Gem Version](https://badge.fury.io/rb/
|
5
|
+
[![Gem Version](https://badge.fury.io/rb/influxdb-client.svg)](https://badge.fury.io/rb/influxdb-client)
|
6
6
|
[![License](https://img.shields.io/github/license/bonitoo-io/influxdb-client-ruby.svg)](https://github.com/bonitoo-io/influxdb-client-ruby/blob/master/LICENSE)
|
7
7
|
[![GitHub issues](https://img.shields.io/github/issues-raw/bonitoo-io/influxdb-client-ruby.svg)](https://github.com/bonitoo-io/influxdb-client-ruby/issues)
|
8
8
|
[![GitHub pull requests](https://img.shields.io/github/issues-pr-raw/bonitoo-io/influxdb-client-ruby.svg)](https://github.com/bonitoo-io/influxdb-client-ruby/pulls)
|
@@ -22,7 +22,7 @@ The client can be installed manually or with bundler.
|
|
22
22
|
To install the client gem manually:
|
23
23
|
|
24
24
|
```
|
25
|
-
gem install
|
25
|
+
gem install influxdb-client --pre
|
26
26
|
```
|
27
27
|
|
28
28
|
## Usage
|
@@ -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
|
+
}'
|
data/bin/influxdb-restart.sh
CHANGED
@@ -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
|
-
|
54
|
-
|
55
|
-
|
56
|
-
|
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
|
data/influxdb-client.gemspec
CHANGED
@@ -40,6 +40,7 @@ Gem::Specification.new do |spec|
|
|
40
40
|
spec.files = `git ls-files`.split($INPUT_RECORD_SEPARATOR)
|
41
41
|
spec.test_files = spec.files.grep(%r{^(test|spec|features|smoke)/})
|
42
42
|
spec.require_paths = ['lib']
|
43
|
+
spec.required_ruby_version = '>= 2.2.0'
|
43
44
|
|
44
45
|
spec.add_development_dependency 'bundler', '~> 2.0'
|
45
46
|
spec.add_development_dependency 'codecov', '~> 0.1.16'
|
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.
|
4
|
+
version: 1.0.0.pre.58
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Jakub Bednar
|
@@ -130,13 +130,16 @@ extensions: []
|
|
130
130
|
extra_rdoc_files: []
|
131
131
|
files:
|
132
132
|
- ".circleci/config.yml"
|
133
|
+
- ".circleci/setup-rubygems.sh"
|
133
134
|
- ".github/PULL_REQUEST_TEMPLATE"
|
134
135
|
- ".gitignore"
|
135
136
|
- ".rubocop.yml"
|
137
|
+
- CHANGELOG.md
|
136
138
|
- Gemfile
|
137
139
|
- LICENSE.txt
|
138
140
|
- README.md
|
139
141
|
- Rakefile
|
142
|
+
- bin/influxdb-onboarding.sh
|
140
143
|
- bin/influxdb-restart.sh
|
141
144
|
- influxdb-client.gemspec
|
142
145
|
- lib/influxdb/client.rb
|
@@ -165,14 +168,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
165
168
|
requirements:
|
166
169
|
- - ">="
|
167
170
|
- !ruby/object:Gem::Version
|
168
|
-
version:
|
171
|
+
version: 2.2.0
|
169
172
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
170
173
|
requirements:
|
171
174
|
- - ">"
|
172
175
|
- !ruby/object:Gem::Version
|
173
176
|
version: 1.3.1
|
174
177
|
requirements: []
|
175
|
-
rubygems_version: 3.0.
|
178
|
+
rubygems_version: 3.0.3
|
176
179
|
signing_key:
|
177
180
|
specification_version: 4
|
178
181
|
summary: Ruby library for InfluxDB 2.
|