td-client 0.8.38 → 0.8.39
Sign up to get free protection for your applications and to get access to all the features.
- data/ChangeLog +5 -0
- data/lib/td/client.rb +2 -2
- data/lib/td/client/api.rb +2 -1
- data/lib/td/client/version.rb +1 -1
- metadata +3 -4
- data/lib/td/client/#cd# +0 -1
data/ChangeLog
CHANGED
data/lib/td/client.rb
CHANGED
@@ -126,8 +126,8 @@ class Client
|
|
126
126
|
end
|
127
127
|
|
128
128
|
# => [Job]
|
129
|
-
def jobs(from=nil, to=nil, status=nil)
|
130
|
-
result = @api.list_jobs(from, to, status)
|
129
|
+
def jobs(from=nil, to=nil, status=nil, conditions=nil)
|
130
|
+
result = @api.list_jobs(from, to, status, conditions)
|
131
131
|
result.map {|job_id,type,status,query,start_at,end_at,result_url,priority,org,db|
|
132
132
|
Job.new(self, job_id, type, query, status, nil, nil, start_at, end_at, nil, result_url, nil, priority, org, db)
|
133
133
|
}
|
data/lib/td/client/api.rb
CHANGED
@@ -336,11 +336,12 @@ class API
|
|
336
336
|
##
|
337
337
|
|
338
338
|
# => [(jobId:String, type:Symbol, status:String, start_at:String, end_at:String, result_url:String)]
|
339
|
-
def list_jobs(from=0, to=nil, status=nil)
|
339
|
+
def list_jobs(from=0, to=nil, status=nil, conditions=nil)
|
340
340
|
params = {}
|
341
341
|
params['from'] = from.to_s if from
|
342
342
|
params['to'] = to.to_s if to
|
343
343
|
params['status'] = status.to_s if status
|
344
|
+
params.merge!(conditions) if conditions
|
344
345
|
code, body, res = get("/v3/job/list", params)
|
345
346
|
if code != "200"
|
346
347
|
raise_error("List jobs failed", res)
|
data/lib/td/client/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: td-client
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.8.
|
4
|
+
version: 0.8.39
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2012-
|
12
|
+
date: 2012-12-05 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: msgpack
|
@@ -54,7 +54,6 @@ files:
|
|
54
54
|
- data/ca-bundle.crt
|
55
55
|
- lib/td-client.rb
|
56
56
|
- lib/td/client.rb
|
57
|
-
- lib/td/client/#cd#
|
58
57
|
- lib/td/client/api.rb
|
59
58
|
- lib/td/client/compat_gzip_reader.rb
|
60
59
|
- lib/td/client/model.rb
|
@@ -83,7 +82,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
83
82
|
version: '0'
|
84
83
|
requirements: []
|
85
84
|
rubyforge_project:
|
86
|
-
rubygems_version: 1.8.
|
85
|
+
rubygems_version: 1.8.23
|
87
86
|
signing_key:
|
88
87
|
specification_version: 3
|
89
88
|
summary: Treasure Data API library for Ruby
|
data/lib/td/client/#cd#
DELETED
@@ -1 +0,0 @@
|
|
1
|
-
cd rep
|