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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 625721aa410028657ae453a55d77e57782e3d7c5
4
- data.tar.gz: 30a323d757baade804120a648538a5f7669aa053
3
+ metadata.gz: 523b38a8f29fd560ffc459beb5916fc56a05d9dc
4
+ data.tar.gz: e89da52590052d42bc3b76aab1a314c7562851bc
5
5
  SHA512:
6
- metadata.gz: 3e6ca02574ebf885b77e0d380dfdc84be134fa651f11fe13e011b36b06e944e7d6bcb1ee15338a287096835cb84f2ee9b9f41f594c4b975013888552638f20b2
7
- data.tar.gz: f605dff38ff692d99d438a1082071abbb890a209ffb27cf51f9e9c40e1a431aa2a17f3759dc4cebe723af8d047d4cc4d79304927c06cecf2845404467e8590f5
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
- obj.inspect + rand(1000000).to_s
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.25
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-15 00:00:00.000000000 Z
11
+ date: 2018-10-16 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rake