Skip to content

Commit

Permalink
Release 2.0.0 (#140)
Browse files Browse the repository at this point in the history
* Release 2.0.0

* Fix tests

* Update version numbers

* PR fix
  • Loading branch information
imnutz authored Jul 17, 2023
1 parent 68885be commit bd1a9a0
Show file tree
Hide file tree
Showing 5 changed files with 15 additions and 7 deletions.
8 changes: 8 additions & 0 deletions ChangeLog
Original file line number Diff line number Diff line change
@@ -1,3 +1,11 @@
== 2023-07-11 version 2.0.0

* v3 core utilization API removal

* add custom cert and cert verification options: cert_path and skip_cert_verify

* Support Ruby v3.2

== 2021-03-03 version 1.0.8

* Ignore elapsed_time #129
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -167,5 +167,5 @@ behaviors. These hooks are triggered using environment variables:

## More Information

- Copyright: (c) 2011 Treasure Data Inc.
- Copyright: (c) 2011-2023 Treasure Data Inc.
- License: Apache License, Version 2.0
2 changes: 1 addition & 1 deletion VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
1.0.7
2.0.0
8 changes: 4 additions & 4 deletions lib/td/client/api/job.rb
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@ def job_result(job_id)
job_result_download(job_id) do |chunk|
unpacker.feed_each(chunk) do |row|
result << row
end
end unless chunk.empty?
end
return result
end
Expand Down Expand Up @@ -163,7 +163,7 @@ def job_result_each(job_id, &block)
upkr = MessagePack::Unpacker.new
# default to decompressing the response since format is fixed to 'msgpack'
job_result_download(job_id) do |chunk|
upkr.feed_each(chunk, &block)
upkr.feed_each(chunk, &block) unless chunk.empty?
end
nil
end
Expand All @@ -177,9 +177,9 @@ def job_result_each_with_compr_size(job_id)
upkr = MessagePack::Unpacker.new
# default to decompressing the response since format is fixed to 'msgpack'
job_result_download(job_id) do |chunk, total|
upkr.feed_each(chunk) {|unpacked|
upkr.feed_each(chunk) do |unpacked|
yield unpacked, total if block_given?
}
end unless chunk.empty?
end
nil
end
Expand Down
2 changes: 1 addition & 1 deletion lib/td/client/version.rb
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
module TreasureData
class Client
VERSION = '1.0.8'
VERSION = '2.0.0'
end
end

0 comments on commit bd1a9a0

Please sign in to comment.