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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: ea3a9d9773c3f101fbaa62fa6dd94985659130a6
4
- data.tar.gz: 903218eabd2eb38c22f7de79e40492d4c437872c
3
+ metadata.gz: 886af112411ff5b80fb78be34bdd857511681f37
4
+ data.tar.gz: 17089c785d0dc51e753975816343ebabb59d720f
5
5
  SHA512:
6
- metadata.gz: 2db324f05660210cefc57bfd68e2c98c97d6bd3c062db6d83ea74ca9657adcbb7293802c1dc8278c12ecfe19ff127787797f3127152ced4fc9f3ed54bc1ac0cc
7
- data.tar.gz: 0f8cfa858d131b602e1f44b041e1bbfb25ac3af06e0a07cc3703c0e101ec52c60dad71bbe8bd046486bb80e18d5147f0bd8125efc3a091d41ff5630b86da5d1c
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.source_file != last_source.source_file and (bkt.event.to_s == 'call' or bkt.event.to_s == 'c_call')
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.source_file != last_source.source_file and (bkt.event.to_s == 'return' or bkt.event.to_s == 'c_return')
29
+ elsif bkt.event.to_s == 'return'
30
30
  current_backtrace.pop
31
31
  current_backtrace_sources.pop
32
32
  end
@@ -1,3 +1,3 @@
1
1
  module BetterRailsDebugger
2
- VERSION = '0.2.0'
2
+ VERSION = '0.2.1'
3
3
  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.0
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-26 00:00:00.000000000 Z
11
+ date: 2018-04-27 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails