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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: adf500751775578bf59767ced9bb9c99aa9c818bc3c42545f9bb9141b410200b
4
- data.tar.gz: 2c63441093ac202313c3286ba42d2866be74c99569e10a82a8797da7f7fd3c95
3
+ metadata.gz: 9f9b1b28c4dfcbe2b0fd0de47df01d8f14e83ae00efa3b3abbd6db9bd8330d1f
4
+ data.tar.gz: a59d64d311798dd9a523b2e13223e580db07e3a1b67825b7e680192f69414051
5
5
  SHA512:
6
- metadata.gz: 33f79574622d9e61a7cfc0d61b6465f18ab740e1217240d89edee8502f8aa914a4b857a59e0f99f94fead0226873c06fca516501813148cd5c75bb517a0c688a
7
- data.tar.gz: 474f8bd690784fe4461337ab3aeb5be59b6b5b8f67c20e86c6e39ffc994adf0a65a7721ec31ed328bdccfa4774c65e8caa403e36eaa4227c13bb684d7bfd05c8
6
+ metadata.gz: 2c238b0a66dd21096b9e0d0d9a36557bfb19f2fda136fd0bc38afd1d9caeafa218c865a20e8c30a4d7bcab5414aafda160d4ade4d81da1e723b92590e6453cc1
7
+ data.tar.gz: 638660c6d8e855986608c112d1b2a1e5792f862538983229cbbcae4f867b40f891c0abb3ada22daa8f6555d38e3352c9e66ea2eff91d787a121e6631cd51e726
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- tlogger (0.5.0)
4
+ tlogger (0.6.0)
5
5
 
6
6
  GEM
7
7
  remote: https://rubygems.org/
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
- wd = Dir.getwd
292
- indx = @cal =~ /#{wd}/
293
- if indx != nil
294
- @scal = []
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
- @cal
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
  #
@@ -1,3 +1,3 @@
1
1
  module Tlogger
2
- VERSION = "0.6.0"
2
+ VERSION = "0.7.0"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: tlogger
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.6.0
4
+ version: 0.7.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Chris Liaw