ztk 1.6.14 → 1.6.15

Sign up to get free protection for your applications and to get access to all the features.
data/lib/ztk/base.rb CHANGED
@@ -129,10 +129,10 @@ module ZTK
129
129
  log_and_raise(BaseError, "You must supply a block to the log method!")
130
130
  elsif (@config.ui.logger.level <= ZTK::Logger.const_get(log_level.to_s.upcase))
131
131
  if @config.ui.logger.respond_to?(:logdev)
132
- @config.ui.logger.logdev.write(yield)
132
+ @config.ui.logger.logdev.write(ZTK::ANSI.uncolor(yield))
133
133
  @config.ui.logger.logdev.respond_to?(:flush) and @config.ui.logger.logdev.flush
134
134
  else
135
- @config.ui.logger.instance_variable_get(:@logdev).instance_variable_get(:@dev).write(yield)
135
+ @config.ui.logger.instance_variable_get(:@logdev).instance_variable_get(:@dev).write(ZTK::ANSI.uncolor(yield))
136
136
  @config.ui.logger.instance_variable_get(:@logdev).instance_variable_get(:@dev).respond_to?(:flush) and @config.ui.logger.instance_variable_get(:@logdev).instance_variable_get(:@dev).flush
137
137
  end
138
138
  end
data/lib/ztk/logger.rb CHANGED
@@ -95,7 +95,7 @@ module ZTK
95
95
  message = [message, progname].flatten.compact.join(": ")
96
96
  message = "%19s.%06d|%05d|%5s|%s%s\n" % [Time.now.utc.strftime("%Y-%m-%d|%H:%M:%S"), Time.now.utc.usec, Process.pid, SEVERITIES[severity], called_by, message]
97
97
 
98
- @logdev.write(message)
98
+ @logdev.write(ZTK::ANSI.uncolor(message))
99
99
  @logdev.respond_to?(:flush) and @logdev.flush
100
100
 
101
101
  true
@@ -55,7 +55,7 @@ module ZTK
55
55
  end
56
56
 
57
57
  def log_header(what)
58
- count = 8
58
+ count = 12
59
59
  sep = ("=" * count)
60
60
  header = [sep, "[ #{what} ]", sep, "[ #{tag} ]", sep, "[ #{what} ]", sep].join
61
61
  "#{header}\n"
data/lib/ztk/version.rb CHANGED
@@ -1,6 +1,6 @@
1
1
  module ZTK
2
2
 
3
3
  # ZTK Version String
4
- VERSION = "1.6.14"
4
+ VERSION = "1.6.15"
5
5
 
6
6
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ztk
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.6.14
4
+ version: 1.6.15
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -275,7 +275,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
275
275
  version: '0'
276
276
  segments:
277
277
  - 0
278
- hash: -1804662787049214165
278
+ hash: -2199725361471494570
279
279
  required_rubygems_version: !ruby/object:Gem::Requirement
280
280
  none: false
281
281
  requirements:
@@ -284,7 +284,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
284
284
  version: '0'
285
285
  segments:
286
286
  - 0
287
- hash: -1804662787049214165
287
+ hash: -2199725361471494570
288
288
  requirements: []
289
289
  rubyforge_project:
290
290
  rubygems_version: 1.8.25