kapacitor-ruby 0.0.11 → 0.0.12
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 +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 94be59b86cd534c61ffd23b32d4ba8e65c28144c
|
4
|
+
data.tar.gz: 624f5736361dcf348ec119b5f399a70f0e96344b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 8b6548cbcf460be2ddafb9251ecd495a710074816d3e5a528dfc729b614761c63305270eabc4c185b43dbfaa732a507d99ab8316144ea03b77ecf1c7098560bf
|
7
|
+
data.tar.gz: 6a5b6db35f27ec5cfbab68a227a779dbb503af68f252e5e6a8ba85bf6d4cd5ca3c9897656f9ea3c18d04f850dddeebd0edcfb0938bc17e5fa42c557f0d893de1
|
data/lib/kapacitor/client.rb
CHANGED
@@ -38,8 +38,8 @@ module Kapacitor
|
|
38
38
|
|
39
39
|
def update_template(id, opts = {})
|
40
40
|
req = {}
|
41
|
-
req['type'] = type if opts['type']
|
42
|
-
req['script'] = script if opts['script']
|
41
|
+
req['type'] = opts['type'] if opts['type']
|
42
|
+
req['script'] = opts['script'] if opts['script']
|
43
43
|
|
44
44
|
if opts['type']
|
45
45
|
raise ArgumentError, "Kapacitor template type can be either 'batch' or 'stream'" unless (opts['type'] == 'batch' or opts['type'] == 'stream')
|
data/lib/kapacitor/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: kapacitor-ruby
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.12
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Matteo Cerutti
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2017-01-
|
11
|
+
date: 2017-01-24 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: json
|