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 CHANGED
@@ -1,3 +1,8 @@
1
+ == 2012-12-05 version 0.8.39
2
+
3
+ * Add conditions argument to Client#list_jobs for slow query listing
4
+
5
+
1
6
  == 2012-11-21 version 0.8.38
2
7
 
3
8
  * Add Account#created_at
@@ -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
  }
@@ -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)
@@ -1,5 +1,5 @@
1
1
  module TreasureData
2
2
 
3
- VERSION = '0.8.38'
3
+ VERSION = '0.8.39'
4
4
 
5
5
  end
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.38
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-11-21 00:00:00.000000000 Z
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.24
85
+ rubygems_version: 1.8.23
87
86
  signing_key:
88
87
  specification_version: 3
89
88
  summary: Treasure Data API library for Ruby
@@ -1 +0,0 @@
1
- cd rep