tlogger 0.7.0 → 0.8.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: 9f9b1b28c4dfcbe2b0fd0de47df01d8f14e83ae00efa3b3abbd6db9bd8330d1f
4
- data.tar.gz: a59d64d311798dd9a523b2e13223e580db07e3a1b67825b7e680192f69414051
3
+ metadata.gz: bc3fda5c05c3948e3e08c0c184783455568b5fc3e37cf30a1d3029ac7be83d5c
4
+ data.tar.gz: 4eaf9af7bfea0d31fae02b83f0580ddd364369ae6e0dc6f2a5b1e691a3491c6c
5
5
  SHA512:
6
- metadata.gz: 2c238b0a66dd21096b9e0d0d9a36557bfb19f2fda136fd0bc38afd1d9caeafa218c865a20e8c30a4d7bcab5414aafda160d4ade4d81da1e723b92590e6453cc1
7
- data.tar.gz: 638660c6d8e855986608c112d1b2a1e5792f862538983229cbbcae4f867b40f891c0abb3ada22daa8f6555d38e3352c9e66ea2eff91d787a121e6631cd51e726
6
+ metadata.gz: f1983481092884cec366883ff9e8759166f29b0c10712f09b533929fa7ebe60f839c035c47219a0d803f95052ab1f76630dab247a5efd21f8bd6456efeab0461
7
+ data.tar.gz: a875347a3631098a66eaff1140813d4b3b849452a1a0e9c201cba19f19e2c9c0fa7767faab22be8a246ec5fc9987f5db21f1aabcb5c27461ca0efa84b7185ff9
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- tlogger (0.6.0)
4
+ tlogger (0.7.0)
5
5
 
6
6
  GEM
7
7
  remote: https://rubygems.org/
data/lib/tlogger.rb CHANGED
@@ -232,10 +232,6 @@ module Tlogger
232
232
  args[0] = "[#{tag.join}] #{args[0]}"
233
233
  @tlogger.send(mtd,*args,&block)
234
234
  end
235
- elsif TloggerConf.is_auto_tag_on?
236
- intDebug("auto_tag is on...")
237
- args = tag_class(*args)
238
- @tlogger.send(mtd,*args,&block)
239
235
  elsif TloggerConf.is_tag_active?(@tag)
240
236
  intDebug("Tagged output...")
241
237
  tag = []
@@ -246,6 +242,12 @@ module Tlogger
246
242
  end
247
243
  args[0] = "[#{tag.join}] #{args[0]}"
248
244
  @tlogger.send(mtd,*args,&block)
245
+
246
+ elsif TloggerConf.is_auto_tag_on?
247
+ intDebug("auto_tag is on...")
248
+ args = tag_class(*args)
249
+ @tlogger.send(mtd,*args,&block)
250
+
249
251
  end
250
252
 
251
253
  end
@@ -295,6 +297,7 @@ module Tlogger
295
297
  else
296
298
  msg = sp[-1]
297
299
  end
300
+
298
301
  msg
299
302
 
300
303
  #wd = Dir.getwd
@@ -1,3 +1,3 @@
1
1
  module Tlogger
2
- VERSION = "0.7.0"
2
+ VERSION = "0.8.0"
3
3
  end
data/samples/basic2.rb CHANGED
@@ -7,13 +7,14 @@ l.tag = "dance"
7
7
  l.debug "here"
8
8
 
9
9
  #Tlogger::TloggerConf.blacklist_tag("jan")
10
- Tlogger::TloggerConf.show_source
11
10
 
11
+ Tlogger::TloggerConf.show_source
12
12
  l.with_tag 'jan' do
13
13
  l.debug "inside"
14
14
  puts "inside string"
15
15
  l.debug "outside"
16
16
  end
17
+ Tlogger::TloggerConf.hide_source
17
18
 
18
19
  l.debug "towards the end"
19
20
 
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.7.0
4
+ version: 0.8.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Chris Liaw