wee 0.4.0 → 0.5.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (146) hide show
  1. data/ChangeLog +75 -0
  2. data/README +17 -9
  3. data/Rakefile +2 -2
  4. data/TODO +20 -0
  5. data/benchmark/Makefile +14 -9
  6. data/benchmark/counter.rb +11 -30
  7. data/benchmark/report_req.rb +12 -0
  8. data/doc/rdoc/classes/Array.html +12 -12
  9. data/doc/rdoc/classes/Cache/StorageCache.html +38 -38
  10. data/doc/rdoc/classes/Cache/Strategy/CapacityBounded.html +30 -30
  11. data/doc/rdoc/classes/Cache/Strategy/LFU.html +24 -24
  12. data/doc/rdoc/classes/Cache/Strategy/LRU.html +24 -24
  13. data/doc/rdoc/classes/Cache/Strategy/Unbounded.html +24 -24
  14. data/doc/rdoc/classes/Enumerable.html +6 -6
  15. data/doc/rdoc/classes/Object.html +12 -12
  16. data/doc/rdoc/classes/OgApplication.html +126 -0
  17. data/doc/rdoc/classes/OgScaffolder.html +401 -0
  18. data/doc/rdoc/classes/OgSession.html +172 -0
  19. data/doc/rdoc/classes/String.html +12 -12
  20. data/doc/rdoc/classes/Struct.html +12 -12
  21. data/doc/rdoc/classes/Wee.html +5 -62
  22. data/doc/rdoc/classes/Wee/AnswerDecoration.html +9 -9
  23. data/doc/rdoc/classes/Wee/Application.html +107 -39
  24. data/doc/rdoc/classes/Wee/Brush.html +22 -18
  25. data/doc/rdoc/classes/Wee/Brush/ActionCallbackMixin.html +17 -11
  26. data/doc/rdoc/classes/Wee/Brush/ActionURLCallbackMixin.html +18 -10
  27. data/doc/rdoc/classes/Wee/Brush/AnchorTag.html +30 -64
  28. data/doc/rdoc/classes/Wee/Brush/FileUploadTag.html +8 -10
  29. data/doc/rdoc/classes/Wee/Brush/FormTag.html +27 -79
  30. data/doc/rdoc/classes/Wee/Brush/GenericEncodedTextBrush.html +12 -12
  31. data/doc/rdoc/classes/Wee/Brush/GenericSingleTagBrush.html +146 -0
  32. data/doc/rdoc/classes/Wee/Brush/GenericTagBrush.html +179 -65
  33. data/doc/rdoc/classes/Wee/Brush/GenericTextBrush.html +12 -12
  34. data/doc/rdoc/classes/Wee/Brush/ImageButtonTag.html +16 -18
  35. data/doc/rdoc/classes/Wee/Brush/ImageTag.html +203 -0
  36. data/doc/rdoc/classes/Wee/Brush/InputCallbackMixin.html +17 -11
  37. data/doc/rdoc/classes/Wee/Brush/InputTag.html +15 -15
  38. data/doc/rdoc/classes/Wee/Brush/JavascriptTag.html +147 -0
  39. data/doc/rdoc/classes/Wee/Brush/Page.html +17 -17
  40. data/doc/rdoc/classes/Wee/Brush/SelectListTag.html +25 -50
  41. data/doc/rdoc/classes/Wee/Brush/SelectOptionTag.html +7 -38
  42. data/doc/rdoc/classes/Wee/Brush/SubmitButtonTag.html +7 -7
  43. data/doc/rdoc/classes/Wee/Brush/TableDataTag.html +15 -16
  44. data/doc/rdoc/classes/Wee/Brush/TableHeaderTag.html +7 -7
  45. data/doc/rdoc/classes/Wee/Brush/TableRowTag.html +65 -50
  46. data/doc/rdoc/classes/Wee/Brush/TableTag.html +7 -7
  47. data/doc/rdoc/classes/Wee/Brush/TextAreaTag.html +14 -64
  48. data/doc/rdoc/classes/Wee/Brush/TextInputTag.html +7 -7
  49. data/doc/rdoc/classes/Wee/Brush/ToCallback.html +146 -0
  50. data/doc/rdoc/classes/Wee/CallbackRegistry.html +40 -40
  51. data/doc/rdoc/classes/Wee/CallbackStream.html +18 -18
  52. data/doc/rdoc/classes/Wee/Canvas.html +24 -24
  53. data/doc/rdoc/classes/Wee/Component.html +232 -149
  54. data/doc/rdoc/classes/Wee/Component/OnAnswer.html +153 -0
  55. data/doc/rdoc/classes/Wee/Decoration.html +42 -42
  56. data/doc/rdoc/classes/Wee/Delegate.html +27 -27
  57. data/doc/rdoc/classes/Wee/ErrorResponse.html +12 -12
  58. data/doc/rdoc/classes/Wee/FormDecoration.html +148 -0
  59. data/doc/rdoc/classes/Wee/GenericResponse.html +6 -6
  60. data/doc/rdoc/classes/Wee/HtmlCanvas.html +296 -215
  61. data/doc/rdoc/classes/Wee/HtmlWriter.html +83 -81
  62. data/doc/rdoc/classes/Wee/LiteralMethodCallback.html +21 -16
  63. data/doc/rdoc/classes/Wee/MessageBox.html +180 -0
  64. data/doc/rdoc/classes/Wee/PageDecoration.html +30 -30
  65. data/doc/rdoc/classes/Wee/Presenter.html +237 -69
  66. data/doc/rdoc/classes/Wee/RedirectResponse.html +6 -6
  67. data/doc/rdoc/classes/Wee/RefreshResponse.html +6 -6
  68. data/doc/rdoc/classes/Wee/Request.html +18 -18
  69. data/doc/rdoc/classes/Wee/RequestHandler.html +43 -39
  70. data/doc/rdoc/classes/Wee/Response.html +24 -24
  71. data/doc/rdoc/classes/Wee/Session.html +746 -72
  72. data/doc/rdoc/classes/Wee/SimpleIdGenerator.html +18 -18
  73. data/doc/rdoc/classes/Wee/Snapshot.html +19 -19
  74. data/doc/rdoc/classes/Wee/Utils.html +138 -2
  75. data/doc/rdoc/classes/Wee/Utils/LRUCache.html +7 -7
  76. data/doc/rdoc/classes/Wee/ValueHolder.html +18 -18
  77. data/doc/rdoc/classes/Wee/WEBrickAdaptor.html +43 -68
  78. data/doc/rdoc/classes/Wee/WrapperDecoration.html +150 -0
  79. data/doc/rdoc/created.rid +1 -1
  80. data/doc/rdoc/files/README.html +29 -15
  81. data/doc/rdoc/files/lib/wee/adaptors/webrick_rb.html +1 -1
  82. data/doc/rdoc/files/lib/wee/application_rb.html +1 -1
  83. data/doc/rdoc/files/lib/wee/components/form_decoration_rb.html +101 -0
  84. data/doc/rdoc/files/lib/wee/components/messagebox_rb.html +101 -0
  85. data/doc/rdoc/files/lib/wee/components/page_decoration_rb.html +1 -1
  86. data/doc/rdoc/files/lib/wee/components/wrapper_decoration_rb.html +101 -0
  87. data/doc/rdoc/files/lib/wee/components_rb.html +4 -1
  88. data/doc/rdoc/files/lib/wee/continuation/core/component_rb.html +101 -0
  89. data/doc/rdoc/files/lib/wee/continuation/session_rb.html +110 -0
  90. data/doc/rdoc/files/lib/wee/continuation_rb.html +116 -0
  91. data/doc/rdoc/files/lib/wee/core/callback_rb.html +1 -1
  92. data/doc/rdoc/files/lib/wee/core/component_rb.html +1 -1
  93. data/doc/rdoc/files/lib/wee/core/presenter_rb.html +1 -1
  94. data/doc/rdoc/files/lib/wee/core_rb.html +3 -3
  95. data/doc/rdoc/files/lib/wee/databases/og_rb.html +108 -0
  96. data/doc/rdoc/files/lib/wee/renderer/html/brushes_rb.html +1 -1
  97. data/doc/rdoc/files/lib/wee/renderer/html/canvas_rb.html +1 -1
  98. data/doc/rdoc/files/lib/wee/renderer/html/writer_rb.html +1 -1
  99. data/doc/rdoc/files/lib/wee/requesthandler_rb.html +1 -1
  100. data/doc/rdoc/files/lib/wee/session_rb.html +1 -2
  101. data/doc/rdoc/files/lib/wee/utils/autoreload_rb.html +1 -1
  102. data/doc/rdoc/files/lib/wee/utils/cache_rb.html +1 -1
  103. data/doc/rdoc/files/lib/wee/utils/helper_rb.html +1 -8
  104. data/doc/rdoc/files/lib/wee/utils_rb.html +110 -0
  105. data/doc/rdoc/files/lib/wee_rb.html +1 -1
  106. data/doc/rdoc/fr_class_index.html +11 -1
  107. data/doc/rdoc/fr_file_index.html +8 -0
  108. data/doc/rdoc/fr_method_index.html +269 -228
  109. data/examples/calculator.rb +69 -0
  110. data/examples/calendar.rb +5 -17
  111. data/examples/example.rb +2 -2
  112. data/examples/hw.rb +17 -0
  113. data/examples/live-update.rb +45 -0
  114. data/examples/og-test.rb +51 -0
  115. data/lib/wee.rb +1 -1
  116. data/lib/wee/adaptors/webrick.rb +2 -0
  117. data/lib/wee/application.rb +16 -0
  118. data/lib/wee/components.rb +3 -0
  119. data/lib/wee/components/form_decoration.rb +7 -0
  120. data/{test → lib/wee}/components/messagebox.rb +1 -1
  121. data/lib/wee/components/page_decoration.rb +5 -5
  122. data/lib/wee/components/wrapper_decoration.rb +7 -0
  123. data/lib/wee/continuation.rb +5 -0
  124. data/lib/wee/continuation/core/component.rb +55 -0
  125. data/lib/wee/continuation/session.rb +217 -0
  126. data/lib/wee/core/callback.rb +11 -6
  127. data/lib/wee/core/component.rb +45 -33
  128. data/lib/wee/core/presenter.rb +68 -0
  129. data/lib/wee/databases/og.rb +114 -0
  130. data/lib/wee/renderer/html/brushes.rb +179 -98
  131. data/lib/wee/renderer/html/canvas.rb +37 -13
  132. data/lib/wee/renderer/html/writer.rb +34 -32
  133. data/lib/wee/requesthandler.rb +6 -3
  134. data/lib/wee/session.rb +73 -54
  135. data/lib/wee/utils.rb +5 -0
  136. data/lib/wee/utils/autoreload.rb +1 -1
  137. data/lib/wee/utils/cache.rb +0 -2
  138. data/lib/wee/utils/helper.rb +40 -8
  139. data/test/components/calltest-cont.rb +16 -0
  140. data/test/components/calltest.rb +15 -10
  141. data/test/stress.rb +31 -28
  142. data/test/stress_and_measure.rb +53 -0
  143. data/test/stressed_application.rb +15 -0
  144. data/test/test_html_writer.rb +9 -4
  145. metadata +236 -195
  146. data/benchmark/bench.sh +0 -24
@@ -0,0 +1,172 @@
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: OgSession</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">OgSession</td>
54
+ </tr>
55
+ <tr class="top-aligned-row">
56
+ <td><strong>In:</strong></td>
57
+ <td>
58
+ <a href="../files/lib/wee/databases/og_rb.html">
59
+ lib/wee/databases/og.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="Wee/Session.html">
69
+ Wee::Session
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="#M000001">awake</a>&nbsp;&nbsp;
92
+ <a href="#M000002">sleep</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 Instance methods</h3>
113
+
114
+ <div id="method-M000001" class="method-detail">
115
+ <a name="M000001"></a>
116
+
117
+ <div class="method-heading">
118
+ <a href="#M000001" class="method-signature">
119
+ <span class="method-name">awake</span><span class="method-args">()</span>
120
+ </a>
121
+ </div>
122
+
123
+ <div class="method-description">
124
+ <p><a class="source-toggle" href="#"
125
+ onclick="toggleCode('M000001-source');return false;">[Source]</a></p>
126
+ <div class="method-source-code" id="M000001-source">
127
+ <pre>
128
+ <span class="ruby-comment cmt"># File lib/wee/databases/og.rb, line 8</span>
129
+ <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">awake</span>
130
+ <span class="ruby-identifier">application</span>.<span class="ruby-identifier">db</span>.<span class="ruby-identifier">get_connection</span>
131
+ <span class="ruby-keyword kw">end</span>
132
+ </pre>
133
+ </div>
134
+ </div>
135
+ </div>
136
+
137
+ <div id="method-M000002" class="method-detail">
138
+ <a name="M000002"></a>
139
+
140
+ <div class="method-heading">
141
+ <a href="#M000002" class="method-signature">
142
+ <span class="method-name">sleep</span><span class="method-args">()</span>
143
+ </a>
144
+ </div>
145
+
146
+ <div class="method-description">
147
+ <p><a class="source-toggle" href="#"
148
+ onclick="toggleCode('M000002-source');return false;">[Source]</a></p>
149
+ <div class="method-source-code" id="M000002-source">
150
+ <pre>
151
+ <span class="ruby-comment cmt"># File lib/wee/databases/og.rb, line 12</span>
152
+ <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">sleep</span>
153
+ <span class="ruby-identifier">application</span>.<span class="ruby-identifier">db</span>.<span class="ruby-identifier">put_connection</span>
154
+ <span class="ruby-keyword kw">end</span>
155
+ </pre>
156
+ </div>
157
+ </div>
158
+ </div>
159
+
160
+
161
+ </div>
162
+
163
+
164
+ </div>
165
+
166
+
167
+ <div id="validator-badges">
168
+ <p><small><a href="http://validator.w3.org/check/referer">[Validate]</a></small></p>
169
+ </div>
170
+
171
+ </body>
172
+ </html>
@@ -88,8 +88,8 @@
88
88
  <h3 class="section-bar">Methods</h3>
89
89
 
90
90
  <div class="name-list">
91
- <a href="#M000032">restore_snapshot</a>&nbsp;&nbsp;
92
- <a href="#M000031">take_snapshot</a>&nbsp;&nbsp;
91
+ <a href="#M000043">restore_snapshot</a>&nbsp;&nbsp;
92
+ <a href="#M000042">take_snapshot</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 Instance methods</h3>
113
113
 
114
- <div id="method-M000032" class="method-detail">
115
- <a name="M000032"></a>
114
+ <div id="method-M000043" class="method-detail">
115
+ <a name="M000043"></a>
116
116
 
117
117
  <div class="method-heading">
118
- <a href="#M000032" class="method-signature">
118
+ <a href="#M000043" class="method-signature">
119
119
  <span class="method-name">restore_snapshot</span><span class="method-args">(snap)</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('M000032-source');return false;">[Source]</a></p>
126
- <div class="method-source-code" id="M000032-source">
125
+ onclick="toggleCode('M000043-source');return false;">[Source]</a></p>
126
+ <div class="method-source-code" id="M000043-source">
127
127
  <pre>
128
128
  <span class="ruby-comment cmt"># File lib/wee/snapshot_ext.rb, line 32</span>
129
129
  <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">restore_snapshot</span>(<span class="ruby-identifier">snap</span>)
@@ -134,19 +134,19 @@
134
134
  </div>
135
135
  </div>
136
136
 
137
- <div id="method-M000031" class="method-detail">
138
- <a name="M000031"></a>
137
+ <div id="method-M000042" class="method-detail">
138
+ <a name="M000042"></a>
139
139
 
140
140
  <div class="method-heading">
141
- <a href="#M000031" class="method-signature">
141
+ <a href="#M000042" class="method-signature">
142
142
  <span class="method-name">take_snapshot</span><span class="method-args">()</span>
143
143
  </a>
144
144
  </div>
145
145
 
146
146
  <div class="method-description">
147
147
  <p><a class="source-toggle" href="#"
148
- onclick="toggleCode('M000031-source');return false;">[Source]</a></p>
149
- <div class="method-source-code" id="M000031-source">
148
+ onclick="toggleCode('M000042-source');return false;">[Source]</a></p>
149
+ <div class="method-source-code" id="M000042-source">
150
150
  <pre>
151
151
  <span class="ruby-comment cmt"># File lib/wee/snapshot_ext.rb, line 28</span>
152
152
  <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">take_snapshot</span>
@@ -88,8 +88,8 @@
88
88
  <h3 class="section-bar">Methods</h3>
89
89
 
90
90
  <div class="name-list">
91
- <a href="#M000002">restore_snapshot</a>&nbsp;&nbsp;
92
- <a href="#M000001">take_snapshot</a>&nbsp;&nbsp;
91
+ <a href="#M000004">restore_snapshot</a>&nbsp;&nbsp;
92
+ <a href="#M000003">take_snapshot</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 Instance methods</h3>
113
113
 
114
- <div id="method-M000002" class="method-detail">
115
- <a name="M000002"></a>
114
+ <div id="method-M000004" class="method-detail">
115
+ <a name="M000004"></a>
116
116
 
117
117
  <div class="method-heading">
118
- <a href="#M000002" class="method-signature">
118
+ <a href="#M000004" class="method-signature">
119
119
  <span class="method-name">restore_snapshot</span><span class="method-args">(snap)</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('M000002-source');return false;">[Source]</a></p>
126
- <div class="method-source-code" id="M000002-source">
125
+ onclick="toggleCode('M000004-source');return false;">[Source]</a></p>
126
+ <div class="method-source-code" id="M000004-source">
127
127
  <pre>
128
128
  <span class="ruby-comment cmt"># File lib/wee/snapshot_ext.rb, line 44</span>
129
129
  <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">restore_snapshot</span>(<span class="ruby-identifier">snap</span>)
@@ -134,19 +134,19 @@
134
134
  </div>
135
135
  </div>
136
136
 
137
- <div id="method-M000001" class="method-detail">
138
- <a name="M000001"></a>
137
+ <div id="method-M000003" class="method-detail">
138
+ <a name="M000003"></a>
139
139
 
140
140
  <div class="method-heading">
141
- <a href="#M000001" class="method-signature">
141
+ <a href="#M000003" class="method-signature">
142
142
  <span class="method-name">take_snapshot</span><span class="method-args">()</span>
143
143
  </a>
144
144
  </div>
145
145
 
146
146
  <div class="method-description">
147
147
  <p><a class="source-toggle" href="#"
148
- onclick="toggleCode('M000001-source');return false;">[Source]</a></p>
149
- <div class="method-source-code" id="M000001-source">
148
+ onclick="toggleCode('M000003-source');return false;">[Source]</a></p>
149
+ <div class="method-source-code" id="M000003-source">
150
150
  <pre>
151
151
  <span class="ruby-comment cmt"># File lib/wee/snapshot_ext.rb, line 38</span>
152
152
  <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">take_snapshot</span>
@@ -58,10 +58,6 @@
58
58
  <a href="../files/lib/wee_rb.html">
59
59
  lib/wee.rb
60
60
  </a>
61
- <br />
62
- <a href="../files/lib/wee/utils/autoreload_rb.html">
63
- lib/wee/utils/autoreload.rb
64
- </a>
65
61
  <br />
66
62
  <a href="../files/lib/wee/renderer/html/canvas_rb.html">
67
63
  lib/wee/renderer/html/canvas.rb
@@ -88,13 +84,6 @@
88
84
 
89
85
  </div>
90
86
 
91
- <div id="method-list">
92
- <h3 class="section-bar">Methods</h3>
93
-
94
- <div class="name-list">
95
- <a href="#M000033">autoreload</a>&nbsp;&nbsp;
96
- </div>
97
- </div>
98
87
 
99
88
  </div>
100
89
 
@@ -106,8 +95,7 @@
106
95
  <div id="class-list">
107
96
  <h3 class="section-bar">Classes and Modules</h3>
108
97
 
109
- Module <a href="Wee/Helper.html" class="link">Wee::Helper</a><br />
110
- Module <a href="Wee/Utils.html" class="link">Wee::Utils</a><br />
98
+ Module <a href="Wee/Utils.html" class="link">Wee::Utils</a><br />
111
99
  Class <a href="Wee/AnswerDecoration.html" class="link">Wee::AnswerDecoration</a><br />
112
100
  Class <a href="Wee/Application.html" class="link">Wee::Application</a><br />
113
101
  Class <a href="Wee/Brush.html" class="link">Wee::Brush</a><br />
@@ -119,10 +107,12 @@ Class <a href="Wee/Context.html" class="link">Wee::Context</a><br />
119
107
  Class <a href="Wee/Decoration.html" class="link">Wee::Decoration</a><br />
120
108
  Class <a href="Wee/Delegate.html" class="link">Wee::Delegate</a><br />
121
109
  Class <a href="Wee/ErrorResponse.html" class="link">Wee::ErrorResponse</a><br />
110
+ Class <a href="Wee/FormDecoration.html" class="link">Wee::FormDecoration</a><br />
122
111
  Class <a href="Wee/GenericResponse.html" class="link">Wee::GenericResponse</a><br />
123
112
  Class <a href="Wee/HtmlCanvas.html" class="link">Wee::HtmlCanvas</a><br />
124
113
  Class <a href="Wee/HtmlWriter.html" class="link">Wee::HtmlWriter</a><br />
125
114
  Class <a href="Wee/LiteralMethodCallback.html" class="link">Wee::LiteralMethodCallback</a><br />
115
+ Class <a href="Wee/MessageBox.html" class="link">Wee::MessageBox</a><br />
126
116
  Class <a href="Wee/Page.html" class="link">Wee::Page</a><br />
127
117
  Class <a href="Wee/PageDecoration.html" class="link">Wee::PageDecoration</a><br />
128
118
  Class <a href="Wee/Presenter.html" class="link">Wee::Presenter</a><br />
@@ -137,6 +127,7 @@ Class <a href="Wee/SimpleIdGenerator.html" class="link">Wee::SimpleIdGenerator</
137
127
  Class <a href="Wee/Snapshot.html" class="link">Wee::Snapshot</a><br />
138
128
  Class <a href="Wee/ValueHolder.html" class="link">Wee::ValueHolder</a><br />
139
129
  Class <a href="Wee/WEBrickAdaptor.html" class="link">Wee::WEBrickAdaptor</a><br />
130
+ Class <a href="Wee/WrapperDecoration.html" class="link">Wee::WrapperDecoration</a><br />
140
131
 
141
132
  </div>
142
133
 
@@ -148,7 +139,7 @@ Class <a href="Wee/WEBrickAdaptor.html" class="link">Wee::WEBrickAdaptor</a><br
148
139
  <tr class="top-aligned-row context-row">
149
140
  <td class="context-item-name">Version</td>
150
141
  <td>=</td>
151
- <td class="context-item-value">&quot;0.4.0&quot;</td>
142
+ <td class="context-item-value">&quot;0.5.0&quot;</td>
152
143
  </tr>
153
144
  </table>
154
145
  </div>
@@ -160,54 +151,6 @@ Class <a href="Wee/WEBrickAdaptor.html" class="link">Wee::WEBrickAdaptor</a><br
160
151
 
161
152
 
162
153
  <!-- if method_list -->
163
- <div id="methods">
164
- <h3 class="section-bar">Public Instance methods</h3>
165
-
166
- <div id="method-M000033" class="method-detail">
167
- <a name="M000033"></a>
168
-
169
- <div class="method-heading">
170
- <a href="#M000033" class="method-signature">
171
- <span class="method-name">autoreload</span><span class="method-args">(check_interval=10)</span>
172
- </a>
173
- </div>
174
-
175
- <div class="method-description">
176
- <p><a class="source-toggle" href="#"
177
- onclick="toggleCode('M000033-source');return false;">[Source]</a></p>
178
- <div class="method-source-code" id="M000033-source">
179
- <pre>
180
- <span class="ruby-comment cmt"># File lib/wee/utils/autoreload.rb, line 4</span>
181
- <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">autoreload</span>(<span class="ruby-identifier">check_interval</span>=<span class="ruby-value">10</span>)
182
- <span class="ruby-constant">Thread</span>.<span class="ruby-identifier">new</span>(<span class="ruby-constant">Time</span>.<span class="ruby-identifier">now</span>) {<span class="ruby-operator">|</span><span class="ruby-identifier">start_time</span><span class="ruby-operator">|</span>
183
- <span class="ruby-identifier">file_mtime</span> = {}
184
- <span class="ruby-identifier">loop</span> <span class="ruby-keyword kw">do</span>
185
- <span class="ruby-identifier">sleep</span> <span class="ruby-identifier">check_interval</span>
186
- <span class="ruby-identifier">$LOADED_FEATURES</span>.<span class="ruby-identifier">each</span> <span class="ruby-keyword kw">do</span> <span class="ruby-operator">|</span><span class="ruby-identifier">feature</span><span class="ruby-operator">|</span>
187
- <span class="ruby-identifier">$LOAD_PATH</span>.<span class="ruby-identifier">each</span> <span class="ruby-keyword kw">do</span> <span class="ruby-operator">|</span><span class="ruby-identifier">lp</span><span class="ruby-operator">|</span>
188
- <span class="ruby-identifier">file</span> = <span class="ruby-constant">File</span>.<span class="ruby-identifier">join</span>(<span class="ruby-identifier">lp</span>, <span class="ruby-identifier">feature</span>)
189
- <span class="ruby-keyword kw">if</span> (<span class="ruby-constant">File</span>.<span class="ruby-identifier">exists?</span>(<span class="ruby-identifier">file</span>) <span class="ruby-keyword kw">and</span>
190
- <span class="ruby-constant">File</span>.<span class="ruby-identifier">stat</span>(<span class="ruby-identifier">file</span>).<span class="ruby-identifier">mtime</span> <span class="ruby-operator">&gt;</span> (<span class="ruby-identifier">file_mtime</span>[<span class="ruby-identifier">file</span>] <span class="ruby-operator">||</span> <span class="ruby-identifier">start_time</span>))
191
- <span class="ruby-identifier">file_mtime</span>[<span class="ruby-identifier">file</span>] = <span class="ruby-constant">File</span>.<span class="ruby-identifier">stat</span>(<span class="ruby-identifier">file</span>).<span class="ruby-identifier">mtime</span>
192
- <span class="ruby-constant">STDERR</span>.<span class="ruby-identifier">puts</span> <span class="ruby-node">&quot;reload #{ file }&quot;</span>
193
- <span class="ruby-keyword kw">begin</span>
194
- <span class="ruby-identifier">load</span>(<span class="ruby-identifier">file</span>)
195
- <span class="ruby-keyword kw">rescue</span> <span class="ruby-constant">Exception</span> =<span class="ruby-operator">&gt;</span> <span class="ruby-identifier">e</span>
196
- <span class="ruby-constant">STDERR</span>.<span class="ruby-identifier">puts</span> <span class="ruby-identifier">e</span>.<span class="ruby-identifier">inspect</span>
197
- <span class="ruby-keyword kw">end</span>
198
- <span class="ruby-keyword kw">end</span>
199
- <span class="ruby-keyword kw">end</span>
200
- <span class="ruby-keyword kw">end</span>
201
- <span class="ruby-keyword kw">end</span>
202
- }
203
- <span class="ruby-keyword kw">end</span>
204
- </pre>
205
- </div>
206
- </div>
207
- </div>
208
-
209
-
210
- </div>
211
154
 
212
155
 
213
156
  </div>
@@ -84,9 +84,9 @@
84
84
  <p>
85
85
  A <a href="AnswerDecoration.html">Wee::AnswerDecoration</a> is wrapped
86
86
  around a component that will call <a
87
- href="Component.html#M000188">Component#answer</a>. This makes it possible
87
+ href="Component.html#M000224">Component#answer</a>. This makes it possible
88
88
  to use such components without the need to call them (<a
89
- href="Component.html#M000187">Component#call</a>), e.g. as child components
89
+ href="Component.html#M000223">Component#call</a>), e.g. as child components
90
90
  of other components.
91
91
  </p>
92
92
 
@@ -99,7 +99,7 @@ of other components.
99
99
  <h3 class="section-bar">Methods</h3>
100
100
 
101
101
  <div class="name-list">
102
- <a href="#M000044">process_callbacks</a>&nbsp;&nbsp;
102
+ <a href="#M000057">process_callbacks</a>&nbsp;&nbsp;
103
103
  </div>
104
104
  </div>
105
105
 
@@ -125,7 +125,7 @@ of other components.
125
125
  <td class="context-item-desc">
126
126
  When a component answers, <tt>on_answer.call(args)</tt> will be executed
127
127
  (unless nil), where <tt>args</tt> are the arguments passed to <a
128
- href="Component.html#M000188">Component#answer</a>. Note that no snapshot
128
+ href="Component.html#M000224">Component#answer</a>. Note that no snapshot
129
129
  of on_answer is taken, so you should avoid modifying it!
130
130
 
131
131
  </td>
@@ -140,19 +140,19 @@ of on_answer is taken, so you should avoid modifying it!
140
140
  <div id="methods">
141
141
  <h3 class="section-bar">Public Instance methods</h3>
142
142
 
143
- <div id="method-M000044" class="method-detail">
144
- <a name="M000044"></a>
143
+ <div id="method-M000057" class="method-detail">
144
+ <a name="M000057"></a>
145
145
 
146
146
  <div class="method-heading">
147
- <a href="#M000044" class="method-signature">
147
+ <a href="#M000057" class="method-signature">
148
148
  <span class="method-name">process_callbacks</span><span class="method-args">(callback_stream)</span>
149
149
  </a>
150
150
  </div>
151
151
 
152
152
  <div class="method-description">
153
153
  <p><a class="source-toggle" href="#"
154
- onclick="toggleCode('M000044-source');return false;">[Source]</a></p>
155
- <div class="method-source-code" id="M000044-source">
154
+ onclick="toggleCode('M000057-source');return false;">[Source]</a></p>
155
+ <div class="method-source-code" id="M000057-source">
156
156
  <pre>
157
157
  <span class="ruby-comment cmt"># File lib/wee/core/decoration.rb, line 131</span>
158
158
  <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">process_callbacks</span>(<span class="ruby-identifier">callback_stream</span>)