-
Notifications
You must be signed in to change notification settings - Fork 17
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: Standardized dictionary handling
Feature * Zstd.compress supports :level and :dict keyward args * Zstd.decompress supports :dict keyward args * Zstd::StreamingCompress.new supports :level and :dict keyward args * Zstd::StreamingDecompress.new supports :dict keyward args Breaking Change * Zstd.compress uses ZSTD_compressStream2 instead of ZSTD_compress * Zstd.decompress uses ZSTD_decompressDCtx instead of ZSTD_decompress Deprecation * Zstd.compress_using_dict adds deprecation warning * use Zstd.compress with :dict keyward args * Zstd.decompress_using_dict adds deprecation warning * use Zstd.decompress with :dict keyward args * Zstd.compress with level args add deprecation warning * use Zstd.compress with :level keyward args * Zstd::StreamingCompress.new with level args add deprecation warning * use Zstd::StreamingCompress.new with :level keyward args
- Loading branch information
Showing
16 changed files
with
262 additions
and
95 deletions.
There are no files selected for viewing
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
source "https://rubygems.org" | ||
|
||
gem "sinatra" | ||
gem "rackup" | ||
gem "zstd-ruby", path: "../../" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
PATH | ||
remote: ../.. | ||
specs: | ||
zstd-ruby (1.5.6.1) | ||
|
||
GEM | ||
remote: https://rubygems.org/ | ||
specs: | ||
base64 (0.2.0) | ||
mustermann (3.0.0) | ||
ruby2_keywords (~> 0.0.1) | ||
rack (3.0.10) | ||
rack-protection (4.0.0) | ||
base64 (>= 0.1.0) | ||
rack (>= 3.0.0, < 4) | ||
rack-session (2.0.0) | ||
rack (>= 3.0.0) | ||
rackup (2.1.0) | ||
rack (>= 3) | ||
webrick (~> 1.8) | ||
ruby2_keywords (0.0.5) | ||
sinatra (4.0.0) | ||
mustermann (~> 3.0) | ||
rack (>= 3.0.0, < 4) | ||
rack-protection (= 4.0.0) | ||
rack-session (>= 2.0.0, < 3) | ||
tilt (~> 2.0) | ||
tilt (2.3.0) | ||
webrick (1.8.1) | ||
|
||
PLATFORMS | ||
arm64-darwin-21 | ||
ruby | ||
|
||
DEPENDENCIES | ||
rackup | ||
sinatra | ||
zstd-ruby! | ||
|
||
BUNDLED WITH | ||
2.5.7 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
require 'sinatra' | ||
require 'zstd-ruby' | ||
|
||
get '/' do | ||
headers["Content-Encoding"] = "zstd" | ||
Zstd.compress('Hello world!') | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
#include <common.h> | ||
#include "common.h" | ||
|
||
extern VALUE rb_mZstd; | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.