tlogger 0.6.0 → 0.7.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +1 -1
- data/lib/tlogger.rb +18 -9
- data/lib/tlogger/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 9f9b1b28c4dfcbe2b0fd0de47df01d8f14e83ae00efa3b3abbd6db9bd8330d1f
|
4
|
+
data.tar.gz: a59d64d311798dd9a523b2e13223e580db07e3a1b67825b7e680192f69414051
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 2c238b0a66dd21096b9e0d0d9a36557bfb19f2fda136fd0bc38afd1d9caeafa218c865a20e8c30a4d7bcab5414aafda160d4ade4d81da1e723b92590e6453cc1
|
7
|
+
data.tar.gz: 638660c6d8e855986608c112d1b2a1e5792f862538983229cbbcae4f867b40f891c0abb3ada22daa8f6555d38e3352c9e66ea2eff91d787a121e6631cd51e726
|
data/Gemfile.lock
CHANGED
data/lib/tlogger.rb
CHANGED
@@ -287,17 +287,26 @@ module Tlogger
|
|
287
287
|
if @cal.nil? or @cal.empty?
|
288
288
|
@cal = caller[0]
|
289
289
|
end
|
290
|
-
|
291
|
-
|
292
|
-
|
293
|
-
if
|
294
|
-
|
295
|
-
@scal << @cal[0..indx]
|
296
|
-
@scal << @cal[indx+wd.length..-1]
|
297
|
-
@scal.join
|
290
|
+
|
291
|
+
# reduce it down to last two folder?
|
292
|
+
sp = @cal.split(File::SEPARATOR)
|
293
|
+
if sp.length > 1
|
294
|
+
msg = "/#{sp[-2]}/#{sp[-1]}"
|
298
295
|
else
|
299
|
-
|
296
|
+
msg = sp[-1]
|
300
297
|
end
|
298
|
+
msg
|
299
|
+
|
300
|
+
#wd = Dir.getwd
|
301
|
+
#indx = @cal =~ /#{wd}/
|
302
|
+
#if indx != nil
|
303
|
+
# @scal = []
|
304
|
+
# @scal << @cal[0..indx]
|
305
|
+
# @scal << @cal[indx+wd.length..-1]
|
306
|
+
# @scal.join
|
307
|
+
#else
|
308
|
+
# @cal
|
309
|
+
#end
|
301
310
|
end
|
302
311
|
# end find_caller
|
303
312
|
#
|
data/lib/tlogger/version.rb
CHANGED