rotoscope 0.3.1.pre.2 → 0.3.1.pre.3

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: f235b178221927dc48cb085e138c9d26981f32a2731dd98c2fb1a064f7ea23c3
4
- data.tar.gz: 27b4ffd1e8f2a73fcf293ff4998cf9baf804a4a9d26c5a2e268bea08bc72fe11
3
+ metadata.gz: 131b31e53265ab28834e10e524193c4140df6c4a550b97b4c069bd5144f2c0b9
4
+ data.tar.gz: 8bcacd887b9c1dc7dec386dfd750f2e5521da85552183211370c67292ec7ea2d
5
5
  SHA512:
6
- metadata.gz: 2676387c826f085de81851e59cca0326a8144b2a5b341acf2cce1e6f4ec0caa3112e9b4170702ea4587f0f6ba896008b2355b184022d7e900c065eb72dc5125c
7
- data.tar.gz: 7a2b9f6e7b1f568d5f003ef747233462b0ee6d58b7b5b879d3ff52e5de9a3afee64557d27ce1795c6fa0fdd0f390e23f1333c8727597a826d65927b6e2615eca
6
+ metadata.gz: 1acb66647386b79262fc77ad90433f920ffb36b75d2c7527b005abb68c377563a448b99d90e573518369171ddb05908c5a95fc5d9f88a646de72e385405c4087
7
+ data.tar.gz: fc010fa94e7669b902aa7285dd85bccea72781cf6cb9b3165941c6c2023491e2f945ed9b2a4f7cb87fa3f55e30c5fbb5b0857726eda1b859b3385d9370e641b9
@@ -146,24 +146,21 @@ static void rs_dealloc(void *data) {
146
146
  xfree(config);
147
147
  }
148
148
 
149
- static size_t rs_memsize(const void *data) {
150
- return sizeof(Rotoscope);
151
- }
149
+ static size_t rs_memsize(const void *data) { return sizeof(Rotoscope); }
152
150
 
153
151
  static const rb_data_type_t rs_data_type = {
154
152
  .wrap_struct_name = "Rotoscope",
155
- .function = {
156
- .dmark = rs_gc_mark,
157
- .dfree = rs_dealloc,
158
- .dsize = rs_memsize,
159
- },
160
- .flags = RUBY_TYPED_FREE_IMMEDIATELY
161
- };
153
+ .function =
154
+ {
155
+ .dmark = rs_gc_mark,
156
+ .dfree = rs_dealloc,
157
+ .dsize = rs_memsize,
158
+ },
159
+ .flags = RUBY_TYPED_FREE_IMMEDIATELY};
162
160
 
163
161
  static VALUE rs_alloc(VALUE klass) {
164
162
  Rotoscope *config;
165
- VALUE self =
166
- TypedData_Make_Struct(klass, Rotoscope, &rs_data_type, config);
163
+ VALUE self = TypedData_Make_Struct(klass, Rotoscope, &rs_data_type, config);
167
164
  config->self = self;
168
165
  config->pid = getpid();
169
166
  config->tid = current_thread_id();
@@ -62,8 +62,10 @@ void rs_stack_init(rs_stack_t *stack, unsigned int capacity) {
62
62
  }
63
63
 
64
64
  void rs_stack_mark(rs_stack_t *stack) {
65
- for (int i = 0; i <= stack->top; i++) {
66
- rs_stack_frame_t *frame = &stack->contents[i];
67
- rs_method_desc_mark(&frame->method);
65
+ if (stack->contents) {
66
+ for (int i = 0; i <= stack->top; i++) {
67
+ rs_stack_frame_t *frame = &stack->contents[i];
68
+ rs_method_desc_mark(&frame->method);
69
+ }
68
70
  }
69
71
  }
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  class Rotoscope
4
- VERSION = "0.3.1.pre.2"
4
+ VERSION = "0.3.1.pre.3"
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rotoscope
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.1.pre.2
4
+ version: 0.3.1.pre.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jahfer Husain
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2023-11-10 00:00:00.000000000 Z
12
+ date: 2023-12-08 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: minitest
@@ -108,7 +108,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
108
108
  - !ruby/object:Gem::Version
109
109
  version: 1.3.1
110
110
  requirements: []
111
- rubygems_version: 3.4.21
111
+ rubygems_version: 3.4.22
112
112
  signing_key:
113
113
  specification_version: 4
114
114
  summary: Tracing Ruby