zstd-ruby 2.0.5 → 2.0.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 3c3c7ba2ca27786f539bd8083ec97ae1822a529d075147ef1f12f5b565201a3a
4
- data.tar.gz: 961f3e60ceb142982e9dadec995b4246e77535abb538250f7c488f1ef2e1dab4
3
+ metadata.gz: ac26f68ad0afda2642c8dd10a92f79b5c45434a0fe978f4528f542ce276502f0
4
+ data.tar.gz: cd514652d23230593b6ec9971f5286875847da819ba31747136c2e94040d8b2f
5
5
  SHA512:
6
- metadata.gz: a3a8b7e573f0c356d7cfaa72416f7f306ccf4d989f17c3265d648956a869f3fa6e166d57a8f0764da070e46014a07fef46b5a05ca814371df5d1d6f470fc595e
7
- data.tar.gz: 3014a12287071ba7c4d868313ff63e70f99a026f7b0cd28a6c4d5e70a0c0a13497adf0d984a736ca14d5388739c14a10f1342ff01b49d44ba80f59e49f38197f
6
+ metadata.gz: 3def0b1dabc9b717f8ff22f6f5754a219c33e3b5850fb2bf26d59b9eea819b4787f80d78819eb9166151af5ee3bb186a8ea81a707336ee5f4a83313188e5c6bc
7
+ data.tar.gz: 95c48e8b498db92b302f612295f1b47953b2f23708dcadbadf534b3710720ca21969913c675c095270839d4163fa978b8d8c0c33eb926153b18b6c90d22c04c5
@@ -57,7 +57,7 @@ static const rb_data_type_t streaming_compress_type = {
57
57
  streaming_compress_compact,
58
58
  #endif
59
59
  },
60
- 0, 0, RUBY_TYPED_FREE_IMMEDIATELY
60
+ 0, 0, RUBY_TYPED_FREE_IMMEDIATELY | RUBY_TYPED_WB_PROTECTED
61
61
  };
62
62
 
63
63
  static VALUE
@@ -66,9 +66,9 @@ rb_streaming_compress_allocate(VALUE klass)
66
66
  struct streaming_compress_t* sc;
67
67
  VALUE obj = TypedData_Make_Struct(klass, struct streaming_compress_t, &streaming_compress_type, sc);
68
68
  sc->ctx = NULL;
69
- sc->buf = Qnil;
69
+ RB_OBJ_WRITE(obj, &sc->buf, Qnil);
70
70
  sc->buf_size = 0;
71
- sc->pending = Qnil;
71
+ RB_OBJ_WRITE(obj, &sc->pending, Qnil);
72
72
  return obj;
73
73
  }
74
74
 
@@ -89,9 +89,9 @@ rb_streaming_compress_initialize(int argc, VALUE *argv, VALUE obj)
89
89
  set_compress_params(ctx, kwargs);
90
90
 
91
91
  sc->ctx = ctx;
92
- sc->buf = rb_str_new(NULL, buffOutSize);
92
+ RB_OBJ_WRITE(obj, &sc->buf, rb_str_new(NULL, buffOutSize));
93
93
  sc->buf_size = buffOutSize;
94
- sc->pending = rb_str_new(0, 0);
94
+ RB_OBJ_WRITE(obj, &sc->pending, rb_str_new(0, 0));
95
95
 
96
96
  return obj;
97
97
  }
@@ -53,7 +53,7 @@ static const rb_data_type_t streaming_decompress_type = {
53
53
  streaming_decompress_compact,
54
54
  #endif
55
55
  },
56
- 0, 0, RUBY_TYPED_FREE_IMMEDIATELY
56
+ 0, 0, RUBY_TYPED_FREE_IMMEDIATELY | RUBY_TYPED_WB_PROTECTED
57
57
  };
58
58
 
59
59
  static VALUE
@@ -62,7 +62,7 @@ rb_streaming_decompress_allocate(VALUE klass)
62
62
  struct streaming_decompress_t* sd;
63
63
  VALUE obj = TypedData_Make_Struct(klass, struct streaming_decompress_t, &streaming_decompress_type, sd);
64
64
  sd->dctx = NULL;
65
- sd->buf = Qnil;
65
+ RB_OBJ_WRITE(obj, &sd->buf, Qnil);
66
66
  sd->buf_size = 0;
67
67
  return obj;
68
68
  }
@@ -84,7 +84,7 @@ rb_streaming_decompress_initialize(int argc, VALUE *argv, VALUE obj)
84
84
  set_decompress_params(dctx, kwargs);
85
85
 
86
86
  sd->dctx = dctx;
87
- sd->buf = rb_str_new(NULL, buffOutSize);
87
+ RB_OBJ_WRITE(obj, &sd->buf, rb_str_new(NULL, buffOutSize));
88
88
  sd->buf_size = buffOutSize;
89
89
 
90
90
  return obj;
@@ -145,13 +145,13 @@ static size_t sizeof_ddict(const void *dict)
145
145
  static const rb_data_type_t cdict_type = {
146
146
  "Zstd::CDict",
147
147
  {0, free_cdict, sizeof_cdict,},
148
- 0, 0, RUBY_TYPED_FREE_IMMEDIATELY
148
+ 0, 0, RUBY_TYPED_FREE_IMMEDIATELY | RUBY_TYPED_WB_PROTECTED
149
149
  };
150
150
 
151
151
  static const rb_data_type_t ddict_type = {
152
152
  "Zstd::DDict",
153
153
  {0, free_ddict, sizeof_ddict,},
154
- 0, 0, RUBY_TYPED_FREE_IMMEDIATELY
154
+ 0, 0, RUBY_TYPED_FREE_IMMEDIATELY | RUBY_TYPED_WB_PROTECTED
155
155
  };
156
156
 
157
157
  static VALUE rb_cdict_alloc(VALUE self)
@@ -1,3 +1,3 @@
1
1
  module Zstd
2
- VERSION = "2.0.5"
2
+ VERSION = "2.0.6"
3
3
  end
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: zstd-ruby
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.0.5
4
+ version: 2.0.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - SpringMT
8
8
  bindir: exe
9
9
  cert_chain: []
10
- date: 2026-01-08 00:00:00.000000000 Z
10
+ date: 2026-03-01 00:00:00.000000000 Z
11
11
  dependencies:
12
12
  - !ruby/object:Gem::Dependency
13
13
  name: bundler