pretty_debug 0.9.4 → 0.9.5

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. checksums.yaml +4 -4
  2. data/lib/pretty_debug.rb +3 -2
  3. metadata +2 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: e9fb0613849f3d32b3d2627e5035da259ef36916
4
- data.tar.gz: 156114cbf840a618551df18c7fdde183219bbaa5
3
+ metadata.gz: 14626e3648b26c49d14bee993ca2f030103410eb
4
+ data.tar.gz: fa2a1e40981ce6f8141d0a7ebb3ddd12ba4f3769
5
5
  SHA512:
6
- metadata.gz: 604b87445a10a72595c149dfaae1e2aeae5cb535a07fc793e23952771e010d56ccf7a4427cd39a0eb6e3a242e914fbfb5a46eb8b941f3c1fcc753b9f8dd4f342
7
- data.tar.gz: 546122e01cf1a45ffca7a7345871b0dbaea9339be092bc328e8edb250324766983e88e24564e1981fb2cd70f9d0481cb5f51e637aeed69591e5376a928142ee2
6
+ metadata.gz: 12c1947b4aaf2234fce416a72fb57abc2566db37da8ed5add3e1baf0628b133c0425a60215f22836744a2c43ae24b9f0d6f0a810df758532b504766db042c2bc
7
+ data.tar.gz: 9e5d024f58d9e0efc63cab48ef92201bc5090f68518f40af68b900b9febd44f9b32962eb08cbeae7e147416374734a8a30523c811d86d27843669cbd7aa4db49
data/lib/pretty_debug.rb CHANGED
@@ -25,7 +25,7 @@ class Object
25
25
  def intercept
26
26
  l = caller_location
27
27
  tap do puts \
28
- "[Debug] #{"#{l.path}:#{l.lineno}"}".bf.color(:yellow),
28
+ "[Debug] #{"#{l.realpath}:#{l.lineno}"}".bf.color(:yellow),
29
29
  inspect.verbatim
30
30
  end
31
31
  end
@@ -34,7 +34,7 @@ class Object
34
34
  m = :method_missing unless self.class.method_defined?(m)
35
35
  mt = method(m)
36
36
  tap do puts \
37
- "[Debug] #{"#{l.path}:#{l.lineno}"}".bf.color(:yellow),
37
+ "[Debug] #{"#{l.realpath}:#{l.lineno}"}".bf.color(:yellow),
38
38
  "#{self.class}(#{mt.owner})##{m}@#{mt.source_location.to_a.join(":".freeze)}"
39
39
  end
40
40
  end
@@ -85,6 +85,7 @@ class Thread::Backtrace::PseudoLocation
85
85
  end
86
86
 
87
87
  class Thread::Backtrace::Location
88
+ def to_s; "#{realpath}:#{lineno}" end
88
89
  def dirname; File.dirname(absolute_path) end
89
90
  def basename; File.basename(absolute_path) end
90
91
  def realpath
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: pretty_debug
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.9.4
4
+ version: 0.9.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - sawa
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-05-10 00:00:00.000000000 Z
11
+ date: 2014-05-17 00:00:00.000000000 Z
12
12
  dependencies: []
13
13
  description: ''
14
14
  email: []