vizi_whois 0.1.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (74) hide show
  1. data/README.rdoc +64 -0
  2. data/Rakefile +45 -0
  3. data/build_gem1.bat +1 -0
  4. data/build_gem2.bat +1 -0
  5. data/build_gem3.bat +1 -0
  6. data/data/testfile.txt +4 -0
  7. data/data/testfile2.txt +10 -0
  8. data/data/testfile3.txt +209 -0
  9. data/doc/Object.html +200 -0
  10. data/doc/ParserTest.html +268 -0
  11. data/doc/README_rdoc.html +128 -0
  12. data/doc/Rakefile.html +148 -0
  13. data/doc/Visit.html +487 -0
  14. data/doc/VisitList.html +385 -0
  15. data/doc/Vizi/LogFormat.html +377 -0
  16. data/doc/Vizi/LogParser.html +551 -0
  17. data/doc/Vizi/Visit.html +487 -0
  18. data/doc/Vizi/VisitList.html +386 -0
  19. data/doc/Vizi.html +168 -0
  20. data/doc/ViziLogFormat.html +382 -0
  21. data/doc/ViziLogParser.html +551 -0
  22. data/doc/created.rid +8 -0
  23. data/doc/docs/Whois_Documentation.doc +0 -0
  24. data/doc/formats/apache-custom-log.pdf +0 -0
  25. data/doc/formats/apache.rtf +238 -0
  26. data/doc/formats/format-descriptions.xls +0 -0
  27. data/doc/formats/w3c-extended.pdf +0 -0
  28. data/doc/formats/w3c-extended.rtf +135 -0
  29. data/doc/images/brick.png +0 -0
  30. data/doc/images/brick_link.png +0 -0
  31. data/doc/images/bug.png +0 -0
  32. data/doc/images/bullet_black.png +0 -0
  33. data/doc/images/bullet_toggle_minus.png +0 -0
  34. data/doc/images/bullet_toggle_plus.png +0 -0
  35. data/doc/images/date.png +0 -0
  36. data/doc/images/find.png +0 -0
  37. data/doc/images/loadingAnimation.gif +0 -0
  38. data/doc/images/macFFBgHack.png +0 -0
  39. data/doc/images/package.png +0 -0
  40. data/doc/images/page_green.png +0 -0
  41. data/doc/images/page_white_text.png +0 -0
  42. data/doc/images/page_white_width.png +0 -0
  43. data/doc/images/plugin.png +0 -0
  44. data/doc/images/ruby.png +0 -0
  45. data/doc/images/tag_green.png +0 -0
  46. data/doc/images/wrench.png +0 -0
  47. data/doc/images/wrench_orange.png +0 -0
  48. data/doc/images/zoom.png +0 -0
  49. data/doc/index.html +112 -0
  50. data/doc/js/darkfish.js +116 -0
  51. data/doc/js/jquery.js +32 -0
  52. data/doc/js/quicksearch.js +114 -0
  53. data/doc/js/thickbox-compressed.js +10 -0
  54. data/doc/lib/vizi/parser_rb.html +63 -0
  55. data/doc/lib/vizi/vizi_tracker_rb.html +63 -0
  56. data/doc/lib/vizi_log_parser_rb.html +56 -0
  57. data/doc/lib/vizi_tracker_rb.html +56 -0
  58. data/doc/rdoc.css +759 -0
  59. data/doc/test/parser_test_rb.html +54 -0
  60. data/doc/test/test_helper_rb.html +56 -0
  61. data/doc/testit_rb.html +63 -0
  62. data/geany_run_script.bat +6 -0
  63. data/lib/vizi/geany_run_script.bat +6 -0
  64. data/lib/vizi/vizi_whois.rb +189 -0
  65. data/lib/vizi_whois.rb +5 -0
  66. data/log/formatted.log +39 -0
  67. data/log/output.log +240 -0
  68. data/log/system.log +20 -0
  69. data/test/parser_test.rb +48 -0
  70. data/test/test_helper.rb +3 -0
  71. data/testgem.rb +44 -0
  72. data/testit.rb +44 -0
  73. data/vizi_whois.gemspec +18 -0
  74. metadata +144 -0
@@ -0,0 +1,386 @@
1
+ <?xml version="1.0" encoding="IBM437"?>
2
+ <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
3
+ "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
4
+ <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
5
+ <head>
6
+ <meta content="text/html; charset=IBM437" http-equiv="Content-Type" />
7
+
8
+ <title>Class: Vizi::VisitList</title>
9
+
10
+ <link rel="stylesheet" href="../rdoc.css" type="text/css" media="screen" />
11
+
12
+ <script src="../js/jquery.js" type="text/javascript" charset="utf-8"></script>
13
+ <script src="../js/thickbox-compressed.js" type="text/javascript" charset="utf-8"></script>
14
+ <script src="../js/quicksearch.js" type="text/javascript" charset="utf-8"></script>
15
+ <script src="../js/darkfish.js" type="text/javascript" charset="utf-8"></script>
16
+
17
+ </head>
18
+ <body id="top" class="class">
19
+
20
+ <div id="metadata">
21
+ <div id="home-metadata">
22
+ <div id="home-section" class="section">
23
+ <h3 class="section-header">
24
+ <a href="../index.html">Home</a>
25
+ <a href="../index.html#classes">Classes</a>
26
+ <a href="../index.html#methods">Methods</a>
27
+ </h3>
28
+ </div>
29
+ </div>
30
+
31
+ <div id="file-metadata">
32
+ <div id="file-list-section" class="section">
33
+ <h3 class="section-header">In Files</h3>
34
+ <div class="section-body">
35
+ <ul>
36
+
37
+ <li><a href="../lib/vizi/vizi_tracker_rb.html?TB_iframe=true&amp;height=550&amp;width=785"
38
+ class="thickbox" title="lib/vizi/vizi_tracker.rb">lib/vizi/vizi_tracker.rb</a></li>
39
+
40
+ </ul>
41
+ </div>
42
+ </div>
43
+
44
+
45
+ </div>
46
+
47
+ <div id="class-metadata">
48
+
49
+ <!-- Parent Class -->
50
+ <div id="parent-class-section" class="section">
51
+ <h3 class="section-header">Parent</h3>
52
+
53
+ <p class="link"><a href="../Object.html">Object</a></p>
54
+
55
+ </div>
56
+
57
+
58
+
59
+
60
+
61
+
62
+
63
+ <!-- Method Quickref -->
64
+ <div id="method-list-section" class="section">
65
+ <h3 class="section-header">Methods</h3>
66
+ <ul class="link-list">
67
+
68
+ <li><a href="#method-c-new">::new</a></li>
69
+
70
+ <li><a href="#method-i-append">#append</a></li>
71
+
72
+ <li><a href="#method-i-delete">#delete</a></li>
73
+
74
+ <li><a href="#method-i-find_all">#find_all</a></li>
75
+
76
+ <li><a href="#method-i-find_by_ip">#find_by_ip</a></li>
77
+
78
+ <li><a href="#method-i-find_expired">#find_expired</a></li>
79
+
80
+ </ul>
81
+ </div>
82
+
83
+
84
+
85
+ </div>
86
+
87
+ <div id="project-metadata">
88
+
89
+
90
+ <div id="fileindex-section" class="section project-section">
91
+ <h3 class="section-header">Files</h3>
92
+ <ul>
93
+
94
+ <li class="file"><a href="../README_rdoc.html">README.rdoc</a></li>
95
+
96
+ <li class="file"><a href="../Rakefile.html">Rakefile</a></li>
97
+
98
+ </ul>
99
+ </div>
100
+
101
+
102
+ <div id="classindex-section" class="section project-section">
103
+ <h3 class="section-header">Class/Module Index
104
+ <span class="search-toggle"><img src="../images/find.png"
105
+ height="16" width="16" alt="[+]"
106
+ title="show/hide quicksearch" /></span></h3>
107
+ <form action="#" method="get" accept-charset="utf-8" class="initially-hidden">
108
+ <fieldset>
109
+ <legend>Quicksearch</legend>
110
+ <input type="text" name="quicksearch" value=""
111
+ class="quicksearch-field" />
112
+ </fieldset>
113
+ </form>
114
+
115
+ <ul class="link-list">
116
+
117
+ <li><a href="../Vizi.html">Vizi</a></li>
118
+
119
+ <li><a href="../Vizi/LogFormat.html">Vizi::LogFormat</a></li>
120
+
121
+ <li><a href="../Vizi/LogParser.html">Vizi::LogParser</a></li>
122
+
123
+ <li><a href="../Vizi/Visit.html">Vizi::Visit</a></li>
124
+
125
+ <li><a href="../Vizi/VisitList.html">Vizi::VisitList</a></li>
126
+
127
+ <li><a href="../Object.html">Object</a></li>
128
+
129
+ <li><a href="../ParserTest.html">ParserTest</a></li>
130
+
131
+ </ul>
132
+ <div id="no-class-search-results" style="display: none;">No matching classes.</div>
133
+ </div>
134
+
135
+
136
+ </div>
137
+ </div>
138
+
139
+ <div id="documentation">
140
+ <h1 class="class">Vizi::VisitList</h1>
141
+
142
+ <div id="description" class="description">
143
+
144
+ <p>This class creates and manages a list to keep track of the visits that are
145
+ in process (cached) Once a visit reaches the time interval, an output
146
+ transaction is generated and the visit is removed from the list</p>
147
+
148
+ </div><!-- description -->
149
+
150
+
151
+ <div id="5Buntitled-5D" class="documentation-section">
152
+
153
+
154
+
155
+
156
+
157
+
158
+
159
+
160
+ <!-- Methods -->
161
+
162
+ <div id="public-class-method-details" class="method-section section">
163
+ <h3 class="section-header">Public Class Methods</h3>
164
+
165
+
166
+ <div id="new-method" class="method-detail ">
167
+ <a name="method-c-new"></a>
168
+
169
+
170
+ <div class="method-heading">
171
+ <span class="method-name">new</span><span
172
+ class="method-args">()</span>
173
+ <span class="method-click-advice">click to toggle source</span>
174
+ </div>
175
+
176
+
177
+ <div class="method-description">
178
+
179
+
180
+
181
+
182
+
183
+ <div class="method-source-code" id="new-source">
184
+ <pre>
185
+ <span class="ruby-comment"># File lib/vizi/vizi_tracker.rb, line 328</span>
186
+ <span class="ruby-keyword">def</span> <span class="ruby-identifier">initialize</span>
187
+ <span class="ruby-ivar">@visits</span> = <span class="ruby-constant">Array</span>.<span class="ruby-identifier">new</span>
188
+ <span class="ruby-keyword">end</span></pre>
189
+ </div><!-- new-source -->
190
+
191
+ </div>
192
+
193
+
194
+
195
+
196
+ </div><!-- new-method -->
197
+
198
+
199
+ </div><!-- public-class-method-details -->
200
+
201
+ <div id="public-instance-method-details" class="method-section section">
202
+ <h3 class="section-header">Public Instance Methods</h3>
203
+
204
+
205
+ <div id="append-method" class="method-detail ">
206
+ <a name="method-i-append"></a>
207
+
208
+
209
+ <div class="method-heading">
210
+ <span class="method-name">append</span><span
211
+ class="method-args">(visit)</span>
212
+ <span class="method-click-advice">click to toggle source</span>
213
+ </div>
214
+
215
+
216
+ <div class="method-description">
217
+
218
+
219
+
220
+
221
+
222
+ <div class="method-source-code" id="append-source">
223
+ <pre>
224
+ <span class="ruby-comment"># File lib/vizi/vizi_tracker.rb, line 332</span>
225
+ <span class="ruby-keyword">def</span> <span class="ruby-identifier">append</span>(<span class="ruby-identifier">visit</span>)
226
+ <span class="ruby-ivar">@visits</span>.<span class="ruby-identifier">push</span>(<span class="ruby-identifier">visit</span>)
227
+ <span class="ruby-keyword">self</span>
228
+ <span class="ruby-keyword">end</span></pre>
229
+ </div><!-- append-source -->
230
+
231
+ </div>
232
+
233
+
234
+
235
+
236
+ </div><!-- append-method -->
237
+
238
+
239
+ <div id="delete-method" class="method-detail ">
240
+ <a name="method-i-delete"></a>
241
+
242
+
243
+ <div class="method-heading">
244
+ <span class="method-name">delete</span><span
245
+ class="method-args">(visit)</span>
246
+ <span class="method-click-advice">click to toggle source</span>
247
+ </div>
248
+
249
+
250
+ <div class="method-description">
251
+
252
+
253
+
254
+
255
+
256
+ <div class="method-source-code" id="delete-source">
257
+ <pre>
258
+ <span class="ruby-comment"># File lib/vizi/vizi_tracker.rb, line 337</span>
259
+ <span class="ruby-keyword">def</span> <span class="ruby-identifier">delete</span>(<span class="ruby-identifier">visit</span>)
260
+ <span class="ruby-ivar">@visits</span>.<span class="ruby-identifier">delete</span>(<span class="ruby-identifier">visit</span>)
261
+ <span class="ruby-keyword">end</span></pre>
262
+ </div><!-- delete-source -->
263
+
264
+ </div>
265
+
266
+
267
+
268
+
269
+ </div><!-- delete-method -->
270
+
271
+
272
+ <div id="find_all-method" class="method-detail ">
273
+ <a name="method-i-find_all"></a>
274
+
275
+
276
+ <div class="method-heading">
277
+ <span class="method-name">find_all</span><span
278
+ class="method-args">()</span>
279
+ <span class="method-click-advice">click to toggle source</span>
280
+ </div>
281
+
282
+
283
+ <div class="method-description">
284
+
285
+
286
+
287
+
288
+
289
+ <div class="method-source-code" id="find_all-source">
290
+ <pre>
291
+ <span class="ruby-comment"># File lib/vizi/vizi_tracker.rb, line 341</span>
292
+ <span class="ruby-keyword">def</span> <span class="ruby-identifier">find_all</span>
293
+ <span class="ruby-ivar">@visits</span>
294
+ <span class="ruby-keyword">end</span></pre>
295
+ </div><!-- find_all-source -->
296
+
297
+ </div>
298
+
299
+
300
+
301
+
302
+ </div><!-- find_all-method -->
303
+
304
+
305
+ <div id="find_by_ip-method" class="method-detail ">
306
+ <a name="method-i-find_by_ip"></a>
307
+
308
+
309
+ <div class="method-heading">
310
+ <span class="method-name">find_by_ip</span><span
311
+ class="method-args">(ip)</span>
312
+ <span class="method-click-advice">click to toggle source</span>
313
+ </div>
314
+
315
+
316
+ <div class="method-description">
317
+
318
+
319
+
320
+
321
+
322
+ <div class="method-source-code" id="find_by_ip-source">
323
+ <pre>
324
+ <span class="ruby-comment"># File lib/vizi/vizi_tracker.rb, line 345</span>
325
+ <span class="ruby-keyword">def</span> <span class="ruby-identifier">find_by_ip</span>(<span class="ruby-identifier">ip</span>)
326
+ <span class="ruby-ivar">@visits</span>.<span class="ruby-identifier">find</span> { <span class="ruby-operator">|</span><span class="ruby-identifier">visit</span><span class="ruby-operator">|</span> <span class="ruby-identifier">ip</span> <span class="ruby-operator">==</span> <span class="ruby-identifier">visit</span>.<span class="ruby-identifier">ip</span> }
327
+ <span class="ruby-keyword">end</span></pre>
328
+ </div><!-- find_by_ip-source -->
329
+
330
+ </div>
331
+
332
+
333
+
334
+
335
+ </div><!-- find_by_ip-method -->
336
+
337
+
338
+ <div id="find_expired-method" class="method-detail ">
339
+ <a name="method-i-find_expired"></a>
340
+
341
+
342
+ <div class="method-heading">
343
+ <span class="method-name">find_expired</span><span
344
+ class="method-args">(test_dt)</span>
345
+ <span class="method-click-advice">click to toggle source</span>
346
+ </div>
347
+
348
+
349
+ <div class="method-description">
350
+
351
+
352
+
353
+
354
+
355
+ <div class="method-source-code" id="find_expired-source">
356
+ <pre>
357
+ <span class="ruby-comment"># File lib/vizi/vizi_tracker.rb, line 349</span>
358
+ <span class="ruby-keyword">def</span> <span class="ruby-identifier">find_expired</span>(<span class="ruby-identifier">test_dt</span>)
359
+ <span class="ruby-ivar">@visits</span>.<span class="ruby-identifier">find</span> { <span class="ruby-operator">|</span><span class="ruby-identifier">visit</span><span class="ruby-operator">|</span> <span class="ruby-identifier">visit</span>.<span class="ruby-identifier">expire_dt</span> <span class="ruby-operator">&lt;</span> <span class="ruby-identifier">test_dt</span> }
360
+ <span class="ruby-keyword">end</span></pre>
361
+ </div><!-- find_expired-source -->
362
+
363
+ </div>
364
+
365
+
366
+
367
+
368
+ </div><!-- find_expired-method -->
369
+
370
+
371
+ </div><!-- public-instance-method-details -->
372
+
373
+ </div><!-- 5Buntitled-5D -->
374
+
375
+
376
+ </div><!-- documentation -->
377
+
378
+ <div id="validator-badges">
379
+ <p><small><a href="http://validator.w3.org/check/referer">[Validate]</a></small></p>
380
+ <p><small>Generated with the <a href="http://deveiate.org/projects/Darkfish-Rdoc/">Darkfish
381
+ Rdoc Generator</a> 2</small>.</p>
382
+ </div>
383
+
384
+ </body>
385
+ </html>
386
+
data/doc/Vizi.html ADDED
@@ -0,0 +1,168 @@
1
+ <?xml version="1.0" encoding="IBM437"?>
2
+ <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
3
+ "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
4
+ <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
5
+ <head>
6
+ <meta content="text/html; charset=IBM437" http-equiv="Content-Type" />
7
+
8
+ <title>Module: Vizi</title>
9
+
10
+ <link rel="stylesheet" href="./rdoc.css" type="text/css" media="screen" />
11
+
12
+ <script src="./js/jquery.js" type="text/javascript" charset="utf-8"></script>
13
+ <script src="./js/thickbox-compressed.js" type="text/javascript" charset="utf-8"></script>
14
+ <script src="./js/quicksearch.js" type="text/javascript" charset="utf-8"></script>
15
+ <script src="./js/darkfish.js" type="text/javascript" charset="utf-8"></script>
16
+
17
+ </head>
18
+ <body id="top" class="module">
19
+
20
+ <div id="metadata">
21
+ <div id="home-metadata">
22
+ <div id="home-section" class="section">
23
+ <h3 class="section-header">
24
+ <a href="./index.html">Home</a>
25
+ <a href="./index.html#classes">Classes</a>
26
+ <a href="./index.html#methods">Methods</a>
27
+ </h3>
28
+ </div>
29
+ </div>
30
+
31
+ <div id="file-metadata">
32
+ <div id="file-list-section" class="section">
33
+ <h3 class="section-header">In Files</h3>
34
+ <div class="section-body">
35
+ <ul>
36
+
37
+ <li><a href="./lib/vizi/vizi_tracker_rb.html?TB_iframe=true&amp;height=550&amp;width=785"
38
+ class="thickbox" title="lib/vizi/vizi_tracker.rb">lib/vizi/vizi_tracker.rb</a></li>
39
+
40
+ </ul>
41
+ </div>
42
+ </div>
43
+
44
+
45
+ </div>
46
+
47
+ <div id="class-metadata">
48
+
49
+
50
+
51
+
52
+
53
+ <!-- Namespace Contents -->
54
+ <div id="namespace-list-section" class="section">
55
+ <h3 class="section-header">Namespace</h3>
56
+ <ul class="link-list">
57
+
58
+ <li><span class="type">CLASS</span> <a href="Vizi/LogFormat.html">Vizi::LogFormat</a></li>
59
+
60
+ <li><span class="type">CLASS</span> <a href="Vizi/LogParser.html">Vizi::LogParser</a></li>
61
+
62
+ <li><span class="type">CLASS</span> <a href="Vizi/Visit.html">Vizi::Visit</a></li>
63
+
64
+ <li><span class="type">CLASS</span> <a href="Vizi/VisitList.html">Vizi::VisitList</a></li>
65
+
66
+ </ul>
67
+ </div>
68
+
69
+
70
+
71
+
72
+
73
+ </div>
74
+
75
+ <div id="project-metadata">
76
+
77
+
78
+ <div id="fileindex-section" class="section project-section">
79
+ <h3 class="section-header">Files</h3>
80
+ <ul>
81
+
82
+ <li class="file"><a href="./README_rdoc.html">README.rdoc</a></li>
83
+
84
+ <li class="file"><a href="./Rakefile.html">Rakefile</a></li>
85
+
86
+ </ul>
87
+ </div>
88
+
89
+
90
+ <div id="classindex-section" class="section project-section">
91
+ <h3 class="section-header">Class/Module Index
92
+ <span class="search-toggle"><img src="./images/find.png"
93
+ height="16" width="16" alt="[+]"
94
+ title="show/hide quicksearch" /></span></h3>
95
+ <form action="#" method="get" accept-charset="utf-8" class="initially-hidden">
96
+ <fieldset>
97
+ <legend>Quicksearch</legend>
98
+ <input type="text" name="quicksearch" value=""
99
+ class="quicksearch-field" />
100
+ </fieldset>
101
+ </form>
102
+
103
+ <ul class="link-list">
104
+
105
+ <li><a href="./Vizi.html">Vizi</a></li>
106
+
107
+ <li><a href="./Vizi/LogFormat.html">Vizi::LogFormat</a></li>
108
+
109
+ <li><a href="./Vizi/LogParser.html">Vizi::LogParser</a></li>
110
+
111
+ <li><a href="./Vizi/Visit.html">Vizi::Visit</a></li>
112
+
113
+ <li><a href="./Vizi/VisitList.html">Vizi::VisitList</a></li>
114
+
115
+ <li><a href="./Object.html">Object</a></li>
116
+
117
+ <li><a href="./ParserTest.html">ParserTest</a></li>
118
+
119
+ </ul>
120
+ <div id="no-class-search-results" style="display: none;">No matching classes.</div>
121
+ </div>
122
+
123
+
124
+ </div>
125
+ </div>
126
+
127
+ <div id="documentation">
128
+ <h1 class="module">Vizi</h1>
129
+
130
+ <div id="description" class="description">
131
+
132
+ <p>This module is ...</p>
133
+ <table class="rdoc-list"><tr><td class="rdoc-term"><p>Author</p></td>
134
+ <td>
135
+ <p>Al Kivi &lt;admin@vizitrax.com&gt;</p>
136
+ </td></tr><tr><td class="rdoc-term"><p>License</p></td>
137
+ <td>
138
+ <p>MIT</p>
139
+ </td></tr></table>
140
+
141
+ </div><!-- description -->
142
+
143
+
144
+ <div id="5Buntitled-5D" class="documentation-section">
145
+
146
+
147
+
148
+
149
+
150
+
151
+
152
+
153
+ <!-- Methods -->
154
+
155
+ </div><!-- 5Buntitled-5D -->
156
+
157
+
158
+ </div><!-- documentation -->
159
+
160
+ <div id="validator-badges">
161
+ <p><small><a href="http://validator.w3.org/check/referer">[Validate]</a></small></p>
162
+ <p><small>Generated with the <a href="http://deveiate.org/projects/Darkfish-Rdoc/">Darkfish
163
+ Rdoc Generator</a> 2</small>.</p>
164
+ </div>
165
+
166
+ </body>
167
+ </html>
168
+