better_rails_debugger 0.2.0 → 0.2.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +4 -0
- data/app/models/better_rails_debugger/trace_point_item.rb +2 -2
- data/lib/better_rails_debugger/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 886af112411ff5b80fb78be34bdd857511681f37
|
4
|
+
data.tar.gz: 17089c785d0dc51e753975816343ebabb59d720f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: cc28b86d8b9158182f17aa71351a2f05a0adf7beb6e2f6911c973880b9ab74a1fec2826d97ca8fabd747897d6d6d0ece509ff8f8e52a9235d4bd4d74fd794dfd
|
7
|
+
data.tar.gz: adffae56b5e6f77d1e922de497ad2174596f6053eababd36b814fc87cf35ba282c72849189fa7fcbe9eee54518ded530ed08ec51f4bab847c877526518438199
|
data/README.md
CHANGED
@@ -1,4 +1,8 @@
|
|
1
1
|
# BetterRailsDebugger
|
2
|
+
> NOTE ABOUT NEW BACKTRACE FEATURE ON 0.2: Backtrace feature is in a really heavy development and **contains** bugs
|
3
|
+
> you can use it as a general reference. Get a backtrace of an already allocated object it's not simple (or
|
4
|
+
> is not for me :P). I hope you understand. With love, Angaroshi <3
|
5
|
+
|
2
6
|
> DISCLAIMER: This gem is in a really early development stage, you can start to use it, but
|
3
7
|
> do not expect a lot of features. Right now, the only supported feature it's track Ruby objects creations.
|
4
8
|
|
@@ -23,10 +23,10 @@ module BetterRailsDebugger
|
|
23
23
|
if bkt.source_file == file and bkt.source_line == line
|
24
24
|
backtraces.push current_backtrace.dup.concat([[file, line, bkt.method_id]])
|
25
25
|
# When we detect that we change the file and is not a method return (back to an old source file)
|
26
|
-
elsif bkt.
|
26
|
+
elsif bkt.event.to_s == 'call'
|
27
27
|
current_backtrace.push([last_source.source_file, last_source.source_line, last_source.method_id])
|
28
28
|
current_backtrace_sources.push last_source.source_line
|
29
|
-
elsif bkt.
|
29
|
+
elsif bkt.event.to_s == 'return'
|
30
30
|
current_backtrace.pop
|
31
31
|
current_backtrace_sources.pop
|
32
32
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: better_rails_debugger
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.2.
|
4
|
+
version: 0.2.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Andres Jose Borek
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2018-04-
|
11
|
+
date: 2018-04-27 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|