File tree Expand file tree Collapse file tree 5 files changed +15
-7
lines changed
Expand file tree Collapse file tree 5 files changed +15
-7
lines changed Original file line number Diff line number Diff line change 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
Original file line number Diff line number Diff 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
Original file line number Diff line number Diff line change 1- 1 .0.7
1+ 2 .0.0
Original file line number Diff line number Diff 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
Original file line number Diff line number Diff line change 11module TreasureData
22 class Client
3- VERSION = '1 .0.8 '
3+ VERSION = '2 .0.0 '
44 end
55end
You can’t perform that action at this time.
0 commit comments