wvanbergen-request-log-analyzer 1.0.4 → 1.1.0

Sign up to get free protection for your applications and to get access to all the features.
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: wvanbergen-request-log-analyzer
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.4
4
+ version: 1.1.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Willem van Bergen
@@ -10,7 +10,7 @@ autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
12
 
13
- date: 2009-01-17 00:00:00 -08:00
13
+ date: 2009-01-18 00:00:00 -08:00
14
14
  default_executable: request-log-analyzer
15
15
  dependencies: []
16
16
 
@@ -32,7 +32,6 @@ files:
32
32
  - bin/request-log-analyzer
33
33
  - lib
34
34
  - lib/cli
35
- - lib/cli/bashcolorizer.rb
36
35
  - lib/cli/command_line_arguments.rb
37
36
  - lib/cli/progressbar.rb
38
37
  - lib/request_log_analyzer
@@ -56,6 +55,10 @@ files:
56
55
  - lib/request_log_analyzer/line_definition.rb
57
56
  - lib/request_log_analyzer/log_parser.rb
58
57
  - lib/request_log_analyzer/log_processor.rb
58
+ - lib/request_log_analyzer/output
59
+ - lib/request_log_analyzer/output.rb
60
+ - lib/request_log_analyzer/output/fixed_width.rb
61
+ - lib/request_log_analyzer/output/html.rb
59
62
  - lib/request_log_analyzer/request.rb
60
63
  - lib/request_log_analyzer/source
61
64
  - lib/request_log_analyzer/source/base.rb
@@ -1,60 +0,0 @@
1
- # Colorize a text output with the given color if.
2
- # <tt>text</tt> The text to colorize.
3
- # <tt>color_code</tt> The color code string to set
4
- # <tt>color</tt> Does not color if false. Defaults to false
5
- def colorize(text, color_code, color = false)
6
- color ? "#{color_code}#{text}\e[0m" : text
7
- end
8
-
9
- # Draw a red line of text
10
- def red(text, color = false)
11
- colorize(text, "\e[31m", color)
12
- end
13
-
14
- # Draw a Green line of text
15
- def green(text, color = false)
16
- colorize(text, "\e[32m", color)
17
- end
18
-
19
- # Draw a Yellow line of text
20
- def yellow(text, color = false)
21
- colorize(text, "\e[33m", color)
22
- end
23
-
24
- # Draw a Yellow line of text
25
- def blue(text, color = false)
26
- colorize(text, "\e[34m", color)
27
- end
28
-
29
- def white(text, color = false)
30
- colorize(text, "\e[37m", color)
31
- end
32
-
33
-
34
- #STYLE = {
35
- # :default => “33[0m”,
36
- # # styles
37
- # :bold => “33[1m”,
38
- # :underline => “33[4m”,
39
- # :blink => “33[5m”,
40
- # :reverse => “33[7m”,
41
- # :concealed => “33[8m”,
42
- # # font colors
43
- # :black => “33[30m”,
44
- # :red => “33[31m”,
45
- # :green => “33[32m”,
46
- # :yellow => “33[33m”,
47
- # :blue => “33[34m”,
48
- # :magenta => “33[35m”,
49
- # :cyan => “33[36m”,
50
- # :white => “33[37m”,
51
- # # background colors
52
- # :on_black => “33[40m”,
53
- # :on_red => “33[41m”,
54
- # :on_green => “33[42m”,
55
- # :on_yellow => “33[43m”,
56
- # :on_blue => “33[44m”,
57
- # :on_magenta => “33[45m”,
58
- # :on_cyan => “33[46m”,
59
- # :on_white => “33[47m” }
60
- #