stack_trace 0.7.0 → 0.8.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +1 -1
- data/README.md +4 -4
- data/ext/stack_trace/trace.c +1 -1
- data/lib/stack_trace/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 4cc75d5b0a32aff0307977f6f1acdeac454f9a082d09c4ccfb61423ed3539ebb
|
4
|
+
data.tar.gz: '0806e5e196396576aeeeb5c4c11f7cb4f20aac5064c765a59c8b8b5e07a4a13a'
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a818593e2040840020a056673fb37a512c707ac9491334b776b9c1c8eea918136233d151982e0dbbd53f76b3ddf2141109c81fc693286ecd68654a33f7376ae7
|
7
|
+
data.tar.gz: 74116cca420c09db1fbf5c92c42e9536d32d64d22b42e1976e6c5ecff2f86ee562a797f81f7fa608eb44388c051496319c62a1a0dd084de4ceb9b1476bd3d910
|
data/Gemfile.lock
CHANGED
data/README.md
CHANGED
@@ -31,13 +31,13 @@ StackTrace.configure do |config|
|
|
31
31
|
config.inspect_return_values = true # Default `false` for performance reasons
|
32
32
|
config.inspect_arguments = true # Default `false` for performance reasons
|
33
33
|
|
34
|
-
config.check_proc = -> (
|
35
|
-
|
34
|
+
config.check_proc = -> (self_klass_name, defined_klass_name, method_name) do # If you want to limit the tracing for a set of classes
|
35
|
+
self_klass_name == "Bar"
|
36
36
|
|
37
|
-
# If you use autoload and resolve the constant
|
37
|
+
# If you use autoload and resolve the constant by klass names
|
38
38
|
# it's really likelly that you get a segfault: https://bugs.ruby-lang.org/issues/18120.
|
39
39
|
# Preload all the constants before running the `StackTrace.trace` if you want to
|
40
|
-
# constantize
|
40
|
+
# constantize klass names.
|
41
41
|
end
|
42
42
|
end
|
43
43
|
```
|
data/ext/stack_trace/trace.c
CHANGED
@@ -32,7 +32,7 @@ void set_check_proc(VALUE proc) {
|
|
32
32
|
static VALUE call_proc(VALUE val) {
|
33
33
|
Event *event = (Event *)val;
|
34
34
|
|
35
|
-
return rb_funcall(check_proc, rb_intern("call"),
|
35
|
+
return rb_funcall(check_proc, rb_intern("call"), 3, rb_str_new_cstr(event->self_klass), rb_str_new_cstr(event->klass), event->method);
|
36
36
|
}
|
37
37
|
|
38
38
|
static bool is_tracked_event(Event *event) {
|
data/lib/stack_trace/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: stack_trace
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.8.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Mehmet Emin INAC
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2023-04-
|
11
|
+
date: 2023-04-18 00:00:00.000000000 Z
|
12
12
|
dependencies: []
|
13
13
|
description: StackTrace
|
14
14
|
email:
|