time_bandits 0.9.0 → 0.9.1

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: 3cf2cfa5710b75af73d4bdcadfe1d85045c54b44
4
- data.tar.gz: 61361276f09f5d2440169e3380b041a66586c45a
3
+ metadata.gz: 64f835d9ad115551cc372e0b13c7054f5f41f8c0
4
+ data.tar.gz: f3bf660fe487c3dca292bc11da139a3639898ae4
5
5
  SHA512:
6
- metadata.gz: 15ea58bff1730c4dd243706a287a6772483050e51e3d96aef6cac430ea34f59f0a089c57883978217db971ccb38f096eb7451212c3fbc182bead993300bdaa4d
7
- data.tar.gz: a3c33415c93a4ed090d77bf18581615e6caf4180e2e2ab45112eb695e18f789ca7c004a9e605879474f11755b68a86a11bfcca79483735a49255cd4630cd2f52
6
+ metadata.gz: f947c239ac89f5bd7eb7e4b1f45a791eb80ba57aa77d0ddf1a612f23689308f35305c6b644a9799ce4152bedf279f2f043783165f24f9ee8cbc934dbed1a1c5f
7
+ data.tar.gz: 4fc33347e870ff39a7646d74545a688880430ea0be22276b049e3280fe3d55032732f94fe2261e0b4b37a6d7f174fe93922f33932c590808c9aebf35551d80f6
@@ -28,7 +28,18 @@ module TimeBandits
28
28
 
29
29
  cmds.each do |cmd, *args|
30
30
  if args.present?
31
- output << " [ #{cmd.to_s.upcase} #{args.join(" ")} ]"
31
+ logged_args = args.map do |a|
32
+ case
33
+ when a.respond_to?(:inspect) then a.inspect
34
+ when a.respond_to?(:to_s) then a.to_s
35
+ else
36
+ # handle poorly-behaved descendants of BasicObject
37
+ klass = a.instance_exec { (class << self; self end).superclass }
38
+ "\#<#{klass}:#{a.__id__}>"
39
+ end
40
+ end
41
+
42
+ output << " [ #{cmd.to_s.upcase} #{logged_args.join(" ")} ]"
32
43
  else
33
44
  output << " [ #{cmd.to_s.upcase} ]"
34
45
  end
@@ -1,3 +1,3 @@
1
1
  module TimeBandits
2
- VERSION = "0.9.0"
2
+ VERSION = "0.9.1"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: time_bandits
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.9.0
4
+ version: 0.9.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Stefan Kaes
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-05-31 00:00:00.000000000 Z
11
+ date: 2016-06-22 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: thread_variables