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 +2 -2
- data/lib/ztk/logger.rb +1 -1
- data/lib/ztk/ssh/private.rb +1 -1
- data/lib/ztk/version.rb +1 -1
- metadata +3 -3
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
|
data/lib/ztk/ssh/private.rb
CHANGED
data/lib/ztk/version.rb
CHANGED
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.
|
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: -
|
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: -
|
287
|
+
hash: -2199725361471494570
|
288
288
|
requirements: []
|
289
289
|
rubyforge_project:
|
290
290
|
rubygems_version: 1.8.25
|