From bd1a9a0fdc4db8c5da517b3c5a4c018d9a01d0d1 Mon Sep 17 00:00:00 2001 From: dnson Date: Mon, 17 Jul 2023 10:16:59 +0700 Subject: [PATCH] Release 2.0.0 (#140) * Release 2.0.0 * Fix tests * Update version numbers * PR fix --- ChangeLog | 8 ++++++++ README.md | 2 +- VERSION | 2 +- lib/td/client/api/job.rb | 8 ++++---- lib/td/client/version.rb | 2 +- 5 files changed, 15 insertions(+), 7 deletions(-) diff --git a/ChangeLog b/ChangeLog index d7a5142d..65b3e757 100644 --- a/ChangeLog +++ b/ChangeLog @@ -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 diff --git a/README.md b/README.md index a4a3c5d9..7cc63864 100644 --- a/README.md +++ b/README.md @@ -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 diff --git a/VERSION b/VERSION index 238d6e88..227cea21 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -1.0.7 +2.0.0 diff --git a/lib/td/client/api/job.rb b/lib/td/client/api/job.rb index 03af1ac8..aa8b2a35 100644 --- a/lib/td/client/api/job.rb +++ b/lib/td/client/api/job.rb @@ -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 @@ -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 @@ -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 diff --git a/lib/td/client/version.rb b/lib/td/client/version.rb index 595e7d6f..3959cbd0 100644 --- a/lib/td/client/version.rb +++ b/lib/td/client/version.rb @@ -1,5 +1,5 @@ module TreasureData class Client - VERSION = '1.0.8' + VERSION = '2.0.0' end end