kapacitor-ruby 0.0.8 → 0.0.9
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/kapacitor/client.rb +2 -2
- data/lib/kapacitor/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 8236b9b121f8ffa358cb5aa30a1f33d8cb4909dd
|
4
|
+
data.tar.gz: a85f700fd1cc07c3bdcda07715b0938e26d913bd
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 18d6cc4f3f81810a9f526979f17c9b8f8eb5eeaf0d7b70dd0dbb9aa59235e71ac0a02126aa16e3d03194b71ef708856eea817cfcfa632b00f7e57b6b3c0a1558
|
7
|
+
data.tar.gz: a1978cba7d9054490e8af5a16df91b7f2bd8595933696b54db0b116da94816493c1c931f24410e0c94d8226e5ccc1ddcbbffb8fd992e15e24734956252bc5914
|
data/lib/kapacitor/client.rb
CHANGED
@@ -12,8 +12,8 @@ module Kapacitor
|
|
12
12
|
attr_reader :uri, :http
|
13
13
|
|
14
14
|
def initialize(opts = {})
|
15
|
-
|
16
|
-
|
15
|
+
host = opts['host'] || 'localhost'
|
16
|
+
version = opts['version'] || 'v1'
|
17
17
|
|
18
18
|
@uri = URI.parse("http://#{opts['host']}/kapacitor/#{opts['version']}")
|
19
19
|
@http = Net::HTTP.new(@uri.host, @uri.port)
|
data/lib/kapacitor/version.rb
CHANGED