readapt 0.6.0 → 0.6.1

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: 5b7636af36f8a909b5236cc8ad86e6af713001782bea468bf5a21fe8e085ce9f
4
- data.tar.gz: 72df0ffe3730ee6aa89139276587ba23c7543ca27ab6b9e6ab30376689ce0af4
3
+ metadata.gz: c60f531994db02e3c7592e83854acd4ed407c72fb8cea7d917bd22a47a7e0d37
4
+ data.tar.gz: 427826613e80cd2ede776dd58a4ec84aee7be8a0a507dcd1da51dac78c2035e1
5
5
  SHA512:
6
- metadata.gz: 8feae8ecff76cf7e1793af4be1e234b1b57de1b32dc159ada70255bae1656229592f4257e9376ec3cecf05c158f06f8820befe0e5fd8db4f8b14141825e914a6
7
- data.tar.gz: 9512c303ca521814091f16694b6004f274935d760215c442617bff8876d97c6d9716bbf9d0276100f018d3804dbfa81c0ee7a54aa83eb7625e70b9d362b8becd
6
+ metadata.gz: 4dc1eb602525d5dff1b8ad38254285eed0c52b48c9e996164ad8f54cf525c7f6097872f835e61aee622ae203ec4bc611bb2965dc87866b07ca736ec7c42614da
7
+ data.tar.gz: b0f4250aacaf718351ceabe475c73ae923b0373392247733960c61d577cf042b95084985cfe36c2412d47e96a2b732eabb601e862d9c61268a20e33005b295a3
data/CHANGELOG.md CHANGED
@@ -1,3 +1,6 @@
1
+ # 0.6.1 - September 7, 2019
2
+ - Ignore nilable paths in thread events
3
+
1
4
  # 0.6.0 - August 26, 2019
2
5
  - Evaluate in REPL
3
6
 
@@ -166,7 +166,7 @@ process_return_event(VALUE tracepoint, void *data)
166
166
  static void
167
167
  process_thread_begin_event(VALUE tracepoint, void *data)
168
168
  {
169
- VALUE list, here, prev, ref, tmp;
169
+ VALUE list, here, prev, ref;
170
170
  thread_reference_t *ptr;
171
171
 
172
172
  list = rb_funcall(rb_cThread, rb_intern("list"), 0);
@@ -174,23 +174,20 @@ process_thread_begin_event(VALUE tracepoint, void *data)
174
174
  if (here != Qnil)
175
175
  {
176
176
  prev = rb_ary_pop(list);
177
+ if (prev != Qnil)
177
178
  {
178
- if (prev != Qnil)
179
+ ref = thread_reference(prev);
180
+ if (ref != Qnil)
179
181
  {
180
- ref = thread_reference(prev);
181
- if (ref != Qnil)
182
- {
183
- ref = thread_add_reference(here);
184
- ptr = thread_reference_pointer(ref);
185
- tmp = rb_funcall(tracepoint, rb_intern("path"), 0);
186
- monitor_debug(
187
- StringValueCStr(tmp),
188
- NUM2LONG(rb_funcall(tracepoint, rb_intern("lineno"), 0)),
189
- tracepoint,
190
- ptr,
191
- rb_intern("thread_begin")
192
- );
193
- }
182
+ ref = thread_add_reference(here);
183
+ ptr = thread_reference_pointer(ref);
184
+ monitor_debug(
185
+ "",
186
+ 0,
187
+ tracepoint,
188
+ ptr,
189
+ rb_intern("thread_begin")
190
+ );
194
191
  }
195
192
  }
196
193
  }
@@ -199,7 +196,7 @@ process_thread_begin_event(VALUE tracepoint, void *data)
199
196
  static void
200
197
  process_thread_end_event(VALUE tracepoint, void *data)
201
198
  {
202
- VALUE thr, ref, tmp;
199
+ VALUE thr, ref;
203
200
  thread_reference_t *ptr;
204
201
 
205
202
  thr = rb_thread_current();
@@ -207,8 +204,7 @@ process_thread_end_event(VALUE tracepoint, void *data)
207
204
  if (ref != Qnil)
208
205
  {
209
206
  ptr = thread_reference_pointer(ref);
210
- tmp = rb_funcall(tracepoint, rb_intern("path"), 0);
211
- monitor_debug(StringValueCStr(tmp), NUM2LONG(rb_funcall(tracepoint, rb_intern("lineno"), 0)), tracepoint, ptr, rb_intern("thread_end"));
207
+ monitor_debug("", 0, tracepoint, ptr, rb_intern("thread_end"));
212
208
  thread_delete_reference(thr);
213
209
  }
214
210
  }
@@ -1,3 +1,3 @@
1
1
  module Readapt
2
- VERSION = "0.6.0"
2
+ VERSION = "0.6.1"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: readapt
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.6.0
4
+ version: 0.6.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Fred Snyder
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2019-08-26 00:00:00.000000000 Z
11
+ date: 2019-09-07 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: backport