wee 0.10.0 → 2.0.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 (369) hide show
  1. data/README.rdoc +127 -0
  2. data/Rakefile +11 -32
  3. data/doc/rdoc/classes/Array.html +28 -24
  4. data/doc/rdoc/classes/Hash.html +28 -24
  5. data/doc/rdoc/classes/Object.html +37 -84
  6. data/doc/rdoc/classes/String.html +89 -21
  7. data/doc/rdoc/classes/Struct.html +32 -82
  8. data/doc/rdoc/classes/Wee.html +285 -86
  9. data/doc/rdoc/classes/Wee/AnswerDecoration.html +111 -48
  10. data/doc/rdoc/classes/Wee/{Context.html → AnswerDecoration/Answer.html} +61 -51
  11. data/doc/rdoc/classes/Wee/Application.html +161 -322
  12. data/doc/rdoc/classes/Wee/Application/SessionCache.html +162 -0
  13. data/doc/rdoc/classes/Wee/Brush.html +147 -62
  14. data/doc/rdoc/classes/{Enumerable.html → Wee/Brush/ActionInputTag.html} +68 -41
  15. data/doc/rdoc/classes/Wee/Brush/AnchorTag.html +150 -100
  16. data/doc/rdoc/classes/Wee/Brush/CheckboxTag.html +132 -46
  17. data/doc/rdoc/classes/Wee/Brush/FileUploadTag.html +63 -41
  18. data/doc/rdoc/classes/Wee/Brush/FormTag.html +184 -78
  19. data/doc/rdoc/classes/Wee/Brush/GenericEncodedTextBrush.html +48 -65
  20. data/doc/rdoc/classes/Wee/Brush/GenericSingleTagBrush.html +83 -37
  21. data/doc/rdoc/classes/Wee/Brush/GenericTagBrush.html +334 -310
  22. data/doc/rdoc/classes/Wee/Brush/GenericTextBrush.html +74 -54
  23. data/doc/rdoc/classes/Wee/Brush/HiddenInputTag.html +58 -43
  24. data/doc/rdoc/classes/Wee/Brush/ImageButtonTag.html +64 -74
  25. data/doc/rdoc/classes/Wee/Brush/ImageTag.html +109 -86
  26. data/doc/rdoc/classes/Wee/Brush/InputTag.html +205 -45
  27. data/doc/rdoc/classes/Wee/Brush/JavascriptTag.html +96 -34
  28. data/doc/rdoc/classes/Wee/Brush/Page.html +129 -67
  29. data/doc/rdoc/classes/Wee/{Utils/LRUCache.html → Brush/PasswordInputTag.html} +65 -38
  30. data/doc/rdoc/classes/Wee/Brush/RadioButtonTag.html +132 -78
  31. data/doc/rdoc/classes/Wee/Brush/{RadioButtonTag/RadioGroup.html → RadioGroup.html} +91 -53
  32. data/doc/rdoc/classes/Wee/Brush/SelectListTag.html +301 -127
  33. data/doc/rdoc/classes/Wee/Brush/SelectOptionTag.html +96 -33
  34. data/doc/rdoc/classes/Wee/Brush/SubmitButtonTag.html +59 -44
  35. data/doc/rdoc/classes/Wee/Brush/TableDataTag.html +94 -57
  36. data/doc/rdoc/classes/Wee/Brush/TableHeaderTag.html +96 -33
  37. data/doc/rdoc/classes/Wee/Brush/TableRowTag.html +181 -121
  38. data/doc/rdoc/classes/Wee/Brush/TableTag.html +94 -32
  39. data/doc/rdoc/classes/Wee/Brush/TextAreaTag.html +257 -71
  40. data/doc/rdoc/classes/Wee/Brush/TextInputTag.html +58 -43
  41. data/doc/rdoc/classes/Wee/CallAnswerMixin.html +289 -0
  42. data/doc/rdoc/classes/Wee/CallbackMixin.html +233 -0
  43. data/doc/rdoc/classes/Wee/CallbackRegistry.html +179 -155
  44. data/doc/rdoc/classes/Wee/Callbacks.html +262 -0
  45. data/doc/rdoc/classes/Wee/Component.html +228 -779
  46. data/doc/rdoc/classes/Wee/Decoration.html +144 -159
  47. data/doc/rdoc/classes/Wee/DecorationMixin.html +340 -0
  48. data/doc/rdoc/classes/Wee/Delegate.html +119 -76
  49. data/doc/rdoc/classes/Wee/DupReplaceSnapshotMixin.html +64 -47
  50. data/doc/rdoc/classes/Wee/ErrorResponse.html +59 -62
  51. data/doc/rdoc/classes/Wee/FormDecoration.html +51 -37
  52. data/doc/rdoc/classes/Wee/GenericResponse.html +60 -35
  53. data/doc/rdoc/classes/Wee/HtmlCanvas.html +1000 -602
  54. data/doc/rdoc/classes/Wee/HtmlDocument.html +288 -0
  55. data/doc/rdoc/classes/Wee/HtmlWriter.html +227 -126
  56. data/doc/rdoc/classes/Wee/IdGenerator.html +60 -31
  57. data/doc/rdoc/classes/Wee/IdGenerator/Secure.html +282 -0
  58. data/doc/rdoc/classes/Wee/{SimpleIdGenerator.html → IdGenerator/Sequential.html} +76 -49
  59. data/doc/rdoc/classes/Wee/JQuery.html +221 -0
  60. data/doc/rdoc/classes/Wee/LRUCache.html +514 -0
  61. data/doc/rdoc/classes/Wee/LRUCache/Item.html +158 -0
  62. data/doc/rdoc/classes/Wee/ObjectSnapshotMixin.html +187 -0
  63. data/doc/rdoc/classes/Wee/PageDecoration.html +88 -59
  64. data/doc/rdoc/classes/Wee/Presenter.html +124 -704
  65. data/doc/rdoc/classes/Wee/RedirectResponse.html +64 -33
  66. data/doc/rdoc/classes/Wee/RefreshResponse.html +59 -44
  67. data/doc/rdoc/classes/Wee/Renderer.html +234 -54
  68. data/doc/rdoc/classes/Wee/Request.html +151 -286
  69. data/doc/rdoc/classes/Wee/Response.html +29 -212
  70. data/doc/rdoc/classes/Wee/Session.html +585 -360
  71. data/doc/rdoc/classes/Wee/{StateHolder.html → Session/AbortCallbackProcessing.html} +67 -40
  72. data/doc/rdoc/classes/Wee/Session/MutexSerializer.html +166 -0
  73. data/doc/rdoc/classes/{Cache/Strategy/LFU/Item.html → Wee/Session/Page.html} +26 -27
  74. data/doc/rdoc/classes/Wee/Session/ThreadSerializer.html +219 -0
  75. data/doc/rdoc/classes/Wee/State.html +307 -0
  76. data/doc/rdoc/classes/{Cache/Strategy/LRU/Item.html → Wee/State/Snapshot.html} +26 -27
  77. data/doc/rdoc/classes/{Cache/Strategy/Unbounded/Item.html → Wee/State/SnapshotIVars.html} +26 -27
  78. data/doc/rdoc/classes/Wee/StructSnapshotMixin.html +183 -0
  79. data/doc/rdoc/classes/Wee/WrapperDecoration.html +101 -35
  80. data/doc/rdoc/created.rid +1 -1
  81. data/doc/rdoc/files/README_rdoc.html +243 -0
  82. data/doc/rdoc/files/lib/wee/application_rb.html +22 -30
  83. data/doc/rdoc/files/lib/wee/{page_rb.html → call_answer_rb.html} +14 -25
  84. data/doc/rdoc/files/lib/wee/callback_rb.html +12 -29
  85. data/doc/rdoc/files/lib/wee/component_rb.html +22 -27
  86. data/doc/rdoc/files/lib/wee/decoration_rb.html +19 -20
  87. data/doc/rdoc/files/lib/wee/{idgen_rb.html → html_brushes_rb.html} +14 -25
  88. data/doc/rdoc/files/lib/wee/html_canvas_rb.html +15 -23
  89. data/doc/rdoc/files/lib/wee/{abstractsession_rb.html → html_document_rb.html} +17 -25
  90. data/doc/rdoc/files/lib/wee/html_writer_rb.html +15 -23
  91. data/doc/rdoc/files/lib/wee/{webrick_rb.html → id_generator_rb.html} +19 -25
  92. data/doc/rdoc/files/lib/wee/{core/page_rb.html → jquery/jquery_rb.html} +14 -25
  93. data/doc/rdoc/files/lib/wee/{state_registry_rb.html → jquery_rb.html} +17 -27
  94. data/doc/rdoc/files/lib/{cache/cache_rb.html → wee/lru_cache_rb.html} +14 -25
  95. data/doc/rdoc/files/lib/wee/presenter_rb.html +12 -34
  96. data/doc/rdoc/files/lib/wee/{holder_rb.html → renderer_rb.html} +14 -25
  97. data/doc/rdoc/files/lib/wee/request_rb.html +18 -32
  98. data/doc/rdoc/files/lib/wee/response_rb.html +17 -24
  99. data/doc/rdoc/files/lib/wee/session_rb.html +21 -23
  100. data/doc/rdoc/files/lib/wee/state_rb.html +90 -0
  101. data/doc/rdoc/files/lib/wee_rb.html +48 -40
  102. data/doc/rdoc/fr_class_index.html +111 -75
  103. data/doc/rdoc/fr_file_index.html +46 -76
  104. data/doc/rdoc/fr_method_index.html +473 -480
  105. data/doc/rdoc/index.html +6 -9
  106. data/doc/rdoc/rdoc-style.css +210 -119
  107. data/examples/ObjectSpaceBrowser.rb +33 -23
  108. data/examples/ajax.rb +71 -0
  109. data/examples/continuations.rb +28 -0
  110. data/examples/demo.rb +92 -36
  111. data/examples/demo/calculator.rb +63 -0
  112. data/examples/demo/calendar.rb +42 -55
  113. data/examples/demo/counter.rb +38 -0
  114. data/{lib/wee/examples → examples/demo}/editable_counter.rb +11 -6
  115. data/examples/demo/example.rb +28 -24
  116. data/examples/demo/file_upload.rb +19 -0
  117. data/{lib/wee/components → examples/demo}/messagebox.rb +3 -3
  118. data/examples/demo/radio.rb +33 -0
  119. data/{lib/wee/examples → examples/demo}/window.rb +15 -10
  120. data/examples/hw.rb +3 -4
  121. data/{lib/wee/components → examples}/pager.rb +14 -14
  122. data/lib/wee.rb +48 -25
  123. data/lib/wee/application.rb +69 -131
  124. data/lib/wee/call_answer.rb +118 -0
  125. data/lib/wee/callback.rb +88 -0
  126. data/lib/wee/component.rb +141 -0
  127. data/lib/wee/decoration.rb +242 -0
  128. data/lib/wee/html_brushes.rb +725 -0
  129. data/lib/wee/html_canvas.rb +241 -0
  130. data/lib/wee/html_document.rb +45 -0
  131. data/lib/wee/html_writer.rb +71 -0
  132. data/lib/wee/id_generator.rb +70 -0
  133. data/lib/wee/jquery.rb +1 -0
  134. data/lib/wee/jquery/jquery.rb +17 -0
  135. data/lib/wee/jquery/public/jquery-1.3.2.min.js +19 -0
  136. data/lib/wee/jquery/public/wee-jquery.js +19 -0
  137. data/lib/wee/lru_cache.rb +89 -0
  138. data/lib/wee/presenter.rb +43 -0
  139. data/lib/wee/renderer.rb +65 -0
  140. data/lib/wee/request.rb +37 -113
  141. data/lib/wee/response.rb +43 -70
  142. data/lib/wee/session.rb +304 -113
  143. data/lib/wee/state.rb +85 -0
  144. data/test/component_spec.rb +17 -0
  145. data/wee.gemspec +4 -3
  146. metadata +249 -452
  147. data/ChangeLog +0 -657
  148. data/INSTALL +0 -17
  149. data/README +0 -272
  150. data/TODO +0 -142
  151. data/benchmark/Centrino1300/result.2000.counter.action +0 -45
  152. data/benchmark/Centrino1300/result.2000.counter.render +0 -43
  153. data/benchmark/Centrino1300/result.2000.filehandler +0 -43
  154. data/benchmark/Centrino600/result.2000.counter.action +0 -47
  155. data/benchmark/Centrino600/result.2000.counter.render +0 -45
  156. data/benchmark/Centrino600/result.2000.filehandler +0 -43
  157. data/benchmark/Makefile +0 -53
  158. data/benchmark/counter.rb +0 -77
  159. data/benchmark/filehandler.rb +0 -6
  160. data/benchmark/report_req.rb +0 -12
  161. data/bin/wee +0 -100
  162. data/doc/rdoc/classes/ActionView.html +0 -107
  163. data/doc/rdoc/classes/ActionView/Base.html +0 -133
  164. data/doc/rdoc/classes/Cache.html +0 -126
  165. data/doc/rdoc/classes/Cache/StorageCache.html +0 -320
  166. data/doc/rdoc/classes/Cache/Strategy.html +0 -128
  167. data/doc/rdoc/classes/Cache/Strategy/CapacityBounded.html +0 -269
  168. data/doc/rdoc/classes/Cache/Strategy/LFU.html +0 -238
  169. data/doc/rdoc/classes/Cache/Strategy/LRU.html +0 -238
  170. data/doc/rdoc/classes/Cache/Strategy/Unbounded.html +0 -225
  171. data/doc/rdoc/classes/LiteralMethod.html +0 -196
  172. data/doc/rdoc/classes/Main.html +0 -289
  173. data/doc/rdoc/classes/OgApplication.html +0 -126
  174. data/doc/rdoc/classes/OgScaffolder.html +0 -827
  175. data/doc/rdoc/classes/OgScaffolder/Editor.html +0 -565
  176. data/doc/rdoc/classes/OgSession.html +0 -172
  177. data/doc/rdoc/classes/Recipe.html +0 -113
  178. data/doc/rdoc/classes/Wee/AbstractSession.html +0 -502
  179. data/doc/rdoc/classes/Wee/Brush/ActionCallbackMixin.html +0 -148
  180. data/doc/rdoc/classes/Wee/Brush/ActionMixin.html +0 -146
  181. data/doc/rdoc/classes/Wee/Brush/ActionURLCallbackMixin.html +0 -154
  182. data/doc/rdoc/classes/Wee/Brush/AssignMixin.html +0 -141
  183. data/doc/rdoc/classes/Wee/Brush/CallbackMixin.html +0 -141
  184. data/doc/rdoc/classes/Wee/Brush/InputCallbackMixin.html +0 -148
  185. data/doc/rdoc/classes/Wee/Brush/SelectListTag/SelectListCallback.html +0 -158
  186. data/doc/rdoc/classes/Wee/Brush/ToCallback.html +0 -146
  187. data/doc/rdoc/classes/Wee/Callback.html +0 -231
  188. data/doc/rdoc/classes/Wee/CallbackStream.html +0 -227
  189. data/doc/rdoc/classes/Wee/Canvas.html +0 -235
  190. data/doc/rdoc/classes/Wee/CanvasMixin.html +0 -225
  191. data/doc/rdoc/classes/Wee/Component/OnAnswer.html +0 -153
  192. data/doc/rdoc/classes/Wee/ComponentDispatcher.html +0 -289
  193. data/doc/rdoc/classes/Wee/ComponentRunner.html +0 -321
  194. data/doc/rdoc/classes/Wee/ErrorPage.html +0 -175
  195. data/doc/rdoc/classes/Wee/Examples.html +0 -114
  196. data/doc/rdoc/classes/Wee/Examples/Calculator.html +0 -319
  197. data/doc/rdoc/classes/Wee/Examples/Counter.html +0 -289
  198. data/doc/rdoc/classes/Wee/Examples/EditableCounter.html +0 -210
  199. data/doc/rdoc/classes/Wee/Examples/Window.html +0 -346
  200. data/doc/rdoc/classes/Wee/FastCGIAdaptor.html +0 -227
  201. data/doc/rdoc/classes/Wee/Helper.html +0 -148
  202. data/doc/rdoc/classes/Wee/HtmlCanvasRenderer.html +0 -1230
  203. data/doc/rdoc/classes/Wee/LiteralMethodCallback.html +0 -198
  204. data/doc/rdoc/classes/Wee/LoginDecoration.html +0 -261
  205. data/doc/rdoc/classes/Wee/Md5IdGenerator.html +0 -181
  206. data/doc/rdoc/classes/Wee/MessageBox.html +0 -180
  207. data/doc/rdoc/classes/Wee/MethodCallback.html +0 -193
  208. data/doc/rdoc/classes/Wee/Nitro.html +0 -114
  209. data/doc/rdoc/classes/Wee/Nitro/ControllerClassMixin.html +0 -192
  210. data/doc/rdoc/classes/Wee/Nitro/ControllerMixin.html +0 -345
  211. data/doc/rdoc/classes/Wee/Nitro/FormTag.html +0 -155
  212. data/doc/rdoc/classes/Wee/Nitro/HtmlCanvasRenderer.html +0 -178
  213. data/doc/rdoc/classes/Wee/Page.html +0 -115
  214. data/doc/rdoc/classes/Wee/PagelessApplication.html +0 -154
  215. data/doc/rdoc/classes/Wee/PagelessComponentDriver.html +0 -296
  216. data/doc/rdoc/classes/Wee/PagelessRequest.html +0 -208
  217. data/doc/rdoc/classes/Wee/PagelessSession.html +0 -359
  218. data/doc/rdoc/classes/Wee/Pager.html +0 -534
  219. data/doc/rdoc/classes/Wee/Rails.html +0 -114
  220. data/doc/rdoc/classes/Wee/Rails/ControllerClassMixin.html +0 -192
  221. data/doc/rdoc/classes/Wee/Rails/ControllerMixin.html +0 -342
  222. data/doc/rdoc/classes/Wee/Rails/FormTag.html +0 -155
  223. data/doc/rdoc/classes/Wee/Rails/HtmlCanvasRenderer.html +0 -177
  224. data/doc/rdoc/classes/Wee/RenderingContext.html +0 -283
  225. data/doc/rdoc/classes/Wee/RequestHandler.html +0 -341
  226. data/doc/rdoc/classes/Wee/Snapshot.html +0 -211
  227. data/doc/rdoc/classes/Wee/StateRegistry.html +0 -434
  228. data/doc/rdoc/classes/Wee/StateRegistry/Snapshot.html +0 -320
  229. data/doc/rdoc/classes/Wee/StateRegistry/WithObject.html +0 -153
  230. data/doc/rdoc/classes/Wee/Utils.html +0 -300
  231. data/doc/rdoc/classes/Wee/ValueHolder.html +0 -220
  232. data/doc/rdoc/classes/Wee/WEBrickAdaptor.html +0 -368
  233. data/doc/rdoc/files/INSTALL.html +0 -130
  234. data/doc/rdoc/files/README.html +0 -471
  235. data/doc/rdoc/files/lib/wee/adaptors/fastcgi_rb.html +0 -108
  236. data/doc/rdoc/files/lib/wee/adaptors/nitro_rb.html +0 -101
  237. data/doc/rdoc/files/lib/wee/adaptors/rails_rb.html +0 -101
  238. data/doc/rdoc/files/lib/wee/adaptors/webrick_rb.html +0 -108
  239. data/doc/rdoc/files/lib/wee/component_ext_rb.html +0 -101
  240. data/doc/rdoc/files/lib/wee/components/component_dispatcher_rb.html +0 -108
  241. data/doc/rdoc/files/lib/wee/components/form_decoration_rb.html +0 -101
  242. data/doc/rdoc/files/lib/wee/components/login_decoration_rb.html +0 -101
  243. data/doc/rdoc/files/lib/wee/components/messagebox_rb.html +0 -101
  244. data/doc/rdoc/files/lib/wee/components/page_decoration_rb.html +0 -101
  245. data/doc/rdoc/files/lib/wee/components/pager_rb.html +0 -101
  246. data/doc/rdoc/files/lib/wee/components/wrapper_decoration_rb.html +0 -101
  247. data/doc/rdoc/files/lib/wee/components_rb.html +0 -114
  248. data/doc/rdoc/files/lib/wee/context_rb.html +0 -101
  249. data/doc/rdoc/files/lib/wee/continuation/core/component_rb.html +0 -101
  250. data/doc/rdoc/files/lib/wee/continuation/session_rb.html +0 -108
  251. data/doc/rdoc/files/lib/wee/continuation_rb.html +0 -116
  252. data/doc/rdoc/files/lib/wee/core/callback_rb.html +0 -115
  253. data/doc/rdoc/files/lib/wee/core/component_rb.html +0 -108
  254. data/doc/rdoc/files/lib/wee/core/componentrunner_rb.html +0 -110
  255. data/doc/rdoc/files/lib/wee/core/context_rb.html +0 -101
  256. data/doc/rdoc/files/lib/wee/core/decoration_rb.html +0 -133
  257. data/doc/rdoc/files/lib/wee/core/idgen_rb.html +0 -101
  258. data/doc/rdoc/files/lib/wee/core/presenter_rb.html +0 -112
  259. data/doc/rdoc/files/lib/wee/core/renderer_rb.html +0 -107
  260. data/doc/rdoc/files/lib/wee/core/snapshot_rb.html +0 -113
  261. data/doc/rdoc/files/lib/wee/core/valueholder_rb.html +0 -110
  262. data/doc/rdoc/files/lib/wee/core_ext_rb.html +0 -101
  263. data/doc/rdoc/files/lib/wee/core_rb.html +0 -124
  264. data/doc/rdoc/files/lib/wee/databases/og/application_rb.html +0 -101
  265. data/doc/rdoc/files/lib/wee/databases/og/old_scaffolder_rb.html +0 -101
  266. data/doc/rdoc/files/lib/wee/databases/og/scaffolder_rb.html +0 -115
  267. data/doc/rdoc/files/lib/wee/databases/og/session_rb.html +0 -101
  268. data/doc/rdoc/files/lib/wee/databases/og_rb.html +0 -111
  269. data/doc/rdoc/files/lib/wee/examples/calculator_rb.html +0 -107
  270. data/doc/rdoc/files/lib/wee/examples/counter_rb.html +0 -101
  271. data/doc/rdoc/files/lib/wee/examples/editable_counter_rb.html +0 -114
  272. data/doc/rdoc/files/lib/wee/examples/window_rb.html +0 -101
  273. data/doc/rdoc/files/lib/wee/idgen/md5_rb.html +0 -115
  274. data/doc/rdoc/files/lib/wee/idgen/simple_rb.html +0 -107
  275. data/doc/rdoc/files/lib/wee/pageless/application_rb.html +0 -108
  276. data/doc/rdoc/files/lib/wee/pageless/request_rb.html +0 -101
  277. data/doc/rdoc/files/lib/wee/pageless/session_rb.html +0 -109
  278. data/doc/rdoc/files/lib/wee/pageless_rb.html +0 -110
  279. data/doc/rdoc/files/lib/wee/renderer/html/brushes_rb.html +0 -101
  280. data/doc/rdoc/files/lib/wee/renderer/html/canvas_rb.html +0 -108
  281. data/doc/rdoc/files/lib/wee/renderer/html/writer_rb.html +0 -108
  282. data/doc/rdoc/files/lib/wee/rendering/html/brushes_rb.html +0 -101
  283. data/doc/rdoc/files/lib/wee/rendering/html/canvas_rb.html +0 -101
  284. data/doc/rdoc/files/lib/wee/rendering/html/writer_rb.html +0 -108
  285. data/doc/rdoc/files/lib/wee/requesthandler_rb.html +0 -101
  286. data/doc/rdoc/files/lib/wee/skeleton/og/components/main_rb.html +0 -101
  287. data/doc/rdoc/files/lib/wee/skeleton/og/conf/db_rb.html +0 -114
  288. data/doc/rdoc/files/lib/wee/skeleton/og/models/recipe_rb.html +0 -101
  289. data/doc/rdoc/files/lib/wee/skeleton/og/run_rb.html +0 -115
  290. data/doc/rdoc/files/lib/wee/skeleton/simple/components/main_rb.html +0 -101
  291. data/doc/rdoc/files/lib/wee/skeleton/simple/run_rb.html +0 -111
  292. data/doc/rdoc/files/lib/wee/snapshot_ext_rb.html +0 -101
  293. data/doc/rdoc/files/lib/wee/snapshot_rb.html +0 -107
  294. data/doc/rdoc/files/lib/wee/stuff_rb.html +0 -144
  295. data/doc/rdoc/files/lib/wee/template_rb.html +0 -101
  296. data/doc/rdoc/files/lib/wee/utils/autoreload_rb.html +0 -101
  297. data/doc/rdoc/files/lib/wee/utils/cache_rb.html +0 -108
  298. data/doc/rdoc/files/lib/wee/utils/helper_rb.html +0 -101
  299. data/doc/rdoc/files/lib/wee/utils_rb.html +0 -110
  300. data/examples/ajax/ajax.js +0 -444
  301. data/examples/ajax/ajax.rb +0 -31
  302. data/examples/cc.rb +0 -74
  303. data/examples/dispatcher.rb +0 -37
  304. data/examples/draw.rb +0 -94
  305. data/examples/live-update.rb +0 -45
  306. data/examples/nitro/run.rb +0 -42
  307. data/examples/og-test.rb +0 -60
  308. data/examples/radio.rb +0 -44
  309. data/examples/test.rb +0 -39
  310. data/install.rb +0 -14
  311. data/lib/cache/cache.rb +0 -167
  312. data/lib/wee/abstractsession.rb +0 -96
  313. data/lib/wee/adaptors/fastcgi.rb +0 -76
  314. data/lib/wee/adaptors/nitro.rb +0 -155
  315. data/lib/wee/adaptors/rails.rb +0 -154
  316. data/lib/wee/adaptors/webrick.rb +0 -89
  317. data/lib/wee/components.rb +0 -7
  318. data/lib/wee/components/component_dispatcher.rb +0 -46
  319. data/lib/wee/components/form_decoration.rb +0 -7
  320. data/lib/wee/components/login_decoration.rb +0 -35
  321. data/lib/wee/components/page_decoration.rb +0 -14
  322. data/lib/wee/components/wrapper_decoration.rb +0 -7
  323. data/lib/wee/continuation.rb +0 -5
  324. data/lib/wee/continuation/core/component.rb +0 -56
  325. data/lib/wee/continuation/session.rb +0 -64
  326. data/lib/wee/core.rb +0 -16
  327. data/lib/wee/core/callback.rb +0 -121
  328. data/lib/wee/core/component.rb +0 -356
  329. data/lib/wee/core/componentrunner.rb +0 -73
  330. data/lib/wee/core/context.rb +0 -27
  331. data/lib/wee/core/decoration.rb +0 -138
  332. data/lib/wee/core/idgen.rb +0 -5
  333. data/lib/wee/core/page.rb +0 -1
  334. data/lib/wee/core/presenter.rb +0 -100
  335. data/lib/wee/core/renderer.rb +0 -23
  336. data/lib/wee/core/snapshot.rb +0 -21
  337. data/lib/wee/core/valueholder.rb +0 -19
  338. data/lib/wee/core_ext.rb +0 -122
  339. data/lib/wee/databases/og.rb +0 -4
  340. data/lib/wee/databases/og/application.rb +0 -3
  341. data/lib/wee/databases/og/old_scaffolder.rb +0 -98
  342. data/lib/wee/databases/og/scaffolder.rb +0 -255
  343. data/lib/wee/databases/og/session.rb +0 -9
  344. data/lib/wee/examples/calculator.rb +0 -70
  345. data/lib/wee/examples/counter.rb +0 -33
  346. data/lib/wee/idgen/md5.rb +0 -21
  347. data/lib/wee/idgen/sequential.rb +0 -11
  348. data/lib/wee/pageless.rb +0 -3
  349. data/lib/wee/pageless/application.rb +0 -13
  350. data/lib/wee/pageless/request.rb +0 -27
  351. data/lib/wee/pageless/session.rb +0 -74
  352. data/lib/wee/renderer/html/brushes.rb +0 -667
  353. data/lib/wee/renderer/html/canvas.rb +0 -265
  354. data/lib/wee/renderer/html/writer.rb +0 -80
  355. data/lib/wee/requesthandler.rb +0 -81
  356. data/lib/wee/skeleton/og/README +0 -38
  357. data/lib/wee/skeleton/og/components/main.rb +0 -20
  358. data/lib/wee/skeleton/og/conf/db.rb +0 -8
  359. data/lib/wee/skeleton/og/models/recipe.rb +0 -5
  360. data/lib/wee/skeleton/og/run.rb +0 -23
  361. data/lib/wee/skeleton/simple/README +0 -32
  362. data/lib/wee/skeleton/simple/components/main.rb +0 -25
  363. data/lib/wee/skeleton/simple/run.rb +0 -12
  364. data/lib/wee/snapshot_ext.rb +0 -41
  365. data/lib/wee/template.rb +0 -42
  366. data/lib/wee/utils.rb +0 -5
  367. data/lib/wee/utils/autoreload.rb +0 -56
  368. data/lib/wee/utils/cache.rb +0 -7
  369. data/lib/wee/utils/helper.rb +0 -51
data/ChangeLog DELETED
@@ -1,657 +0,0 @@
1
- Mon Jul 25 16:56:53 CEST 2005 Michael Neumann <mneumann@ntecs.de>
2
-
3
- * lib/wee/databases/og/scaffolder.rb: Now works again with Og >= 0.21.0.
4
- Enhanced for password input fields and for validation.
5
-
6
- * lib/wee/renderer/html/brushes.rb, lib/wee/renderer/html/canvas.rb:
7
-
8
- - Fixed bug in SelectListTag#selected where you could not pre-select
9
- from [true, false] the false item.
10
- - Added class PasswordInputTag and method HtmlCanvasRenderer#password_input
11
-
12
- * examples/og-test.rb: Works now with 0g 0.21.0. Enhanced.
13
-
14
- * lib/wee.rb: Version 0.10.0
15
-
16
- Mon Jul 25 14:59:14 CEST 2005 Michael Neumann <mneumann@ntecs.de>
17
-
18
- * lib/wee/renderer/html/brushes.rb:
19
-
20
- - Refactored method html_attr (removed bool_attr) and all classes that use it.
21
-
22
- - removed methods GenericTagBrush#css_class_for and ImageTag#src_for.
23
-
24
- Tue Jul 19 15:57:51 CEST 2005 Michael Neumann <mneumann@ntecs.de>
25
-
26
- * lib/wee/session.rb, lib/wee/idgen/simple.rb, lib/wee/pageless/session.rb,
27
- lib/wee/application.rb, lib/wee/renderer/html/brushes.rb,
28
- lib/wee/adaptors/rails.rb, lib/wee/adaptors/nitro.rb, lib/wee.rb,
29
- examples/test.rb:
30
- Renamed Wee::SimpleIdGenerator to Wee::SequentialIdGenerator.
31
-
32
- * lib/wee/page.rb: removed as it is not used anymore (we have
33
- wee/core/page.rb instead).
34
-
35
- * Rakefile: added target 'tag'
36
-
37
- --------------------------------------------------------------------
38
- TAGGED 0.9.1
39
- --------------------------------------------------------------------
40
-
41
- Sun Jul 17 21:21:00 CEST 2005 Michael Neumann <mneumann@ntecs.de>
42
-
43
- * examples/nitro/run.rb: Mount example under '/'.
44
-
45
- * lib/wee/adaptors/nitro.rb: Use Render#controller_name. Fix bugs that
46
- occured when mounted as '/'.
47
-
48
- * lib/wee/databases/og/session.rb: Fixed bug. Now works with newest Og
49
- version!
50
-
51
- --------------------------------------------------------------------
52
- TAGGED 0.9.0
53
- --------------------------------------------------------------------
54
-
55
- Mon Jul 11 23:31:31 CEST 2005 Michael Neumann <mneumann@ntecs.de>
56
-
57
- * examples/*: Lots of cleanup. New examples added.
58
-
59
- Mon Jul 11 23:18:17 CEST 2005 Michael Neumann <mneumann@ntecs.de>
60
-
61
- * lib/wee/components/pager.rb, lib/wee/examples/pager.rb: Moved from examples
62
- into components directory. Slightly modified. Now class Wee::Pager.
63
-
64
- * lib/wee/components/login_decoration.rb (Wee::LoginDecoration): Initial
65
- import.
66
-
67
- * lib/wee/components/component_dispatcher.rb (Wee::ComponentDispatcher):
68
- Initial creation.
69
-
70
- * lib/wee/components.rb: Load new components.
71
-
72
- * lib/wee/renderer/html/{brushes,canvas}.rb: Introduced
73
- r.anchor.info(info_url) which can be used to specify the info part of a
74
- URL.
75
-
76
- Mon Jul 11 19:29:44 CEST 2005 Michael Neumann <mneumann@ntecs.de>
77
-
78
- * lib/wee/renderer/html/{brushes,canvas}.rb: Added #hidden_input.
79
-
80
- * lib/wee/adaptors/rails.rb: fixed some bugs. minor refactoring.
81
-
82
- * lib/wee/adaptors/nitro.rb, examples/nitro/*: initial creation.
83
-
84
- Mon Jul 11 17:02:40 CEST 2005 Michael Neumann <mneumann@ntecs.de>
85
-
86
- * lib/wee.rb (Wee.run): Added method for easy startup of components.
87
-
88
- * lib/wee/application.rb: Method Application#insert_new_request_handler
89
- added. Refactored #handle_request a bit.
90
-
91
- Mon Jul 11 16:06:49 CEST 2005 Michael Neumann <mneumann@ntecs.de>
92
-
93
- * lib/wee/snapshot_ext.rb: refactored. enhanced Hash to be snapshotable.
94
-
95
- * lib/wee/session.rb: fixed two bugs I lately introduced during refactoring
96
-
97
- * lib/wee/renderer/html/canvas.rb: added r.label
98
-
99
- * lib/wee/examples/{pager,counter,editable_counter,calculator}.rb:
100
- moved components from examples directory into Wee base.
101
-
102
- * lib/wee.rb: increased version to 0.9.0. Introduced module Wee::Examples.
103
-
104
- * lib/wee/skeleton/og/components/main.rb: Minor cleanup.
105
-
106
- * lib/wee/databases/og/scaffolder.rb: removed whitespace.
107
-
108
- Sat Jul 2 17:48:00 CEST 2005 Michael Neumann <mneumann@ntecs.de>
109
-
110
- * lib/wee/adaptors/rails.rb: Integrate Wee components into RubyOnRails.
111
- Very simple example:
112
-
113
- ##
114
- # In config/environment.rb add:
115
-
116
- require 'wee'
117
- require 'wee/adaptors/rails'
118
- require 'components/mycomponent'
119
-
120
- ##
121
- # In components/mycomponent.rb:
122
-
123
- class MyComponent < Wee::Component
124
- # ... your Wee component ...
125
- end
126
-
127
- ##
128
- # In app/controllers/wee_controller.rb:
129
-
130
- class WeeController < ApplicationController
131
- include Wee::Rails::ControllerMixin
132
-
133
- register_component "my" do
134
- MyComponent.new
135
- end
136
- end
137
-
138
- ##
139
- # In app/views/index.rhtml:
140
-
141
- <html><body>
142
- <%= show_component 'my' %>
143
- </body></html>
144
-
145
- Of course you can render as many components as you like on one page.
146
- You can create components dynamically at runtime with:
147
-
148
- make_component component_name, component_object
149
-
150
- For example instead of using 'register_component' in the WeeController
151
- shown above, you could write:
152
-
153
- def index
154
- make_component('my', MyComponent.new) unless has_component?('my')
155
- # render the view
156
- end
157
-
158
- If you don't need the component anymore, drop it:
159
-
160
- drop_component 'my'
161
-
162
- If you want to map 1:1 a Wee::Component to an ActionController, you can
163
- use:
164
-
165
- class WeeController < ApplicationController
166
- include Wee::Rails::ControllerMixin
167
-
168
- scaffold_with_component do
169
- MyComponent.new
170
- end
171
- end
172
-
173
- At the moment, only pageless mode is possible, so no backtracking is
174
- performed.
175
-
176
- NOTE: Your Wee components must be fully marshallable to work with Rails
177
- CGI mode. That means, you are not allowed to use continuations, and no
178
- code blocks (callbacks). For example instead of:
179
-
180
- r.anchor.callback { answer true }
181
-
182
- You have to write:
183
-
184
- r.anchor.callback(:answer, true)
185
-
186
- Or more general:
187
-
188
- r.anchor.callback(Wee::LiteralMethodCallback.new(self, :answer, true))
189
-
190
- * lib/wee/renderer/html/brushes.rb, lib/wee/renderer/html/canvas.rb: Use
191
- method Canvas#build_url instead of Request#build_url. This makes it
192
- independent of the Request class. To use a different URL builder, simply
193
- overwrite Canvas#build_url.
194
-
195
- * lib/wee/session.rb, lib/wee/core/context.rb, lib/wee/core_ext.rb:
196
- Wee::RenderingContext now uses #context instead of #request, #response and
197
- #session. This makes it easy to reuse the Context class of other
198
- frameworks like Nitro or Rails.
199
-
200
- * lib/wee/components/messagebox.rb: do not use blocks -> fully marshallable
201
-
202
- Thu Jun 30 13:23:47 CEST 2005 Michael Neumann <mneumann@ntecs.de>
203
-
204
- * lib/wee/session.rb, lib/wee/core/componentrunner.rb, lib/wee/core.rb,
205
- lib/wee/utils/helper.rb, lib/wee/pageless/session.rb: Refactored component
206
- specific stuff (rendering, snapshots, callback processing) out of session
207
- into core class ComponentRunner.
208
-
209
- * lib/wee/renderer/html/canvas.rb: fixed bug
210
-
211
- Thu Jun 30 12:55:54 CEST 2005 Michael Neumann <mneumann@ntecs.de>
212
-
213
- * lib/wee/core/context.rb: forgot to add this file
214
-
215
- Thu Jun 30 12:53:59 CEST 2005 Michael Neumann <mneumann@ntecs.de>
216
-
217
- * lib/wee/session.rb, lib/wee/context.rb, lib/wee/core/renderingcontext.rb,
218
- lib/wee/core.rb, lib/wee/core_ext.rb, lib/wee.rb: Moved Wee::Context into
219
- core. Wee::Context gets an additional field 'session', and
220
- Wee::RenderingContext inherits from Wee::Context.
221
-
222
- Thu Jun 30 12:38:25 CEST 2005 Michael Neumann <mneumann@ntecs.de>
223
-
224
- * lib/wee/response.rb: require 'cgi'
225
-
226
- Thu Jun 30 12:36:18 CEST 2005 Michael Neumann <mneumann@ntecs.de>
227
-
228
- * lib/wee/response.rb (Wee::ErrorResponse#render): correctly format error
229
- responses (patch by Aleksi Niemela)
230
-
231
- Thu Jun 30 12:10:36 CEST 2005 Michael Neumann <mneumann@ntecs.de>
232
-
233
- * lib/wee/core.rb, lib/wee/core/idgen.rb, lib/wee/idgen/md5.rb,
234
- lib/wee/idgen/simple.rb: Introduced abstract class Wee::IdGenerator
235
- and subclass Wee::Md5IdGenerator and Wee::SimpleIdGenerator from it.
236
-
237
- * lib/wee/core/renderer.rb, lib/wee/core/presenter.rb,
238
- lib/wee/renderer/html/canvas.rb, lib/wee.rb:
239
- Introduce base class of all renderer classes: Wee::Renderer.
240
-
241
- Rename Wee::HtmlCanvas to Wee::HtmlCanvasRenderer and inherit from
242
- Wee::Renderer instead of Wee::Canvas. Wee::Canvas is now a mixin
243
- module as has been renamed to Wee::CanvasMixin.
244
-
245
- Rename @renderer in Wee::Presenter into @__renderer to avoid
246
- possible problems if this variable is accidently used by a
247
- user-defined component.
248
-
249
- * lib/wee/template.rb: Added :local option, with which one can
250
- specify a template file relative to the component file, e.g:
251
-
252
- class MyComponent < Wee::Component
253
- template :render_this, :local => 'this.tmpl'
254
- end
255
-
256
- Futhermore, added an :r_as_param option, which generates a render
257
- method that takes a renderer object as parameter 'r'.
258
-
259
- * lib/wee/renderer/html/brushes.rb, lib/wee/renderer/html/canvas.rb:
260
- Method Brush::SelectListTag#selected takes optionally a block. In
261
- this case, only those elements will be selected, for which the block
262
- evaluates to true. This allows us to use some custom compare
263
- functions instead of the default ones '==' or 'include?'.
264
-
265
- Method Brush::SelectListTag#labels also might be passed a block, in
266
- which case the label is the return value of the block called with
267
- the corresponding item as parameter.
268
-
269
- Added class Brush::CheckboxTag and corresponding methods
270
- HtmlCanvas#check_box and alias #checkbox.
271
-
272
- Method HtmlCanvas#paragraph is no longer a single tag. It can now
273
- contain other tags, e.g. like <p><a .../></p>.
274
-
275
- Added method HtmlCanvas#multiline_text, which replaces newline
276
- characters (\n) in the text with <br/> tags.
277
-
278
- * lib/wee/page.rb, lib/wee/core/page.rb: Page classes moved into core.
279
-
280
- * lib/wee/session.rb: remove require 'wee/page' as this now has been
281
- moved into the core and is automatically required from there.
282
-
283
- * lib/wee/context.rb, lib/wee/core/renderingcontext.rb: Moved
284
- RenderingContext class into core.
285
-
286
- * lib/wee/core/presenter.rb, lib/wee/core_ext.rb: Moved some stuff
287
- from the Presenter class out of the core.
288
-
289
- * lib/wee.rb, lib/wee/core.rb: adapt "require"s to the changed
290
- situation.
291
-
292
- * lib/wee/session.rb lib/wee/pageless/session.rb: renamed method
293
- #invoke_callbacks into #process_callbacks and refactored that method a
294
- lot.
295
-
296
- * lib/wee/core/presenter.rb, lib/wee/session.rb: removed
297
- throwing of :wee_send_response, instead use
298
- :wee_abort_callback_processing
299
-
300
- * lib/wee/core/component.rb, lib/wee/continuation/core/component.rb,
301
- lib/wee/session.rb: renamed :wee_back_to_session into
302
- :wee_abort_callback_processing.
303
-
304
- * lib/wee/core/component.rb: Reverted commit from
305
- Thu Mar 3 12:11:05 CET 2005. Removed method Component#parent,
306
- modified method #add_child.
307
-
308
- * lib/wee/skeleton/og/conf/db.rb: Upgrade to run under newer Og version.
309
-
310
- Sun May 22 18:10:27 CET 2005 Michael Neumann <mneumann@ntecs.de>
311
-
312
- * lib/wee/continuation/session.rb: Fixed a bug. Callbacks were invoked
313
- twice, due to a super() call was calling the "wrong" super-method,
314
- which did the same as the calling method (the right super-method would
315
- have been super.super(), but this is actually not possible in Ruby
316
- without renaming).
317
-
318
- Wed Apr 6 19:17:47 CET 2005 Michael Neumann <mneumann@ntecs.de>
319
-
320
- * lib/wee/session.rb: introduced live_update callbacks, which are special
321
- action callbacks that are processed after any action callback.
322
-
323
- * lib/wee/renderer/html/canvas.rb, lib/wee/renderer/html/brushes.rb:
324
- - You can now use #value of textarea fields instead of #with.
325
- - Implemented form.onsubmit_update method
326
-
327
- Tue Apr 5 21:53:55 CET 2005 Michael Neumann <mneumann@ntecs.de>
328
-
329
- * lib/wee/renderer/html/canvas.rb, lib/wee/renderer/html/brushes.rb,
330
- examples/radio.rb: Added support for radio buttons.
331
- (methods r.new_radio_group and r.radio_button)
332
-
333
- --------------------------------------------------------------------
334
- TAGGED 0.8.0
335
- --------------------------------------------------------------------
336
-
337
- Mon Apr 4 18:45:28 CET 2005 Michael Neumann <mneumann@ntecs.de>
338
-
339
- * examples/ajax/ajax.rb, examples/ajax/ajax.js,
340
- lib/wee/core/presenter.rb, lib/wee/renderer/html/brushes.rb: Added minimal
341
- Ajax update support.
342
-
343
- Mon Apr 4 14:32:34 CET 2005 Michael Neumann <mneumann@ntecs.de>
344
-
345
- * lib/wee/abstractsession.rb, lib/wee/session.rb,
346
- lib/wee/pageless/session.rb, examples/live-update.rb: refactored
347
- Session classes.
348
-
349
- * lib/wee/core/presenter.rb: added send_response method, to send a
350
- premature response.
351
-
352
- Mon Apr 4 13:03:08 CET 2005 Michael Neumann <mneumann@ntecs.de>
353
-
354
- * lib/wee/pageless/session.rb, lib/wee/pageless/application.rb: Remove
355
- dependency of WEBrick::Cookie, use CGI::Cookie instead.
356
-
357
- * lib/wee/adaptors/fastcgi.rb: Added preliminary FastCGI adaptor
358
- (does not work yet with Pageless applications).
359
-
360
- * lib/wee/adaptors/webrick.rb: reordered line
361
-
362
- Sun Apr 3 13:24:04 CET 2005 Michael Neumann <mneumann@ntecs.de>
363
-
364
- * lib/wee/adaptors/webrick.rb: doc fix
365
-
366
- Sun Apr 3 13:11:07 CET 2005 Michael Neumann <mneumann@ntecs.de>
367
-
368
- * lib/wee/core/presenter.rb, lib/wee/core/component.rb,
369
- lib/wee/core/decoration.rb, lib/wee/session.rb,
370
- lib/wee/pageless/session.rb, examples/window.rb, README:
371
- Fixed a bug in processing the callbacks. It was not guaranteed that
372
- all input callbacks are invoked before the final action callback.
373
- This is now guaranteed! I've introduced two separate tree traversals
374
- of process_callbacks to make this work. As a side effect, this also
375
- has removed the dependency of Presenter/Component/Decoration classes
376
- from the CallbackStream class. Instead of a CallbackStream, a code
377
- block is now passed through the
378
- process_callbacks/process_callbacks_chain traversal. The Session
379
- class specifies how to invoke the callbacks.
380
-
381
- Thu Mar 3 12:31:15 CET 2005 Michael Neumann <mneumann@ntecs.de>
382
-
383
- * wee/session.rb, wee/pageless/session.rb: new methods
384
- pre_respond_hook, post_callbacks_hook, especially to make pretty-URLs
385
- as suggested by Joao Pedrosa working.
386
-
387
- Thu Mar 3 12:11:05 CET 2005 Michael Neumann <mneumann@ntecs.de>
388
-
389
- * wee/response.rb (Wee::Response): Use the passed mime_type as
390
- content-type (bug fix).
391
-
392
- * wee/request.rb: Made 'info' attribute writeable.
393
-
394
- * wee/core/callback.rb: Added reader method for 'obj'
395
-
396
- * wee/core/component.rb: Added #parent method, to retrieve the parent
397
- component from a child if existent. The parent attribute will be set
398
- during #add_child.
399
-
400
- Thu Mar 3 11:38:21 CET 2005 Michael Neumann <mneumann@ntecs.de>
401
-
402
- * wee/application.rb, wee/pageless/application.rb
403
- (request_handler_expired): Forward to an URL that includes the info
404
- part but neither the request_handler_id nor the page_id.
405
-
406
- Sat Feb 26 17:12:35 CET 2005 Michael Neumann <mneumann@ntecs.de>
407
-
408
- * wee/request.rb, test/test_request.rb, wee/pageless/request.rb,
409
- wee/session.rb, wee/pageless/session.rb,
410
- wee/renderer/html/canvas.rb, wee/renderer/html/brushes.rb:
411
-
412
- - request delimeter changed to /___/ (looks nicer)
413
-
414
- - refactored Request#build_url, which now takes a hash and
415
- remembers already specified values
416
-
417
- - A Request knows now itself whether it's a action or a render
418
- request.
419
-
420
- - added Request#info attribute. This is a part of the URL that you
421
- can use for your own purposes. It is remembered across requests
422
- unless you overwrite its value.
423
-
424
- Sat Feb 26 14:22:34 CET 2005 Michael Neumann <mneumann@ntecs.de>
425
-
426
- * wee/core/presenter.rb, wee/session.rb, wee/application.rb: renamed @properties to @__properties
427
-
428
- * wee/core/component.rb: rename @children to @__children
429
-
430
- * wee/core/component.rb, wee/core/valueholder.rb: rename @decoration
431
- to @__decoration
432
-
433
- --------------------------------------------------------------------
434
- TAGGED 0.7.0
435
- --------------------------------------------------------------------
436
-
437
- Tue Feb 1 19:58:08 CET 2005 Michael Neumann <mneumann@ntecs.de>
438
-
439
- * SelectListTag (r.select_list): NON-backwards-compatible change!!!
440
- If it's NOT a multiple select list, then the callback is called
441
- with the choosen value (instead of an array of one element). Method
442
- #selected requires a single value in the same way. No changes if it's
443
- a multiple-select list!
444
-
445
- * minor refactoring of OgScaffolder (added support for Date type).
446
-
447
- --------------------------------------------------------------------
448
- TAGGED 0.6.0
449
- --------------------------------------------------------------------
450
-
451
- Sat Jan 29 19:06:12 CET 2005 Michael Neumann <mneumann@ntecs.de>
452
-
453
- * Added ERB-templating. Example:
454
-
455
- # file: ~/components/main.rb
456
- class Test < Wee::Component
457
-
458
- # use template '~/components/main.tpl'
459
- template :render
460
-
461
- # use template '~/components/main.tpl-buttons'
462
- template :render_buttons
463
- end
464
-
465
- This allows you to use ERB-templates instead of the render_XXX
466
- methods. You can also call render_XXX methods from ERB, back and
467
- forth. The template file is relative to the file from which the
468
- 'template :symbol' call is executed. The template method optionally
469
- takes the two hash-parameters :file and :property.
470
-
471
- * Added "Pageless" mode. In pageless mode, the URL displayed in your
472
- browser always looks like "/app". The session id is stored as cookie
473
- and there is no page_id, hence "pageless" mode. No backtracking is
474
- performed! Example:
475
-
476
- require 'wee/pageless'
477
-
478
- app = Wee::Utils.app_for(YourMainComponent,
479
- :session => Wee::PagelessSession,
480
- :application => Wee::PagelessApplication)
481
-
482
- Wee::WEBrickAdaptor.
483
- request_class(Wee::PagelessRequest).
484
- register('/app' => app).
485
- start
486
-
487
- * Wee::Session: use #set_response, so that subclass of Wee::Session can more
488
- easily modify a response (e.g. add cookies or HTTP headers).
489
-
490
- Sat Jan 29 17:08:54 CET 2005 Michael Neumann <mneumann@ntecs.de>
491
-
492
- * Wee::LiteralMethodCallback and Component#call: Additional arguments
493
- are now prepended instead of appended. Example:
494
-
495
- call MessageBox.new('msg'), :confirm, 1
496
-
497
- def confirm(one, msgbox_result)
498
- end
499
-
500
- * Added named callbacks. Example:
501
-
502
- r.anchor.named_callback('test') { ... }
503
-
504
- will use 'test' as callback_id instead of a generic one.
505
-
506
- * Methods ImageTag#src_for and GenericTagBrush#css_class_for no more
507
- prepend 'img.' or 'css.' in front of the property name.
508
-
509
- * Refactored wee/renderer/html/brushes.rb. Removed InputCallbackMixin,
510
- ActionCallbackMixin and ActionURLCallbackMixin modules. Instead the
511
- GenericTagBrush has methods __input_callback, __action_callback etc.
512
- which are aliased in the corresponding Brush classes. Also made the
513
- SelectList callback marshallable.
514
-
515
- Fri Jan 28 02:42:53 CET 2005 Michael Neumann <mneumann@ntecs.de>
516
-
517
- * Method Wee::WEBrickAdaptor.request_class added. This allows you to
518
- use a custom request class for your application or even a different
519
- one for each registered application. Also added cookie support.
520
-
521
- * Added method Wee::Utils.autoreload_glob which is faster than
522
- #autoreload as it does not traverse the whole LOAD_PATH.
523
-
524
- * Wee::Response: added cookies
525
-
526
- Fri Jan 28 02:32:30 CET 2005 Michael Neumann <mneumann@ntecs.de>
527
-
528
- * Removed method Wee::Session#current_page and replaced it by
529
- #current_callbacks.
530
-
531
- * Wee::Session no longer applies a snapshot if the snapshot equals the current
532
- state of the components tree
533
-
534
- * removed duplicate code from continuation/session.rb
535
-
536
- Fri Jan 28 02:10:31 CET 2005 Michael Neumann <mneumann@ntecs.de>
537
-
538
- * added 'wee' binary which generates a sample application and
539
- recommended directory structure for you (similar to the 'rails' command).
540
-
541
- Fri Jan 28 00:22:21 CET 2005 Michael Neumann <mneumann@ntecs.de>
542
-
543
- * Method Wee::Utils.app_for: Removed the id_seed option. Use id_gen
544
- instead, which expects a IdGenerator object (default is now the much more
545
- secure Md5IdGenerator).
546
-
547
- * Wee::Request: Refactored a lot. Use =/ instead of @ as delimeter for
548
- the request_handler_id/page_id part ('@' looks ugly in Konqueror, as
549
- it is displayed as '%40')
550
-
551
- * Wee::Application: Don't send a RedirectResponse when no
552
- request_handler_id was given. This wasn't neccessary and would
553
- break when introducing cookies.
554
-
555
- Fri Jan 28 00:07:52 CET 2005 Michael Neumann <mneumann@ntecs.de>
556
-
557
- * renamed wee/idgen.rb to wee/idgen/simple.rb and
558
- wee/md5_idgen.rb to wee/idgen/md5.rb
559
-
560
- Fri Jan 28 00:04:46 CET 2005 Michael Neumann <mneumann@ntecs.de>
561
-
562
- * added Md5IdGenerator, removed method #current from SimpleIdGenerator
563
-
564
- Thu Jan 27 18:45:44 CET 2005 Michael Neumann <mneumann@ntecs.de>
565
-
566
- * Implemented a new OgScaffolder, which now is more like Rails one.
567
-
568
- Thu Jan 27 15:23:59 CET 2005 Michael Neumann <mneumann@ntecs.de>
569
-
570
- * Component#add_decoration returns now self. Example where this is
571
- useful:
572
-
573
- app = Wee::Utils.app_for {
574
- HelloWorld.new.add_decoration(Wee::PageDecoration.new("Hello World"))
575
- }
576
-
577
- * add non-Rubygems way to install Wee: install.rb
578
-
579
- --------------------------------------------------------------------
580
- TAGGED 0.5.0
581
- --------------------------------------------------------------------
582
-
583
- Wed Jan 26 20:22:55 CET 2005 Michael Neumann <mneumann@ntecs.de>
584
-
585
- * Raised version up to 0.5.0 (nearing a release)
586
-
587
- * Fixed test cases.
588
-
589
- Wed Jan 26 18:19:39 CET 2005 Michael Neumann <mneumann@ntecs.de>
590
-
591
- * updated docs
592
-
593
- * made Component#call's marshallable by using an object of class
594
- Wee::Component::OnAnswer instead of a Proc.
595
-
596
- * Moved all continuation-dependent code into directory
597
- wee/continuation. By default Wee uses no continuations, you have to
598
- require 'wee/continuation' to enable them.
599
-
600
- Wed Jan 26 13:51:22 CET 2005 Michael Neumann <mneumann@ntecs.de>
601
-
602
- * If you pass nil to an attribute method of a Brush, e.g.
603
-
604
- r.table_data.width(nil)
605
-
606
- This will remove the 'width' attribute from the tag.
607
-
608
- * Method HtmlCanvas#javascript added:
609
-
610
- # external javascript resource
611
- r.javascript.src('/test.js')
612
-
613
- # internal javascript
614
- r.javascript.with('function js() { ... }')
615
-
616
- * Method Presenter.uses_property added. Used to declare required
617
- properties. This has actually no effect. It's sole purpose is to
618
- describe the dependencies.
619
-
620
- NO DATE AVAILABLE Michael Neumann <mneumann@ntecs.de>
621
-
622
- * Enable Socket.do_not_reverse_lookup in WEBrickAdaptor by default, as
623
- this has been the reason for much slowliness
624
-
625
- * Method Component#add_child returns the child so that the following
626
- code becomes possible:
627
-
628
- @pager = add_child Pager.new(...)
629
-
630
- * Added experimental property system.
631
-
632
- * Added methods GenericTagBrush#onclick_callback, HtmlCanvas#link_css,
633
- lots of refactoring
634
-
635
- * New examples: hw.rb, live-update.rb, calculator.rb
636
-
637
- * Wee::Brush::InputTag: methods #disabled and #readonly added
638
-
639
- * Wee::Utils.app_for takes now (optionally) a block.
640
-
641
- * Wee::MessageBox, Wee::WrapperDecoration, Wee::FromDecoration added
642
-
643
- * Wee::Session#current_page, #current_context methods added
644
-
645
- * added ground-work for live-updates (see examples/live-update.rb)
646
-
647
- * added wee/databases/og.rb, which defines OgApplication and
648
- OgSession, as well as a generic (but still very limited)
649
- OgScaffolder.
650
-
651
- * Methods Wee::Session#sleep and #awake added, which are called before and
652
- after the request is handled. They can be used for example to setup
653
- and release a database connection.
654
-
655
- * Wee::Helper.app_for is now Wee::Utils.app_for
656
-
657
- * require 'wee/utils' will load all utility methods.