pretty_debug 0.9.3 → 0.9.4
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 +6 -6
- 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: e9fb0613849f3d32b3d2627e5035da259ef36916
|
4
|
+
data.tar.gz: 156114cbf840a618551df18c7fdde183219bbaa5
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 604b87445a10a72595c149dfaae1e2aeae5cb535a07fc793e23952771e010d56ccf7a4427cd39a0eb6e3a242e914fbfb5a46eb8b941f3c1fcc753b9f8dd4f342
|
7
|
+
data.tar.gz: 546122e01cf1a45ffca7a7345871b0dbaea9339be092bc328e8edb250324766983e88e24564e1981fb2cd70f9d0481cb5f51e637aeed69591e5376a928142ee2
|
data/lib/pretty_debug.rb
CHANGED
@@ -35,7 +35,7 @@ class Object
|
|
35
35
|
mt = method(m)
|
36
36
|
tap do puts \
|
37
37
|
"[Debug] #{"#{l.path}:#{l.lineno}"}".bf.color(:yellow),
|
38
|
-
"#{self.class}(#{mt.owner})##{m}@#{mt.source_location.to_a.join(":")}"
|
38
|
+
"#{self.class}(#{mt.owner})##{m}@#{mt.source_location.to_a.join(":".freeze)}"
|
39
39
|
end
|
40
40
|
end
|
41
41
|
end
|
@@ -46,7 +46,7 @@ module Kernel
|
|
46
46
|
when *klass
|
47
47
|
else
|
48
48
|
ArgumentError.raise(
|
49
|
-
"#{pr.call + " " if pr}should be #{klass.map(&:expand).join(", ")} instance "\
|
49
|
+
"#{pr.call + " ".freeze if pr}should be #{klass.map(&:expand).join(", ".freeze)} instance "\
|
50
50
|
"but is #{v.expand}")
|
51
51
|
end
|
52
52
|
end
|
@@ -76,7 +76,7 @@ class Thread::Backtrace::PseudoLocation
|
|
76
76
|
def basename; File.basename(absolute_path) end
|
77
77
|
def realpath
|
78
78
|
case absolute_path
|
79
|
-
when "-e", "(eval)" then absolute_path
|
79
|
+
when "-e".freeze, "(eval)".freeze then absolute_path
|
80
80
|
else File.realpath(absolute_path)
|
81
81
|
end
|
82
82
|
end
|
@@ -89,7 +89,7 @@ class Thread::Backtrace::Location
|
|
89
89
|
def basename; File.basename(absolute_path) end
|
90
90
|
def realpath
|
91
91
|
case absolute_path
|
92
|
-
when "-e", "(eval)" then absolute_path
|
92
|
+
when "-e".freeze, "(eval)".freeze then absolute_path
|
93
93
|
else File.realpath(absolute_path)
|
94
94
|
end
|
95
95
|
end
|
@@ -98,7 +98,7 @@ class Thread::Backtrace::Location
|
|
98
98
|
end
|
99
99
|
|
100
100
|
module Kernel
|
101
|
-
# Suppress warning message ("already initialized constants", etc.).
|
101
|
+
# Suppress warning message ("already initialized constants".freeze, etc.).
|
102
102
|
def suppress_warning
|
103
103
|
original_verbose, $VERBOSE = $VERBOSE, nil
|
104
104
|
yield
|
@@ -280,7 +280,7 @@ class String
|
|
280
280
|
def bg sym; "#{vt100(40+
|
281
281
|
{black: 0, red: 1, green: 2, yellow: 3, blue: 4, magenta: 5, cyan: 6, white: 7}[sym.to_sym]
|
282
282
|
)}#{self}#{vt100}" end
|
283
|
-
def de_vt100; gsub(/\e\[\d*m/, "") end
|
283
|
+
def de_vt100; gsub(/\e\[\d*m/, "".freeze) end
|
284
284
|
|
285
285
|
private
|
286
286
|
def vt100 s = "".freeze; "\e[#{s}m" end
|
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.4
|
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-10 00:00:00.000000000 Z
|
12
12
|
dependencies: []
|
13
13
|
description: ''
|
14
14
|
email: []
|