kapacitor-ruby 0.0.4 → 0.0.5

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: fe64e9b12e47b683901612276caeab8ddffa1955
4
- data.tar.gz: b01e0fd07faa43b4c4069fb1f26ddd34ca09fd38
3
+ metadata.gz: e303c577bff56eab54eae11ac4c09f23cd96289c
4
+ data.tar.gz: 35c3187805875d33d74475bdb93b433b4936e601
5
5
  SHA512:
6
- metadata.gz: b20705bffe8209e904a5a5a6bc9e63524885e97a680254510b71bd1c53dae86faf2ac6124415f60cf8d539a16b7ae4417534f8c6e2ffb86e8e1a9ff99e1279e7
7
- data.tar.gz: 3002383fcbeb14412fc25c5ed6f5191515e9610856c3b3829ad97da9b974f9d9eceb75e18db7cf9123db8381460d6bb3d7332ce178646ec3d20d52bf81a74e42
6
+ metadata.gz: d74bd4b75d96a2f328d664646e862d172ba2151ede6ad674c3b07c9c3a8c6c601bd00d9bd8d9554c55bd916a32f94dbf6a47822a6a1246a1e8880c9f6bb5ad20
7
+ data.tar.gz: 5ed36133d4e5aec3c59d67f3a0edc0a4831da1e367ebb7faa60aed02ddebc7bddbf3ccfb0b78caecbbebdeaa15b509148d582aadd8c744a24d5a26334845081c
@@ -84,7 +84,10 @@ module Kapacitor
84
84
  end
85
85
 
86
86
  def tasks
87
- api_get('/tasks')['tasks']
87
+ tasks = []
88
+ api_get('/tasks?fields=id')['tasks'].each do |id|
89
+ tasks << api_get("/tasks/#{id}")['tasks'].each do |id|
90
+ end
88
91
  end
89
92
 
90
93
  private
@@ -5,7 +5,7 @@
5
5
  #
6
6
 
7
7
  module Kapacitor
8
- VERSION = "0.0.4"
8
+ VERSION = "0.0.5"
9
9
 
10
10
  def self.version
11
11
  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: 0.0.4
4
+ version: 0.0.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Matteo Cerutti
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-12-12 00:00:00.000000000 Z
11
+ date: 2017-01-20 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: json
@@ -54,7 +54,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
54
54
  version: '0'
55
55
  requirements: []
56
56
  rubyforge_project:
57
- rubygems_version: 2.4.5.1
57
+ rubygems_version: 2.6.8
58
58
  signing_key:
59
59
  specification_version: 4
60
60
  summary: Ruby client library that allows to interact with the Kapacitor JSON REST