ntail 1.3.0 → 1.3.1
Sign up to get free protection for your applications and to get access to all the features.
- data/VERSION +1 -1
- data/lib/ntail/formatting.rb +12 -2
- data/lib/ntail/formatting.treetop +12 -2
- data/ntail.gemspec +1 -1
- metadata +2 -2
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
1.3.
|
1
|
+
1.3.1
|
data/lib/ntail/formatting.rb
CHANGED
@@ -352,7 +352,12 @@ module Formatting
|
|
352
352
|
|
353
353
|
module UpstreamResponseTime0
|
354
354
|
def value(log_line, color)
|
355
|
-
|
355
|
+
if color && Sickill::Rainbow.enabled
|
356
|
+
# 15 = 6 + 9, the extra amount of bytes required for the ANSI escape codes...
|
357
|
+
"%15s" % foreground(log_line.upstream_response_time, color)
|
358
|
+
else
|
359
|
+
"%6s" % log_line.upstream_response_time
|
360
|
+
end
|
356
361
|
end
|
357
362
|
end
|
358
363
|
|
@@ -383,7 +388,12 @@ module Formatting
|
|
383
388
|
|
384
389
|
module RequestTime0
|
385
390
|
def value(log_line, color)
|
386
|
-
|
391
|
+
if color && Sickill::Rainbow.enabled
|
392
|
+
# 15 = 6 + 9, the extra amount of bytes required for the ANSI escape codes...
|
393
|
+
"%15s" % foreground(log_line.request_time, color)
|
394
|
+
else
|
395
|
+
"%6s" % log_line.request_time
|
396
|
+
end
|
387
397
|
end
|
388
398
|
end
|
389
399
|
|
@@ -73,7 +73,12 @@ grammar Formatting
|
|
73
73
|
rule upstream_response_time
|
74
74
|
'%<T' <Node> {
|
75
75
|
def value(log_line, color)
|
76
|
-
|
76
|
+
if color && Sickill::Rainbow.enabled
|
77
|
+
# 15 = 6 + 9, the extra amount of bytes required for the ANSI escape codes...
|
78
|
+
"%15s" % foreground(log_line.upstream_response_time, color)
|
79
|
+
else
|
80
|
+
"%6s" % log_line.upstream_response_time
|
81
|
+
end
|
77
82
|
end
|
78
83
|
}
|
79
84
|
end
|
@@ -81,7 +86,12 @@ grammar Formatting
|
|
81
86
|
rule request_time
|
82
87
|
'%T' <Node> {
|
83
88
|
def value(log_line, color)
|
84
|
-
|
89
|
+
if color && Sickill::Rainbow.enabled
|
90
|
+
# 15 = 6 + 9, the extra amount of bytes required for the ANSI escape codes...
|
91
|
+
"%15s" % foreground(log_line.request_time, color)
|
92
|
+
else
|
93
|
+
"%6s" % log_line.request_time
|
94
|
+
end
|
85
95
|
end
|
86
96
|
}
|
87
97
|
end
|
data/ntail.gemspec
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: ntail
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.3.
|
4
|
+
version: 1.3.1
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -294,7 +294,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
294
294
|
version: '0'
|
295
295
|
segments:
|
296
296
|
- 0
|
297
|
-
hash:
|
297
|
+
hash: 4046669679785560715
|
298
298
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
299
299
|
none: false
|
300
300
|
requirements:
|