pretty_debug 0.3.7 → 0.3.8

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.
Files changed (3) hide show
  1. checksums.yaml +4 -4
  2. data/lib/pretty_debug.rb +5 -1
  3. metadata +2 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 5fbc34ff2e0f0d6566e9d364f64bdc0ee33139c2
4
- data.tar.gz: 9eb55b42a95ba385db3a89954654891ec6dd1fca
3
+ metadata.gz: c399086406e8cae10bbb9f1a66e897d47a6f33da
4
+ data.tar.gz: 944c1b024062b70ae2cc4636772037724c09fb02
5
5
  SHA512:
6
- metadata.gz: d0d4529c0cbb467e62335dc1bfd0b44b0e2d666568916798d82152a0155a182a4336bc2a94aa8e38665cbc341f94778a08774976f5b6f131ad67fa884d22672f
7
- data.tar.gz: c94d71b04347bf79c5126e8008dad777474990ca331e3cae6b438a4da4b379a1d866904ba86b497bc02bdd92532d35fb4cbc3909e313272e42552381627ad53a
6
+ metadata.gz: 94c127542e278a0f3a9b7730d1794ce58f39832dbf7d38a7c19c8b6c93768bfeb0123d5c93bbe7ea5e3cd68da2f840b2c2647823c6cb872fa175816a419f9dd7
7
+ data.tar.gz: 791d2ad65b0c552efc3e1040e6e62742ee46bfeb27b091476d56c4122e87c24a2fc0af9f7de3ad145faa7719b4a20547c8a3537e9710d046f86bdc7fc0339a3d
data/lib/pretty_debug.rb CHANGED
@@ -102,9 +102,13 @@ class Object
102
102
  tap do |x| puts \
103
103
  "[Debug] #{caller_location(3).chain{|l| "#{l.basename}:#{l.lineno}"}}"
104
104
  .color(:yellow),
105
- (pr ? pr.call(x) : x).inspect
105
+ (pr ? pr.call(x) : x).expand
106
106
  end
107
107
  end
108
+ def expand; inspect.verbatim end
109
+ def verbatim
110
+ bg(:cyan)
111
+ end
108
112
  end
109
113
 
110
114
  class String
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.3.7
4
+ version: 0.3.8
5
5
  platform: ruby
6
6
  authors:
7
7
  - sawa
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2013-08-27 00:00:00.000000000 Z
11
+ date: 2013-09-04 00:00:00.000000000 Z
12
12
  dependencies: []
13
13
  description: ''
14
14
  email: []