wee 0.3.1 → 0.4.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (92) hide show
  1. data/README +0 -1
  2. data/Rakefile +5 -0
  3. data/TODO +6 -0
  4. data/doc/rdoc/classes/Enumerable.html +6 -6
  5. data/doc/rdoc/classes/Wee/AnswerDecoration.html +10 -10
  6. data/doc/rdoc/classes/Wee/Application.html +110 -52
  7. data/doc/rdoc/classes/Wee/Brush/ActionCallbackMixin.html +8 -15
  8. data/doc/rdoc/classes/Wee/Brush/ActionURLCallbackMixin.html +8 -19
  9. data/doc/rdoc/classes/Wee/Brush/AnchorTag.html +22 -22
  10. data/doc/rdoc/classes/Wee/Brush/FileUploadTag.html +156 -0
  11. data/doc/rdoc/classes/Wee/Brush/FormTag.html +50 -25
  12. data/doc/rdoc/classes/Wee/Brush/GenericEncodedTextBrush.html +12 -12
  13. data/doc/rdoc/classes/Wee/Brush/GenericTagBrush.html +36 -36
  14. data/doc/rdoc/classes/Wee/Brush/GenericTextBrush.html +12 -12
  15. data/doc/rdoc/classes/Wee/Brush/ImageButtonTag.html +16 -16
  16. data/doc/rdoc/classes/Wee/Brush/InputCallbackMixin.html +8 -15
  17. data/doc/rdoc/classes/Wee/Brush/InputTag.html +12 -12
  18. data/doc/rdoc/classes/Wee/Brush/Page.html +14 -14
  19. data/doc/rdoc/classes/Wee/Brush/SelectListTag.html +28 -28
  20. data/doc/rdoc/classes/Wee/Brush/SelectOptionTag.html +14 -14
  21. data/doc/rdoc/classes/Wee/Brush/SubmitButtonTag.html +7 -7
  22. data/doc/rdoc/classes/Wee/Brush/TableDataTag.html +14 -14
  23. data/doc/rdoc/classes/Wee/Brush/TableHeaderTag.html +7 -7
  24. data/doc/rdoc/classes/Wee/Brush/TableRowTag.html +36 -36
  25. data/doc/rdoc/classes/Wee/Brush/TableTag.html +6 -6
  26. data/doc/rdoc/classes/Wee/Brush/TextAreaTag.html +28 -28
  27. data/doc/rdoc/classes/Wee/Brush/TextInputTag.html +7 -7
  28. data/doc/rdoc/classes/Wee/Brush.html +19 -19
  29. data/doc/rdoc/classes/Wee/CallbackRegistry.html +33 -33
  30. data/doc/rdoc/classes/Wee/CallbackStream.html +18 -18
  31. data/doc/rdoc/classes/Wee/Canvas.html +24 -24
  32. data/doc/rdoc/classes/Wee/Component.html +163 -138
  33. data/doc/rdoc/classes/Wee/Decoration.html +72 -41
  34. data/doc/rdoc/classes/Wee/Delegate.html +31 -31
  35. data/doc/rdoc/classes/Wee/ErrorResponse.html +12 -12
  36. data/doc/rdoc/classes/Wee/GenericResponse.html +6 -6
  37. data/doc/rdoc/classes/Wee/Helper.html +148 -0
  38. data/doc/rdoc/classes/Wee/HtmlCanvas.html +267 -166
  39. data/doc/rdoc/classes/Wee/HtmlWriter.html +40 -40
  40. data/doc/rdoc/classes/Wee/LiteralMethodCallback.html +12 -12
  41. data/doc/rdoc/classes/Wee/PageDecoration.html +199 -0
  42. data/doc/rdoc/classes/Wee/Presenter.html +69 -69
  43. data/doc/rdoc/classes/Wee/RedirectResponse.html +6 -6
  44. data/doc/rdoc/classes/Wee/RefreshResponse.html +6 -6
  45. data/doc/rdoc/classes/Wee/Request.html +18 -18
  46. data/doc/rdoc/classes/Wee/RequestHandler.html +32 -31
  47. data/doc/rdoc/classes/Wee/Response.html +24 -24
  48. data/doc/rdoc/classes/Wee/Session.html +83 -64
  49. data/doc/rdoc/classes/Wee/SimpleIdGenerator.html +18 -18
  50. data/doc/rdoc/classes/Wee/Snapshot.html +19 -19
  51. data/doc/rdoc/classes/Wee/Utils/LRUCache.html +6 -6
  52. data/doc/rdoc/classes/Wee/ValueHolder.html +18 -18
  53. data/doc/rdoc/classes/Wee/WEBrickAdaptor.html +66 -62
  54. data/doc/rdoc/classes/Wee.html +63 -2
  55. data/doc/rdoc/created.rid +1 -1
  56. data/doc/rdoc/files/README.html +6 -9
  57. data/doc/rdoc/files/lib/wee/adaptors/webrick_rb.html +1 -1
  58. data/doc/rdoc/files/lib/wee/application_rb.html +1 -1
  59. data/doc/rdoc/files/lib/wee/components/page_decoration_rb.html +101 -0
  60. data/doc/rdoc/files/lib/wee/components_rb.html +108 -0
  61. data/doc/rdoc/files/lib/wee/core/callback_rb.html +1 -1
  62. data/doc/rdoc/files/lib/wee/core/component_rb.html +1 -1
  63. data/doc/rdoc/files/lib/wee/core/decoration_rb.html +1 -1
  64. data/doc/rdoc/files/lib/wee/core_rb.html +3 -3
  65. data/doc/rdoc/files/lib/wee/renderer/html/brushes_rb.html +1 -1
  66. data/doc/rdoc/files/lib/wee/renderer/html/canvas_rb.html +1 -1
  67. data/doc/rdoc/files/lib/wee/requesthandler_rb.html +1 -1
  68. data/doc/rdoc/files/lib/wee/session_rb.html +2 -1
  69. data/doc/rdoc/files/lib/wee/utils/autoreload_rb.html +101 -0
  70. data/doc/rdoc/files/lib/wee/utils/helper_rb.html +108 -0
  71. data/doc/rdoc/files/lib/wee_rb.html +2 -1
  72. data/doc/rdoc/fr_class_index.html +3 -1
  73. data/doc/rdoc/fr_file_index.html +4 -0
  74. data/doc/rdoc/fr_method_index.html +203 -191
  75. data/examples/example.rb +2 -16
  76. data/examples/test.rb +15 -18
  77. data/lib/wee/adaptors/webrick.rb +3 -1
  78. data/lib/wee/application.rb +55 -19
  79. data/lib/wee/components/page_decoration.rb +14 -0
  80. data/lib/wee/components.rb +1 -0
  81. data/lib/wee/core/callback.rb +1 -1
  82. data/lib/wee/core/component.rb +27 -3
  83. data/lib/wee/core/decoration.rb +9 -0
  84. data/lib/wee/renderer/html/brushes.rb +21 -23
  85. data/lib/wee/renderer/html/canvas.rb +25 -4
  86. data/lib/wee/requesthandler.rb +1 -0
  87. data/lib/wee/session.rb +21 -1
  88. data/lib/wee/utils/autoreload.rb +27 -0
  89. data/lib/wee/utils/helper.rb +15 -0
  90. data/lib/wee.rb +2 -1
  91. metadata +203 -191
  92. data/test/components/page_decoration.rb +0 -7
@@ -0,0 +1,108 @@
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>File: helper.rb</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="fileHeader">
50
+ <h1>helper.rb</h1>
51
+ <table class="header-table">
52
+ <tr class="top-aligned-row">
53
+ <td><strong>Path:</strong></td>
54
+ <td>lib/wee/utils/helper.rb
55
+ </td>
56
+ </tr>
57
+ <tr class="top-aligned-row">
58
+ <td><strong>Last Update:</strong></td>
59
+ <td>Sun Jan 09 23:33:17 CET 2005</td>
60
+ </tr>
61
+ </table>
62
+ </div>
63
+ <!-- banner header -->
64
+
65
+ <div id="bodyContent">
66
+
67
+
68
+
69
+ <div id="contextContent">
70
+
71
+
72
+ <div id="requires-list">
73
+ <h3 class="section-bar">Required files</h3>
74
+
75
+ <div class="name-list">
76
+ wee/utils/cache&nbsp;&nbsp;
77
+ </div>
78
+ </div>
79
+
80
+ </div>
81
+
82
+
83
+ </div>
84
+
85
+
86
+ <!-- if includes -->
87
+
88
+ <div id="section">
89
+
90
+
91
+
92
+
93
+
94
+
95
+
96
+
97
+ <!-- if method_list -->
98
+
99
+
100
+ </div>
101
+
102
+
103
+ <div id="validator-badges">
104
+ <p><small><a href="http://validator.w3.org/check/referer">[Validate]</a></small></p>
105
+ </div>
106
+
107
+ </body>
108
+ </html>
@@ -56,7 +56,7 @@
56
56
  </tr>
57
57
  <tr class="top-aligned-row">
58
58
  <td><strong>Last Update:</strong></td>
59
- <td>Sun Jan 09 14:31:15 CET 2005</td>
59
+ <td>Wed Jan 12 16:48:45 CET 2005</td>
60
60
  </tr>
61
61
  </table>
62
62
  </div>
@@ -80,6 +80,7 @@
80
80
  wee/request&nbsp;&nbsp;
81
81
  wee/response&nbsp;&nbsp;
82
82
  wee/session&nbsp;&nbsp;
83
+ wee/components&nbsp;&nbsp;
83
84
  wee/snapshot_ext&nbsp;&nbsp;
84
85
  wee/renderer/html/writer&nbsp;&nbsp;
85
86
  wee/renderer/html/brushes&nbsp;&nbsp;
@@ -42,7 +42,7 @@
42
42
  <a href="classes/Wee/Brush/ActionCallbackMixin.html">Wee::Brush::ActionCallbackMixin</a><br />
43
43
  <a href="classes/Wee/Brush/ActionURLCallbackMixin.html">Wee::Brush::ActionURLCallbackMixin</a><br />
44
44
  <a href="classes/Wee/Brush/AnchorTag.html">Wee::Brush::AnchorTag</a><br />
45
- <a href="classes/Wee/Brush/CallbackMixin.html">Wee::Brush::CallbackMixin</a><br />
45
+ <a href="classes/Wee/Brush/FileUploadTag.html">Wee::Brush::FileUploadTag</a><br />
46
46
  <a href="classes/Wee/Brush/FormTag.html">Wee::Brush::FormTag</a><br />
47
47
  <a href="classes/Wee/Brush/GenericEncodedTextBrush.html">Wee::Brush::GenericEncodedTextBrush</a><br />
48
48
  <a href="classes/Wee/Brush/GenericTagBrush.html">Wee::Brush::GenericTagBrush</a><br />
@@ -69,10 +69,12 @@
69
69
  <a href="classes/Wee/Delegate.html">Wee::Delegate</a><br />
70
70
  <a href="classes/Wee/ErrorResponse.html">Wee::ErrorResponse</a><br />
71
71
  <a href="classes/Wee/GenericResponse.html">Wee::GenericResponse</a><br />
72
+ <a href="classes/Wee/Helper.html">Wee::Helper</a><br />
72
73
  <a href="classes/Wee/HtmlCanvas.html">Wee::HtmlCanvas</a><br />
73
74
  <a href="classes/Wee/HtmlWriter.html">Wee::HtmlWriter</a><br />
74
75
  <a href="classes/Wee/LiteralMethodCallback.html">Wee::LiteralMethodCallback</a><br />
75
76
  <a href="classes/Wee/Page.html">Wee::Page</a><br />
77
+ <a href="classes/Wee/PageDecoration.html">Wee::PageDecoration</a><br />
76
78
  <a href="classes/Wee/Presenter.html">Wee::Presenter</a><br />
77
79
  <a href="classes/Wee/RedirectResponse.html">Wee::RedirectResponse</a><br />
78
80
  <a href="classes/Wee/RefreshResponse.html">Wee::RefreshResponse</a><br />
@@ -26,6 +26,8 @@
26
26
  <a href="files/lib/wee_rb.html">lib/wee.rb</a><br />
27
27
  <a href="files/lib/wee/adaptors/webrick_rb.html">lib/wee/adaptors/webrick.rb</a><br />
28
28
  <a href="files/lib/wee/application_rb.html">lib/wee/application.rb</a><br />
29
+ <a href="files/lib/wee/components_rb.html">lib/wee/components.rb</a><br />
30
+ <a href="files/lib/wee/components/page_decoration_rb.html">lib/wee/components/page_decoration.rb</a><br />
29
31
  <a href="files/lib/wee/context_rb.html">lib/wee/context.rb</a><br />
30
32
  <a href="files/lib/wee/core_rb.html">lib/wee/core.rb</a><br />
31
33
  <a href="files/lib/wee/core/callback_rb.html">lib/wee/core/callback.rb</a><br />
@@ -44,7 +46,9 @@
44
46
  <a href="files/lib/wee/response_rb.html">lib/wee/response.rb</a><br />
45
47
  <a href="files/lib/wee/session_rb.html">lib/wee/session.rb</a><br />
46
48
  <a href="files/lib/wee/snapshot_ext_rb.html">lib/wee/snapshot_ext.rb</a><br />
49
+ <a href="files/lib/wee/utils/autoreload_rb.html">lib/wee/utils/autoreload.rb</a><br />
47
50
  <a href="files/lib/wee/utils/cache_rb.html">lib/wee/utils/cache.rb</a><br />
51
+ <a href="files/lib/wee/utils/helper_rb.html">lib/wee/utils/helper.rb</a><br />
48
52
  </div>
49
53
  </div>
50
54
  </body>