backtracie 0.2.1 → 0.2.2

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: 54e3870e49e076db276f5db8ce6fdd4d3678a7dee52b5d7c11c047425cea931a
4
- data.tar.gz: da7e2f00f3f569b5e1867c88343b29a68124f3cf005eca650bd32a5d45c3732b
3
+ metadata.gz: 69190b4b5e00e3f8d89b96288a795bf79aee1f310d4e40d81d05a4737d99f9eb
4
+ data.tar.gz: d14cf978670bdd754a257c6b58735fb19921da15e2cd6a7a4c07ed0a8ddd6856
5
5
  SHA512:
6
- metadata.gz: f481358789f4a4577a29fb143c5951bc75cf47f69304094ba3b40361a1c1dce0f4736bda189a547222f65c88a5afb0bc13e7cfdc6bd723a5e21ceb327c32e1f0
7
- data.tar.gz: 385384d64fe51ed93d084afa16d10e07565ed7d8f7d2bc25250bfe62c5962f607a061ad385d93203ab9768b878d29bd4ece827ca31d3bd30162ba93c4713d9b2
6
+ metadata.gz: 5341c80c6ec5a4aeb9c6e0ad3e8f95126aa1f7502f4665b3a00be55349fd8312b5c3e2601162f5ec7c2ae458229fc38fa668c4919523e781fda5f04a86f01044
7
+ data.tar.gz: da4b1a46513861bdb05fe0e6d919d0350a1de47b0678b505cb494330677998a68c6c8188f8dfbd5cbd206aad6193c89bb7306f7447ac375c7536387dc3159cab
data/README.adoc CHANGED
@@ -8,6 +8,10 @@ A Ruby gem for beautiful backtraces.
8
8
 
9
9
  Aims to offer alternatives to `Thread#backtrace`, `Thread#backtrace_locations`, `Kernel#caller` and `Kernel#caller_locations` with similar (or better!?) performance, but with better metadata (such as class names).
10
10
 
11
+ WARNING: **Currently this gem is an exploration ground for some... questionable low-level techniques.**
12
+ **Due to the way it works, bugs can easily cause your whole Ruby VM to crash.**
13
+ **So please take this into account if you want to use this gem for anything. But contributions and bug reports are mega welcome.**
14
+
11
15
  image:https://img.shields.io/badge/Contributor%20Covenant-2.0-4baaaa.svg["Contributor Covenant", link="CODE_OF_CONDUCT.adoc"]
12
16
  image:https://badge.fury.io/rb/backtracie.svg["Gem Version", link="https://badge.fury.io/rb/backtracie"]
13
17
  image:https://github.com/ivoanjo/backtracie/actions/workflows/test.yml/badge.svg["CI Status", link="https://github.com/ivoanjo/backtracie/actions/workflows/test.yml"]
@@ -98,6 +98,7 @@ static VALUE collect_backtrace_locations(VALUE self, VALUE thread, int ignored_s
98
98
  }
99
99
 
100
100
  VALUE locations_array = rb_funcall(thread, backtrace_locations_id, 0);
101
+ if (locations_array == Qnil) return Qnil;
101
102
  stack_depth = backtracie_profile_frames_from_ruby_locations(locations_array, raw_locations);
102
103
  #endif
103
104
 
@@ -19,5 +19,5 @@
19
19
  # along with backtracie. If not, see <http://www.gnu.org/licenses/>.
20
20
 
21
21
  module Backtracie
22
- VERSION = "0.2.1"
22
+ VERSION = "0.2.2"
23
23
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: backtracie
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.1
4
+ version: 0.2.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ivo Anjo
@@ -51,7 +51,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
51
51
  - !ruby/object:Gem::Version
52
52
  version: '0'
53
53
  requirements: []
54
- rubygems_version: 3.1.4
54
+ rubygems_version: 3.0.9
55
55
  signing_key:
56
56
  specification_version: 4
57
57
  summary: Ruby gem for beautiful backtraces