zstd-ruby 1.5.0.0 → 1.5.1.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (62) hide show
  1. checksums.yaml +4 -4
  2. data/.github/workflows/ruby.yml +2 -2
  3. data/README.md +1 -1
  4. data/ext/zstdruby/extconf.rb +1 -0
  5. data/ext/zstdruby/libzstd/Makefile +50 -175
  6. data/ext/zstdruby/libzstd/README.md +7 -1
  7. data/ext/zstdruby/libzstd/common/bitstream.h +24 -9
  8. data/ext/zstdruby/libzstd/common/compiler.h +89 -43
  9. data/ext/zstdruby/libzstd/common/entropy_common.c +11 -5
  10. data/ext/zstdruby/libzstd/common/error_private.h +79 -0
  11. data/ext/zstdruby/libzstd/common/fse.h +2 -1
  12. data/ext/zstdruby/libzstd/common/fse_decompress.c +1 -1
  13. data/ext/zstdruby/libzstd/common/huf.h +24 -22
  14. data/ext/zstdruby/libzstd/common/mem.h +18 -0
  15. data/ext/zstdruby/libzstd/common/portability_macros.h +131 -0
  16. data/ext/zstdruby/libzstd/common/xxhash.c +5 -805
  17. data/ext/zstdruby/libzstd/common/xxhash.h +5568 -167
  18. data/ext/zstdruby/libzstd/common/zstd_internal.h +92 -88
  19. data/ext/zstdruby/libzstd/common/zstd_trace.h +12 -3
  20. data/ext/zstdruby/libzstd/compress/clevels.h +134 -0
  21. data/ext/zstdruby/libzstd/compress/fse_compress.c +63 -27
  22. data/ext/zstdruby/libzstd/compress/huf_compress.c +537 -104
  23. data/ext/zstdruby/libzstd/compress/zstd_compress.c +194 -278
  24. data/ext/zstdruby/libzstd/compress/zstd_compress_internal.h +102 -44
  25. data/ext/zstdruby/libzstd/compress/zstd_compress_literals.c +4 -3
  26. data/ext/zstdruby/libzstd/compress/zstd_compress_literals.h +3 -1
  27. data/ext/zstdruby/libzstd/compress/zstd_compress_sequences.c +5 -4
  28. data/ext/zstdruby/libzstd/compress/zstd_compress_superblock.c +3 -2
  29. data/ext/zstdruby/libzstd/compress/zstd_cwksp.h +3 -3
  30. data/ext/zstdruby/libzstd/compress/zstd_double_fast.c +289 -114
  31. data/ext/zstdruby/libzstd/compress/zstd_fast.c +302 -123
  32. data/ext/zstdruby/libzstd/compress/zstd_lazy.c +418 -502
  33. data/ext/zstdruby/libzstd/compress/zstd_ldm.c +4 -4
  34. data/ext/zstdruby/libzstd/compress/zstd_ldm.h +1 -1
  35. data/ext/zstdruby/libzstd/compress/zstd_ldm_geartab.h +4 -1
  36. data/ext/zstdruby/libzstd/compress/zstd_opt.c +186 -108
  37. data/ext/zstdruby/libzstd/compress/zstdmt_compress.c +59 -29
  38. data/ext/zstdruby/libzstd/decompress/huf_decompress.c +727 -189
  39. data/ext/zstdruby/libzstd/decompress/huf_decompress_amd64.S +571 -0
  40. data/ext/zstdruby/libzstd/decompress/zstd_decompress.c +85 -22
  41. data/ext/zstdruby/libzstd/decompress/zstd_decompress_block.c +744 -220
  42. data/ext/zstdruby/libzstd/decompress/zstd_decompress_block.h +8 -2
  43. data/ext/zstdruby/libzstd/decompress/zstd_decompress_internal.h +34 -3
  44. data/ext/zstdruby/libzstd/deprecated/zbuff_compress.c +23 -3
  45. data/ext/zstdruby/libzstd/dictBuilder/cover.c +9 -2
  46. data/ext/zstdruby/libzstd/dictBuilder/fastcover.c +11 -4
  47. data/ext/zstdruby/libzstd/dictBuilder/zdict.c +99 -28
  48. data/ext/zstdruby/libzstd/legacy/zstd_v01.c +2 -6
  49. data/ext/zstdruby/libzstd/legacy/zstd_v02.c +3 -7
  50. data/ext/zstdruby/libzstd/legacy/zstd_v03.c +3 -7
  51. data/ext/zstdruby/libzstd/legacy/zstd_v04.c +3 -7
  52. data/ext/zstdruby/libzstd/legacy/zstd_v05.c +3 -7
  53. data/ext/zstdruby/libzstd/legacy/zstd_v06.c +3 -7
  54. data/ext/zstdruby/libzstd/legacy/zstd_v07.c +3 -7
  55. data/ext/zstdruby/libzstd/libzstd.mk +185 -0
  56. data/ext/zstdruby/libzstd/libzstd.pc.in +1 -0
  57. data/ext/zstdruby/libzstd/modulemap/module.modulemap +4 -0
  58. data/ext/zstdruby/libzstd/zdict.h +4 -4
  59. data/ext/zstdruby/libzstd/zstd.h +179 -136
  60. data/ext/zstdruby/zstdruby.c +2 -2
  61. data/lib/zstd-ruby/version.rb +1 -1
  62. metadata +8 -3
@@ -13,7 +13,7 @@ static VALUE compress(int argc, VALUE *argv, VALUE self)
13
13
  VALUE compression_level_value;
14
14
  rb_scan_args(argc, argv, "11", &input_value, &compression_level_value);
15
15
 
16
- Check_Type(input_value, RUBY_T_STRING);
16
+ StringValue(input_value);
17
17
  const char* input_data = RSTRING_PTR(input_value);
18
18
  size_t input_size = RSTRING_LEN(input_value);
19
19
 
@@ -81,7 +81,7 @@ static VALUE decompress_buffered(const char* input_data, size_t input_size)
81
81
 
82
82
  static VALUE decompress(VALUE self, VALUE input)
83
83
  {
84
- Check_Type(input, T_STRING);
84
+ StringValue(input);
85
85
  const char* input_data = RSTRING_PTR(input);
86
86
  size_t input_size = RSTRING_LEN(input);
87
87
 
@@ -1,3 +1,3 @@
1
1
  module Zstd
2
- VERSION = "1.5.0.0"
2
+ VERSION = "1.5.1.0"
3
3
  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.5.0.0
4
+ version: 1.5.1.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - SpringMT
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2021-05-18 00:00:00.000000000 Z
11
+ date: 2021-12-27 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -106,6 +106,7 @@ files:
106
106
  - ext/zstdruby/libzstd/common/mem.h
107
107
  - ext/zstdruby/libzstd/common/pool.c
108
108
  - ext/zstdruby/libzstd/common/pool.h
109
+ - ext/zstdruby/libzstd/common/portability_macros.h
109
110
  - ext/zstdruby/libzstd/common/threading.c
110
111
  - ext/zstdruby/libzstd/common/threading.h
111
112
  - ext/zstdruby/libzstd/common/xxhash.c
@@ -114,6 +115,7 @@ files:
114
115
  - ext/zstdruby/libzstd/common/zstd_deps.h
115
116
  - ext/zstdruby/libzstd/common/zstd_internal.h
116
117
  - ext/zstdruby/libzstd/common/zstd_trace.h
118
+ - ext/zstdruby/libzstd/compress/clevels.h
117
119
  - ext/zstdruby/libzstd/compress/fse_compress.c
118
120
  - ext/zstdruby/libzstd/compress/hist.c
119
121
  - ext/zstdruby/libzstd/compress/hist.h
@@ -141,6 +143,7 @@ files:
141
143
  - ext/zstdruby/libzstd/compress/zstdmt_compress.c
142
144
  - ext/zstdruby/libzstd/compress/zstdmt_compress.h
143
145
  - ext/zstdruby/libzstd/decompress/huf_decompress.c
146
+ - ext/zstdruby/libzstd/decompress/huf_decompress_amd64.S
144
147
  - ext/zstdruby/libzstd/decompress/zstd_ddict.c
145
148
  - ext/zstdruby/libzstd/decompress/zstd_ddict.h
146
149
  - ext/zstdruby/libzstd/decompress/zstd_decompress.c
@@ -177,7 +180,9 @@ files:
177
180
  - ext/zstdruby/libzstd/legacy/zstd_v06.h
178
181
  - ext/zstdruby/libzstd/legacy/zstd_v07.c
179
182
  - ext/zstdruby/libzstd/legacy/zstd_v07.h
183
+ - ext/zstdruby/libzstd/libzstd.mk
180
184
  - ext/zstdruby/libzstd/libzstd.pc.in
185
+ - ext/zstdruby/libzstd/modulemap/module.modulemap
181
186
  - ext/zstdruby/libzstd/zdict.h
182
187
  - ext/zstdruby/libzstd/zstd.h
183
188
  - ext/zstdruby/libzstd/zstd_errors.h
@@ -205,7 +210,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
205
210
  - !ruby/object:Gem::Version
206
211
  version: '0'
207
212
  requirements: []
208
- rubygems_version: 3.0.3
213
+ rubygems_version: 3.3.3
209
214
  signing_key:
210
215
  specification_version: 4
211
216
  summary: Ruby binding for zstd(Zstandard - Fast real-time compression algorithm)