Skip to content

Commit 8093500

Browse files
authored
Release 2.0.0 (#140)
* Release 2.0.0 * Fix tests * Update version numbers * PR fix
1 parent 73b26ab commit 8093500

File tree

5 files changed

+15
-7
lines changed

5 files changed

+15
-7
lines changed

ChangeLog

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,11 @@
1+
== 2023-07-11 version 2.0.0
2+
3+
* v3 core utilization API removal
4+
5+
* add custom cert and cert verification options: cert_path and skip_cert_verify
6+
7+
* Support Ruby v3.2
8+
19
== 2021-03-03 version 1.0.8
210

311
* Ignore elapsed_time #129

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -167,5 +167,5 @@ behaviors. These hooks are triggered using environment variables:
167167

168168
## More Information
169169

170-
- Copyright: (c) 2011 Treasure Data Inc.
170+
- Copyright: (c) 2011-2023 Treasure Data Inc.
171171
- License: Apache License, Version 2.0

VERSION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
1.0.7
1+
2.0.0

lib/td/client/api/job.rb

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,7 @@ def job_result(job_id)
126126
job_result_download(job_id) do |chunk|
127127
unpacker.feed_each(chunk) do |row|
128128
result << row
129-
end
129+
end unless chunk.empty?
130130
end
131131
return result
132132
end
@@ -163,7 +163,7 @@ def job_result_each(job_id, &block)
163163
upkr = MessagePack::Unpacker.new
164164
# default to decompressing the response since format is fixed to 'msgpack'
165165
job_result_download(job_id) do |chunk|
166-
upkr.feed_each(chunk, &block)
166+
upkr.feed_each(chunk, &block) unless chunk.empty?
167167
end
168168
nil
169169
end
@@ -177,9 +177,9 @@ def job_result_each_with_compr_size(job_id)
177177
upkr = MessagePack::Unpacker.new
178178
# default to decompressing the response since format is fixed to 'msgpack'
179179
job_result_download(job_id) do |chunk, total|
180-
upkr.feed_each(chunk) {|unpacked|
180+
upkr.feed_each(chunk) do |unpacked|
181181
yield unpacked, total if block_given?
182-
}
182+
end unless chunk.empty?
183183
end
184184
nil
185185
end

lib/td/client/version.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
module TreasureData
22
class Client
3-
VERSION = '1.0.8'
3+
VERSION = '2.0.0'
44
end
55
end

0 commit comments

Comments
 (0)