td-client 0.8.35 → 0.8.36

Sign up to get free protection for your applications and to get access to all the features.
data/ChangeLog CHANGED
@@ -1,3 +1,7 @@
1
+ == 2012-11-16 version 0.8.36
2
+
3
+ * Remove json gem dependency
4
+
1
5
 
2
6
  == 2012-10-23 version 0.8.35
3
7
 
data/lib/td/client.rb CHANGED
@@ -142,6 +142,7 @@ class Client
142
142
 
143
143
  # => type:Symbol, url:String
144
144
  def job_status(job_id)
145
+ # use v3/job/status instead of v3/job/show to poll finish of a job
145
146
  type, query, status, url, debug, start_at, end_at, result_url, hive_result_schema, priority, org, db = @api.show_job(job_id)
146
147
  return query, status, url, debug, start_at, end_at, result_url, hive_result_schema, priority, org, db
147
148
  end
data/lib/td/client/api.rb CHANGED
@@ -364,6 +364,7 @@ class API
364
364
 
365
365
  # => (type:Symbol, status:String, result:String, url:String, result:String)
366
366
  def show_job(job_id)
367
+ # use v3/job/status instead of v3/job/show to poll finish of a job
367
368
  code, body, res = get("/v3/job/show/#{e job_id}")
368
369
  if code != "200"
369
370
  raise_error("Show job failed", res)
@@ -1,5 +1,5 @@
1
1
  module TreasureData
2
2
 
3
- VERSION = '0.8.35'
3
+ VERSION = '0.8.36'
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.35
4
+ version: 0.8.36
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-10-23 00:00:00.000000000 Z
12
+ date: 2012-11-16 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: msgpack