wee 0.5.0 → 0.6.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (157) hide show
  1. data/ChangeLog +132 -0
  2. data/INSTALL +13 -3
  3. data/README +3 -3
  4. data/Rakefile +5 -1
  5. data/bin/wee +100 -0
  6. data/doc/rdoc/classes/Array.html +12 -12
  7. data/doc/rdoc/classes/Cache/StorageCache.html +38 -38
  8. data/doc/rdoc/classes/Cache/Strategy/CapacityBounded.html +30 -30
  9. data/doc/rdoc/classes/Cache/Strategy/LFU.html +24 -24
  10. data/doc/rdoc/classes/Cache/Strategy/LRU.html +24 -24
  11. data/doc/rdoc/classes/Cache/Strategy/Unbounded.html +24 -24
  12. data/doc/rdoc/classes/Enumerable.html +6 -6
  13. data/doc/rdoc/classes/Main.html +265 -0
  14. data/doc/rdoc/classes/Object.html +12 -12
  15. data/doc/rdoc/classes/OgApplication.html +2 -2
  16. data/doc/rdoc/classes/OgScaffolder.html +444 -64
  17. data/doc/rdoc/classes/OgScaffolder/Editor.html +490 -0
  18. data/doc/rdoc/classes/OgSession.html +4 -4
  19. data/doc/rdoc/classes/Recipe.html +113 -0
  20. data/doc/rdoc/classes/String.html +12 -12
  21. data/doc/rdoc/classes/Struct.html +12 -12
  22. data/doc/rdoc/classes/Wee.html +10 -1
  23. data/doc/rdoc/classes/Wee/AnswerDecoration.html +9 -9
  24. data/doc/rdoc/classes/Wee/Application.html +48 -47
  25. data/doc/rdoc/classes/Wee/Brush.html +19 -23
  26. data/doc/rdoc/classes/Wee/Brush/AnchorTag.html +17 -14
  27. data/doc/rdoc/classes/Wee/Brush/FileUploadTag.html +20 -14
  28. data/doc/rdoc/classes/Wee/Brush/FormTag.html +25 -21
  29. data/doc/rdoc/classes/Wee/Brush/GenericEncodedTextBrush.html +12 -12
  30. data/doc/rdoc/classes/Wee/Brush/GenericSingleTagBrush.html +7 -7
  31. data/doc/rdoc/classes/Wee/Brush/GenericTagBrush.html +234 -100
  32. data/doc/rdoc/classes/Wee/Brush/GenericTextBrush.html +12 -12
  33. data/doc/rdoc/classes/Wee/Brush/ImageButtonTag.html +28 -22
  34. data/doc/rdoc/classes/Wee/Brush/ImageTag.html +23 -24
  35. data/doc/rdoc/classes/Wee/Brush/InputTag.html +14 -14
  36. data/doc/rdoc/classes/Wee/Brush/JavascriptTag.html +7 -7
  37. data/doc/rdoc/classes/Wee/Brush/Page.html +14 -14
  38. data/doc/rdoc/classes/Wee/Brush/SelectListTag.html +33 -57
  39. data/doc/rdoc/classes/Wee/Brush/SelectListTag/SelectListCallback.html +154 -0
  40. data/doc/rdoc/classes/Wee/Brush/SelectOptionTag.html +7 -7
  41. data/doc/rdoc/classes/Wee/Brush/SubmitButtonTag.html +20 -14
  42. data/doc/rdoc/classes/Wee/Brush/TableDataTag.html +14 -14
  43. data/doc/rdoc/classes/Wee/Brush/TableHeaderTag.html +7 -7
  44. data/doc/rdoc/classes/Wee/Brush/TableRowTag.html +42 -42
  45. data/doc/rdoc/classes/Wee/Brush/TableTag.html +7 -7
  46. data/doc/rdoc/classes/Wee/Brush/TextAreaTag.html +27 -21
  47. data/doc/rdoc/classes/Wee/Brush/TextInputTag.html +20 -14
  48. data/doc/rdoc/classes/Wee/CallbackRegistry.html +64 -36
  49. data/doc/rdoc/classes/Wee/CallbackStream.html +21 -21
  50. data/doc/rdoc/classes/Wee/Canvas.html +24 -24
  51. data/doc/rdoc/classes/Wee/Component.html +179 -151
  52. data/doc/rdoc/classes/Wee/Component/OnAnswer.html +12 -12
  53. data/doc/rdoc/classes/Wee/Decoration.html +42 -42
  54. data/doc/rdoc/classes/Wee/Delegate.html +27 -27
  55. data/doc/rdoc/classes/Wee/ErrorResponse.html +14 -14
  56. data/doc/rdoc/classes/Wee/FormDecoration.html +6 -6
  57. data/doc/rdoc/classes/Wee/GenericResponse.html +7 -7
  58. data/doc/rdoc/classes/Wee/HtmlCanvas.html +326 -219
  59. data/doc/rdoc/classes/Wee/HtmlWriter.html +40 -40
  60. data/doc/rdoc/classes/Wee/LiteralMethodCallback.html +19 -19
  61. data/doc/rdoc/classes/Wee/Md5IdGenerator.html +181 -0
  62. data/doc/rdoc/classes/Wee/MessageBox.html +12 -12
  63. data/doc/rdoc/classes/Wee/PageDecoration.html +18 -18
  64. data/doc/rdoc/classes/Wee/PagelessApplication.html +152 -0
  65. data/doc/rdoc/classes/Wee/PagelessRequest.html +177 -0
  66. data/doc/rdoc/classes/Wee/PagelessSession.html +320 -0
  67. data/doc/rdoc/classes/Wee/Presenter.html +145 -89
  68. data/doc/rdoc/classes/Wee/RedirectResponse.html +7 -7
  69. data/doc/rdoc/classes/Wee/RefreshResponse.html +7 -7
  70. data/doc/rdoc/classes/Wee/Request.html +116 -50
  71. data/doc/rdoc/classes/Wee/RequestHandler.html +31 -31
  72. data/doc/rdoc/classes/Wee/Response.html +76 -28
  73. data/doc/rdoc/classes/Wee/Session.html +129 -506
  74. data/doc/rdoc/classes/Wee/SimpleIdGenerator.html +22 -40
  75. data/doc/rdoc/classes/Wee/Snapshot.html +19 -19
  76. data/doc/rdoc/classes/Wee/Utils.html +70 -17
  77. data/doc/rdoc/classes/Wee/Utils/LRUCache.html +6 -6
  78. data/doc/rdoc/classes/Wee/ValueHolder.html +18 -18
  79. data/doc/rdoc/classes/Wee/WEBrickAdaptor.html +82 -49
  80. data/doc/rdoc/classes/Wee/WrapperDecoration.html +6 -6
  81. data/doc/rdoc/created.rid +1 -1
  82. data/doc/rdoc/files/INSTALL.html +17 -5
  83. data/doc/rdoc/files/README.html +9 -11
  84. data/doc/rdoc/files/lib/wee/adaptors/webrick_rb.html +1 -1
  85. data/doc/rdoc/files/lib/wee/application_rb.html +1 -1
  86. data/doc/rdoc/files/lib/wee/components/page_decoration_rb.html +1 -1
  87. data/doc/rdoc/files/lib/wee/continuation/session_rb.html +1 -3
  88. data/doc/rdoc/files/lib/wee/core/callback_rb.html +1 -1
  89. data/doc/rdoc/files/lib/wee/core/component_rb.html +1 -1
  90. data/doc/rdoc/files/lib/wee/core_rb.html +3 -3
  91. data/doc/rdoc/files/lib/wee/databases/og/application_rb.html +101 -0
  92. data/doc/rdoc/files/lib/wee/databases/og/old_scaffolder_rb.html +101 -0
  93. data/doc/rdoc/files/lib/wee/databases/og/scaffolder_rb.html +108 -0
  94. data/doc/rdoc/files/lib/wee/databases/og/session_rb.html +101 -0
  95. data/doc/rdoc/files/lib/wee/databases/og_rb.html +4 -1
  96. data/doc/rdoc/files/lib/wee/idgen/md5_rb.html +115 -0
  97. data/doc/rdoc/files/lib/wee/idgen/simple_rb.html +107 -0
  98. data/doc/rdoc/files/lib/wee/pageless/application_rb.html +101 -0
  99. data/doc/rdoc/files/lib/wee/pageless/request_rb.html +101 -0
  100. data/doc/rdoc/files/lib/wee/pageless/session_rb.html +108 -0
  101. data/doc/rdoc/files/lib/wee/pageless_rb.html +110 -0
  102. data/doc/rdoc/files/lib/wee/renderer/html/brushes_rb.html +1 -1
  103. data/doc/rdoc/files/lib/wee/renderer/html/canvas_rb.html +8 -1
  104. data/doc/rdoc/files/lib/wee/request_rb.html +1 -1
  105. data/doc/rdoc/files/lib/wee/response_rb.html +1 -1
  106. data/doc/rdoc/files/lib/wee/session_rb.html +1 -1
  107. data/doc/rdoc/files/lib/wee/skeleton/og/components/main_rb.html +101 -0
  108. data/doc/rdoc/files/lib/wee/skeleton/og/conf/db_rb.html +114 -0
  109. data/doc/rdoc/files/lib/wee/skeleton/og/models/recipe_rb.html +101 -0
  110. data/doc/rdoc/files/lib/wee/skeleton/og/run_rb.html +115 -0
  111. data/doc/rdoc/files/lib/wee/skeleton/simple/components/main_rb.html +101 -0
  112. data/doc/rdoc/files/lib/wee/skeleton/simple/run_rb.html +111 -0
  113. data/doc/rdoc/files/lib/wee/template_rb.html +101 -0
  114. data/doc/rdoc/files/lib/wee/utils/autoreload_rb.html +1 -1
  115. data/doc/rdoc/files/lib/wee/utils/helper_rb.html +1 -1
  116. data/doc/rdoc/files/lib/wee_rb.html +4 -2
  117. data/doc/rdoc/fr_class_index.html +8 -4
  118. data/doc/rdoc/fr_file_index.html +17 -1
  119. data/doc/rdoc/fr_method_index.html +312 -267
  120. data/examples/live-update.rb +1 -1
  121. data/install.rb +14 -0
  122. data/lib/wee.rb +6 -2
  123. data/lib/wee/adaptors/webrick.rb +17 -5
  124. data/lib/wee/application.rb +2 -1
  125. data/lib/wee/continuation/session.rb +1 -146
  126. data/lib/wee/core/callback.rb +11 -5
  127. data/lib/wee/core/component.rb +14 -10
  128. data/lib/wee/databases/og.rb +3 -113
  129. data/lib/wee/databases/og/application.rb +3 -0
  130. data/lib/wee/databases/og/old_scaffolder.rb +98 -0
  131. data/lib/wee/databases/og/scaffolder.rb +174 -0
  132. data/lib/wee/databases/og/session.rb +9 -0
  133. data/lib/wee/idgen/md5.rb +21 -0
  134. data/lib/wee/{idgen.rb → idgen/simple.rb} +2 -4
  135. data/lib/wee/pageless.rb +3 -0
  136. data/lib/wee/pageless/application.rb +9 -0
  137. data/lib/wee/pageless/request.rb +15 -0
  138. data/lib/wee/pageless/session.rb +89 -0
  139. data/lib/wee/renderer/html/brushes.rb +100 -115
  140. data/lib/wee/renderer/html/canvas.rb +32 -2
  141. data/lib/wee/request.rb +36 -24
  142. data/lib/wee/response.rb +8 -1
  143. data/lib/wee/session.rb +13 -7
  144. data/lib/wee/skeleton/og/README +38 -0
  145. data/lib/wee/skeleton/og/components/main.rb +16 -0
  146. data/lib/wee/skeleton/og/conf/db.rb +8 -0
  147. data/lib/wee/skeleton/og/models/recipe.rb +5 -0
  148. data/lib/wee/skeleton/og/run.rb +23 -0
  149. data/lib/wee/skeleton/simple/README +32 -0
  150. data/lib/wee/skeleton/simple/components/main.rb +25 -0
  151. data/lib/wee/skeleton/simple/run.rb +12 -0
  152. data/lib/wee/template.rb +28 -0
  153. data/lib/wee/utils/autoreload.rb +29 -0
  154. data/lib/wee/utils/helper.rb +9 -5
  155. data/test/test_request.rb +4 -3
  156. data/wee.gemspec +3 -1
  157. metadata +91 -22
@@ -109,13 +109,13 @@ Usage:
109
109
  <h3 class="section-bar">Methods</h3>
110
110
 
111
111
  <div class="name-list">
112
- <a href="#M000245">&lt;&lt;</a>&nbsp;&nbsp;
113
- <a href="#M000246">encode_text</a>&nbsp;&nbsp;
114
- <a href="#M000243">end_tag</a>&nbsp;&nbsp;
115
- <a href="#M000240">new</a>&nbsp;&nbsp;
116
- <a href="#M000242">single_tag</a>&nbsp;&nbsp;
117
- <a href="#M000241">start_tag</a>&nbsp;&nbsp;
118
- <a href="#M000244">text</a>&nbsp;&nbsp;
112
+ <a href="#M000275">&lt;&lt;</a>&nbsp;&nbsp;
113
+ <a href="#M000276">encode_text</a>&nbsp;&nbsp;
114
+ <a href="#M000273">end_tag</a>&nbsp;&nbsp;
115
+ <a href="#M000270">new</a>&nbsp;&nbsp;
116
+ <a href="#M000272">single_tag</a>&nbsp;&nbsp;
117
+ <a href="#M000271">start_tag</a>&nbsp;&nbsp;
118
+ <a href="#M000274">text</a>&nbsp;&nbsp;
119
119
  </div>
120
120
  </div>
121
121
 
@@ -150,19 +150,19 @@ Usage:
150
150
  <div id="methods">
151
151
  <h3 class="section-bar">Public Class methods</h3>
152
152
 
153
- <div id="method-M000240" class="method-detail">
154
- <a name="M000240"></a>
153
+ <div id="method-M000270" class="method-detail">
154
+ <a name="M000270"></a>
155
155
 
156
156
  <div class="method-heading">
157
- <a href="#M000240" class="method-signature">
157
+ <a href="#M000270" class="method-signature">
158
158
  <span class="method-name">new</span><span class="method-args">(port)</span>
159
159
  </a>
160
160
  </div>
161
161
 
162
162
  <div class="method-description">
163
163
  <p><a class="source-toggle" href="#"
164
- onclick="toggleCode('M000240-source');return false;">[Source]</a></p>
165
- <div class="method-source-code" id="M000240-source">
164
+ onclick="toggleCode('M000270-source');return false;">[Source]</a></p>
165
+ <div class="method-source-code" id="M000270-source">
166
166
  <pre>
167
167
  <span class="ruby-comment cmt"># File lib/wee/renderer/html/writer.rb, line 22</span>
168
168
  <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">initialize</span>(<span class="ruby-identifier">port</span>)
@@ -175,8 +175,8 @@ Usage:
175
175
 
176
176
  <h3 class="section-bar">Public Instance methods</h3>
177
177
 
178
- <div id="method-M000245" class="method-detail">
179
- <a name="M000245"></a>
178
+ <div id="method-M000275" class="method-detail">
179
+ <a name="M000275"></a>
180
180
 
181
181
  <div class="method-heading">
182
182
  <span class="method-name">&lt;&lt;</span><span class="method-args">(str)</span>
@@ -184,24 +184,24 @@ Usage:
184
184
 
185
185
  <div class="method-description">
186
186
  <p>
187
- Alias for <a href="HtmlWriter.html#M000244">text</a>
187
+ Alias for <a href="HtmlWriter.html#M000274">text</a>
188
188
  </p>
189
189
  </div>
190
190
  </div>
191
191
 
192
- <div id="method-M000246" class="method-detail">
193
- <a name="M000246"></a>
192
+ <div id="method-M000276" class="method-detail">
193
+ <a name="M000276"></a>
194
194
 
195
195
  <div class="method-heading">
196
- <a href="#M000246" class="method-signature">
196
+ <a href="#M000276" class="method-signature">
197
197
  <span class="method-name">encode_text</span><span class="method-args">(str)</span>
198
198
  </a>
199
199
  </div>
200
200
 
201
201
  <div class="method-description">
202
202
  <p><a class="source-toggle" href="#"
203
- onclick="toggleCode('M000246-source');return false;">[Source]</a></p>
204
- <div class="method-source-code" id="M000246-source">
203
+ onclick="toggleCode('M000276-source');return false;">[Source]</a></p>
204
+ <div class="method-source-code" id="M000276-source">
205
205
  <pre>
206
206
  <span class="ruby-comment cmt"># File lib/wee/renderer/html/writer.rb, line 75</span>
207
207
  <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">encode_text</span>(<span class="ruby-identifier">str</span>)
@@ -214,19 +214,19 @@ Alias for <a href="HtmlWriter.html#M000244">text</a>
214
214
  </div>
215
215
  </div>
216
216
 
217
- <div id="method-M000243" class="method-detail">
218
- <a name="M000243"></a>
217
+ <div id="method-M000273" class="method-detail">
218
+ <a name="M000273"></a>
219
219
 
220
220
  <div class="method-heading">
221
- <a href="#M000243" class="method-signature">
221
+ <a href="#M000273" class="method-signature">
222
222
  <span class="method-name">end_tag</span><span class="method-args">(tag)</span>
223
223
  </a>
224
224
  </div>
225
225
 
226
226
  <div class="method-description">
227
227
  <p><a class="source-toggle" href="#"
228
- onclick="toggleCode('M000243-source');return false;">[Source]</a></p>
229
- <div class="method-source-code" id="M000243-source">
228
+ onclick="toggleCode('M000273-source');return false;">[Source]</a></p>
229
+ <div class="method-source-code" id="M000273-source">
230
230
  <pre>
231
231
  <span class="ruby-comment cmt"># File lib/wee/renderer/html/writer.rb, line 62</span>
232
232
  <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">end_tag</span>(<span class="ruby-identifier">tag</span>)
@@ -239,19 +239,19 @@ Alias for <a href="HtmlWriter.html#M000244">text</a>
239
239
  </div>
240
240
  </div>
241
241
 
242
- <div id="method-M000242" class="method-detail">
243
- <a name="M000242"></a>
242
+ <div id="method-M000272" class="method-detail">
243
+ <a name="M000272"></a>
244
244
 
245
245
  <div class="method-heading">
246
- <a href="#M000242" class="method-signature">
246
+ <a href="#M000272" class="method-signature">
247
247
  <span class="method-name">single_tag</span><span class="method-args">(tag, attributes=nil)</span>
248
248
  </a>
249
249
  </div>
250
250
 
251
251
  <div class="method-description">
252
252
  <p><a class="source-toggle" href="#"
253
- onclick="toggleCode('M000242-source');return false;">[Source]</a></p>
254
- <div class="method-source-code" id="M000242-source">
253
+ onclick="toggleCode('M000272-source');return false;">[Source]</a></p>
254
+ <div class="method-source-code" id="M000272-source">
255
255
  <pre>
256
256
  <span class="ruby-comment cmt"># File lib/wee/renderer/html/writer.rb, line 44</span>
257
257
  <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">single_tag</span>(<span class="ruby-identifier">tag</span>, <span class="ruby-identifier">attributes</span>=<span class="ruby-keyword kw">nil</span>)
@@ -276,19 +276,19 @@ Alias for <a href="HtmlWriter.html#M000244">text</a>
276
276
  </div>
277
277
  </div>
278
278
 
279
- <div id="method-M000241" class="method-detail">
280
- <a name="M000241"></a>
279
+ <div id="method-M000271" class="method-detail">
280
+ <a name="M000271"></a>
281
281
 
282
282
  <div class="method-heading">
283
- <a href="#M000241" class="method-signature">
283
+ <a href="#M000271" class="method-signature">
284
284
  <span class="method-name">start_tag</span><span class="method-args">(tag, attributes=nil)</span>
285
285
  </a>
286
286
  </div>
287
287
 
288
288
  <div class="method-description">
289
289
  <p><a class="source-toggle" href="#"
290
- onclick="toggleCode('M000241-source');return false;">[Source]</a></p>
291
- <div class="method-source-code" id="M000241-source">
290
+ onclick="toggleCode('M000271-source');return false;">[Source]</a></p>
291
+ <div class="method-source-code" id="M000271-source">
292
292
  <pre>
293
293
  <span class="ruby-comment cmt"># File lib/wee/renderer/html/writer.rb, line 26</span>
294
294
  <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">start_tag</span>(<span class="ruby-identifier">tag</span>, <span class="ruby-identifier">attributes</span>=<span class="ruby-keyword kw">nil</span>)
@@ -313,19 +313,19 @@ Alias for <a href="HtmlWriter.html#M000244">text</a>
313
313
  </div>
314
314
  </div>
315
315
 
316
- <div id="method-M000244" class="method-detail">
317
- <a name="M000244"></a>
316
+ <div id="method-M000274" class="method-detail">
317
+ <a name="M000274"></a>
318
318
 
319
319
  <div class="method-heading">
320
- <a href="#M000244" class="method-signature">
320
+ <a href="#M000274" class="method-signature">
321
321
  <span class="method-name">text</span><span class="method-args">(str)</span>
322
322
  </a>
323
323
  </div>
324
324
 
325
325
  <div class="method-description">
326
326
  <p><a class="source-toggle" href="#"
327
- onclick="toggleCode('M000244-source');return false;">[Source]</a></p>
328
- <div class="method-source-code" id="M000244-source">
327
+ onclick="toggleCode('M000274-source');return false;">[Source]</a></p>
328
+ <div class="method-source-code" id="M000274-source">
329
329
  <pre>
330
330
  <span class="ruby-comment cmt"># File lib/wee/renderer/html/writer.rb, line 68</span>
331
331
  <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">text</span>(<span class="ruby-identifier">str</span>)
@@ -94,8 +94,8 @@ A serializable callback.
94
94
  <h3 class="section-bar">Methods</h3>
95
95
 
96
96
  <div class="name-list">
97
- <a href="#M000268">call</a>&nbsp;&nbsp;
98
- <a href="#M000267">new</a>&nbsp;&nbsp;
97
+ <a href="#M000313">call</a>&nbsp;&nbsp;
98
+ <a href="#M000312">new</a>&nbsp;&nbsp;
99
99
  </div>
100
100
  </div>
101
101
 
@@ -117,24 +117,24 @@ A serializable callback.
117
117
  <div id="methods">
118
118
  <h3 class="section-bar">Public Class methods</h3>
119
119
 
120
- <div id="method-M000267" class="method-detail">
121
- <a name="M000267"></a>
120
+ <div id="method-M000312" class="method-detail">
121
+ <a name="M000312"></a>
122
122
 
123
123
  <div class="method-heading">
124
- <a href="#M000267" class="method-signature">
125
- <span class="method-name">new</span><span class="method-args">(obj, method_id=:call, *additional_args)</span>
124
+ <a href="#M000312" class="method-signature">
125
+ <span class="method-name">new</span><span class="method-args">(obj, method_id=:call, *args)</span>
126
126
  </a>
127
127
  </div>
128
128
 
129
129
  <div class="method-description">
130
130
  <p><a class="source-toggle" href="#"
131
- onclick="toggleCode('M000267-source');return false;">[Source]</a></p>
132
- <div class="method-source-code" id="M000267-source">
131
+ onclick="toggleCode('M000312-source');return false;">[Source]</a></p>
132
+ <div class="method-source-code" id="M000312-source">
133
133
  <pre>
134
- <span class="ruby-comment cmt"># File lib/wee/core/callback.rb, line 101</span>
135
- <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">initialize</span>(<span class="ruby-identifier">obj</span>, <span class="ruby-identifier">method_id</span>=<span class="ruby-identifier">:call</span>, <span class="ruby-operator">*</span><span class="ruby-identifier">additional_args</span>)
134
+ <span class="ruby-comment cmt"># File lib/wee/core/callback.rb, line 107</span>
135
+ <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">initialize</span>(<span class="ruby-identifier">obj</span>, <span class="ruby-identifier">method_id</span>=<span class="ruby-identifier">:call</span>, <span class="ruby-operator">*</span><span class="ruby-identifier">args</span>)
136
136
  <span class="ruby-ivar">@obj</span>, <span class="ruby-ivar">@method_id</span> = <span class="ruby-identifier">obj</span>, <span class="ruby-identifier">method_id</span>
137
- <span class="ruby-ivar">@additional_args</span> = <span class="ruby-identifier">additional_args</span> <span class="ruby-keyword kw">unless</span> <span class="ruby-identifier">additional_args</span>.<span class="ruby-identifier">empty?</span>
137
+ <span class="ruby-ivar">@args</span> = <span class="ruby-identifier">args</span> <span class="ruby-keyword kw">unless</span> <span class="ruby-identifier">args</span>.<span class="ruby-identifier">empty?</span>
138
138
  <span class="ruby-keyword kw">end</span>
139
139
  </pre>
140
140
  </div>
@@ -143,24 +143,24 @@ A serializable callback.
143
143
 
144
144
  <h3 class="section-bar">Public Instance methods</h3>
145
145
 
146
- <div id="method-M000268" class="method-detail">
147
- <a name="M000268"></a>
146
+ <div id="method-M000313" class="method-detail">
147
+ <a name="M000313"></a>
148
148
 
149
149
  <div class="method-heading">
150
- <a href="#M000268" class="method-signature">
150
+ <a href="#M000313" class="method-signature">
151
151
  <span class="method-name">call</span><span class="method-args">(*args)</span>
152
152
  </a>
153
153
  </div>
154
154
 
155
155
  <div class="method-description">
156
156
  <p><a class="source-toggle" href="#"
157
- onclick="toggleCode('M000268-source');return false;">[Source]</a></p>
158
- <div class="method-source-code" id="M000268-source">
157
+ onclick="toggleCode('M000313-source');return false;">[Source]</a></p>
158
+ <div class="method-source-code" id="M000313-source">
159
159
  <pre>
160
- <span class="ruby-comment cmt"># File lib/wee/core/callback.rb, line 106</span>
160
+ <span class="ruby-comment cmt"># File lib/wee/core/callback.rb, line 112</span>
161
161
  <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">call</span>(<span class="ruby-operator">*</span><span class="ruby-identifier">args</span>)
162
- <span class="ruby-keyword kw">if</span> <span class="ruby-ivar">@additional_args</span>
163
- <span class="ruby-ivar">@obj</span>.<span class="ruby-identifier">send</span>(<span class="ruby-ivar">@method_id</span>, <span class="ruby-operator">*</span>(<span class="ruby-identifier">args</span><span class="ruby-operator">+</span><span class="ruby-ivar">@additional_args</span>))
162
+ <span class="ruby-keyword kw">if</span> <span class="ruby-ivar">@args</span>
163
+ <span class="ruby-ivar">@obj</span>.<span class="ruby-identifier">send</span>(<span class="ruby-ivar">@method_id</span>, <span class="ruby-operator">*</span>(<span class="ruby-ivar">@args</span><span class="ruby-operator">+</span><span class="ruby-identifier">args</span>))
164
164
  <span class="ruby-keyword kw">else</span>
165
165
  <span class="ruby-ivar">@obj</span>.<span class="ruby-identifier">send</span>(<span class="ruby-ivar">@method_id</span>, <span class="ruby-operator">*</span><span class="ruby-identifier">args</span>)
166
166
  <span class="ruby-keyword kw">end</span>
@@ -0,0 +1,181 @@
1
+ <?xml version="1.0" encoding="iso-8859-1"?>
2
+ <!DOCTYPE html
3
+ PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
4
+ "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
5
+
6
+ <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
7
+ <head>
8
+ <title>Class: Wee::Md5IdGenerator</title>
9
+ <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
10
+ <meta http-equiv="Content-Script-Type" content="text/javascript" />
11
+ <link rel="stylesheet" href="../.././rdoc-style.css" type="text/css" media="screen" />
12
+ <script type="text/javascript">
13
+ // <![CDATA[
14
+
15
+ function popupCode( url ) {
16
+ window.open(url, "Code", "resizable=yes,scrollbars=yes,toolbar=no,status=no,height=150,width=400")
17
+ }
18
+
19
+ function toggleCode( id ) {
20
+ if ( document.getElementById )
21
+ elem = document.getElementById( id );
22
+ else if ( document.all )
23
+ elem = eval( "document.all." + id );
24
+ else
25
+ return false;
26
+
27
+ elemStyle = elem.style;
28
+
29
+ if ( elemStyle.display != "block" ) {
30
+ elemStyle.display = "block"
31
+ } else {
32
+ elemStyle.display = "none"
33
+ }
34
+
35
+ return true;
36
+ }
37
+
38
+ // Make codeblocks hidden by default
39
+ document.writeln( "<style type=\"text/css\">div.method-source-code { display: none }</style>" )
40
+
41
+ // ]]>
42
+ </script>
43
+
44
+ </head>
45
+ <body>
46
+
47
+
48
+
49
+ <div id="classHeader">
50
+ <table class="header-table">
51
+ <tr class="top-aligned-row">
52
+ <td><strong>Class</strong></td>
53
+ <td class="class-name-in-header">Wee::Md5IdGenerator</td>
54
+ </tr>
55
+ <tr class="top-aligned-row">
56
+ <td><strong>In:</strong></td>
57
+ <td>
58
+ <a href="../../files/lib/wee/idgen/md5_rb.html">
59
+ lib/wee/idgen/md5.rb
60
+ </a>
61
+ <br />
62
+ </td>
63
+ </tr>
64
+
65
+ <tr class="top-aligned-row">
66
+ <td><strong>Parent:</strong></td>
67
+ <td>
68
+ <a href="../Object.html">
69
+ Object
70
+ </a>
71
+ </td>
72
+ </tr>
73
+ </table>
74
+ </div>
75
+ <!-- banner header -->
76
+
77
+ <div id="bodyContent">
78
+
79
+
80
+
81
+ <div id="contextContent">
82
+
83
+
84
+
85
+ </div>
86
+
87
+ <div id="method-list">
88
+ <h3 class="section-bar">Methods</h3>
89
+
90
+ <div class="name-list">
91
+ <a href="#M000133">new</a>&nbsp;&nbsp;
92
+ <a href="#M000134">next</a>&nbsp;&nbsp;
93
+ </div>
94
+ </div>
95
+
96
+ </div>
97
+
98
+
99
+ <!-- if includes -->
100
+
101
+ <div id="section">
102
+
103
+
104
+
105
+
106
+
107
+
108
+
109
+
110
+ <!-- if method_list -->
111
+ <div id="methods">
112
+ <h3 class="section-bar">Public Class methods</h3>
113
+
114
+ <div id="method-M000133" class="method-detail">
115
+ <a name="M000133"></a>
116
+
117
+ <div class="method-heading">
118
+ <a href="#M000133" class="method-signature">
119
+ <span class="method-name">new</span><span class="method-args">(salt='wee')</span>
120
+ </a>
121
+ </div>
122
+
123
+ <div class="method-description">
124
+ <p><a class="source-toggle" href="#"
125
+ onclick="toggleCode('M000133-source');return false;">[Source]</a></p>
126
+ <div class="method-source-code" id="M000133-source">
127
+ <pre>
128
+ <span class="ruby-comment cmt"># File lib/wee/idgen/md5.rb, line 7</span>
129
+ <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">initialize</span>(<span class="ruby-identifier">salt</span>=<span class="ruby-value str">'wee'</span>)
130
+ <span class="ruby-ivar">@salt</span> = <span class="ruby-identifier">salt</span>
131
+ <span class="ruby-keyword kw">end</span>
132
+ </pre>
133
+ </div>
134
+ </div>
135
+ </div>
136
+
137
+ <h3 class="section-bar">Public Instance methods</h3>
138
+
139
+ <div id="method-M000134" class="method-detail">
140
+ <a name="M000134"></a>
141
+
142
+ <div class="method-heading">
143
+ <a href="#M000134" class="method-signature">
144
+ <span class="method-name">next</span><span class="method-args">()</span>
145
+ </a>
146
+ </div>
147
+
148
+ <div class="method-description">
149
+ <p><a class="source-toggle" href="#"
150
+ onclick="toggleCode('M000134-source');return false;">[Source]</a></p>
151
+ <div class="method-source-code" id="M000134-source">
152
+ <pre>
153
+ <span class="ruby-comment cmt"># File lib/wee/idgen/md5.rb, line 11</span>
154
+ <span class="ruby-keyword kw">def</span> <span class="ruby-keyword kw">next</span>
155
+ <span class="ruby-identifier">now</span> = <span class="ruby-constant">Time</span>.<span class="ruby-identifier">now</span>
156
+ <span class="ruby-identifier">md5</span> = <span class="ruby-constant">Digest</span><span class="ruby-operator">::</span><span class="ruby-constant">MD5</span>.<span class="ruby-identifier">new</span>
157
+ <span class="ruby-identifier">md5</span>.<span class="ruby-identifier">update</span>(<span class="ruby-identifier">now</span>.<span class="ruby-identifier">to_s</span>)
158
+ <span class="ruby-identifier">md5</span>.<span class="ruby-identifier">update</span>(<span class="ruby-identifier">now</span>.<span class="ruby-identifier">usec</span>.<span class="ruby-identifier">to_s</span>)
159
+ <span class="ruby-identifier">md5</span>.<span class="ruby-identifier">update</span>(<span class="ruby-identifier">rand</span>(<span class="ruby-value">0</span>).<span class="ruby-identifier">to_s</span>)
160
+ <span class="ruby-identifier">md5</span>.<span class="ruby-identifier">update</span>(<span class="ruby-identifier">$$</span>.<span class="ruby-identifier">to_s</span>)
161
+ <span class="ruby-identifier">md5</span>.<span class="ruby-identifier">update</span>(<span class="ruby-ivar">@salt</span>.<span class="ruby-identifier">to_s</span>)
162
+ <span class="ruby-identifier">md5</span>.<span class="ruby-identifier">hexdigest</span>
163
+ <span class="ruby-keyword kw">end</span>
164
+ </pre>
165
+ </div>
166
+ </div>
167
+ </div>
168
+
169
+
170
+ </div>
171
+
172
+
173
+ </div>
174
+
175
+
176
+ <div id="validator-badges">
177
+ <p><small><a href="http://validator.w3.org/check/referer">[Validate]</a></small></p>
178
+ </div>
179
+
180
+ </body>
181
+ </html>
@@ -88,8 +88,8 @@
88
88
  <h3 class="section-bar">Methods</h3>
89
89
 
90
90
  <div class="name-list">
91
- <a href="#M000090">new</a>&nbsp;&nbsp;
92
- <a href="#M000091">render</a>&nbsp;&nbsp;
91
+ <a href="#M000135">new</a>&nbsp;&nbsp;
92
+ <a href="#M000136">render</a>&nbsp;&nbsp;
93
93
  </div>
94
94
  </div>
95
95
 
@@ -111,19 +111,19 @@
111
111
  <div id="methods">
112
112
  <h3 class="section-bar">Public Class methods</h3>
113
113
 
114
- <div id="method-M000090" class="method-detail">
115
- <a name="M000090"></a>
114
+ <div id="method-M000135" class="method-detail">
115
+ <a name="M000135"></a>
116
116
 
117
117
  <div class="method-heading">
118
- <a href="#M000090" class="method-signature">
118
+ <a href="#M000135" class="method-signature">
119
119
  <span class="method-name">new</span><span class="method-args">(text)</span>
120
120
  </a>
121
121
  </div>
122
122
 
123
123
  <div class="method-description">
124
124
  <p><a class="source-toggle" href="#"
125
- onclick="toggleCode('M000090-source');return false;">[Source]</a></p>
126
- <div class="method-source-code" id="M000090-source">
125
+ onclick="toggleCode('M000135-source');return false;">[Source]</a></p>
126
+ <div class="method-source-code" id="M000135-source">
127
127
  <pre>
128
128
  <span class="ruby-comment cmt"># File lib/wee/components/messagebox.rb, line 2</span>
129
129
  <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">initialize</span>(<span class="ruby-identifier">text</span>)
@@ -137,19 +137,19 @@
137
137
 
138
138
  <h3 class="section-bar">Public Instance methods</h3>
139
139
 
140
- <div id="method-M000091" class="method-detail">
141
- <a name="M000091"></a>
140
+ <div id="method-M000136" class="method-detail">
141
+ <a name="M000136"></a>
142
142
 
143
143
  <div class="method-heading">
144
- <a href="#M000091" class="method-signature">
144
+ <a href="#M000136" class="method-signature">
145
145
  <span class="method-name">render</span><span class="method-args">()</span>
146
146
  </a>
147
147
  </div>
148
148
 
149
149
  <div class="method-description">
150
150
  <p><a class="source-toggle" href="#"
151
- onclick="toggleCode('M000091-source');return false;">[Source]</a></p>
152
- <div class="method-source-code" id="M000091-source">
151
+ onclick="toggleCode('M000136-source');return false;">[Source]</a></p>
152
+ <div class="method-source-code" id="M000136-source">
153
153
  <pre>
154
154
  <span class="ruby-comment cmt"># File lib/wee/components/messagebox.rb, line 7</span>
155
155
  <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">render</span>