zstd-ruby 1.5.0.0 → 1.5.2.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (65) 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 +2 -1
  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/pool.c +11 -6
  16. data/ext/zstdruby/libzstd/common/pool.h +2 -2
  17. data/ext/zstdruby/libzstd/common/portability_macros.h +137 -0
  18. data/ext/zstdruby/libzstd/common/xxhash.c +5 -805
  19. data/ext/zstdruby/libzstd/common/xxhash.h +5568 -167
  20. data/ext/zstdruby/libzstd/common/zstd_internal.h +95 -92
  21. data/ext/zstdruby/libzstd/common/zstd_trace.h +12 -3
  22. data/ext/zstdruby/libzstd/compress/clevels.h +134 -0
  23. data/ext/zstdruby/libzstd/compress/fse_compress.c +63 -27
  24. data/ext/zstdruby/libzstd/compress/huf_compress.c +537 -104
  25. data/ext/zstdruby/libzstd/compress/zstd_compress.c +307 -373
  26. data/ext/zstdruby/libzstd/compress/zstd_compress_internal.h +174 -83
  27. data/ext/zstdruby/libzstd/compress/zstd_compress_literals.c +4 -3
  28. data/ext/zstdruby/libzstd/compress/zstd_compress_literals.h +3 -1
  29. data/ext/zstdruby/libzstd/compress/zstd_compress_sequences.c +15 -14
  30. data/ext/zstdruby/libzstd/compress/zstd_compress_superblock.c +4 -3
  31. data/ext/zstdruby/libzstd/compress/zstd_cwksp.h +41 -27
  32. data/ext/zstdruby/libzstd/compress/zstd_double_fast.c +295 -120
  33. data/ext/zstdruby/libzstd/compress/zstd_fast.c +309 -130
  34. data/ext/zstdruby/libzstd/compress/zstd_lazy.c +482 -562
  35. data/ext/zstdruby/libzstd/compress/zstd_ldm.c +9 -7
  36. data/ext/zstdruby/libzstd/compress/zstd_ldm.h +1 -1
  37. data/ext/zstdruby/libzstd/compress/zstd_ldm_geartab.h +4 -1
  38. data/ext/zstdruby/libzstd/compress/zstd_opt.c +249 -148
  39. data/ext/zstdruby/libzstd/compress/zstdmt_compress.c +76 -38
  40. data/ext/zstdruby/libzstd/compress/zstdmt_compress.h +4 -1
  41. data/ext/zstdruby/libzstd/decompress/huf_decompress.c +727 -189
  42. data/ext/zstdruby/libzstd/decompress/huf_decompress_amd64.S +585 -0
  43. data/ext/zstdruby/libzstd/decompress/zstd_decompress.c +85 -22
  44. data/ext/zstdruby/libzstd/decompress/zstd_decompress_block.c +744 -220
  45. data/ext/zstdruby/libzstd/decompress/zstd_decompress_block.h +8 -2
  46. data/ext/zstdruby/libzstd/decompress/zstd_decompress_internal.h +34 -3
  47. data/ext/zstdruby/libzstd/deprecated/zbuff_compress.c +23 -3
  48. data/ext/zstdruby/libzstd/dictBuilder/cover.c +9 -2
  49. data/ext/zstdruby/libzstd/dictBuilder/fastcover.c +11 -4
  50. data/ext/zstdruby/libzstd/dictBuilder/zdict.c +101 -30
  51. data/ext/zstdruby/libzstd/legacy/zstd_v01.c +2 -6
  52. data/ext/zstdruby/libzstd/legacy/zstd_v02.c +3 -7
  53. data/ext/zstdruby/libzstd/legacy/zstd_v03.c +3 -7
  54. data/ext/zstdruby/libzstd/legacy/zstd_v04.c +3 -7
  55. data/ext/zstdruby/libzstd/legacy/zstd_v05.c +3 -7
  56. data/ext/zstdruby/libzstd/legacy/zstd_v06.c +3 -7
  57. data/ext/zstdruby/libzstd/legacy/zstd_v07.c +3 -7
  58. data/ext/zstdruby/libzstd/libzstd.mk +203 -0
  59. data/ext/zstdruby/libzstd/libzstd.pc.in +1 -0
  60. data/ext/zstdruby/libzstd/module.modulemap +25 -0
  61. data/ext/zstdruby/libzstd/zdict.h +4 -4
  62. data/ext/zstdruby/libzstd/zstd.h +179 -136
  63. data/ext/zstdruby/zstdruby.c +2 -2
  64. data/lib/zstd-ruby/version.rb +1 -1
  65. metadata +11 -6
@@ -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.2.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.2.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: 2021-05-18 00:00:00.000000000 Z
11
+ date: 2022-06-13 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/module.modulemap
181
186
  - ext/zstdruby/libzstd/zdict.h
182
187
  - ext/zstdruby/libzstd/zstd.h
183
188
  - ext/zstdruby/libzstd/zstd_errors.h
@@ -190,7 +195,7 @@ homepage: https://github.com/SpringMT/zstd-ruby
190
195
  licenses:
191
196
  - MIT
192
197
  metadata: {}
193
- post_install_message:
198
+ post_install_message:
194
199
  rdoc_options: []
195
200
  require_paths:
196
201
  - lib
@@ -205,8 +210,8 @@ 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
209
- signing_key:
213
+ rubygems_version: 3.1.6
214
+ signing_key:
210
215
  specification_version: 4
211
216
  summary: Ruby binding for zstd(Zstandard - Fast real-time compression algorithm)
212
217
  test_files: []