pretty_debug 0.9.4 → 0.9.5
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 +4 -4
- data/lib/pretty_debug.rb +3 -2
- 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: 14626e3648b26c49d14bee993ca2f030103410eb
|
|
4
|
+
data.tar.gz: fa2a1e40981ce6f8141d0a7ebb3ddd12ba4f3769
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
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.
|
|
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.
|
|
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
|
+
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-
|
|
11
|
+
date: 2014-05-17 00:00:00.000000000 Z
|
|
12
12
|
dependencies: []
|
|
13
13
|
description: ''
|
|
14
14
|
email: []
|