pretty_debug 0.4.8 → 0.4.9
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 +2 -1
- metadata +3 -3
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: f4657fbebe8ba7b854a3fde4fab69b484dfb092e
|
|
4
|
+
data.tar.gz: 36191a85773fd33b510d2237def0ac29143de81a
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 0e2ebe22b66e58ee4eb05497e17f5ec922fbc8c33daa08bc2864469d189b6f4523023ef8a24686bb25c0e5684b2383d98b119f29577e674c237ee987575364c2
|
|
7
|
+
data.tar.gz: 733a7112cf62805afa8542baacc33bd9b79007fbe227e46c3a64409cdb01fa0bf80be3f74bf70e5d6a15fb6cad0c3d0f9b28126344ed4e2a13fe27a1b17448f5
|
data/lib/pretty_debug.rb
CHANGED
|
@@ -79,6 +79,7 @@ class Exception
|
|
|
79
79
|
@backtrace_locations ||=
|
|
80
80
|
backtrace.map{|l| Thread::Backtrace::PseudoLocation.new(l)}
|
|
81
81
|
end
|
|
82
|
+
def self.raise *args; Kernel.send(:raise, new(*args)) end
|
|
82
83
|
end
|
|
83
84
|
|
|
84
85
|
class Thread::Backtrace::PseudoLocation
|
|
@@ -144,7 +145,7 @@ class PrettyDebug
|
|
|
144
145
|
m =~ /\A<.*>\z/ # Such as `<top (required)>`, `<module:Foo>`.
|
|
145
146
|
}
|
|
146
147
|
@select = ->f, m{true}
|
|
147
|
-
format{|row| row.join("|").bg(:
|
|
148
|
+
format{|row| " #{row.join(" | ")} ".bg(:black).color(:yellow)}
|
|
148
149
|
def self.message e
|
|
149
150
|
e.complement_backtrace_locations
|
|
150
151
|
e.message.dup.tap{|s| s[0] = s[0].upcase unless s.empty?}.sub(/(?<=[^.])\z/, ".")
|
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.4.
|
|
4
|
+
version: 0.4.9
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- sawa
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2013-10-
|
|
11
|
+
date: 2013-10-17 00:00:00.000000000 Z
|
|
12
12
|
dependencies: []
|
|
13
13
|
description: ''
|
|
14
14
|
email: []
|
|
@@ -36,7 +36,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
36
36
|
version: '0'
|
|
37
37
|
requirements: []
|
|
38
38
|
rubyforge_project:
|
|
39
|
-
rubygems_version: 2.1.
|
|
39
|
+
rubygems_version: 2.1.9
|
|
40
40
|
signing_key:
|
|
41
41
|
specification_version: 4
|
|
42
42
|
summary: ''
|