vizi_translator 0.2.0 → 0.3.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (78) hide show
  1. data/README.rdoc +56 -54
  2. data/README.rdoc.old +56 -0
  3. data/doc/classes/Vizi/Translator.html +200 -0
  4. data/doc/classes/Vizi/Translator.src/M000002.html +18 -0
  5. data/doc/classes/Vizi/Translator.src/M000003.html +18 -0
  6. data/doc/classes/Vizi/Translator.src/M000004.html +40 -0
  7. data/doc/classes/Vizi/UnSupportedLanguage.html +150 -0
  8. data/doc/classes/Vizi/UnSupportedLanguage.src/M000001.html +18 -0
  9. data/doc/classes/Vizi.html +122 -0
  10. data/doc/created.rid +1 -4
  11. data/doc/files/lib/vizi/vizi_translator_rb.html +126 -0
  12. data/doc/files/lib/vizi_translator_rb.html +114 -0
  13. data/doc/files/testit_rb.html +127 -0
  14. data/doc/fr_class_index.html +29 -0
  15. data/doc/fr_file_index.html +29 -0
  16. data/doc/fr_method_index.html +30 -0
  17. data/doc/index.html +24 -68
  18. data/doc/rdoc-style.css +208 -0
  19. data/testit.rb +2 -2
  20. data/vizi_translator-0.2.0.gem +0 -0
  21. data/vizi_translator.gemspec +1 -1
  22. metadata +20 -60
  23. data/doc/Object.html +0 -200
  24. data/doc/ParserTest.html +0 -268
  25. data/doc/README_rdoc.html +0 -128
  26. data/doc/Rakefile.html +0 -148
  27. data/doc/Visit.html +0 -487
  28. data/doc/VisitList.html +0 -385
  29. data/doc/Vizi/LogFormat.html +0 -377
  30. data/doc/Vizi/LogParser.html +0 -551
  31. data/doc/Vizi/Translator.html +0 -302
  32. data/doc/Vizi/UnSupportedLanguage.html +0 -212
  33. data/doc/Vizi/Visit.html +0 -487
  34. data/doc/Vizi/VisitList.html +0 -386
  35. data/doc/Vizi.html +0 -159
  36. data/doc/ViziLogFormat.html +0 -382
  37. data/doc/ViziLogParser.html +0 -551
  38. data/doc/docs/Whois_Documentation.doc +0 -0
  39. data/doc/formats/apache-custom-log.pdf +0 -0
  40. data/doc/formats/apache.rtf +0 -238
  41. data/doc/formats/format-descriptions.xls +0 -0
  42. data/doc/formats/w3c-extended.pdf +0 -0
  43. data/doc/formats/w3c-extended.rtf +0 -135
  44. data/doc/images/brick.png +0 -0
  45. data/doc/images/brick_link.png +0 -0
  46. data/doc/images/bug.png +0 -0
  47. data/doc/images/bullet_black.png +0 -0
  48. data/doc/images/bullet_toggle_minus.png +0 -0
  49. data/doc/images/bullet_toggle_plus.png +0 -0
  50. data/doc/images/date.png +0 -0
  51. data/doc/images/find.png +0 -0
  52. data/doc/images/loadingAnimation.gif +0 -0
  53. data/doc/images/macFFBgHack.png +0 -0
  54. data/doc/images/package.png +0 -0
  55. data/doc/images/page_green.png +0 -0
  56. data/doc/images/page_white_text.png +0 -0
  57. data/doc/images/page_white_width.png +0 -0
  58. data/doc/images/plugin.png +0 -0
  59. data/doc/images/ruby.png +0 -0
  60. data/doc/images/tag_green.png +0 -0
  61. data/doc/images/wrench.png +0 -0
  62. data/doc/images/wrench_orange.png +0 -0
  63. data/doc/images/zoom.png +0 -0
  64. data/doc/js/darkfish.js +0 -116
  65. data/doc/js/jquery.js +0 -32
  66. data/doc/js/quicksearch.js +0 -114
  67. data/doc/js/thickbox-compressed.js +0 -10
  68. data/doc/lib/vizi/parser_rb.html +0 -63
  69. data/doc/lib/vizi/vizi_tracker_rb.html +0 -63
  70. data/doc/lib/vizi/vizi_translator.html +0 -104
  71. data/doc/lib/vizi/vizi_translator_rb.html +0 -69
  72. data/doc/lib/vizi_log_parser_rb.html +0 -56
  73. data/doc/lib/vizi_tracker_rb.html +0 -56
  74. data/doc/lib/vizi_translator_rb.html +0 -54
  75. data/doc/rdoc.css +0 -759
  76. data/doc/test/parser_test_rb.html +0 -54
  77. data/doc/test/test_helper_rb.html +0 -56
  78. data/doc/testit_rb.html +0 -63
@@ -0,0 +1,208 @@
1
+
2
+ body {
3
+ font-family: Verdana,Arial,Helvetica,sans-serif;
4
+ font-size: 90%;
5
+ margin: 0;
6
+ margin-left: 40px;
7
+ padding: 0;
8
+ background: white;
9
+ }
10
+
11
+ h1,h2,h3,h4 { margin: 0; color: #efefef; background: transparent; }
12
+ h1 { font-size: 150%; }
13
+ h2,h3,h4 { margin-top: 1em; }
14
+
15
+ a { background: #eef; color: #039; text-decoration: none; }
16
+ a:hover { background: #039; color: #eef; }
17
+
18
+ /* Override the base stylesheet's Anchor inside a table cell */
19
+ td > a {
20
+ background: transparent;
21
+ color: #039;
22
+ text-decoration: none;
23
+ }
24
+
25
+ /* and inside a section title */
26
+ .section-title > a {
27
+ background: transparent;
28
+ color: #eee;
29
+ text-decoration: none;
30
+ }
31
+
32
+ /* === Structural elements =================================== */
33
+
34
+ div#index {
35
+ margin: 0;
36
+ margin-left: -40px;
37
+ padding: 0;
38
+ font-size: 90%;
39
+ }
40
+
41
+
42
+ div#index a {
43
+ margin-left: 0.7em;
44
+ }
45
+
46
+ div#index .section-bar {
47
+ margin-left: 0px;
48
+ padding-left: 0.7em;
49
+ background: #ccc;
50
+ font-size: small;
51
+ }
52
+
53
+
54
+ div#classHeader, div#fileHeader {
55
+ width: auto;
56
+ color: white;
57
+ padding: 0.5em 1.5em 0.5em 1.5em;
58
+ margin: 0;
59
+ margin-left: -40px;
60
+ border-bottom: 3px solid #006;
61
+ }
62
+
63
+ div#classHeader a, div#fileHeader a {
64
+ background: inherit;
65
+ color: white;
66
+ }
67
+
68
+ div#classHeader td, div#fileHeader td {
69
+ background: inherit;
70
+ color: white;
71
+ }
72
+
73
+
74
+ div#fileHeader {
75
+ background: #057;
76
+ }
77
+
78
+ div#classHeader {
79
+ background: #048;
80
+ }
81
+
82
+
83
+ .class-name-in-header {
84
+ font-size: 180%;
85
+ font-weight: bold;
86
+ }
87
+
88
+
89
+ div#bodyContent {
90
+ padding: 0 1.5em 0 1.5em;
91
+ }
92
+
93
+ div#description {
94
+ padding: 0.5em 1.5em;
95
+ background: #efefef;
96
+ border: 1px dotted #999;
97
+ }
98
+
99
+ div#description h1,h2,h3,h4,h5,h6 {
100
+ color: #125;;
101
+ background: transparent;
102
+ }
103
+
104
+ div#validator-badges {
105
+ text-align: center;
106
+ }
107
+ div#validator-badges img { border: 0; }
108
+
109
+ div#copyright {
110
+ color: #333;
111
+ background: #efefef;
112
+ font: 0.75em sans-serif;
113
+ margin-top: 5em;
114
+ margin-bottom: 0;
115
+ padding: 0.5em 2em;
116
+ }
117
+
118
+
119
+ /* === Classes =================================== */
120
+
121
+ table.header-table {
122
+ color: white;
123
+ font-size: small;
124
+ }
125
+
126
+ .type-note {
127
+ font-size: small;
128
+ color: #DEDEDE;
129
+ }
130
+
131
+ .xxsection-bar {
132
+ background: #eee;
133
+ color: #333;
134
+ padding: 3px;
135
+ }
136
+
137
+ .section-bar {
138
+ color: #333;
139
+ border-bottom: 1px solid #999;
140
+ margin-left: -20px;
141
+ }
142
+
143
+
144
+ .section-title {
145
+ background: #79a;
146
+ color: #eee;
147
+ padding: 3px;
148
+ margin-top: 2em;
149
+ margin-left: -30px;
150
+ border: 1px solid #999;
151
+ }
152
+
153
+ .top-aligned-row { vertical-align: top }
154
+ .bottom-aligned-row { vertical-align: bottom }
155
+
156
+ /* --- Context section classes ----------------------- */
157
+
158
+ .context-row { }
159
+ .context-item-name { font-family: monospace; font-weight: bold; color: black; }
160
+ .context-item-value { font-size: small; color: #448; }
161
+ .context-item-desc { color: #333; padding-left: 2em; }
162
+
163
+ /* --- Method classes -------------------------- */
164
+ .method-detail {
165
+ background: #efefef;
166
+ padding: 0;
167
+ margin-top: 0.5em;
168
+ margin-bottom: 1em;
169
+ border: 1px dotted #ccc;
170
+ }
171
+ .method-heading {
172
+ color: black;
173
+ background: #ccc;
174
+ border-bottom: 1px solid #666;
175
+ padding: 0.2em 0.5em 0 0.5em;
176
+ }
177
+ .method-signature { color: black; background: inherit; }
178
+ .method-name { font-weight: bold; }
179
+ .method-args { font-style: italic; }
180
+ .method-description { padding: 0 0.5em 0 0.5em; }
181
+
182
+ /* --- Source code sections -------------------- */
183
+
184
+ a.source-toggle { font-size: 90%; }
185
+ div.method-source-code {
186
+ background: #262626;
187
+ color: #ffdead;
188
+ margin: 1em;
189
+ padding: 0.5em;
190
+ border: 1px dashed #999;
191
+ overflow: hidden;
192
+ }
193
+
194
+ div.method-source-code pre { color: #ffdead; overflow: hidden; }
195
+
196
+ /* --- Ruby keyword styles --------------------- */
197
+
198
+ .standalone-code { background: #221111; color: #ffdead; overflow: hidden; }
199
+
200
+ .ruby-constant { color: #7fffd4; background: transparent; }
201
+ .ruby-keyword { color: #00ffff; background: transparent; }
202
+ .ruby-ivar { color: #eedd82; background: transparent; }
203
+ .ruby-operator { color: #00ffee; background: transparent; }
204
+ .ruby-identifier { color: #ffdead; background: transparent; }
205
+ .ruby-node { color: #ffa07a; background: transparent; }
206
+ .ruby-comment { color: #b22222; font-weight: bold; background: transparent; }
207
+ .ruby-regexp { color: #ffa07a; background: transparent; }
208
+ .ruby-value { color: #7fffd4; background: transparent; }
data/testit.rb CHANGED
@@ -18,8 +18,8 @@ p 'starting'
18
18
  syslog.info "Starting ... >>> "+Time.now.to_s
19
19
 
20
20
  # Set username and password. Username must be registered at Frengly
21
- username = "akivi"
22
- password = "welcome123"
21
+ username = "your_username"
22
+ password = "your_password"
23
23
 
24
24
  # Set target language for translation
25
25
  targetlanguage = "fr"
Binary file
@@ -2,7 +2,7 @@ require 'rubygems'
2
2
 
3
3
  spec = Gem::Specification.new do |s|
4
4
  s.name = 'vizi_translator'
5
- s.version = '0.2.0'
5
+ s.version = '0.3.0'
6
6
  s.summary = "Language translator that provides a wrapper to the Frengly on-line service"
7
7
  s.description = "This gem module provides a classes to support the language translation of text files or text strings.
8
8
  The Frengly on-line service requires registration and prvoides access with a username and password.
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: vizi_translator
3
3
  version: !ruby/object:Gem::Version
4
- hash: 23
4
+ hash: 19
5
5
  prerelease:
6
6
  segments:
7
7
  - 0
8
- - 2
8
+ - 3
9
9
  - 0
10
- version: 0.2.0
10
+ version: 0.3.0
11
11
  platform: ruby
12
12
  authors:
13
13
  - Al Kivi
@@ -15,7 +15,7 @@ autorequire:
15
15
  bindir: bin
16
16
  cert_chain: []
17
17
 
18
- date: 2012-06-02 00:00:00 -04:00
18
+ date: 2012-06-09 00:00:00 -04:00
19
19
  default_executable:
20
20
  dependencies: []
21
21
 
@@ -31,65 +31,24 @@ extensions: []
31
31
  extra_rdoc_files: []
32
32
 
33
33
  files:
34
+ - vizi_translator-0.2.0.gem
34
35
  - vizi_translator-0.1.0.gem
35
- - doc/Visit.html
36
- - doc/testit_rb.html
37
- - doc/Rakefile.html
38
- - doc/formats/apache.rtf
39
- - doc/formats/w3c-extended.rtf
40
- - doc/formats/apache-custom-log.pdf
41
- - doc/formats/format-descriptions.xls
42
- - doc/formats/w3c-extended.pdf
43
- - doc/Vizi/Visit.html
44
- - doc/Vizi/VisitList.html
45
- - doc/Vizi/LogFormat.html
46
- - doc/Vizi/UnSupportedLanguage.html
47
- - doc/Vizi/LogParser.html
48
- - doc/Vizi/Translator.html
49
- - doc/images/bullet_black.png
50
- - doc/images/bullet_toggle_plus.png
51
- - doc/images/zoom.png
52
- - doc/images/bug.png
53
- - doc/images/wrench_orange.png
54
- - doc/images/bullet_toggle_minus.png
55
- - doc/images/loadingAnimation.gif
56
- - doc/images/macFFBgHack.png
57
- - doc/images/date.png
58
- - doc/images/brick_link.png
59
- - doc/images/tag_green.png
60
- - doc/images/ruby.png
61
- - doc/images/page_white_width.png
62
- - doc/images/find.png
63
- - doc/images/wrench.png
64
- - doc/images/page_green.png
65
- - doc/images/package.png
66
- - doc/images/plugin.png
67
- - doc/images/brick.png
68
- - doc/images/page_white_text.png
69
- - doc/VisitList.html
70
- - doc/ViziLogParser.html
71
- - doc/Object.html
72
- - doc/Vizi.html
36
+ - doc/classes/Vizi/UnSupportedLanguage.src/M000001.html
37
+ - doc/classes/Vizi/UnSupportedLanguage.html
38
+ - doc/classes/Vizi/Translator.html
39
+ - doc/classes/Vizi/Translator.src/M000002.html
40
+ - doc/classes/Vizi/Translator.src/M000004.html
41
+ - doc/classes/Vizi/Translator.src/M000003.html
42
+ - doc/classes/Vizi.html
43
+ - doc/rdoc-style.css
44
+ - doc/fr_file_index.html
45
+ - doc/files/testit_rb.html
46
+ - doc/files/lib/vizi/vizi_translator_rb.html
47
+ - doc/files/lib/vizi_translator_rb.html
73
48
  - doc/created.rid
74
- - doc/lib/vizi_tracker_rb.html
75
- - doc/lib/vizi/vizi_tracker_rb.html
76
- - doc/lib/vizi/parser_rb.html
77
- - doc/lib/vizi/vizi_translator_rb.html
78
- - doc/lib/vizi/vizi_translator.html
79
- - doc/lib/vizi_log_parser_rb.html
80
- - doc/lib/vizi_translator_rb.html
81
- - doc/docs/Whois_Documentation.doc
82
- - doc/ViziLogFormat.html
83
- - doc/js/thickbox-compressed.js
84
- - doc/js/jquery.js
85
- - doc/js/darkfish.js
86
- - doc/js/quicksearch.js
87
- - doc/ParserTest.html
49
+ - doc/fr_method_index.html
88
50
  - doc/index.html
89
- - doc/test/test_helper_rb.html
90
- - doc/test/parser_test_rb.html
91
- - doc/README_rdoc.html
92
- - doc/rdoc.css
51
+ - doc/fr_class_index.html
93
52
  - geany_run_script.bat
94
53
  - build_gem4.bat
95
54
  - data/testfile.txt
@@ -100,6 +59,7 @@ files:
100
59
  - build_gem3.bat
101
60
  - README.rdoc
102
61
  - Rakefile
62
+ - README.rdoc.old
103
63
  - log/system.log
104
64
  - vizi_translator.gemspec
105
65
  - testit.rb
data/doc/Object.html DELETED
@@ -1,200 +0,0 @@
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: Object</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="./testit_rb.html?TB_iframe=true&amp;height=550&amp;width=785"
38
- class="thickbox" title="testit.rb">testit.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"></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-i-find_visit_in_list">#find_visit_in_list</a></li>
69
-
70
- </ul>
71
- </div>
72
-
73
-
74
-
75
- </div>
76
-
77
- <div id="project-metadata">
78
-
79
-
80
- <div id="fileindex-section" class="section project-section">
81
- <h3 class="section-header">Files</h3>
82
- <ul>
83
-
84
- <li class="file"><a href="./README_rdoc.html">README.rdoc</a></li>
85
-
86
- <li class="file"><a href="./Rakefile.html">Rakefile</a></li>
87
-
88
- </ul>
89
- </div>
90
-
91
-
92
- <div id="classindex-section" class="section project-section">
93
- <h3 class="section-header">Class/Module Index
94
- <span class="search-toggle"><img src="./images/find.png"
95
- height="16" width="16" alt="[+]"
96
- title="show/hide quicksearch" /></span></h3>
97
- <form action="#" method="get" accept-charset="utf-8" class="initially-hidden">
98
- <fieldset>
99
- <legend>Quicksearch</legend>
100
- <input type="text" name="quicksearch" value=""
101
- class="quicksearch-field" />
102
- </fieldset>
103
- </form>
104
-
105
- <ul class="link-list">
106
-
107
- <li><a href="./Vizi.html">Vizi</a></li>
108
-
109
- <li><a href="./Vizi/LogFormat.html">Vizi::LogFormat</a></li>
110
-
111
- <li><a href="./Vizi/LogParser.html">Vizi::LogParser</a></li>
112
-
113
- <li><a href="./Vizi/Visit.html">Vizi::Visit</a></li>
114
-
115
- <li><a href="./Vizi/VisitList.html">Vizi::VisitList</a></li>
116
-
117
- <li><a href="./Object.html">Object</a></li>
118
-
119
- <li><a href="./ParserTest.html">ParserTest</a></li>
120
-
121
- </ul>
122
- <div id="no-class-search-results" style="display: none;">No matching classes.</div>
123
- </div>
124
-
125
-
126
- </div>
127
- </div>
128
-
129
- <div id="documentation">
130
- <h1 class="class">Object</h1>
131
-
132
- <div id="description" class="description">
133
-
134
- </div><!-- description -->
135
-
136
-
137
- <div id="5Buntitled-5D" class="documentation-section">
138
-
139
-
140
-
141
-
142
-
143
-
144
-
145
-
146
- <!-- Methods -->
147
-
148
- <div id="public-instance-method-details" class="method-section section">
149
- <h3 class="section-header">Public Instance Methods</h3>
150
-
151
-
152
- <div id="find_visit_in_list-method" class="method-detail ">
153
- <a name="method-i-find_visit_in_list"></a>
154
-
155
-
156
- <div class="method-heading">
157
- <span class="method-name">find_visit_in_list</span><span
158
- class="method-args">(ip)</span>
159
- <span class="method-click-advice">click to toggle source</span>
160
- </div>
161
-
162
-
163
- <div class="method-description">
164
-
165
-
166
-
167
-
168
-
169
- <div class="method-source-code" id="find_visit_in_list-source">
170
- <pre>
171
- <span class="ruby-comment"># File testit.rb, line 18</span>
172
- <span class="ruby-keyword">def</span> <span class="ruby-identifier">find_visit_in_list</span>(<span class="ruby-identifier">ip</span>)
173
- <span class="ruby-ivar">@visits</span>.<span class="ruby-identifier">detect</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">ip</span> = <span class="ruby-identifier">ip</span> }
174
- <span class="ruby-keyword">end</span></pre>
175
- </div><!-- find_visit_in_list-source -->
176
-
177
- </div>
178
-
179
-
180
-
181
-
182
- </div><!-- find_visit_in_list-method -->
183
-
184
-
185
- </div><!-- public-instance-method-details -->
186
-
187
- </div><!-- 5Buntitled-5D -->
188
-
189
-
190
- </div><!-- documentation -->
191
-
192
- <div id="validator-badges">
193
- <p><small><a href="http://validator.w3.org/check/referer">[Validate]</a></small></p>
194
- <p><small>Generated with the <a href="http://deveiate.org/projects/Darkfish-Rdoc/">Darkfish
195
- Rdoc Generator</a> 2</small>.</p>
196
- </div>
197
-
198
- </body>
199
- </html>
200
-