influxdb 0.3.1 → 0.3.2
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 +4 -4
- data/CHANGELOG.md +4 -0
- data/lib/influxdb/config.rb +1 -1
- data/lib/influxdb/query/core.rb +1 -1
- data/lib/influxdb/version.rb +1 -1
- data/spec/influxdb/cases/query_cluster_spec.rb +22 -6
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 9175c1e5dc3934144b01c90acf625770219d052b
|
4
|
+
data.tar.gz: e06c8e8f3fa04429e58c97d4f4b2f30c0dcbc4da
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 0cd3923bcbf70d4aef40062fbec6b8e924403a3b83631861bb0dc71e7eaefdd53ffaa7d38935a289045d20e337b0531a48173e558079da5cadbcc9a52ea088be
|
7
|
+
data.tar.gz: 9f2cca0b974e8fdb3342356645dbb75963cf03c23c672ed439566160ebbca8fbb76810fa46ceddfc943e0e0b65df62120afa9f12cbb2da9dcb898bba8819bfd1
|
data/CHANGELOG.md
CHANGED
@@ -2,6 +2,10 @@
|
|
2
2
|
|
3
3
|
For the full commit log, [see here](https://github.com/influxdata/influxdb-ruby/commits/master).
|
4
4
|
|
5
|
+
## v0.3.2, released 2016-06-02
|
6
|
+
|
7
|
+
- Added config option to authenticate without credentials (#146, @pmenglund).
|
8
|
+
|
5
9
|
## v0.3.1, released 2016-05-26
|
6
10
|
|
7
11
|
- Fixed #130 (again). Integer values are now really written as Integers to InfluxDB.
|
data/lib/influxdb/config.rb
CHANGED
data/lib/influxdb/query/core.rb
CHANGED
data/lib/influxdb/version.rb
CHANGED
@@ -22,14 +22,30 @@ describe InfluxDB::Client do
|
|
22
22
|
let(:pass) { 'passpass' }
|
23
23
|
let(:query) { "CREATE USER #{user} WITH PASSWORD '#{pass}' WITH ALL PRIVILEGES" }
|
24
24
|
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
25
|
+
context 'with existing admin user' do
|
26
|
+
before do
|
27
|
+
stub_request(:get, "http://influxdb.test:9999/query").with(
|
28
|
+
query: { u: "username", p: "password", q: query }
|
29
|
+
)
|
30
|
+
end
|
31
|
+
|
32
|
+
it "should GET to create a new cluster admin" do
|
33
|
+
expect(subject.create_cluster_admin(user, pass)).to be_a(Net::HTTPOK)
|
34
|
+
end
|
29
35
|
end
|
30
36
|
|
31
|
-
|
32
|
-
|
37
|
+
context 'with no admin user' do
|
38
|
+
let(:args) { { auth_method: 'none' } }
|
39
|
+
|
40
|
+
before do
|
41
|
+
stub_request(:get, "http://influxdb.test:9999/query").with(
|
42
|
+
query: { q: query }
|
43
|
+
)
|
44
|
+
end
|
45
|
+
|
46
|
+
it "should GET to create a new cluster admin" do
|
47
|
+
expect(subject.create_cluster_admin(user, pass)).to be_a(Net::HTTPOK)
|
48
|
+
end
|
33
49
|
end
|
34
50
|
end
|
35
51
|
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: influxdb
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.3.
|
4
|
+
version: 0.3.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Todd Persen
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-
|
11
|
+
date: 2016-06-02 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: json
|