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.
Files changed (96) hide show
  1. checksums.yaml +4 -4
  2. data/.github/dependabot.yml +8 -0
  3. data/.github/workflows/ruby.yml +35 -0
  4. data/README.md +2 -2
  5. data/ext/zstdruby/libzstd/BUCK +5 -7
  6. data/ext/zstdruby/libzstd/Makefile +304 -113
  7. data/ext/zstdruby/libzstd/README.md +83 -20
  8. data/ext/zstdruby/libzstd/common/bitstream.h +59 -51
  9. data/ext/zstdruby/libzstd/common/compiler.h +150 -8
  10. data/ext/zstdruby/libzstd/common/cpu.h +1 -3
  11. data/ext/zstdruby/libzstd/common/debug.c +11 -31
  12. data/ext/zstdruby/libzstd/common/debug.h +22 -49
  13. data/ext/zstdruby/libzstd/common/entropy_common.c +201 -75
  14. data/ext/zstdruby/libzstd/common/error_private.c +3 -1
  15. data/ext/zstdruby/libzstd/common/error_private.h +8 -4
  16. data/ext/zstdruby/libzstd/common/fse.h +50 -42
  17. data/ext/zstdruby/libzstd/common/fse_decompress.c +149 -55
  18. data/ext/zstdruby/libzstd/common/huf.h +43 -39
  19. data/ext/zstdruby/libzstd/common/mem.h +69 -25
  20. data/ext/zstdruby/libzstd/common/pool.c +30 -20
  21. data/ext/zstdruby/libzstd/common/pool.h +3 -3
  22. data/ext/zstdruby/libzstd/common/threading.c +51 -4
  23. data/ext/zstdruby/libzstd/common/threading.h +36 -4
  24. data/ext/zstdruby/libzstd/common/xxhash.c +40 -92
  25. data/ext/zstdruby/libzstd/common/xxhash.h +12 -32
  26. data/ext/zstdruby/libzstd/common/zstd_common.c +10 -10
  27. data/ext/zstdruby/libzstd/common/zstd_deps.h +111 -0
  28. data/ext/zstdruby/libzstd/common/zstd_internal.h +230 -111
  29. data/ext/zstdruby/libzstd/common/zstd_trace.h +154 -0
  30. data/ext/zstdruby/libzstd/compress/fse_compress.c +47 -63
  31. data/ext/zstdruby/libzstd/compress/hist.c +41 -63
  32. data/ext/zstdruby/libzstd/compress/hist.h +13 -33
  33. data/ext/zstdruby/libzstd/compress/huf_compress.c +332 -193
  34. data/ext/zstdruby/libzstd/compress/zstd_compress.c +3614 -1696
  35. data/ext/zstdruby/libzstd/compress/zstd_compress_internal.h +546 -86
  36. data/ext/zstdruby/libzstd/compress/zstd_compress_literals.c +158 -0
  37. data/ext/zstdruby/libzstd/compress/zstd_compress_literals.h +29 -0
  38. data/ext/zstdruby/libzstd/compress/zstd_compress_sequences.c +441 -0
  39. data/ext/zstdruby/libzstd/compress/zstd_compress_sequences.h +54 -0
  40. data/ext/zstdruby/libzstd/compress/zstd_compress_superblock.c +572 -0
  41. data/ext/zstdruby/libzstd/compress/zstd_compress_superblock.h +32 -0
  42. data/ext/zstdruby/libzstd/compress/zstd_cwksp.h +662 -0
  43. data/ext/zstdruby/libzstd/compress/zstd_double_fast.c +43 -41
  44. data/ext/zstdruby/libzstd/compress/zstd_double_fast.h +2 -2
  45. data/ext/zstdruby/libzstd/compress/zstd_fast.c +85 -80
  46. data/ext/zstdruby/libzstd/compress/zstd_fast.h +2 -2
  47. data/ext/zstdruby/libzstd/compress/zstd_lazy.c +1184 -111
  48. data/ext/zstdruby/libzstd/compress/zstd_lazy.h +59 -1
  49. data/ext/zstdruby/libzstd/compress/zstd_ldm.c +333 -208
  50. data/ext/zstdruby/libzstd/compress/zstd_ldm.h +15 -3
  51. data/ext/zstdruby/libzstd/compress/zstd_ldm_geartab.h +103 -0
  52. data/ext/zstdruby/libzstd/compress/zstd_opt.c +228 -129
  53. data/ext/zstdruby/libzstd/compress/zstd_opt.h +1 -1
  54. data/ext/zstdruby/libzstd/compress/zstdmt_compress.c +151 -440
  55. data/ext/zstdruby/libzstd/compress/zstdmt_compress.h +32 -114
  56. data/ext/zstdruby/libzstd/decompress/huf_decompress.c +395 -276
  57. data/ext/zstdruby/libzstd/decompress/zstd_ddict.c +20 -16
  58. data/ext/zstdruby/libzstd/decompress/zstd_ddict.h +3 -3
  59. data/ext/zstdruby/libzstd/decompress/zstd_decompress.c +630 -231
  60. data/ext/zstdruby/libzstd/decompress/zstd_decompress_block.c +606 -380
  61. data/ext/zstdruby/libzstd/decompress/zstd_decompress_block.h +8 -5
  62. data/ext/zstdruby/libzstd/decompress/zstd_decompress_internal.h +39 -9
  63. data/ext/zstdruby/libzstd/deprecated/zbuff.h +9 -8
  64. data/ext/zstdruby/libzstd/deprecated/zbuff_common.c +2 -2
  65. data/ext/zstdruby/libzstd/deprecated/zbuff_compress.c +1 -1
  66. data/ext/zstdruby/libzstd/deprecated/zbuff_decompress.c +1 -1
  67. data/ext/zstdruby/libzstd/dictBuilder/cover.c +55 -46
  68. data/ext/zstdruby/libzstd/dictBuilder/cover.h +20 -9
  69. data/ext/zstdruby/libzstd/dictBuilder/divsufsort.c +1 -1
  70. data/ext/zstdruby/libzstd/dictBuilder/fastcover.c +43 -31
  71. data/ext/zstdruby/libzstd/dictBuilder/zdict.c +53 -30
  72. data/ext/zstdruby/libzstd/dll/example/Makefile +2 -1
  73. data/ext/zstdruby/libzstd/dll/example/README.md +16 -22
  74. data/ext/zstdruby/libzstd/legacy/zstd_legacy.h +4 -4
  75. data/ext/zstdruby/libzstd/legacy/zstd_v01.c +24 -14
  76. data/ext/zstdruby/libzstd/legacy/zstd_v01.h +1 -1
  77. data/ext/zstdruby/libzstd/legacy/zstd_v02.c +17 -8
  78. data/ext/zstdruby/libzstd/legacy/zstd_v02.h +1 -1
  79. data/ext/zstdruby/libzstd/legacy/zstd_v03.c +17 -8
  80. data/ext/zstdruby/libzstd/legacy/zstd_v03.h +1 -1
  81. data/ext/zstdruby/libzstd/legacy/zstd_v04.c +25 -11
  82. data/ext/zstdruby/libzstd/legacy/zstd_v04.h +1 -1
  83. data/ext/zstdruby/libzstd/legacy/zstd_v05.c +43 -32
  84. data/ext/zstdruby/libzstd/legacy/zstd_v05.h +2 -2
  85. data/ext/zstdruby/libzstd/legacy/zstd_v06.c +27 -19
  86. data/ext/zstdruby/libzstd/legacy/zstd_v06.h +1 -1
  87. data/ext/zstdruby/libzstd/legacy/zstd_v07.c +32 -20
  88. data/ext/zstdruby/libzstd/legacy/zstd_v07.h +1 -1
  89. data/ext/zstdruby/libzstd/libzstd.pc.in +2 -1
  90. data/ext/zstdruby/libzstd/{dictBuilder/zdict.h → zdict.h} +201 -31
  91. data/ext/zstdruby/libzstd/zstd.h +740 -153
  92. data/ext/zstdruby/libzstd/{common/zstd_errors.h → zstd_errors.h} +3 -1
  93. data/lib/zstd-ruby/version.rb +1 -1
  94. data/zstd-ruby.gemspec +1 -1
  95. metadata +21 -10
  96. data/.travis.yml +0 -14
@@ -1,5 +1,5 @@
1
1
  /*
2
- * Copyright (c) 2016-present, Yann Collet, Facebook, Inc.
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
 
@@ -1,3 +1,3 @@
1
1
  module Zstd
2
- VERSION = "1.4.1.0"
2
+ VERSION = "1.5.0.0"
3
3
  end
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", "~> 10.0"
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.1.0
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: 2019-07-22 00:00:00.000000000 Z
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: '10.0'
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: '10.0'
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/zstd_errors.h
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: []
data/.travis.yml DELETED
@@ -1,14 +0,0 @@
1
- sudo: false
2
- language: ruby
3
- rvm:
4
- - 2.6
5
- - 2.5
6
- - 2.4
7
- - 2.3
8
- - 2.2
9
-
10
- before_install:
11
- - gem install bundler -v 1.14.3
12
-
13
- before_script:
14
- - bundle exec rake compile