kapacitor-ruby 1.0.3 → 1.0.4
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 +1 -1
- 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: 7dfcfe3b1c67299767a2153fba38bd6f1fc30c65
|
4
|
+
data.tar.gz: 4613998ffee885a48ca82a04c1be35630e287d89
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 0b219dfddac5f65fdbea92d1e352b7848927262905d9e2e29e7cc518fb12be60883c9f638620d76b4f3c4fd287c152bd7bfa9887f204d457ed35326b961de43b
|
7
|
+
data.tar.gz: 8be9ab1b17c1b057d8a49924c6c0dbc4b63d61fa02b6702967ffc458fc2b25f284b75fe5465ef66c605cda85fac5855f8bedab838cfa72ba961ab964afb446df
|
data/lib/kapacitor/client.rb
CHANGED
@@ -89,7 +89,7 @@ module Kapacitor
|
|
89
89
|
def define_task(id:, dbrps:, **opts)
|
90
90
|
if (opts[:template_id].nil? && opts[:type].nil? && opts[:script].nil?) || (opts[:template_id] && (opts[:type] || opts[:script]))
|
91
91
|
raise ArgumentError, "Must specify either a Template ID or a script and type"
|
92
|
-
elsif opts[
|
92
|
+
elsif opts[:template_id].nil? && (opts[:type].nil? || opts[:script].nil?)
|
93
93
|
raise ArgumentError, "Must specify both task type and script when not using a Template ID"
|
94
94
|
end
|
95
95
|
|
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: 1.0.
|
4
|
+
version: 1.0.4
|
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-09-
|
11
|
+
date: 2017-09-08 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: httpclient
|