zstd-ruby 1.4.1.0 → 1.5.0.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.github/dependabot.yml +8 -0
- data/.github/workflows/ruby.yml +35 -0
- data/README.md +2 -2
- data/ext/zstdruby/libzstd/BUCK +5 -7
- data/ext/zstdruby/libzstd/Makefile +304 -113
- data/ext/zstdruby/libzstd/README.md +83 -20
- data/ext/zstdruby/libzstd/common/bitstream.h +59 -51
- data/ext/zstdruby/libzstd/common/compiler.h +150 -8
- data/ext/zstdruby/libzstd/common/cpu.h +1 -3
- data/ext/zstdruby/libzstd/common/debug.c +11 -31
- data/ext/zstdruby/libzstd/common/debug.h +22 -49
- data/ext/zstdruby/libzstd/common/entropy_common.c +201 -75
- data/ext/zstdruby/libzstd/common/error_private.c +3 -1
- data/ext/zstdruby/libzstd/common/error_private.h +8 -4
- data/ext/zstdruby/libzstd/common/fse.h +50 -42
- data/ext/zstdruby/libzstd/common/fse_decompress.c +149 -55
- data/ext/zstdruby/libzstd/common/huf.h +43 -39
- data/ext/zstdruby/libzstd/common/mem.h +69 -25
- data/ext/zstdruby/libzstd/common/pool.c +30 -20
- data/ext/zstdruby/libzstd/common/pool.h +3 -3
- data/ext/zstdruby/libzstd/common/threading.c +51 -4
- data/ext/zstdruby/libzstd/common/threading.h +36 -4
- data/ext/zstdruby/libzstd/common/xxhash.c +40 -92
- data/ext/zstdruby/libzstd/common/xxhash.h +12 -32
- data/ext/zstdruby/libzstd/common/zstd_common.c +10 -10
- data/ext/zstdruby/libzstd/common/zstd_deps.h +111 -0
- data/ext/zstdruby/libzstd/common/zstd_internal.h +230 -111
- data/ext/zstdruby/libzstd/common/zstd_trace.h +154 -0
- data/ext/zstdruby/libzstd/compress/fse_compress.c +47 -63
- data/ext/zstdruby/libzstd/compress/hist.c +41 -63
- data/ext/zstdruby/libzstd/compress/hist.h +13 -33
- data/ext/zstdruby/libzstd/compress/huf_compress.c +332 -193
- data/ext/zstdruby/libzstd/compress/zstd_compress.c +3614 -1696
- data/ext/zstdruby/libzstd/compress/zstd_compress_internal.h +546 -86
- data/ext/zstdruby/libzstd/compress/zstd_compress_literals.c +158 -0
- data/ext/zstdruby/libzstd/compress/zstd_compress_literals.h +29 -0
- data/ext/zstdruby/libzstd/compress/zstd_compress_sequences.c +441 -0
- data/ext/zstdruby/libzstd/compress/zstd_compress_sequences.h +54 -0
- data/ext/zstdruby/libzstd/compress/zstd_compress_superblock.c +572 -0
- data/ext/zstdruby/libzstd/compress/zstd_compress_superblock.h +32 -0
- data/ext/zstdruby/libzstd/compress/zstd_cwksp.h +662 -0
- data/ext/zstdruby/libzstd/compress/zstd_double_fast.c +43 -41
- data/ext/zstdruby/libzstd/compress/zstd_double_fast.h +2 -2
- data/ext/zstdruby/libzstd/compress/zstd_fast.c +85 -80
- data/ext/zstdruby/libzstd/compress/zstd_fast.h +2 -2
- data/ext/zstdruby/libzstd/compress/zstd_lazy.c +1184 -111
- data/ext/zstdruby/libzstd/compress/zstd_lazy.h +59 -1
- data/ext/zstdruby/libzstd/compress/zstd_ldm.c +333 -208
- data/ext/zstdruby/libzstd/compress/zstd_ldm.h +15 -3
- data/ext/zstdruby/libzstd/compress/zstd_ldm_geartab.h +103 -0
- data/ext/zstdruby/libzstd/compress/zstd_opt.c +228 -129
- data/ext/zstdruby/libzstd/compress/zstd_opt.h +1 -1
- data/ext/zstdruby/libzstd/compress/zstdmt_compress.c +151 -440
- data/ext/zstdruby/libzstd/compress/zstdmt_compress.h +32 -114
- data/ext/zstdruby/libzstd/decompress/huf_decompress.c +395 -276
- data/ext/zstdruby/libzstd/decompress/zstd_ddict.c +20 -16
- data/ext/zstdruby/libzstd/decompress/zstd_ddict.h +3 -3
- data/ext/zstdruby/libzstd/decompress/zstd_decompress.c +630 -231
- data/ext/zstdruby/libzstd/decompress/zstd_decompress_block.c +606 -380
- data/ext/zstdruby/libzstd/decompress/zstd_decompress_block.h +8 -5
- data/ext/zstdruby/libzstd/decompress/zstd_decompress_internal.h +39 -9
- data/ext/zstdruby/libzstd/deprecated/zbuff.h +9 -8
- data/ext/zstdruby/libzstd/deprecated/zbuff_common.c +2 -2
- data/ext/zstdruby/libzstd/deprecated/zbuff_compress.c +1 -1
- data/ext/zstdruby/libzstd/deprecated/zbuff_decompress.c +1 -1
- data/ext/zstdruby/libzstd/dictBuilder/cover.c +55 -46
- data/ext/zstdruby/libzstd/dictBuilder/cover.h +20 -9
- data/ext/zstdruby/libzstd/dictBuilder/divsufsort.c +1 -1
- data/ext/zstdruby/libzstd/dictBuilder/fastcover.c +43 -31
- data/ext/zstdruby/libzstd/dictBuilder/zdict.c +53 -30
- data/ext/zstdruby/libzstd/dll/example/Makefile +2 -1
- data/ext/zstdruby/libzstd/dll/example/README.md +16 -22
- data/ext/zstdruby/libzstd/legacy/zstd_legacy.h +4 -4
- data/ext/zstdruby/libzstd/legacy/zstd_v01.c +24 -14
- data/ext/zstdruby/libzstd/legacy/zstd_v01.h +1 -1
- data/ext/zstdruby/libzstd/legacy/zstd_v02.c +17 -8
- data/ext/zstdruby/libzstd/legacy/zstd_v02.h +1 -1
- data/ext/zstdruby/libzstd/legacy/zstd_v03.c +17 -8
- data/ext/zstdruby/libzstd/legacy/zstd_v03.h +1 -1
- data/ext/zstdruby/libzstd/legacy/zstd_v04.c +25 -11
- data/ext/zstdruby/libzstd/legacy/zstd_v04.h +1 -1
- data/ext/zstdruby/libzstd/legacy/zstd_v05.c +43 -32
- data/ext/zstdruby/libzstd/legacy/zstd_v05.h +2 -2
- data/ext/zstdruby/libzstd/legacy/zstd_v06.c +27 -19
- data/ext/zstdruby/libzstd/legacy/zstd_v06.h +1 -1
- data/ext/zstdruby/libzstd/legacy/zstd_v07.c +32 -20
- data/ext/zstdruby/libzstd/legacy/zstd_v07.h +1 -1
- data/ext/zstdruby/libzstd/libzstd.pc.in +2 -1
- data/ext/zstdruby/libzstd/{dictBuilder/zdict.h → zdict.h} +201 -31
- data/ext/zstdruby/libzstd/zstd.h +740 -153
- data/ext/zstdruby/libzstd/{common/zstd_errors.h → zstd_errors.h} +3 -1
- data/lib/zstd-ruby/version.rb +1 -1
- data/zstd-ruby.gemspec +1 -1
- metadata +21 -10
- data/.travis.yml +0 -14
@@ -1,5 +1,5 @@
|
|
1
1
|
/*
|
2
|
-
* Copyright (c)
|
2
|
+
* Copyright (c) Yann Collet, Facebook, Inc.
|
3
3
|
* All rights reserved.
|
4
4
|
*
|
5
5
|
* This source code is licensed under both the BSD-style license (found in the
|
@@ -76,6 +76,8 @@ typedef enum {
|
|
76
76
|
/* following error codes are __NOT STABLE__, they can be removed or changed in future versions */
|
77
77
|
ZSTD_error_frameIndex_tooLarge = 100,
|
78
78
|
ZSTD_error_seekableIO = 102,
|
79
|
+
ZSTD_error_dstBuffer_wrong = 104,
|
80
|
+
ZSTD_error_srcBuffer_wrong = 105,
|
79
81
|
ZSTD_error_maxCode = 120 /* never EVER use this value directly, it can change in future versions! Use ZSTD_isError() instead */
|
80
82
|
} ZSTD_ErrorCode;
|
81
83
|
|
data/lib/zstd-ruby/version.rb
CHANGED
data/zstd-ruby.gemspec
CHANGED
@@ -32,7 +32,7 @@ Gem::Specification.new do |spec|
|
|
32
32
|
spec.extensions = ["ext/zstdruby/extconf.rb"]
|
33
33
|
|
34
34
|
spec.add_development_dependency "bundler"
|
35
|
-
spec.add_development_dependency "rake", "~>
|
35
|
+
spec.add_development_dependency "rake", "~> 13.0"
|
36
36
|
spec.add_development_dependency "rake-compiler", '~> 1'
|
37
37
|
spec.add_development_dependency "rspec", "~> 3.0"
|
38
38
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: zstd-ruby
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.
|
4
|
+
version: 1.5.0.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- SpringMT
|
8
|
-
autorequire:
|
8
|
+
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2021-05-18 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -30,14 +30,14 @@ dependencies:
|
|
30
30
|
requirements:
|
31
31
|
- - "~>"
|
32
32
|
- !ruby/object:Gem::Version
|
33
|
-
version: '
|
33
|
+
version: '13.0'
|
34
34
|
type: :development
|
35
35
|
prerelease: false
|
36
36
|
version_requirements: !ruby/object:Gem::Requirement
|
37
37
|
requirements:
|
38
38
|
- - "~>"
|
39
39
|
- !ruby/object:Gem::Version
|
40
|
-
version: '
|
40
|
+
version: '13.0'
|
41
41
|
- !ruby/object:Gem::Dependency
|
42
42
|
name: rake-compiler
|
43
43
|
requirement: !ruby/object:Gem::Requirement
|
@@ -75,10 +75,11 @@ extensions:
|
|
75
75
|
- ext/zstdruby/extconf.rb
|
76
76
|
extra_rdoc_files: []
|
77
77
|
files:
|
78
|
+
- ".github/dependabot.yml"
|
79
|
+
- ".github/workflows/ruby.yml"
|
78
80
|
- ".gitignore"
|
79
81
|
- ".gitmodules"
|
80
82
|
- ".rspec"
|
81
|
-
- ".travis.yml"
|
82
83
|
- CODE_OF_CONDUCT.md
|
83
84
|
- Gemfile
|
84
85
|
- LICENSE.txt
|
@@ -110,14 +111,22 @@ files:
|
|
110
111
|
- ext/zstdruby/libzstd/common/xxhash.c
|
111
112
|
- ext/zstdruby/libzstd/common/xxhash.h
|
112
113
|
- ext/zstdruby/libzstd/common/zstd_common.c
|
113
|
-
- ext/zstdruby/libzstd/common/
|
114
|
+
- ext/zstdruby/libzstd/common/zstd_deps.h
|
114
115
|
- ext/zstdruby/libzstd/common/zstd_internal.h
|
116
|
+
- ext/zstdruby/libzstd/common/zstd_trace.h
|
115
117
|
- ext/zstdruby/libzstd/compress/fse_compress.c
|
116
118
|
- ext/zstdruby/libzstd/compress/hist.c
|
117
119
|
- ext/zstdruby/libzstd/compress/hist.h
|
118
120
|
- ext/zstdruby/libzstd/compress/huf_compress.c
|
119
121
|
- ext/zstdruby/libzstd/compress/zstd_compress.c
|
120
122
|
- ext/zstdruby/libzstd/compress/zstd_compress_internal.h
|
123
|
+
- ext/zstdruby/libzstd/compress/zstd_compress_literals.c
|
124
|
+
- ext/zstdruby/libzstd/compress/zstd_compress_literals.h
|
125
|
+
- ext/zstdruby/libzstd/compress/zstd_compress_sequences.c
|
126
|
+
- ext/zstdruby/libzstd/compress/zstd_compress_sequences.h
|
127
|
+
- ext/zstdruby/libzstd/compress/zstd_compress_superblock.c
|
128
|
+
- ext/zstdruby/libzstd/compress/zstd_compress_superblock.h
|
129
|
+
- ext/zstdruby/libzstd/compress/zstd_cwksp.h
|
121
130
|
- ext/zstdruby/libzstd/compress/zstd_double_fast.c
|
122
131
|
- ext/zstdruby/libzstd/compress/zstd_double_fast.h
|
123
132
|
- ext/zstdruby/libzstd/compress/zstd_fast.c
|
@@ -126,6 +135,7 @@ files:
|
|
126
135
|
- ext/zstdruby/libzstd/compress/zstd_lazy.h
|
127
136
|
- ext/zstdruby/libzstd/compress/zstd_ldm.c
|
128
137
|
- ext/zstdruby/libzstd/compress/zstd_ldm.h
|
138
|
+
- ext/zstdruby/libzstd/compress/zstd_ldm_geartab.h
|
129
139
|
- ext/zstdruby/libzstd/compress/zstd_opt.c
|
130
140
|
- ext/zstdruby/libzstd/compress/zstd_opt.h
|
131
141
|
- ext/zstdruby/libzstd/compress/zstdmt_compress.c
|
@@ -147,7 +157,6 @@ files:
|
|
147
157
|
- ext/zstdruby/libzstd/dictBuilder/divsufsort.h
|
148
158
|
- ext/zstdruby/libzstd/dictBuilder/fastcover.c
|
149
159
|
- ext/zstdruby/libzstd/dictBuilder/zdict.c
|
150
|
-
- ext/zstdruby/libzstd/dictBuilder/zdict.h
|
151
160
|
- ext/zstdruby/libzstd/dll/example/Makefile
|
152
161
|
- ext/zstdruby/libzstd/dll/example/README.md
|
153
162
|
- ext/zstdruby/libzstd/dll/example/build_package.bat
|
@@ -169,7 +178,9 @@ files:
|
|
169
178
|
- ext/zstdruby/libzstd/legacy/zstd_v07.c
|
170
179
|
- ext/zstdruby/libzstd/legacy/zstd_v07.h
|
171
180
|
- ext/zstdruby/libzstd/libzstd.pc.in
|
181
|
+
- ext/zstdruby/libzstd/zdict.h
|
172
182
|
- ext/zstdruby/libzstd/zstd.h
|
183
|
+
- ext/zstdruby/libzstd/zstd_errors.h
|
173
184
|
- ext/zstdruby/zstdruby.c
|
174
185
|
- ext/zstdruby/zstdruby.h
|
175
186
|
- lib/zstd-ruby.rb
|
@@ -179,7 +190,7 @@ homepage: https://github.com/SpringMT/zstd-ruby
|
|
179
190
|
licenses:
|
180
191
|
- MIT
|
181
192
|
metadata: {}
|
182
|
-
post_install_message:
|
193
|
+
post_install_message:
|
183
194
|
rdoc_options: []
|
184
195
|
require_paths:
|
185
196
|
- lib
|
@@ -195,7 +206,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
195
206
|
version: '0'
|
196
207
|
requirements: []
|
197
208
|
rubygems_version: 3.0.3
|
198
|
-
signing_key:
|
209
|
+
signing_key:
|
199
210
|
specification_version: 4
|
200
211
|
summary: Ruby binding for zstd(Zstandard - Fast real-time compression algorithm)
|
201
212
|
test_files: []
|