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
@@ -1,302 +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: Vizi::Translator</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_translator_rb.html?TB_iframe=true&amp;height=550&amp;width=785"
38
- class="thickbox" title="lib/vizi/vizi_translator.rb">lib/vizi/vizi_translator.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">Object</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-getcodes">#getcodes</a></li>
69
-
70
- <li><a href="#method-i-getlist">#getlist</a></li>
71
-
72
- <li><a href="#method-i-gettext">#gettext</a></li>
73
-
74
- </ul>
75
- </div>
76
-
77
-
78
-
79
- </div>
80
-
81
- <div id="project-metadata">
82
-
83
-
84
- <div id="fileindex-section" class="section project-section">
85
- <h3 class="section-header">Files</h3>
86
- <ul>
87
-
88
- <li class="file"><a href="../lib/vizi/vizi_translator.html">vizi_translator</a></li>
89
-
90
- </ul>
91
- </div>
92
-
93
-
94
- <div id="classindex-section" class="section project-section">
95
- <h3 class="section-header">Class/Module Index
96
- <span class="search-toggle"><img src="../images/find.png"
97
- height="16" width="16" alt="[+]"
98
- title="show/hide quicksearch" /></span></h3>
99
- <form action="#" method="get" accept-charset="utf-8" class="initially-hidden">
100
- <fieldset>
101
- <legend>Quicksearch</legend>
102
- <input type="text" name="quicksearch" value=""
103
- class="quicksearch-field" />
104
- </fieldset>
105
- </form>
106
-
107
- <ul class="link-list">
108
-
109
- <li><a href="../Vizi.html">Vizi</a></li>
110
-
111
- <li><a href="../Vizi/Translator.html">Vizi::Translator</a></li>
112
-
113
- <li><a href="../Vizi/UnSupportedLanguage.html">Vizi::UnSupportedLanguage</a></li>
114
-
115
- </ul>
116
- <div id="no-class-search-results" style="display: none;">No matching classes.</div>
117
- </div>
118
-
119
-
120
- </div>
121
- </div>
122
-
123
- <div id="documentation">
124
- <h1 class="class">Vizi::Translator</h1>
125
-
126
- <div id="description" class="description">
127
-
128
- <p>This class includes a set of methods to translate using the Frengly service</p>
129
-
130
- </div><!-- description -->
131
-
132
-
133
- <div id="5Buntitled-5D" class="documentation-section">
134
-
135
-
136
-
137
-
138
-
139
- <!-- Constants -->
140
- <div id="constants-list" class="section">
141
- <h3 class="section-header">Constants</h3>
142
- <dl>
143
-
144
- <dt><a name="SUPPORTED_LANG_CODES">SUPPORTED_LANG_CODES</a></dt>
145
-
146
- <dd class="description"></dd>
147
-
148
-
149
- <dt><a name="SUPPORTED_LANG_LIST">SUPPORTED_LANG_LIST</a></dt>
150
-
151
- <dd class="description"></dd>
152
-
153
-
154
- </dl>
155
- </div>
156
-
157
-
158
-
159
-
160
- <!-- Methods -->
161
-
162
- <div id="public-instance-method-details" class="method-section section">
163
- <h3 class="section-header">Public Instance Methods</h3>
164
-
165
-
166
- <div id="getcodes-method" class="method-detail ">
167
- <a name="method-i-getcodes"></a>
168
-
169
-
170
- <div class="method-heading">
171
- <span class="method-name">getcodes</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
- <p>method to get array of language codes</p>
180
-
181
-
182
-
183
- <div class="method-source-code" id="getcodes-source">
184
- <pre>
185
- <span class="ruby-comment"># File lib/vizi/vizi_translator.rb, line 28</span>
186
- <span class="ruby-keyword">def</span> <span class="ruby-identifier">getcodes</span>
187
- <span class="ruby-identifier">result</span> = <span class="ruby-constant">SUPPORTED_LANG_CODES</span>
188
- <span class="ruby-keyword">end</span></pre>
189
- </div><!-- getcodes-source -->
190
-
191
- </div>
192
-
193
-
194
-
195
-
196
- </div><!-- getcodes-method -->
197
-
198
-
199
- <div id="getlist-method" class="method-detail ">
200
- <a name="method-i-getlist"></a>
201
-
202
-
203
- <div class="method-heading">
204
- <span class="method-name">getlist</span><span
205
- class="method-args">()</span>
206
- <span class="method-click-advice">click to toggle source</span>
207
- </div>
208
-
209
-
210
- <div class="method-description">
211
-
212
- <p>method to get hash list of languages</p>
213
-
214
-
215
-
216
- <div class="method-source-code" id="getlist-source">
217
- <pre>
218
- <span class="ruby-comment"># File lib/vizi/vizi_translator.rb, line 33</span>
219
- <span class="ruby-keyword">def</span> <span class="ruby-identifier">getlist</span>
220
- <span class="ruby-identifier">result</span> = <span class="ruby-constant">SUPPORTED_LANG_LIST</span>
221
- <span class="ruby-keyword">end</span></pre>
222
- </div><!-- getlist-source -->
223
-
224
- </div>
225
-
226
-
227
-
228
-
229
- </div><!-- getlist-method -->
230
-
231
-
232
- <div id="gettext-method" class="method-detail ">
233
- <a name="method-i-gettext"></a>
234
-
235
-
236
- <div class="method-heading">
237
- <span class="method-name">gettext</span><span
238
- class="method-args">(username, password, input_text, output_code)</span>
239
- <span class="method-click-advice">click to toggle source</span>
240
- </div>
241
-
242
-
243
- <div class="method-description">
244
-
245
- <p>method to translate from one language to another</p>
246
-
247
-
248
-
249
- <div class="method-source-code" id="gettext-source">
250
- <pre>
251
- <span class="ruby-comment"># File lib/vizi/vizi_translator.rb, line 38</span>
252
- <span class="ruby-keyword">def</span> <span class="ruby-identifier">gettext</span>(<span class="ruby-identifier">username</span>, <span class="ruby-identifier">password</span>, <span class="ruby-identifier">input_text</span>, <span class="ruby-identifier">output_code</span>)
253
- <span class="ruby-identifier">default_src</span> = <span class="ruby-string">'en'</span>
254
- <span class="ruby-identifier">default_action</span> = <span class="ruby-string">'translateREST'</span>
255
-
256
- <span class="ruby-identifier">input_text</span> = <span class="ruby-constant">URI</span>.<span class="ruby-identifier">escape</span>(<span class="ruby-identifier">input_text</span>)
257
- <span class="ruby-keyword">begin</span>
258
- <span class="ruby-identifier">raise</span> <span class="ruby-constant">UnSupportedLanguage</span> <span class="ruby-keyword">unless</span> <span class="ruby-constant">SUPPORTED_LANG_CODES</span>.<span class="ruby-identifier">include?</span>(<span class="ruby-identifier">output_code</span>)
259
- <span class="ruby-identifier">site_url</span> = <span class="ruby-string">'www.syslang.com'</span>
260
- <span class="ruby-identifier">uri_method</span> = <span class="ruby-string">'/frengly/controller?'</span>
261
- <span class="ruby-identifier">uri_string</span> = <span class="ruby-string">'action='</span><span class="ruby-operator">+</span><span class="ruby-identifier">default_action</span><span class="ruby-operator">+</span><span class="ruby-string">'&amp;src='</span><span class="ruby-operator">+</span><span class="ruby-identifier">default_src</span><span class="ruby-operator">+</span><span class="ruby-string">'&amp;dest='</span><span class="ruby-operator">+</span><span class="ruby-identifier">output_code</span><span class="ruby-operator">+</span><span class="ruby-string">'&amp;text='</span><span class="ruby-operator">+</span><span class="ruby-identifier">input_text</span><span class="ruby-operator">+</span><span class="ruby-string">'&amp;username='</span><span class="ruby-operator">+</span><span class="ruby-identifier">username</span><span class="ruby-operator">+</span><span class="ruby-string">'&amp;password='</span><span class="ruby-operator">+</span><span class="ruby-identifier">password</span>
262
- <span class="ruby-identifier">response</span> = <span class="ruby-constant">Net</span><span class="ruby-operator">::</span><span class="ruby-constant">HTTP</span>.<span class="ruby-identifier">get_response</span>(<span class="ruby-identifier">site_url</span>, <span class="ruby-identifier">uri_method</span> <span class="ruby-operator">+</span> <span class="ruby-identifier">uri_string</span>)
263
- <span class="ruby-keyword">if</span> <span class="ruby-identifier">response</span>.<span class="ruby-identifier">code</span> <span class="ruby-operator">==</span> <span class="ruby-string">&quot;200&quot;</span>
264
- <span class="ruby-identifier">xml_data</span> = <span class="ruby-identifier">response</span>.<span class="ruby-identifier">body</span>
265
- <span class="ruby-identifier">data</span> = <span class="ruby-constant">XmlSimple</span>.<span class="ruby-identifier">xml_in</span>(<span class="ruby-identifier">xml_data</span>)
266
- <span class="ruby-identifier">result</span> = <span class="ruby-identifier">data</span>[<span class="ruby-string">&quot;translation&quot;</span>][<span class="ruby-value">0</span>]
267
- <span class="ruby-keyword">else</span>
268
- <span class="ruby-identifier">puts</span> <span class="ruby-identifier">response</span>.<span class="ruby-identifier">body</span>
269
- <span class="ruby-identifier">raise</span> <span class="ruby-constant">StandardError</span>, <span class="ruby-identifier">response</span>.<span class="ruby-identifier">body</span>
270
- <span class="ruby-keyword">end</span>
271
- <span class="ruby-keyword">rescue</span> <span class="ruby-constant">UnSupportedLanguage</span>
272
- <span class="ruby-identifier">raise</span> <span class="ruby-constant">UnSupportedLanguage</span>.<span class="ruby-identifier">new</span>
273
- <span class="ruby-keyword">rescue</span> =<span class="ruby-operator">&gt;</span> <span class="ruby-identifier">err_msg</span>
274
- <span class="ruby-identifier">puts</span> <span class="ruby-node">&quot;#{err_msg}&quot;</span>
275
- <span class="ruby-keyword">end</span>
276
- <span class="ruby-keyword">end</span></pre>
277
- </div><!-- gettext-source -->
278
-
279
- </div>
280
-
281
-
282
-
283
-
284
- </div><!-- gettext-method -->
285
-
286
-
287
- </div><!-- public-instance-method-details -->
288
-
289
- </div><!-- 5Buntitled-5D -->
290
-
291
-
292
- </div><!-- documentation -->
293
-
294
- <div id="validator-badges">
295
- <p><small><a href="http://validator.w3.org/check/referer">[Validate]</a></small></p>
296
- <p><small>Generated with the <a href="http://deveiate.org/projects/Darkfish-Rdoc/">Darkfish
297
- Rdoc Generator</a> 2</small>.</p>
298
- </div>
299
-
300
- </body>
301
- </html>
302
-
@@ -1,212 +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: Vizi::UnSupportedLanguage</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_translator_rb.html?TB_iframe=true&amp;height=550&amp;width=785"
38
- class="thickbox" title="lib/vizi/vizi_translator.rb">lib/vizi/vizi_translator.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">RuntimeError</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
- </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="../lib/vizi/vizi_translator.html">vizi_translator</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/Translator.html">Vizi::Translator</a></li>
108
-
109
- <li><a href="../Vizi/UnSupportedLanguage.html">Vizi::UnSupportedLanguage</a></li>
110
-
111
- </ul>
112
- <div id="no-class-search-results" style="display: none;">No matching classes.</div>
113
- </div>
114
-
115
-
116
- </div>
117
- </div>
118
-
119
- <div id="documentation">
120
- <h1 class="class">Vizi::UnSupportedLanguage</h1>
121
-
122
- <div id="description" class="description">
123
-
124
- </div><!-- description -->
125
-
126
-
127
- <div id="5Buntitled-5D" class="documentation-section">
128
-
129
-
130
-
131
-
132
-
133
-
134
-
135
- <!-- Attributes -->
136
- <div id="attribute-method-details" class="method-section section">
137
- <h3 class="section-header">Attributes</h3>
138
-
139
-
140
- <div id="msg-attribute-method" class="method-detail">
141
- <a name="msg"></a>
142
-
143
- <div class="method-heading attribute-method-heading">
144
- <span class="method-name">msg</span><span
145
- class="attribute-access-type">[R]</span>
146
- </div>
147
-
148
- <div class="method-description">
149
-
150
-
151
-
152
- </div>
153
- </div>
154
-
155
- </div><!-- attribute-method-details -->
156
-
157
-
158
- <!-- Methods -->
159
-
160
- <div id="public-class-method-details" class="method-section section">
161
- <h3 class="section-header">Public Class Methods</h3>
162
-
163
-
164
- <div id="new-method" class="method-detail ">
165
- <a name="method-c-new"></a>
166
-
167
-
168
- <div class="method-heading">
169
- <span class="method-name">new</span><span
170
- class="method-args">(message='')</span>
171
- <span class="method-click-advice">click to toggle source</span>
172
- </div>
173
-
174
-
175
- <div class="method-description">
176
-
177
-
178
-
179
-
180
-
181
- <div class="method-source-code" id="new-source">
182
- <pre>
183
- <span class="ruby-comment"># File lib/vizi/vizi_translator.rb, line 15</span>
184
- <span class="ruby-keyword">def</span> <span class="ruby-identifier">initialize</span>(<span class="ruby-identifier">message</span>=<span class="ruby-string">''</span>)
185
- <span class="ruby-ivar">@msg</span> = <span class="ruby-string">&quot;Language pair not supported yet.&quot;</span>
186
- <span class="ruby-keyword">end</span></pre>
187
- </div><!-- new-source -->
188
-
189
- </div>
190
-
191
-
192
-
193
-
194
- </div><!-- new-method -->
195
-
196
-
197
- </div><!-- public-class-method-details -->
198
-
199
- </div><!-- 5Buntitled-5D -->
200
-
201
-
202
- </div><!-- documentation -->
203
-
204
- <div id="validator-badges">
205
- <p><small><a href="http://validator.w3.org/check/referer">[Validate]</a></small></p>
206
- <p><small>Generated with the <a href="http://deveiate.org/projects/Darkfish-Rdoc/">Darkfish
207
- Rdoc Generator</a> 2</small>.</p>
208
- </div>
209
-
210
- </body>
211
- </html>
212
-