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 +4 -4
- data/lib/time_bandits/time_consumers/redis.rb +12 -1
- data/lib/time_bandits/version.rb +1 -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: 64f835d9ad115551cc372e0b13c7054f5f41f8c0
|
4
|
+
data.tar.gz: f3bf660fe487c3dca292bc11da139a3639898ae4
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
-
|
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
|
data/lib/time_bandits/version.rb
CHANGED
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.
|
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-
|
11
|
+
date: 2016-06-22 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: thread_variables
|