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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 30d665b31a22923dcfe3f323870cd2dbca608f4d
4
- data.tar.gz: 2ade7584998c461366148de74ed744e29f111396
3
+ metadata.gz: 7dfcfe3b1c67299767a2153fba38bd6f1fc30c65
4
+ data.tar.gz: 4613998ffee885a48ca82a04c1be35630e287d89
5
5
  SHA512:
6
- metadata.gz: 067d28ae1d7d640bbce58ee6304859065057d1d554a7685f08ae2703edd17504d771aac95c8cdf144554fad8060c0e74511591dea6344c67b25191a973110f2a
7
- data.tar.gz: ae4153783f39f02933cf12f19e24c390a88bf173a6c363962aea1369ca6b9045441e377cdc84ba977053760b47c564ae1f687852b07a457152868672bbfb07f6
6
+ metadata.gz: 0b219dfddac5f65fdbea92d1e352b7848927262905d9e2e29e7cc518fb12be60883c9f638620d76b4f3c4fd287c152bd7bfa9887f204d457ed35326b961de43b
7
+ data.tar.gz: 8be9ab1b17c1b057d8a49924c6c0dbc4b63d61fa02b6702967ffc458fc2b25f284b75fe5465ef66c605cda85fac5855f8bedab838cfa72ba961ab964afb446df
@@ -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['template_id'].nil? && (opts['type'].nil? || opts['script'].nil?)
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
 
@@ -3,7 +3,7 @@
3
3
  #
4
4
 
5
5
  module Kapacitor
6
- VERSION = "1.0.3"
6
+ VERSION = "1.0.4"
7
7
 
8
8
  def self.version
9
9
  VERSION
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.3
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-04 00:00:00.000000000 Z
11
+ date: 2017-09-08 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: httpclient