ramaze 0.1.3 → 0.1.4

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 (149) hide show
  1. data/bin/ramaze +58 -26
  2. data/doc/AUTHORS +2 -0
  3. data/doc/CHANGELOG +401 -0
  4. data/doc/README +14 -9
  5. data/doc/README.html +737 -0
  6. data/doc/TODO +14 -14
  7. data/doc/changes.txt +401 -0
  8. data/doc/changes.xml +401 -0
  9. data/doc/meta/announcement.txt +28 -15
  10. data/doc/meta/configuration.txt +3 -3
  11. data/doc/meta/internals.txt +2 -2
  12. data/doc/meta/users.kml +62 -0
  13. data/doc/readme_chunks/examples.txt +1 -1
  14. data/doc/readme_chunks/features.txt +13 -8
  15. data/doc/tutorial/todolist.html +2 -2
  16. data/doc/tutorial/todolist.mkd +2 -2
  17. data/examples/blog/README +3 -0
  18. data/examples/blog/spec/blog.rb +101 -0
  19. data/examples/blog/{main.rb → start.rb} +0 -0
  20. data/examples/caching.rb +16 -5
  21. data/examples/layout.rb +41 -0
  22. data/examples/templates/template_amrita2.rb +1 -1
  23. data/examples/templates/template_erubis.rb +1 -1
  24. data/examples/templates/template_ezamar.rb +1 -1
  25. data/examples/templates/template_haml.rb +1 -1
  26. data/examples/templates/template_liquid.rb +1 -1
  27. data/examples/templates/template_markaby.rb +1 -1
  28. data/examples/templates/template_remarkably.rb +1 -1
  29. data/examples/todolist/README +1 -0
  30. data/{spec/examples → examples/todolist/spec}/todolist.rb +3 -3
  31. data/examples/todolist/{main.rb → start.rb} +0 -0
  32. data/examples/whywiki/{main.rb → start.rb} +0 -0
  33. data/examples/wiktacular/README +2 -0
  34. data/examples/wiktacular/spec/wiktacular.rb +146 -0
  35. data/examples/wiktacular/src/controller.rb +11 -0
  36. data/examples/wiktacular/src/model.rb +5 -1
  37. data/examples/wiktacular/{main.rb → start.rb} +0 -1
  38. data/examples/wiktacular/template/edit.xhtml +1 -2
  39. data/examples/wiktacular/template/html_layout.xhtml +27 -0
  40. data/examples/wiktacular/template/index.xhtml +8 -10
  41. data/examples/wiktacular/template/new.xhtml +1 -2
  42. data/lib/proto/{main.rb → start.rb} +0 -0
  43. data/lib/proto/template/index.xhtml +1 -1
  44. data/lib/ramaze/action/render.rb +58 -4
  45. data/lib/ramaze/action.rb +20 -0
  46. data/lib/ramaze/adapter/cgi.rb +7 -4
  47. data/lib/ramaze/adapter/fcgi.rb +6 -4
  48. data/lib/ramaze/adapter/mongrel.rb +4 -0
  49. data/lib/ramaze/adapter/webrick.rb +20 -9
  50. data/lib/ramaze/adapter.rb +3 -1
  51. data/lib/ramaze/cache/memcached.rb +2 -26
  52. data/lib/ramaze/cache.rb +8 -4
  53. data/lib/ramaze/controller/resolve.rb +26 -8
  54. data/lib/ramaze/controller.rb +44 -7
  55. data/lib/ramaze/dispatcher/action.rb +5 -1
  56. data/lib/ramaze/dispatcher/directory.rb +115 -0
  57. data/lib/ramaze/dispatcher/error.rb +19 -5
  58. data/lib/ramaze/dispatcher/file.rb +2 -2
  59. data/lib/ramaze/dispatcher.rb +52 -39
  60. data/lib/ramaze/global/dsl.rb +3 -2
  61. data/lib/ramaze/global/globalstruct.rb +26 -4
  62. data/lib/ramaze/global.rb +20 -11
  63. data/lib/ramaze/helper/aspect.rb +29 -11
  64. data/lib/ramaze/helper/auth.rb +2 -2
  65. data/lib/ramaze/helper/cache.rb +2 -0
  66. data/lib/ramaze/helper/identity.rb +21 -6
  67. data/lib/ramaze/helper/link.rb +1 -1
  68. data/lib/ramaze/helper/pager.rb +158 -100
  69. data/lib/ramaze/helper/partial.rb +22 -0
  70. data/lib/ramaze/helper/redirect.rb +1 -2
  71. data/lib/ramaze/helper/stack.rb +1 -1
  72. data/lib/ramaze/inform/informer.rb +20 -0
  73. data/lib/ramaze/inform/syslog.rb +5 -0
  74. data/lib/ramaze/snippets/kernel/__dir__.rb +21 -0
  75. data/lib/ramaze/snippets/kernel/aquire.rb +22 -12
  76. data/lib/ramaze/snippets/numeric/human_readable_filesize_format.rb +33 -0
  77. data/lib/ramaze/snippets/ramaze/caller_lines.rb +1 -1
  78. data/lib/ramaze/snippets/struct/values_at.rb +11 -4
  79. data/lib/ramaze/sourcereload.rb +29 -1
  80. data/{spec → lib/ramaze/spec}/helper/context.rb +0 -0
  81. data/{spec → lib/ramaze/spec}/helper/layout.rb +1 -1
  82. data/{spec → lib/ramaze/spec}/helper/minimal.rb +0 -0
  83. data/{spec → lib/ramaze/spec}/helper/mock_http.rb +0 -0
  84. data/{spec → lib/ramaze/spec}/helper/requester.rb +0 -0
  85. data/{spec → lib/ramaze/spec}/helper/simple_http.rb +0 -0
  86. data/{spec → lib/ramaze/spec}/helper/wrap.rb +0 -0
  87. data/lib/ramaze/spec/helper.rb +60 -0
  88. data/lib/ramaze/store/default.rb +3 -0
  89. data/lib/ramaze/template/ezamar/render_partial.rb +3 -0
  90. data/lib/ramaze/template/sass.rb +45 -0
  91. data/lib/ramaze/template.rb +1 -1
  92. data/lib/ramaze/tool/create.rb +5 -5
  93. data/lib/ramaze/tool/localize.rb +26 -5
  94. data/lib/ramaze/tool/mime.rb +7 -0
  95. data/lib/ramaze/trinity/response.rb +15 -0
  96. data/lib/ramaze/trinity/session.rb +1 -1
  97. data/lib/ramaze/version.rb +1 -1
  98. data/lib/ramaze.rb +5 -0
  99. data/rake_tasks/conf.rake +4 -4
  100. data/rake_tasks/maintaince.rake +12 -7
  101. data/rake_tasks/spec.rake +7 -4
  102. data/spec/examples/caching.rb +6 -8
  103. data/spec/helper.rb +3 -60
  104. data/spec/ramaze/action/basics.rb +17 -0
  105. data/spec/ramaze/action/cache.rb +28 -0
  106. data/spec/ramaze/action/layout.rb +110 -0
  107. data/spec/ramaze/action/render.rb +14 -0
  108. data/spec/ramaze/action/template/bar.xhtml +1 -0
  109. data/spec/ramaze/action/template/other_wrapper.xhtml +1 -0
  110. data/spec/ramaze/action/template/single_wrapper.xhtml +1 -0
  111. data/spec/ramaze/controller/template/edit/content.xhtml +1 -0
  112. data/spec/ramaze/controller/template/edit.xhtml +1 -0
  113. data/spec/ramaze/controller/template_resolving.rb +2 -2
  114. data/spec/ramaze/dispatcher/directory.rb +53 -0
  115. data/spec/ramaze/dispatcher/file.rb +0 -3
  116. data/spec/ramaze/error.rb +17 -2
  117. data/spec/ramaze/helper/aspect.rb +14 -20
  118. data/spec/ramaze/helper/pager.rb +83 -1
  119. data/spec/ramaze/helper/partial.rb +1 -1
  120. data/spec/ramaze/helper/template/test_template.xhtml +1 -0
  121. data/spec/ramaze/inform/informer.rb +37 -5
  122. data/spec/ramaze/localize.rb +1 -1
  123. data/spec/ramaze/template/haml.rb +5 -5
  124. data/spec/ramaze/template/sass/file.css.sass +5 -0
  125. data/spec/ramaze/template/sass.rb +46 -0
  126. data/spec/ramaze/template.rb +1 -1
  127. data/spec/ramaze/trinity/session.rb +27 -0
  128. data/spec/snippets/kernel/__dir__.rb +8 -0
  129. data/spec/snippets/kernel/aquire.rb +71 -0
  130. data/spec/snippets/kernel/constant.rb +27 -0
  131. data/spec/snippets/numeric/human_readable_filesize_format.rb +11 -0
  132. data/spec/snippets/ramaze/caller_info.rb +39 -0
  133. data/spec/snippets/ramaze/caller_lines.rb +27 -0
  134. data/spec/snippets/string/DIVIDE.rb +18 -0
  135. data/spec/snippets/string/camel_case.rb +25 -0
  136. data/spec/snippets/string/color.rb +11 -0
  137. data/spec/snippets/string/snake_case.rb +17 -0
  138. data/spec/snippets/struct/fill.rb +27 -0
  139. data/spec/snippets/struct/values_at.rb +39 -0
  140. metadata +71 -31
  141. data/examples/todolist/todolist.db +0 -5
  142. data/examples/wiktacular/src/page.rb +0 -66
  143. data/lib/ramaze/helper/feed.rb +0 -135
  144. data/lib/ramaze/helper/form.rb +0 -204
  145. data/lib/ramaze/snippets/openstruct/temp.rb +0 -13
  146. data/lib/ramaze/store/yaml.rb +0 -170
  147. data/spec/ramaze/helper/feed.rb +0 -127
  148. data/spec/ramaze/helper/form.rb +0 -146
  149. data/spec/ramaze/store/yaml.rb +0 -76
@@ -0,0 +1,11 @@
1
+ require 'spec/helper'
2
+
3
+ describe 'String#color' do
4
+ it 'should define methods to return ANSI strings' do
5
+ %w[reset bold dark underline blink negative
6
+ black red green yellow blue magenta cyan white].each do |m|
7
+ "string".respond_to? m
8
+ "string".send(m).should match(/\e\[\d+mstring\e\[0m/)
9
+ end
10
+ end
11
+ end
@@ -0,0 +1,17 @@
1
+ require 'spec/helper'
2
+
3
+ describe "String#snake_case" do
4
+
5
+ it 'should snake_case a camelCase' do
6
+ 'CamelCase'.snake_case.should == 'camel_case'
7
+ end
8
+
9
+ it 'should snake_case a CamelCaseLong' do
10
+ 'CamelCaseLong'.snake_case.should == 'camel_case_long'
11
+ end
12
+
13
+ it 'will keep existing _' do
14
+ 'Camel_Case'.snake_case.should == 'camel__case'
15
+ end
16
+
17
+ end
@@ -0,0 +1,27 @@
1
+ require 'spec/helper'
2
+
3
+ describe "Struct.fill" do
4
+
5
+ Point = Struct.new(:x,:y)
6
+ it "should return a well set struct" do
7
+ p = Point.fill(:x=>1,:y=>2)
8
+ p.should be_an_instance_of(Point)
9
+ p[0].should == 1
10
+ p[1].should == 2
11
+ end
12
+
13
+ it "should work with partial arguments" do
14
+ p = Point.fill(:x=>1)
15
+ p.should be_an_instance_of(Point)
16
+ p[0].should == 1
17
+ p[1].should == nil
18
+ end
19
+
20
+ it "should not fail with foreign keys" do
21
+ p = Point.fill(:k=>1)
22
+ p.should be_an_instance_of(Point)
23
+ p[0].should == nil
24
+ p[1].should == nil
25
+ end
26
+
27
+ end
@@ -0,0 +1,39 @@
1
+ require 'spec/helper'
2
+
3
+ describe "Struct#values_at" do
4
+ Point = Struct.new(:x,:y)
5
+
6
+ it "should access a single value" do
7
+ Point.new(1,2).values_at(:x).should == [1]
8
+ end
9
+
10
+ it "should access multiple values" do
11
+ Point.new(1,2).values_at(:x,:y).should == [1,2]
12
+ end
13
+
14
+ it "should access values regardless of order" do
15
+ Point.new(1,2).values_at(:y,:x).should == [2,1]
16
+ end
17
+
18
+ it "should get same value twice" do
19
+ Point.new(1,2).values_at(:x,:x).should == [1,1]
20
+ end
21
+
22
+ it "should raise on wrong value" do
23
+ # shouldn't this be NoMethodError ?
24
+ lambda{Point.new(1,2).values_at(:k)}.should raise_error(NameError)
25
+ end
26
+
27
+ it "should work with strings" do
28
+ Point.new(1).values_at('x').should == [1]
29
+ end
30
+
31
+ it "should work with numbers (ruby compat)" do
32
+ Point.new(1).values_at(0).should == [1]
33
+ end
34
+
35
+ it "should work with mixed args" do
36
+ Point.new(1).values_at(0,:x,'x',:y).should == [1,1,1,nil]
37
+ end
38
+
39
+ end
metadata CHANGED
@@ -3,15 +3,15 @@ rubygems_version: 0.9.4
3
3
  specification_version: 1
4
4
  name: ramaze
5
5
  version: !ruby/object:Gem::Version
6
- version: 0.1.3
7
- date: 2007-07-21 00:00:00 +09:00
8
- summary: Ramaze tries to be a very simple Webframework without the voodoo
6
+ version: 0.1.4
7
+ date: 2007-09-06 00:00:00 +09:00
8
+ summary: Ramaze is a simple and modular web framework
9
9
  require_paths:
10
10
  - lib
11
11
  email: m.fellinger@gmail.com
12
12
  homepage: http://ramaze.rubyforge.org
13
13
  rubyforge_project:
14
- description: Ramaze tries to be a very simple Webframework without the voodoo
14
+ description: Ramaze is a simple and modular web framework
15
15
  autorequire:
16
16
  default_executable:
17
17
  bindir: bin
@@ -34,9 +34,6 @@ post_install_message: |-
34
34
  * Create a new project using the `ramaze' command:
35
35
  ramaze --create yourproject
36
36
 
37
- * Browse and try the Examples in
38
- /usr/lib/ruby/gems/1.8/gems/ramaze-0.1.3/examples
39
-
40
37
  ============================================================
41
38
  authors:
42
39
  - manveru
@@ -52,14 +49,17 @@ files:
52
49
  - examples/blog/src/model.rb
53
50
  - examples/blog/src/controller.rb
54
51
  - examples/blog/src/view.rb
52
+ - examples/blog/spec
53
+ - examples/blog/spec/blog.rb
54
+ - examples/blog/README
55
55
  - examples/blog/template
56
56
  - examples/blog/template/new.xhtml
57
57
  - examples/blog/template/edit.xhtml
58
58
  - examples/blog/template/index.xhtml
59
- - examples/blog/main.rb
60
59
  - examples/blog/public
61
60
  - examples/blog/public/styles
62
61
  - examples/blog/public/styles/blog.css
62
+ - examples/blog/start.rb
63
63
  - examples/nitro_form.rb
64
64
  - examples/caching.rb
65
65
  - examples/wiktacular
@@ -86,15 +86,18 @@ files:
86
86
  - examples/wiktacular/src
87
87
  - examples/wiktacular/src/model.rb
88
88
  - examples/wiktacular/src/controller.rb
89
- - examples/wiktacular/src/page.rb
89
+ - examples/wiktacular/spec
90
+ - examples/wiktacular/spec/wiktacular.rb
91
+ - examples/wiktacular/README
90
92
  - examples/wiktacular/template
91
93
  - examples/wiktacular/template/new.xhtml
94
+ - examples/wiktacular/template/html_layout.xhtml
92
95
  - examples/wiktacular/template/edit.xhtml
93
96
  - examples/wiktacular/template/index.xhtml
94
- - examples/wiktacular/main.rb
95
97
  - examples/wiktacular/public
96
98
  - examples/wiktacular/public/favicon.ico
97
99
  - examples/wiktacular/public/screen.css
100
+ - examples/wiktacular/start.rb
98
101
  - examples/fcgi.rb
99
102
  - examples/memleak_detector.rb
100
103
  - examples/todolist
@@ -104,25 +107,28 @@ files:
104
107
  - examples/todolist/src/model.rb
105
108
  - examples/todolist/src/controller
106
109
  - examples/todolist/src/controller/main.rb
107
- - examples/todolist/todolist.db
110
+ - examples/todolist/spec
111
+ - examples/todolist/spec/todolist.rb
112
+ - examples/todolist/README
108
113
  - examples/todolist/template
109
114
  - examples/todolist/template/new.xhtml
110
115
  - examples/todolist/template/index.xhtml
111
- - examples/todolist/main.rb
112
116
  - examples/todolist/public
113
117
  - examples/todolist/public/js
114
118
  - examples/todolist/public/js/jquery.js
115
119
  - examples/todolist/public/css
116
120
  - examples/todolist/public/favicon.ico
117
121
  - examples/todolist/public/ramaze.png
122
+ - examples/todolist/start.rb
118
123
  - examples/identity.rb
124
+ - examples/layout.rb
119
125
  - examples/element.rb
120
126
  - examples/simple.rb
121
127
  - examples/whywiki
122
128
  - examples/whywiki/template
123
129
  - examples/whywiki/template/show.xhtml
124
130
  - examples/whywiki/template/edit.xhtml
125
- - examples/whywiki/main.rb
131
+ - examples/whywiki/start.rb
126
132
  - examples/hello.rb
127
133
  - examples/templates
128
134
  - examples/templates/template_ezamar.rb
@@ -147,6 +153,7 @@ files:
147
153
  - doc/meta/internals.txt
148
154
  - doc/meta/configuration.txt
149
155
  - doc/meta/announcement.txt
156
+ - doc/meta/users.kml
150
157
  - doc/migrate
151
158
  - doc/migrate/1110_to_1111.txt
152
159
  - doc/readme_chunks
@@ -163,32 +170,27 @@ files:
163
170
  - doc/tutorial/todolist.html
164
171
  - doc/tutorial/todolist.mkd
165
172
  - doc/AUTHORS
173
+ - doc/README.html
166
174
  - doc/INSTALL
167
175
  - doc/COPYING
168
176
  - doc/ProjectInfo
169
177
  - doc/changes.txt
170
178
  - doc/changes.xml
171
- - spec/helper
172
- - spec/helper/context.rb
173
- - spec/helper/simple_http.rb
174
- - spec/helper/mock_http.rb
175
- - spec/helper/layout.rb
176
- - spec/helper/requester.rb
177
- - spec/helper/wrap.rb
178
- - spec/helper/minimal.rb
179
179
  - spec/ramaze
180
180
  - spec/ramaze/request
181
181
  - spec/ramaze/request/mongrel.rb
182
182
  - spec/ramaze/request/webrick.rb
183
183
  - spec/ramaze/store
184
- - spec/ramaze/store/yaml.rb
185
184
  - spec/ramaze/store/default.rb
186
185
  - spec/ramaze/error.rb
187
186
  - spec/ramaze/template
188
187
  - spec/ramaze/template/haml
189
188
  - spec/ramaze/template/haml/index.haml
190
189
  - spec/ramaze/template/haml/with_vars.haml
190
+ - spec/ramaze/template/sass
191
+ - spec/ramaze/template/sass/file.css.sass
191
192
  - spec/ramaze/template/markaby.rb
193
+ - spec/ramaze/template/sass.rb
192
194
  - spec/ramaze/template/ezamar.rb
193
195
  - spec/ramaze/template/erubis.rb
194
196
  - spec/ramaze/template/markaby
@@ -225,6 +227,12 @@ files:
225
227
  - spec/ramaze/cache.rb
226
228
  - spec/ramaze/action
227
229
  - spec/ramaze/action/basics.rb
230
+ - spec/ramaze/action/template
231
+ - spec/ramaze/action/template/bar.xhtml
232
+ - spec/ramaze/action/template/single_wrapper.xhtml
233
+ - spec/ramaze/action/template/other_wrapper.xhtml
234
+ - spec/ramaze/action/cache.rb
235
+ - spec/ramaze/action/layout.rb
228
236
  - spec/ramaze/action/render.rb
229
237
  - spec/ramaze/template.rb
230
238
  - spec/ramaze/tidy.rb
@@ -232,14 +240,13 @@ files:
232
240
  - spec/ramaze/helper/pager.rb
233
241
  - spec/ramaze/helper/link.rb
234
242
  - spec/ramaze/helper/template
243
+ - spec/ramaze/helper/template/test_template.xhtml
235
244
  - spec/ramaze/helper/template/partial.xhtml
236
245
  - spec/ramaze/helper/cache.rb
237
246
  - spec/ramaze/helper/partial.rb
238
- - spec/ramaze/helper/feed.rb
239
247
  - spec/ramaze/helper/file.rb
240
248
  - spec/ramaze/helper/cgi.rb
241
249
  - spec/ramaze/helper/redirect.rb
242
- - spec/ramaze/helper/form.rb
243
250
  - spec/ramaze/helper/flash.rb
244
251
  - spec/ramaze/helper/stack.rb
245
252
  - spec/ramaze/helper/auth.rb
@@ -249,6 +256,8 @@ files:
249
256
  - spec/ramaze/inform
250
257
  - spec/ramaze/inform/informer.rb
251
258
  - spec/ramaze/inform/syslog.rb
259
+ - spec/ramaze/trinity
260
+ - spec/ramaze/trinity/session.rb
252
261
  - spec/ramaze/adapter
253
262
  - spec/ramaze/adapter/mongrel.rb
254
263
  - spec/ramaze/adapter/webrick.rb
@@ -257,11 +266,14 @@ files:
257
266
  - spec/ramaze/controller
258
267
  - spec/ramaze/controller/template_resolving.rb
259
268
  - spec/ramaze/controller/template
269
+ - spec/ramaze/controller/template/edit
270
+ - spec/ramaze/controller/template/edit/content.xhtml
260
271
  - spec/ramaze/controller/template/other
261
272
  - spec/ramaze/controller/template/other/greet
262
273
  - spec/ramaze/controller/template/other/greet/other.xhtml
263
274
  - spec/ramaze/controller/template/greet.xhtml
264
275
  - spec/ramaze/controller/template/list.xhtml
276
+ - spec/ramaze/controller/template/edit.xhtml
265
277
  - spec/ramaze/controller.rb
266
278
  - spec/ramaze/public
267
279
  - spec/ramaze/public/favicon.ico
@@ -273,6 +285,7 @@ files:
273
285
  - spec/ramaze/dispatcher/public
274
286
  - spec/ramaze/dispatcher/public/favicon.ico
275
287
  - spec/ramaze/dispatcher/public/test_download.css
288
+ - spec/ramaze/dispatcher/directory.rb
276
289
  - spec/ramaze/gestalt.rb
277
290
  - spec/ramaze/session.rb
278
291
  - spec/ramaze/element.rb
@@ -280,7 +293,6 @@ files:
280
293
  - spec/ramaze/params.rb
281
294
  - spec/examples
282
295
  - spec/examples/caching.rb
283
- - spec/examples/todolist.rb
284
296
  - spec/examples/element.rb
285
297
  - spec/examples/simple.rb
286
298
  - spec/examples/hello.rb
@@ -293,6 +305,24 @@ files:
293
305
  - spec/examples/templates/template_haml.rb
294
306
  - spec/examples/templates/template_markaby.rb
295
307
  - spec/helper.rb
308
+ - spec/snippets
309
+ - spec/snippets/kernel
310
+ - spec/snippets/kernel/constant.rb
311
+ - spec/snippets/kernel/aquire.rb
312
+ - spec/snippets/kernel/__dir__.rb
313
+ - spec/snippets/ramaze
314
+ - spec/snippets/ramaze/caller_lines.rb
315
+ - spec/snippets/ramaze/caller_info.rb
316
+ - spec/snippets/string
317
+ - spec/snippets/string/color.rb
318
+ - spec/snippets/string/DIVIDE.rb
319
+ - spec/snippets/string/camel_case.rb
320
+ - spec/snippets/string/snake_case.rb
321
+ - spec/snippets/struct
322
+ - spec/snippets/struct/fill.rb
323
+ - spec/snippets/struct/values_at.rb
324
+ - spec/snippets/numeric
325
+ - spec/snippets/numeric/human_readable_filesize_format.rb
296
326
  - lib/proto
297
327
  - lib/proto/doc
298
328
  - lib/proto/log
@@ -305,7 +335,6 @@ files:
305
335
  - lib/proto/test
306
336
  - lib/proto/template
307
337
  - lib/proto/template/index.xhtml
308
- - lib/proto/main.rb
309
338
  - lib/proto/public
310
339
  - lib/proto/public/js
311
340
  - lib/proto/public/js/jquery.js
@@ -314,8 +343,19 @@ files:
314
343
  - lib/proto/public/favicon.ico
315
344
  - lib/proto/public/ramaze.png
316
345
  - lib/proto/public/error.zmr
346
+ - lib/proto/start.rb
317
347
  - lib/ramaze.rb
318
348
  - lib/ramaze
349
+ - lib/ramaze/spec
350
+ - lib/ramaze/spec/helper
351
+ - lib/ramaze/spec/helper/context.rb
352
+ - lib/ramaze/spec/helper/simple_http.rb
353
+ - lib/ramaze/spec/helper/mock_http.rb
354
+ - lib/ramaze/spec/helper/layout.rb
355
+ - lib/ramaze/spec/helper/requester.rb
356
+ - lib/ramaze/spec/helper/wrap.rb
357
+ - lib/ramaze/spec/helper/minimal.rb
358
+ - lib/ramaze/spec/helper.rb
319
359
  - lib/ramaze/tool
320
360
  - lib/ramaze/tool/mime_types.yaml
321
361
  - lib/ramaze/tool/record.rb
@@ -328,11 +368,11 @@ files:
328
368
  - lib/ramaze/cache/memcached.rb
329
369
  - lib/ramaze/cache/memory.rb
330
370
  - lib/ramaze/store
331
- - lib/ramaze/store/yaml.rb
332
371
  - lib/ramaze/store/default.rb
333
372
  - lib/ramaze/error.rb
334
373
  - lib/ramaze/template
335
374
  - lib/ramaze/template/markaby.rb
375
+ - lib/ramaze/template/sass.rb
336
376
  - lib/ramaze/template/ezamar.rb
337
377
  - lib/ramaze/template/erubis.rb
338
378
  - lib/ramaze/template/liquid.rb
@@ -358,11 +398,9 @@ files:
358
398
  - lib/ramaze/helper/link.rb
359
399
  - lib/ramaze/helper/cache.rb
360
400
  - lib/ramaze/helper/partial.rb
361
- - lib/ramaze/helper/feed.rb
362
401
  - lib/ramaze/helper/file.rb
363
402
  - lib/ramaze/helper/cgi.rb
364
403
  - lib/ramaze/helper/redirect.rb
365
- - lib/ramaze/helper/form.rb
366
404
  - lib/ramaze/helper/identity.rb
367
405
  - lib/ramaze/helper/flash.rb
368
406
  - lib/ramaze/helper/stack.rb
@@ -400,6 +438,7 @@ files:
400
438
  - lib/ramaze/dispatcher
401
439
  - lib/ramaze/dispatcher/error.rb
402
440
  - lib/ramaze/dispatcher/file.rb
441
+ - lib/ramaze/dispatcher/directory.rb
403
442
  - lib/ramaze/dispatcher/action.rb
404
443
  - lib/ramaze/trinity.rb
405
444
  - lib/ramaze/gestalt.rb
@@ -407,12 +446,11 @@ files:
407
446
  - lib/ramaze/action.rb
408
447
  - lib/ramaze/helper.rb
409
448
  - lib/ramaze/snippets
410
- - lib/ramaze/snippets/openstruct
411
- - lib/ramaze/snippets/openstruct/temp.rb
412
449
  - lib/ramaze/snippets/kernel
413
450
  - lib/ramaze/snippets/kernel/constant.rb
414
451
  - lib/ramaze/snippets/kernel/aquire.rb
415
452
  - lib/ramaze/snippets/kernel/pretty_inspect.rb
453
+ - lib/ramaze/snippets/kernel/__dir__.rb
416
454
  - lib/ramaze/snippets/object
417
455
  - lib/ramaze/snippets/object/traits.rb
418
456
  - lib/ramaze/snippets/ramaze
@@ -429,6 +467,8 @@ files:
429
467
  - lib/ramaze/snippets/struct/values_at.rb
430
468
  - lib/ramaze/snippets/symbol
431
469
  - lib/ramaze/snippets/symbol/to_proc.rb
470
+ - lib/ramaze/snippets/numeric
471
+ - lib/ramaze/snippets/numeric/human_readable_filesize_format.rb
432
472
  - lib/ramaze/version.rb
433
473
  - lib/ramaze/inform.rb
434
474
  - rake_tasks/conf.rake
@@ -1,5 +0,0 @@
1
- ---
2
- Wash dishes:
3
- :done: false
4
- Laundry:
5
- :done: false
@@ -1,66 +0,0 @@
1
- class Page < Ezamar::Element
2
- def head
3
- %{
4
- <html>
5
- <head>
6
- <title>Wiktacular</title>
7
- <link rel="stylesheet" type="text/css" media="screen" href="/screen.css" />
8
- </head>
9
- <body>
10
- }
11
- end
12
-
13
- def menu
14
- %{
15
- <div id="menu">
16
- <a href="/main">Home</a>
17
- <a href="/new">New Entry</a>
18
- </div>
19
- }
20
- end
21
-
22
- def navigation
23
- nodes = Dir['mkd/*'].map{|f|
24
- name = File.basename(f)
25
- %[<a href="/#{name}">#{name}</a>]
26
- }.join("\n")
27
- %{
28
- <div id="navigation">
29
- <div id="nodes">
30
- #{nodes}
31
- </div>
32
- </div>
33
- }
34
- end
35
-
36
- def main
37
- %{
38
- <div id="manipulate">
39
- <a href="/edit/\#@handle">Edit</a>
40
- <a href="/delete/\#@handle">Delete</a>
41
- <a href="/revert/\#@handle">Revert</a>
42
- <a href="/unrevert/\#@handle">Unrevert</a>
43
- </div>
44
- <div id="content">
45
- #{content}
46
- </div>
47
- }
48
- end
49
-
50
- def render
51
- head +
52
- menu +
53
- navigation +
54
- main +
55
- footer
56
- end
57
-
58
-
59
- def footer
60
- %{
61
- <div id="copyright">Wiktacular is powered by <a href="http://ramaze.rubyforge.org/">Ramaze</a></div>
62
- </body>
63
- </html>
64
- }
65
- end
66
- end