Capcode 0.8.2 → 0.8.4

Sign up to get free protection for your applications and to get access to all the features.
Files changed (74) hide show
  1. data/{README → README.rdoc} +12 -1
  2. data/examples/haml/cf_layout.haml +1 -0
  3. data/examples/haml/style.sass +2 -0
  4. data/examples/render-erb.rb +14 -0
  5. data/examples/render-haml_sass.rb +22 -0
  6. data/examples/render-json.rb +13 -0
  7. data/examples/render-markaby.rb +27 -0
  8. data/examples/render-static.rb +18 -0
  9. data/examples/render-text.rb +12 -0
  10. data/examples/render-xml.rb +24 -0
  11. data/examples/rest.rb +77 -0
  12. data/examples/upload.rb +4 -4
  13. data/lib/capcode.rb +118 -44
  14. data/lib/capcode/base/db.rb +23 -0
  15. data/lib/capcode/base/dm.rb +11 -11
  16. data/lib/capcode/render/erb.rb +5 -3
  17. data/lib/capcode/render/haml.rb +3 -2
  18. data/lib/capcode/render/json.rb +1 -1
  19. data/lib/capcode/render/markaby.rb +5 -5
  20. data/lib/capcode/render/sass.rb +4 -2
  21. data/lib/capcode/render/static.rb +6 -2
  22. data/lib/capcode/render/text.rb +1 -1
  23. data/lib/capcode/render/xml.rb +3 -5
  24. data/lib/capcode/version.rb +1 -1
  25. metadata +25 -55
  26. data/doc/rdoc/classes/Capcode.html +0 -605
  27. data/doc/rdoc/classes/Capcode/HTTPError.html +0 -129
  28. data/doc/rdoc/classes/Capcode/Helpers.html +0 -342
  29. data/doc/rdoc/classes/Capcode/RenderError.html +0 -129
  30. data/doc/rdoc/classes/Capcode/Views.html +0 -108
  31. data/doc/rdoc/created.rid +0 -1
  32. data/doc/rdoc/files/AUTHORS.html +0 -103
  33. data/doc/rdoc/files/COPYING.html +0 -527
  34. data/doc/rdoc/files/README.html +0 -478
  35. data/doc/rdoc/files/lib/capcode_rb.html +0 -541
  36. data/doc/rdoc/index.html +0 -10
  37. data/doc/rdoc/permalink.gif +0 -0
  38. data/doc/rdoc/rdoc-style.css +0 -106
  39. data/doc/rdoc/rubyfr.png +0 -0
  40. data/doc/rdoc_iphone/classes/Capcode.html +0 -175
  41. data/doc/rdoc_iphone/classes/Capcode/HTTPError.html +0 -21
  42. data/doc/rdoc_iphone/classes/Capcode/Helpers.html +0 -153
  43. data/doc/rdoc_iphone/classes/Capcode/RenderError.html +0 -21
  44. data/doc/rdoc_iphone/classes/Capcode/Views.html +0 -21
  45. data/doc/rdoc_iphone/classes_index.html +0 -10
  46. data/doc/rdoc_iphone/created.rid +0 -1
  47. data/doc/rdoc_iphone/files/AUTHORS.html +0 -11
  48. data/doc/rdoc_iphone/files/COPYING.html +0 -435
  49. data/doc/rdoc_iphone/files/README.html +0 -325
  50. data/doc/rdoc_iphone/files/lib/capcode_rb.html +0 -435
  51. data/doc/rdoc_iphone/files_index.html +0 -7
  52. data/doc/rdoc_iphone/index.html +0 -51
  53. data/doc/rdoc_iphone/iui/backButton.png +0 -0
  54. data/doc/rdoc_iphone/iui/blueButton.png +0 -0
  55. data/doc/rdoc_iphone/iui/cancel.png +0 -0
  56. data/doc/rdoc_iphone/iui/grayButton.png +0 -0
  57. data/doc/rdoc_iphone/iui/iui-logo-touch-icon.png +0 -0
  58. data/doc/rdoc_iphone/iui/iui.css +0 -386
  59. data/doc/rdoc_iphone/iui/iui.js +0 -442
  60. data/doc/rdoc_iphone/iui/iuix.css +0 -1
  61. data/doc/rdoc_iphone/iui/iuix.js +0 -1
  62. data/doc/rdoc_iphone/iui/listArrow.png +0 -0
  63. data/doc/rdoc_iphone/iui/listArrowSel.png +0 -0
  64. data/doc/rdoc_iphone/iui/listGroup.png +0 -0
  65. data/doc/rdoc_iphone/iui/loading.gif +0 -0
  66. data/doc/rdoc_iphone/iui/pinstripes.png +0 -0
  67. data/doc/rdoc_iphone/iui/selection.png +0 -0
  68. data/doc/rdoc_iphone/iui/thumb.png +0 -0
  69. data/doc/rdoc_iphone/iui/toggle.png +0 -0
  70. data/doc/rdoc_iphone/iui/toggleOn.png +0 -0
  71. data/doc/rdoc_iphone/iui/toolButton.png +0 -0
  72. data/doc/rdoc_iphone/iui/toolbar.png +0 -0
  73. data/doc/rdoc_iphone/iui/whiteButton.png +0 -0
  74. data/doc/rdoc_iphone/rdoc-style.css +0 -0
@@ -1,7 +0,0 @@
1
-
2
- <ul id="files" title="Files">
3
- <li><a href="files/README.html">README</a></li>
4
- <li><a href="files/AUTHORS.html">AUTHORS</a></li>
5
- <li><a href="files/COPYING.html">COPYING</a></li>
6
- <li><a href="files/lib/capcode_rb.html">lib/capcode.rb</a></li>
7
- </ul>
@@ -1,51 +0,0 @@
1
-
2
- <!-- BEGIN: INDEX -->
3
- <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
4
- "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
5
- <html xmlns="http://www.w3.org/1999/xhtml">
6
- <head>
7
- <title>Capcode, the Documentation</title>
8
- <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
9
- <meta name="viewport" content="width=device-width; initial-scale=1.0; maximum-scale=1.0; user-scalable=0;"/>
10
- <link rel="apple-touch-icon" href="iui/iui-logo-touch-icon.png" />
11
- <meta name="apple-touch-fullscreen" content="YES" />
12
- <style type="text/css" media="screen">@import "iui/iui.css";</style>
13
- <style type="text/css" media="screen">
14
- .panel > ul {
15
- position: relative;
16
- margin: 0 0 20px 0;
17
- padding: 0;
18
- background: #FFFFFF;
19
- -webkit-border-radius: 10px;
20
- -moz-border-radius: 10px;
21
- border: 1px solid #999999;
22
- font-size: 16px;
23
- }
24
-
25
- .panel > ul > li {
26
- position: relative;
27
- list-style: none;
28
- padding: 14px 14px 14px 14px;
29
- border-bottom: 1px solid #999999;
30
- -webkit-border-radius: 0;
31
- }
32
-
33
- .panel > ul > li:last-child {
34
- border-bottom: none !important;
35
- }
36
- </style>
37
- <script type="application/x-javascript" src="iui/iui.js"></script>
38
- </head>
39
- <body>
40
- <div class="toolbar">
41
- <h1 id="pageTitle"></h1>
42
- <a id="backButton" class="button" href="#"></a>
43
- </div>
44
-
45
- <ul id="home" title="Capcode, the Documentation" selected="true">
46
- <li><a href="files/README.html">Read this first...</a></li>
47
- <li><a href="classes_index.html">Classes</a></li>
48
- <li><a href="files_index.html">Files</a></li>
49
- </body>
50
- </html>
51
- <!-- END : INDEX -->
@@ -1,386 +0,0 @@
1
- /* iui.css (c) 2007-9 by iUI Project Members, see LICENSE.txt for license */
2
- body {
3
- margin: 0;
4
- font-family: Helvetica;
5
- background: #FFFFFF;
6
- color: #000000;
7
- overflow-x: hidden;
8
- -webkit-user-select: none;
9
- -webkit-text-size-adjust: none;
10
- }
11
-
12
- body > *:not(.toolbar) {
13
- display: none;
14
- position: absolute;
15
- margin: 0;
16
- padding: 0;
17
- left: 0;
18
- top: 45px;
19
- width: 100%;
20
- min-height: 372px;
21
- }
22
-
23
- body[orient="landscape"] > *:not(.toolbar) {
24
- min-height: 268px;
25
- }
26
-
27
- body > *[selected="true"] {
28
- display: block;
29
- }
30
-
31
- a[selected], a:active {
32
- background-color: #194fdb !important;
33
- background-image: url(listArrowSel.png), url(selection.png) !important;
34
- background-repeat: no-repeat, repeat-x;
35
- background-position: right center, left top;
36
- color: #FFFFFF !important;
37
- }
38
-
39
- a[selected="progress"] {
40
- background-image: url(loading.gif), url(selection.png) !important;
41
- }
42
-
43
- /************************************************************************************************/
44
-
45
- body > .toolbar {
46
- box-sizing: border-box;
47
- -moz-box-sizing: border-box;
48
- -webkit-box-sizing: border-box;
49
- border-bottom: 1px solid #2d3642;
50
- border-top: 1px solid #6d84a2;
51
- padding: 10px;
52
- height: 45px;
53
- background: url(toolbar.png) #6d84a2 repeat-x;
54
- }
55
-
56
- .toolbar > h1 {
57
- position: absolute;
58
- overflow: hidden;
59
- left: 50%;
60
- margin: 1px 0 0 -75px;
61
- height: 45px;
62
- font-size: 20px;
63
- width: 150px;
64
- font-weight: bold;
65
- text-shadow: rgba(0, 0, 0, 0.4) 0px -1px 0;
66
- text-align: center;
67
- text-overflow: ellipsis;
68
- white-space: nowrap;
69
- color: #FFFFFF;
70
- }
71
-
72
- body[orient="landscape"] > .toolbar > h1 {
73
- margin-left: -125px;
74
- width: 250px;
75
- }
76
-
77
- .button {
78
- position: absolute;
79
- overflow: hidden;
80
- top: 8px;
81
- right: 6px;
82
- margin: 0;
83
- border-width: 0 5px;
84
- padding: 0 3px;
85
- width: auto;
86
- height: 30px;
87
- line-height: 30px;
88
- font-family: inherit;
89
- font-size: 12px;
90
- font-weight: bold;
91
- color: #FFFFFF;
92
- text-shadow: rgba(0, 0, 0, 0.6) 0px -1px 0;
93
- text-overflow: ellipsis;
94
- text-decoration: none;
95
- white-space: nowrap;
96
- background: none;
97
- -webkit-border-image: url(toolButton.png) 0 5 0 5;
98
- }
99
-
100
- .blueButton {
101
- -webkit-border-image: url(blueButton.png) 0 5 0 5;
102
- border-width: 0 5px;
103
- }
104
-
105
- .leftButton {
106
- left: 6px;
107
- right: auto;
108
- }
109
-
110
- #backButton {
111
- display: none;
112
- left: 6px;
113
- right: auto;
114
- padding: 0;
115
- max-width: 55px;
116
- border-width: 0 8px 0 14px;
117
- -webkit-border-image: url(backButton.png) 0 8 0 14;
118
- }
119
-
120
- .whiteButton,
121
- .grayButton {
122
- display: block;
123
- border-width: 0 12px;
124
- padding: 10px;
125
- text-align: center;
126
- font-size: 20px;
127
- font-weight: bold;
128
- text-decoration: inherit;
129
- color: inherit;
130
- }
131
-
132
- .whiteButton {
133
- -webkit-border-image: url(whiteButton.png) 0 12 0 12;
134
- text-shadow: rgba(255, 255, 255, 0.7) 0 1px 0;
135
- }
136
-
137
- .grayButton {
138
- -webkit-border-image: url(grayButton.png) 0 12 0 12;
139
- color: #FFFFFF;
140
- }
141
-
142
- /************************************************************************************************/
143
-
144
- body > ul > li {
145
- position: relative;
146
- margin: 0;
147
- border-bottom: 1px solid #E0E0E0;
148
- padding: 8px 0 8px 10px;
149
- font-size: 20px;
150
- font-weight: bold;
151
- list-style: none;
152
- }
153
-
154
- body > ul > li.group {
155
- position: relative;
156
- top: -1px;
157
- margin-bottom: -2px;
158
- border-top: 1px solid #7d7d7d;
159
- border-bottom: 1px solid #999999;
160
- padding: 1px 10px;
161
- background: url(listGroup.png) repeat-x;
162
- font-size: 17px;
163
- font-weight: bold;
164
- text-shadow: rgba(0, 0, 0, 0.4) 0 1px 0;
165
- color: #FFFFFF;
166
- }
167
-
168
- body > ul > li.group:first-child {
169
- top: 0;
170
- border-top: none;
171
- }
172
-
173
- body > ul > li > a {
174
- display: block;
175
- margin: -8px 0 -8px -10px;
176
- padding: 8px 32px 8px 10px;
177
- text-decoration: none;
178
- color: inherit;
179
- background: url(listArrow.png) no-repeat right center;
180
- }
181
-
182
- a[target="_replace"] {
183
- box-sizing: border-box;
184
- -webkit-box-sizing: border-box;
185
- padding-top: 25px;
186
- padding-bottom: 25px;
187
- font-size: 18px;
188
- color: cornflowerblue;
189
- background-color: #FFFFFF;
190
- background-image: none;
191
- }
192
-
193
- /************************************************************************************************/
194
-
195
- body > .dialog {
196
- top: 0;
197
- width: 100%;
198
- min-height: 417px;
199
- z-index: 2;
200
- background: rgba(0, 0, 0, 0.8);
201
- padding: 0;
202
- text-align: right;
203
- }
204
-
205
- .dialog > fieldset {
206
- box-sizing: border-box;
207
- -webkit-box-sizing: border-box;
208
- width: 100%;
209
- margin: 0;
210
- border: none;
211
- border-top: 1px solid #6d84a2;
212
- padding: 10px 6px;
213
- background: url(toolbar.png) #7388a5 repeat-x;
214
- }
215
-
216
- .dialog > fieldset > h1 {
217
- margin: 0 10px 0 10px;
218
- padding: 0;
219
- font-size: 20px;
220
- font-weight: bold;
221
- color: #FFFFFF;
222
- text-shadow: rgba(0, 0, 0, 0.4) 0px -1px 0;
223
- text-align: center;
224
- }
225
-
226
- .dialog > fieldset > label {
227
- position: absolute;
228
- margin: 16px 0 0 6px;
229
- font-size: 14px;
230
- color: #999999;
231
- }
232
-
233
- input:not(input[type|=radio]):not(input[type|=checkbox]) {
234
- box-sizing: border-box;
235
- -webkit-box-sizing: border-box;
236
- width: 100%;
237
- margin: 8px 0 0 0;
238
- padding: 6px 6px 6px 44px;
239
- font-size: 16px;
240
- font-weight: normal;
241
- }
242
-
243
- /************************************************************************************************/
244
-
245
- body > .panel {
246
- box-sizing: border-box;
247
- -moz-box-sizing: border-box;
248
- -webkit-box-sizing: border-box;
249
- padding: 10px;
250
- background: #c8c8c8 url(pinstripes.png);
251
- }
252
-
253
- .panel > fieldset {
254
- position: relative;
255
- margin: 0 0 20px 0;
256
- padding: 0;
257
- background: #FFFFFF;
258
- -webkit-border-radius: 10px;
259
- -moz-border-radius: 10px;
260
- border: 1px solid #999999;
261
- text-align: right;
262
- font-size: 16px;
263
- }
264
-
265
- .row {
266
- position: relative;
267
- min-height: 42px;
268
- border-bottom: 1px solid #999999;
269
- -webkit-border-radius: 0;
270
- text-align: right;
271
- }
272
-
273
- fieldset > .row:last-child {
274
- border-bottom: none !important;
275
- }
276
-
277
- .row > input:not(input[type|=radio]):not(input[type|=checkbox]) {
278
- box-sizing: border-box;
279
- -moz-box-sizing: border-box;
280
- -webkit-box-sizing: border-box;
281
- margin: 0;
282
- border: none;
283
- padding: 12px 10px 0 110px;
284
- height: 42px;
285
- background: none;
286
- }
287
- .row > input[type|=radio], .row > input[type|=checkbox] {
288
- margin: 7px 7px 0 0;
289
- height: 25px;
290
- width: 25px;
291
- }
292
-
293
- .row > label {
294
- position: absolute;
295
- margin: 0 0 0 14px;
296
- line-height: 42px;
297
- font-weight: bold;
298
- }
299
-
300
- .row > span {
301
- position: absolute;
302
- padding: 12px 10px 0 110px;
303
- margin: 0;
304
- }
305
-
306
- .row > .toggle {
307
- position: absolute;
308
- top: 6px;
309
- right: 6px;
310
- width: 100px;
311
- height: 28px;
312
- }
313
-
314
- .toggle {
315
- border: 1px solid #888888;
316
- -webkit-border-radius: 6px;
317
- background: #FFFFFF url(toggle.png) repeat-x;
318
- font-size: 19px;
319
- font-weight: bold;
320
- line-height: 30px;
321
- }
322
-
323
- .toggle[toggled="true"] {
324
- border: 1px solid #143fae;
325
- background: #194fdb url(toggleOn.png) repeat-x;
326
- }
327
-
328
- .toggleOn {
329
- display: none;
330
- position: absolute;
331
- width: 60px;
332
- text-align: center;
333
- left: 0;
334
- top: 0;
335
- color: #FFFFFF;
336
- text-shadow: rgba(0, 0, 0, 0.4) 0px -1px 0;
337
- }
338
-
339
- .toggleOff {
340
- position: absolute;
341
- width: 60px;
342
- text-align: center;
343
- right: 0;
344
- top: 0;
345
- color: #666666;
346
- }
347
-
348
- .toggle[toggled="true"] > .toggleOn {
349
- display: block;
350
- }
351
-
352
- .toggle[toggled="true"] > .toggleOff {
353
- display: none;
354
- }
355
-
356
- .thumb {
357
- position: absolute;
358
- top: -1px;
359
- left: -1px;
360
- width: 40px;
361
- height: 28px;
362
- border: 1px solid #888888;
363
- -webkit-border-radius: 6px;
364
- background: #ffffff url(thumb.png) repeat-x;
365
- }
366
-
367
- .toggle[toggled="true"] > .thumb {
368
- left: auto;
369
- right: -1px;
370
- }
371
-
372
- .panel > h2 {
373
- margin: 0 0 8px 14px;
374
- font-size: inherit;
375
- font-weight: bold;
376
- color: #4d4d70;
377
- text-shadow: rgba(255, 255, 255, 0.75) 2px 2px 0;
378
- }
379
-
380
- /************************************************************************************************/
381
-
382
- #preloader {
383
- display: none;
384
- background-image: url(loading.gif), url(selection.png),
385
- url(blueButton.png), url(listArrowSel.png), url(listGroup.png);
386
- }