rbbt-util 5.23.25 → 5.23.26
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/rbbt/util/misc/inspect.rb +9 -1
- 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: 523b38a8f29fd560ffc459beb5916fc56a05d9dc
|
4
|
+
data.tar.gz: e89da52590052d42bc3b76aab1a314c7562851bc
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: cdbb5baa368689965925f8ba68a9c2216adc94acff0e116759374176fbf6d2e2cda5b46f9f8b018f8bc211ac051deb0aa286f0482fd6eb21b23751248252c11a
|
7
|
+
data.tar.gz: 5bb7aa53e0c9f21225775f2c4bb1439b0e7a65287ae572e3ce03aa87dab01b6dd119f15c5523b75bfe9aa7d97bd30b6f2326f6d76ccf0b7a332fc39c12ce05db
|
@@ -300,7 +300,15 @@ module Misc
|
|
300
300
|
if obj.respond_to? :filename and obj.filename
|
301
301
|
"<IO:" << obj.filename << "--" << mtime_str(obj.filename) << ">"
|
302
302
|
else
|
303
|
-
|
303
|
+
|
304
|
+
if obj.respond_to? :obj2str
|
305
|
+
obj.obj2str
|
306
|
+
else
|
307
|
+
class << obj
|
308
|
+
attr_accessor :obj2str
|
309
|
+
end
|
310
|
+
obj.obj2str = obj.inspect + rand(1000000).to_s
|
311
|
+
end
|
304
312
|
end
|
305
313
|
else
|
306
314
|
if obj.respond_to? :filename and obj.filename
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rbbt-util
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 5.23.
|
4
|
+
version: 5.23.26
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Miguel Vazquez
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2018-10-
|
11
|
+
date: 2018-10-16 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rake
|