From 641c17eefee40f025f8295ef4f36587c8b0124c9 Mon Sep 17 00:00:00 2001 From: Andrew Aladjev Date: Sat, 27 Jun 2020 02:15:12 +0300 Subject: [PATCH] updated to zstd 1.4.5, content size works perfect, updated release scripts --- scripts/ci_test.sh | 2 +- scripts/release.sh | 3 ++- test/option.rb | 3 +-- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/scripts/ci_test.sh b/scripts/ci_test.sh index 5002f25..7c7b147 100755 --- a/scripts/ci_test.sh +++ b/scripts/ci_test.sh @@ -38,7 +38,7 @@ export LIBRARY_PATH="${C_INCLUDE_PATH}:/usr/local/lib" export LD_LIBRARY_PATH="${LD_LIBRARY_PATH}:/usr/local/lib" # Compiling library from source. -ZSTD_BRANCH="v1.4.4" +ZSTD_BRANCH="v1.4.5" cd "tmp" diff --git a/scripts/release.sh b/scripts/release.sh index 2bdfe50..c038c8c 100755 --- a/scripts/release.sh +++ b/scripts/release.sh @@ -12,7 +12,8 @@ rake gem # Packing source. -NAME="ruby-zstds" +VERSION=$(grep "VERSION" "lib/zstds/version.rb" | sed "s/.*VERSION\s*=\s*['\"]\([0-9.]*\).*/\1/g") +NAME="ruby-zstds-${VERSION}" COMPRESSION_LEVEL="-9" TAR_COMMANDS=( diff --git a/test/option.rb b/test/option.rb index c85c515..aff3eda 100644 --- a/test/option.rb +++ b/test/option.rb @@ -437,8 +437,7 @@ def self.get_compressor_options(buffer_length_names, &_block) # other flags_generator = OCG.new( - # TODO: content size is broken https://github.com/facebook/zstd/issues/1863. - :content_size_flag => [true], + :content_size_flag => BOOLS, :checksum_flag => BOOLS, :dict_id_flag => BOOLS )