Pistos-ramaze 2009.04.08 → 2009.06.12
Sign up to get free protection for your applications and to get access to all the features.
- data/.gitignore +3 -0
- data/MANIFEST +37 -22
- data/{README.markdown → README.md} +5 -24
- data/Rakefile +33 -26
- data/benchmark/bench_templates/bench.rb +67 -0
- data/benchmark/bench_templates/view/large.erb +79 -0
- data/benchmark/bench_templates/view/large.haml +41 -0
- data/benchmark/bench_templates/view/large.xhtml +79 -0
- data/benchmark/bench_templates/view/small.erb +21 -0
- data/benchmark/bench_templates/view/small.haml +12 -0
- data/benchmark/bench_templates/view/small.xhtml +21 -0
- data/benchmark/run.rb +14 -21
- data/benchmark/suite/minimal.rb +3 -5
- data/benchmark/suite/no_informer.rb +0 -2
- data/benchmark/suite/no_sessions.rb +3 -4
- data/benchmark/suite/no_template.rb +1 -3
- data/benchmark/suite/simple.rb +1 -3
- data/benchmark/suite/template_erubis.rb +0 -2
- data/benchmark/suite/template_etanni.rb +8 -0
- data/benchmark/suite/template_ezamar.rb +1 -3
- data/benchmark/suite/template_haml.rb +0 -2
- data/benchmark/suite/template_liquid.rb +0 -2
- data/benchmark/suite/template_markaby.rb +0 -2
- data/benchmark/suite/template_nagoro.rb +1 -3
- data/benchmark/suite/template_redcloth.rb +0 -2
- data/benchmark/suite/template_tenjin.rb +0 -2
- data/bin/ramaze +11 -163
- data/doc/AUTHORS +15 -8
- data/doc/CHANGELOG +10094 -12262
- data/doc/meta/announcement.txt +93 -46
- data/doc/tutorial/todolist.html +22 -58
- data/doc/tutorial/todolist.txt +20 -39
- data/examples/app/auth/layout/{auth.nag → auth.xhtml} +0 -0
- data/examples/app/auth/view/{index.nag → index.xhtml} +0 -0
- data/examples/app/auth/view/{login.nag → login.xhtml} +0 -0
- data/examples/app/auth/view/{secret.nag → secret.xhtml} +0 -0
- data/examples/app/blog/app.rb +1 -1
- data/examples/app/blog/controller/comment.rb +1 -1
- data/examples/app/blog/controller/entry.rb +12 -3
- data/examples/app/blog/model/init.rb +5 -0
- data/examples/app/blog/model/tag.rb +2 -2
- data/examples/app/blog/view/entry/index.nag +3 -3
- data/examples/app/blog/view/feed.atom.nag +1 -1
- data/examples/app/blog/view/feed.rss.nag +1 -1
- data/examples/app/blog/view/index.nag +1 -1
- data/examples/app/blog/view/tag/index.nag +1 -1
- data/examples/app/chat/layout/{default.nag → default.xhtml} +0 -0
- data/examples/app/chat/view/{chat.nag → chat.xhtml} +0 -0
- data/examples/app/chat/view/{index.nag → index.xhtml} +0 -0
- data/examples/app/localization/locale/de.yaml +5 -0
- data/examples/app/localization/locale/en.yaml +5 -0
- data/examples/app/localization/locale/ja.yaml +5 -0
- data/examples/app/localization/start.rb +33 -20
- data/examples/app/wikore/spec/wikore.rb +4 -6
- data/examples/app/wikore/src/controller.rb +9 -11
- data/examples/app/wikore/src/model.rb +7 -10
- data/examples/app/wikore/start.rb +1 -1
- data/examples/app/wikore/{template → view}/index.xhtml +0 -0
- data/examples/helpers/cache.rb +6 -4
- data/examples/misc/css.rb +6 -12
- data/examples/misc/rapp.rb +28 -17
- data/lib/proto/app.rb +14 -0
- data/lib/proto/config.ru +8 -5
- data/lib/proto/controller/init.rb +3 -3
- data/lib/proto/spec/main.rb +9 -11
- data/lib/proto/start.rb +6 -10
- data/lib/ramaze.rb +8 -9
- data/lib/ramaze/app.rb +4 -3
- data/lib/ramaze/cache/localmemcache.rb +2 -2
- data/lib/ramaze/cache/memcache.rb +26 -1
- data/lib/ramaze/cache/sequel.rb +24 -9
- data/lib/ramaze/contrib/addressable_route.rb +56 -0
- data/lib/ramaze/contrib/email.rb +2 -0
- data/lib/ramaze/contrib/facebook/facebook.rb +4 -4
- data/lib/ramaze/contrib/sequel/create_join.rb +1 -0
- data/lib/ramaze/contrib/sequel/form_field.rb +4 -4
- data/lib/ramaze/contrib/sequel/image.rb +9 -11
- data/lib/ramaze/contrib/sequel/relation.rb +17 -3
- data/lib/ramaze/controller.rb +26 -18
- data/lib/ramaze/gestalt.rb +4 -1
- data/lib/ramaze/helper.rb +1 -0
- data/lib/ramaze/helper/auth.rb +0 -5
- data/lib/ramaze/helper/cache.rb +65 -25
- data/lib/ramaze/helper/form.rb +14 -2
- data/lib/ramaze/helper/formatting.rb +3 -1
- data/lib/ramaze/helper/gestalt.rb +32 -0
- data/lib/ramaze/helper/identity.rb +3 -3
- data/lib/ramaze/helper/layout.rb +97 -0
- data/lib/ramaze/helper/link.rb +6 -25
- data/lib/ramaze/helper/localize.rb +13 -3
- data/lib/ramaze/helper/paginate.rb +4 -2
- data/lib/ramaze/helper/ultraviolet.rb +2 -0
- data/lib/ramaze/helper/user.rb +3 -3
- data/lib/ramaze/log/rotatinginformer.rb +10 -10
- data/lib/ramaze/request.rb +3 -5
- data/lib/ramaze/setup.rb +22 -9
- data/lib/ramaze/spec.rb +8 -12
- data/lib/ramaze/spec/bacon.rb +34 -0
- data/lib/ramaze/spec/helper/template_examples.rb +15 -22
- data/lib/ramaze/tool/bin.rb +340 -0
- data/lib/ramaze/tool/project_creator.rb +1 -1
- data/lib/ramaze/version.rb +1 -1
- data/lib/ramaze/view.rb +6 -11
- data/lib/ramaze/view/erubis.rb +2 -2
- data/lib/ramaze/view/ezamar.rb +2 -2
- data/lib/ramaze/view/gestalt.rb +14 -0
- data/lib/ramaze/view/haml.rb +2 -1
- data/lib/ramaze/view/liquid.rb +45 -11
- data/lib/ramaze/view/maruku.rb +2 -1
- data/lib/ramaze/view/nagoro/render_partial.rb +9 -9
- data/lib/ramaze/view/sass.rb +1 -1
- data/lib/ramaze/view/tenjin.rb +7 -4
- data/lib/vendor/etag.rb +4 -2
- data/lib/vendor/route_exceptions.rb +9 -15
- data/ramaze.gemspec +56 -9
- data/spec/contrib/addressable_route.rb +30 -0
- data/spec/contrib/rest.rb +2 -2
- data/spec/examples/caching.rb +5 -7
- data/spec/examples/css.rb +3 -3
- data/spec/examples/element.rb +4 -3
- data/spec/examples/hello.rb +3 -3
- data/spec/examples/helpers/httpdigest.rb +44 -69
- data/spec/examples/linking.rb +3 -3
- data/spec/examples/simple.rb +3 -3
- data/spec/examples/templates/template_erubis.rb +8 -4
- data/spec/examples/templates/template_ezamar.rb +9 -4
- data/spec/examples/templates/template_haml.rb +8 -4
- data/spec/examples/templates/template_liquid.rb +8 -4
- data/spec/examples/templates/template_markaby.rb +9 -5
- data/spec/examples/templates/template_nagoro.rb +9 -5
- data/spec/examples/templates/template_redcloth.rb +8 -4
- data/spec/examples/templates/template_remarkably.rb +8 -4
- data/spec/examples/templates/template_tenjin.rb +8 -4
- data/spec/helper.rb +1 -2
- data/spec/ramaze/action/render.rb +4 -1
- data/spec/ramaze/app.rb +5 -2
- data/spec/ramaze/bin/ramaze.rb +96 -0
- data/spec/ramaze/cache/localmemcache.rb +1 -1
- data/spec/ramaze/cache/memcache.rb +7 -1
- data/spec/ramaze/cache/sequel.rb +1 -1
- data/spec/ramaze/controller/actionless_templates.rb +2 -2
- data/spec/ramaze/controller/lonely_mapping.rb +18 -0
- data/spec/ramaze/controller/mapping.rb +4 -15
- data/spec/ramaze/controller/provide_inheritance.rb +5 -2
- data/spec/ramaze/controller/resolve.rb +2 -2
- data/spec/ramaze/controller/subclass.rb +2 -2
- data/spec/ramaze/controller/template_resolving.rb +2 -2
- data/spec/ramaze/dispatcher/directory.rb +5 -2
- data/spec/ramaze/dispatcher/file.rb +28 -26
- data/spec/ramaze/error.rb +3 -3
- data/spec/ramaze/files.rb +5 -2
- data/spec/ramaze/gestalt.rb +26 -17
- data/spec/ramaze/helper/auth.rb +30 -41
- data/spec/ramaze/helper/bench.rb +6 -2
- data/spec/ramaze/helper/cache.rb +45 -5
- data/spec/ramaze/helper/flash.rb +11 -15
- data/spec/ramaze/helper/form.rb +6 -3
- data/spec/ramaze/helper/formatting.rb +4 -1
- data/spec/ramaze/helper/gestalt.rb +4 -1
- data/spec/ramaze/helper/gravatar.rb +4 -1
- data/spec/ramaze/helper/httpdigest.rb +51 -66
- data/spec/ramaze/helper/layout.rb +79 -0
- data/spec/ramaze/helper/layout/default.xhtml +5 -0
- data/spec/ramaze/helper/link.rb +33 -12
- data/spec/ramaze/helper/localize.rb +9 -4
- data/spec/ramaze/helper/maruku.rb +5 -2
- data/spec/ramaze/helper/pager.rb +2 -2
- data/spec/ramaze/helper/paginate.rb +5 -2
- data/spec/ramaze/helper/request_accessor.rb +5 -2
- data/spec/ramaze/helper/sequel_form.rb +7 -2
- data/spec/ramaze/helper/simple_captcha.rb +10 -14
- data/spec/ramaze/helper/stack.rb +32 -40
- data/spec/ramaze/helper/user.rb +19 -14
- data/spec/ramaze/helper/xhtml.rb +4 -1
- data/spec/ramaze/log/informer.rb +1 -1
- data/spec/ramaze/log/logging.rb +4 -1
- data/spec/ramaze/log/syslog.rb +6 -6
- data/spec/ramaze/params.rb +5 -6
- data/spec/ramaze/request.rb +16 -1
- data/spec/ramaze/session/memcache.rb +66 -0
- data/spec/ramaze/struct.rb +4 -1
- data/spec/ramaze/view.rb +2 -2
- data/spec/ramaze/view/erubis.rb +2 -2
- data/spec/ramaze/view/ezamar.rb +2 -2
- data/spec/ramaze/view/gestalt.rb +94 -0
- data/spec/ramaze/view/gestalt/external.ges +8 -0
- data/spec/ramaze/view/haml.rb +2 -2
- data/spec/ramaze/view/liquid.rb +2 -2
- data/spec/ramaze/view/nagoro.rb +2 -2
- data/spec/ramaze/view/redcloth.rb +2 -2
- data/spec/ramaze/view/remarkably.rb +2 -2
- data/spec/ramaze/view/sass.rb +2 -2
- data/spec/ramaze/view/tagz.rb +2 -2
- data/spec/ramaze/view/tenjin.rb +2 -2
- data/spec/snippets/array/put_within.rb +30 -25
- data/spec/snippets/binding/locals.rb +4 -1
- data/spec/snippets/numeric/filesize_format.rb +4 -1
- data/spec/snippets/numeric/time.rb +5 -2
- data/spec/snippets/object/__dir__.rb +4 -1
- data/spec/snippets/ordered_set.rb +4 -1
- data/spec/snippets/ramaze/acquire.rb +4 -1
- data/spec/snippets/ramaze/dictionary.rb +4 -1
- data/spec/snippets/ramaze/struct.rb +4 -1
- data/spec/snippets/string/camel_case.rb +4 -1
- data/spec/snippets/string/color.rb +4 -1
- data/spec/snippets/string/snake_case.rb +4 -1
- data/spec/snippets/string/unindent.rb +4 -1
- data/spec/snippets/thread/into.rb +4 -1
- data/tasks/bacon.rake +5 -3
- data/tasks/changelog.rake +3 -1
- data/tasks/{gem_installer.rake → gem_setup.rake} +45 -22
- data/tasks/release.rake +12 -27
- data/tasks/setup.rake +6 -0
- data/tasks/todo.rake +2 -4
- metadata +205 -31
- data/CHANGELOG +0 -16546
- data/benchmark/suite/template_builder.rb +0 -12
- data/doc/tutorial/todolist.mkd +0 -787
- data/examples/helpers/provide.rb +0 -23
- data/lib/proto/view/page.xhtml +0 -27
- data/lib/ramaze/snippets/divide.rb +0 -22
- data/lib/ramaze/snippets/kernel/constant.rb +0 -41
- data/lib/ramaze/snippets/object/acquire.rb +0 -37
- data/lib/ramaze/snippets/string/each.rb +0 -19
- data/spec/ramaze/helper/partial.rb +0 -40
- data/spec/snippets/kernel/constant.rb +0 -23
- data/tasks/install_dependencies.rake +0 -6
data/.gitignore
ADDED
data/MANIFEST
CHANGED
@@ -1,8 +1,15 @@
|
|
1
|
+
.gitignore
|
1
2
|
.mailmap
|
2
|
-
CHANGELOG
|
3
3
|
MANIFEST
|
4
|
-
README.
|
4
|
+
README.md
|
5
5
|
Rakefile
|
6
|
+
benchmark/bench_templates/bench.rb
|
7
|
+
benchmark/bench_templates/view/large.erb
|
8
|
+
benchmark/bench_templates/view/large.haml
|
9
|
+
benchmark/bench_templates/view/large.xhtml
|
10
|
+
benchmark/bench_templates/view/small.erb
|
11
|
+
benchmark/bench_templates/view/small.haml
|
12
|
+
benchmark/bench_templates/view/small.xhtml
|
6
13
|
benchmark/results.txt
|
7
14
|
benchmark/run.rb
|
8
15
|
benchmark/suite/minimal.rb
|
@@ -10,8 +17,8 @@ benchmark/suite/no_informer.rb
|
|
10
17
|
benchmark/suite/no_sessions.rb
|
11
18
|
benchmark/suite/no_template.rb
|
12
19
|
benchmark/suite/simple.rb
|
13
|
-
benchmark/suite/template_builder.rb
|
14
20
|
benchmark/suite/template_erubis.rb
|
21
|
+
benchmark/suite/template_etanni.rb
|
15
22
|
benchmark/suite/template_ezamar.rb
|
16
23
|
benchmark/suite/template_haml.rb
|
17
24
|
benchmark/suite/template_liquid.rb
|
@@ -34,13 +41,12 @@ doc/meta/configuration.txt
|
|
34
41
|
doc/meta/internals.txt
|
35
42
|
doc/meta/users.kml
|
36
43
|
doc/tutorial/todolist.html
|
37
|
-
doc/tutorial/todolist.mkd
|
38
44
|
doc/tutorial/todolist.txt
|
39
|
-
examples/app/auth/layout/auth.
|
45
|
+
examples/app/auth/layout/auth.xhtml
|
40
46
|
examples/app/auth/start.rb
|
41
|
-
examples/app/auth/view/index.
|
42
|
-
examples/app/auth/view/login.
|
43
|
-
examples/app/auth/view/secret.
|
47
|
+
examples/app/auth/view/index.xhtml
|
48
|
+
examples/app/auth/view/login.xhtml
|
49
|
+
examples/app/auth/view/secret.xhtml
|
44
50
|
examples/app/blog/README
|
45
51
|
examples/app/blog/app.rb
|
46
52
|
examples/app/blog/config.ru
|
@@ -69,15 +75,18 @@ examples/app/blog/view/feed.atom.nag
|
|
69
75
|
examples/app/blog/view/feed.rss.nag
|
70
76
|
examples/app/blog/view/index.nag
|
71
77
|
examples/app/blog/view/tag/index.nag
|
72
|
-
examples/app/chat/layout/default.
|
78
|
+
examples/app/chat/layout/default.xhtml
|
73
79
|
examples/app/chat/model/history.rb
|
74
80
|
examples/app/chat/model/message.rb
|
75
81
|
examples/app/chat/public/css/chat.css
|
76
82
|
examples/app/chat/public/js/chat.js
|
77
83
|
examples/app/chat/public/js/jquery.js
|
78
84
|
examples/app/chat/start.rb
|
79
|
-
examples/app/chat/view/chat.
|
80
|
-
examples/app/chat/view/index.
|
85
|
+
examples/app/chat/view/chat.xhtml
|
86
|
+
examples/app/chat/view/index.xhtml
|
87
|
+
examples/app/localization/locale/de.yaml
|
88
|
+
examples/app/localization/locale/en.yaml
|
89
|
+
examples/app/localization/locale/ja.yaml
|
81
90
|
examples/app/localization/start.rb
|
82
91
|
examples/app/sourceview/public/coderay.css
|
83
92
|
examples/app/sourceview/public/images/file.gif
|
@@ -113,7 +122,7 @@ examples/app/wikore/spec/wikore.rb
|
|
113
122
|
examples/app/wikore/src/controller.rb
|
114
123
|
examples/app/wikore/src/model.rb
|
115
124
|
examples/app/wikore/start.rb
|
116
|
-
examples/app/wikore/
|
125
|
+
examples/app/wikore/view/index.xhtml
|
117
126
|
examples/app/wiktacular/README
|
118
127
|
examples/app/wiktacular/mkd/link/2007-07-20_19-45-51.mkd
|
119
128
|
examples/app/wiktacular/mkd/link/current.mkd
|
@@ -153,7 +162,6 @@ examples/helpers/httpdigest.rb
|
|
153
162
|
examples/helpers/identity.rb
|
154
163
|
examples/helpers/nitro_form.rb
|
155
164
|
examples/helpers/paginate.rb
|
156
|
-
examples/helpers/provide.rb
|
157
165
|
examples/helpers/rest.rb
|
158
166
|
examples/helpers/simple_captcha.rb
|
159
167
|
examples/misc/css.rb
|
@@ -182,6 +190,7 @@ examples/templates/view/external.rem
|
|
182
190
|
examples/templates/view/external.rhtml
|
183
191
|
examples/templates/view/external.tenjin
|
184
192
|
examples/templates/view/external.zmr
|
193
|
+
lib/proto/app.rb
|
185
194
|
lib/proto/config.ru
|
186
195
|
lib/proto/controller/init.rb
|
187
196
|
lib/proto/controller/main.rb
|
@@ -196,13 +205,13 @@ lib/proto/public/ramaze.png
|
|
196
205
|
lib/proto/spec/main.rb
|
197
206
|
lib/proto/start.rb
|
198
207
|
lib/proto/view/index.xhtml
|
199
|
-
lib/proto/view/page.xhtml
|
200
208
|
lib/ramaze.rb
|
201
209
|
lib/ramaze/app.rb
|
202
210
|
lib/ramaze/cache.rb
|
203
211
|
lib/ramaze/cache/localmemcache.rb
|
204
212
|
lib/ramaze/cache/memcache.rb
|
205
213
|
lib/ramaze/cache/sequel.rb
|
214
|
+
lib/ramaze/contrib/addressable_route.rb
|
206
215
|
lib/ramaze/contrib/app_graph.rb
|
207
216
|
lib/ramaze/contrib/email.rb
|
208
217
|
lib/ramaze/contrib/facebook.rb
|
@@ -236,6 +245,7 @@ lib/ramaze/helper/gestalt.rb
|
|
236
245
|
lib/ramaze/helper/gravatar.rb
|
237
246
|
lib/ramaze/helper/httpdigest.rb
|
238
247
|
lib/ramaze/helper/identity.rb
|
248
|
+
lib/ramaze/helper/layout.rb
|
239
249
|
lib/ramaze/helper/link.rb
|
240
250
|
lib/ramaze/helper/localize.rb
|
241
251
|
lib/ramaze/helper/markaby.rb
|
@@ -278,15 +288,12 @@ lib/ramaze/snippets.rb
|
|
278
288
|
lib/ramaze/snippets/array/put_within.rb
|
279
289
|
lib/ramaze/snippets/binding/locals.rb
|
280
290
|
lib/ramaze/snippets/blankslate.rb
|
281
|
-
lib/ramaze/snippets/divide.rb
|
282
291
|
lib/ramaze/snippets/fiber.rb
|
283
|
-
lib/ramaze/snippets/kernel/constant.rb
|
284
292
|
lib/ramaze/snippets/kernel/pretty_inspect.rb
|
285
293
|
lib/ramaze/snippets/metaid.rb
|
286
294
|
lib/ramaze/snippets/numeric/filesize_format.rb
|
287
295
|
lib/ramaze/snippets/numeric/time.rb
|
288
296
|
lib/ramaze/snippets/object/__dir__.rb
|
289
|
-
lib/ramaze/snippets/object/acquire.rb
|
290
297
|
lib/ramaze/snippets/object/instance_variable_defined.rb
|
291
298
|
lib/ramaze/snippets/object/pretty.rb
|
292
299
|
lib/ramaze/snippets/object/scope.rb
|
@@ -299,7 +306,6 @@ lib/ramaze/snippets/ramaze/fiber.rb
|
|
299
306
|
lib/ramaze/snippets/ramaze/struct.rb
|
300
307
|
lib/ramaze/snippets/string/camel_case.rb
|
301
308
|
lib/ramaze/snippets/string/color.rb
|
302
|
-
lib/ramaze/snippets/string/each.rb
|
303
309
|
lib/ramaze/snippets/string/end_with.rb
|
304
310
|
lib/ramaze/snippets/string/esc.rb
|
305
311
|
lib/ramaze/snippets/string/ord.rb
|
@@ -308,16 +314,19 @@ lib/ramaze/snippets/string/start_with.rb
|
|
308
314
|
lib/ramaze/snippets/string/unindent.rb
|
309
315
|
lib/ramaze/snippets/thread/into.rb
|
310
316
|
lib/ramaze/spec.rb
|
317
|
+
lib/ramaze/spec/bacon.rb
|
311
318
|
lib/ramaze/spec/helper/bacon.rb
|
312
319
|
lib/ramaze/spec/helper/pretty_output.rb
|
313
320
|
lib/ramaze/spec/helper/snippets.rb
|
314
321
|
lib/ramaze/spec/helper/template_examples.rb
|
322
|
+
lib/ramaze/tool/bin.rb
|
315
323
|
lib/ramaze/tool/create.rb
|
316
324
|
lib/ramaze/tool/project_creator.rb
|
317
325
|
lib/ramaze/version.rb
|
318
326
|
lib/ramaze/view.rb
|
319
327
|
lib/ramaze/view/erubis.rb
|
320
328
|
lib/ramaze/view/ezamar.rb
|
329
|
+
lib/ramaze/view/gestalt.rb
|
321
330
|
lib/ramaze/view/haml.rb
|
322
331
|
lib/ramaze/view/liquid.rb
|
323
332
|
lib/ramaze/view/maruku.rb
|
@@ -331,6 +340,7 @@ lib/ramaze/view/tenjin.rb
|
|
331
340
|
lib/vendor/etag.rb
|
332
341
|
lib/vendor/route_exceptions.rb
|
333
342
|
ramaze.gemspec
|
343
|
+
spec/contrib/addressable_route.rb
|
334
344
|
spec/contrib/rest.rb
|
335
345
|
spec/examples/caching.rb
|
336
346
|
spec/examples/css.rb
|
@@ -358,10 +368,12 @@ spec/ramaze/action/view/single_wrapper.xhtml
|
|
358
368
|
spec/ramaze/action/view/sub/sub_wrapper.erb
|
359
369
|
spec/ramaze/action/view/sub/sub_wrapper.xhtml
|
360
370
|
spec/ramaze/app.rb
|
371
|
+
spec/ramaze/bin/ramaze.rb
|
361
372
|
spec/ramaze/cache/localmemcache.rb
|
362
373
|
spec/ramaze/cache/memcache.rb
|
363
374
|
spec/ramaze/cache/sequel.rb
|
364
375
|
spec/ramaze/controller/actionless_templates.rb
|
376
|
+
spec/ramaze/controller/lonely_mapping.rb
|
365
377
|
spec/ramaze/controller/mapping.rb
|
366
378
|
spec/ramaze/controller/provide_inheritance.rb
|
367
379
|
spec/ramaze/controller/resolve.rb
|
@@ -392,12 +404,13 @@ spec/ramaze/helper/formatting.rb
|
|
392
404
|
spec/ramaze/helper/gestalt.rb
|
393
405
|
spec/ramaze/helper/gravatar.rb
|
394
406
|
spec/ramaze/helper/httpdigest.rb
|
407
|
+
spec/ramaze/helper/layout.rb
|
408
|
+
spec/ramaze/helper/layout/default.xhtml
|
395
409
|
spec/ramaze/helper/link.rb
|
396
410
|
spec/ramaze/helper/localize.rb
|
397
411
|
spec/ramaze/helper/maruku.rb
|
398
412
|
spec/ramaze/helper/pager.rb
|
399
413
|
spec/ramaze/helper/paginate.rb
|
400
|
-
spec/ramaze/helper/partial.rb
|
401
414
|
spec/ramaze/helper/request_accessor.rb
|
402
415
|
spec/ramaze/helper/sequel_form.rb
|
403
416
|
spec/ramaze/helper/simple_captcha.rb
|
@@ -421,6 +434,7 @@ spec/ramaze/public/ramaze.png
|
|
421
434
|
spec/ramaze/public/test_download.css
|
422
435
|
spec/ramaze/request.rb
|
423
436
|
spec/ramaze/rewrite/file.css
|
437
|
+
spec/ramaze/session/memcache.rb
|
424
438
|
spec/ramaze/struct.rb
|
425
439
|
spec/ramaze/template/ramaze/external.test
|
426
440
|
spec/ramaze/view.rb
|
@@ -430,6 +444,8 @@ spec/ramaze/view/erubis/sum.rhtml
|
|
430
444
|
spec/ramaze/view/ezamar.rb
|
431
445
|
spec/ramaze/view/ezamar/external.zmr
|
432
446
|
spec/ramaze/view/ezamar/sum.zmr
|
447
|
+
spec/ramaze/view/gestalt.rb
|
448
|
+
spec/ramaze/view/gestalt/external.ges
|
433
449
|
spec/ramaze/view/haml.rb
|
434
450
|
spec/ramaze/view/haml/external.haml
|
435
451
|
spec/ramaze/view/haml/sum.haml
|
@@ -454,7 +470,6 @@ spec/ramaze/view/tenjin/external.rbhtml
|
|
454
470
|
spec/ramaze/view/tenjin/sum.rbhtml
|
455
471
|
spec/snippets/array/put_within.rb
|
456
472
|
spec/snippets/binding/locals.rb
|
457
|
-
spec/snippets/kernel/constant.rb
|
458
473
|
spec/snippets/numeric/filesize_format.rb
|
459
474
|
spec/snippets/numeric/time.rb
|
460
475
|
spec/snippets/object/__dir__.rb
|
@@ -472,16 +487,16 @@ tasks/bacon.rake
|
|
472
487
|
tasks/changelog.rake
|
473
488
|
tasks/copyright.rake
|
474
489
|
tasks/gem.rake
|
475
|
-
tasks/
|
490
|
+
tasks/gem_setup.rake
|
476
491
|
tasks/git.rake
|
477
492
|
tasks/grancher.rake
|
478
|
-
tasks/install_dependencies.rake
|
479
493
|
tasks/jquery.rake
|
480
494
|
tasks/manifest.rake
|
481
495
|
tasks/metric_changes.rake
|
482
496
|
tasks/rcov.rake
|
483
497
|
tasks/release.rake
|
484
498
|
tasks/reversion.rake
|
499
|
+
tasks/setup.rake
|
485
500
|
tasks/todo.rake
|
486
501
|
tasks/traits.rake
|
487
502
|
tasks/yard.rake
|
@@ -13,7 +13,7 @@ give you the ultimate tools, but you have to use them yourself to achieve
|
|
13
13
|
perfect custom-tailored results.
|
14
14
|
|
15
15
|
Another one of the goals during development of Ramaze was to make every part as
|
16
|
-
modular and therefor
|
16
|
+
modular and therefor reusable as possible, not only to provide a basic
|
17
17
|
understanding after the first glance, but also to make it as simple as possible
|
18
18
|
to reuse parts of the code.
|
19
19
|
|
@@ -136,11 +136,6 @@ Ramaze offers following features at the moment:
|
|
136
136
|
|
137
137
|
Wrapping the functionality of Ramazes logging facilities.
|
138
138
|
|
139
|
-
* Markaby
|
140
|
-
|
141
|
-
Allows you to use Markaby in your Controller without having it as the
|
142
|
-
default templating engine.
|
143
|
-
|
144
139
|
* Nitroform
|
145
140
|
|
146
141
|
Hooks up on nitros form builder to help you creating forms from Og
|
@@ -241,7 +236,7 @@ There are some basic principles that Ramaze tries to follow:
|
|
241
236
|
|
242
237
|
$ gem install ramaze
|
243
238
|
|
244
|
-
Versions are made as we see fit and get an
|
239
|
+
Versions are made as we see fit and get an announcement out (usually that's
|
245
240
|
the major obstacle as there is a lot to announce).
|
246
241
|
|
247
242
|
If you want to install the nightly gem of Ramaze you can do this with:
|
@@ -279,7 +274,7 @@ There are some basic principles that Ramaze tries to follow:
|
|
279
274
|
|
280
275
|
$ export RUBYLIB="$HOME/ruby/ramaze/lib:$HOME/.site_ruby:$HOME/ruby/bacon/lib"
|
281
276
|
|
282
|
-
* use `require 'ramaze'`
|
277
|
+
* use `require 'ramaze'` system wide from everywhere
|
283
278
|
|
284
279
|
add a file to your `site_ruby` directory named 'ramaze.rb'
|
285
280
|
the content should be: `require '/path/to/git/repo/ramaze/lib/ramaze'`
|
@@ -399,23 +394,9 @@ For help you can:
|
|
399
394
|
- Join the Mailinglist at http://groups.google.com/group/ramaze
|
400
395
|
|
401
396
|
|
402
|
-
# Appendix
|
403
|
-
|
404
|
-
* Performance
|
405
|
-
* Serving
|
406
|
-
|
407
|
-
For best performance you should consider using Mongrel to host your
|
408
|
-
application.
|
409
|
-
|
410
|
-
* Caching
|
411
|
-
|
412
|
-
You can easily cache your pages using the CacheHelper.
|
413
|
-
Also, using MemCache gives you high-end performance and security.
|
414
|
-
|
415
|
-
|
416
397
|
# And thanks to...
|
417
398
|
|
418
|
-
There is a large number of people who made Ramaze
|
399
|
+
There is a large number of people who made Ramaze possible by their ongoing
|
419
400
|
efforts in the world of open source and by encouraging and helping me.
|
420
401
|
|
421
402
|
This list is by no means a full listing of all these people, but I try to
|
@@ -427,7 +408,7 @@ I would like to thank:
|
|
427
408
|
|
428
409
|
For giving the world Ruby and bringing fun back into programming.
|
429
410
|
|
430
|
-
* Zed
|
411
|
+
* Zed Shaw a.k.a. zedas
|
431
412
|
|
432
413
|
For developing Mongrel, Ramaze started out as a simple Hello World based
|
433
414
|
on that awesome server.
|
data/Rakefile
CHANGED
@@ -6,18 +6,22 @@ require 'rake/gempackagetask'
|
|
6
6
|
require 'time'
|
7
7
|
require 'date'
|
8
8
|
|
9
|
-
PROJECT_SPECS =
|
10
|
-
|
9
|
+
PROJECT_SPECS = FileList[
|
10
|
+
'spec/{contrib,examples,ramaze,snippets}/**/*.rb',
|
11
|
+
'lib/proto/spec/*.rb'
|
12
|
+
]
|
13
|
+
|
14
|
+
PROJECT_MODULE = 'Ramaze'
|
11
15
|
PROJECT_JQUERY_FILE = 'lib/proto/public/js/jquery.js'
|
12
|
-
PROJECT_README
|
13
|
-
|
14
|
-
PROJECT_COPYRIGHT
|
16
|
+
PROJECT_README = 'README.md'
|
17
|
+
PROJECT_VERSION = ENV['VERSION'] || Date.today.strftime('%Y.%m.%d')
|
18
|
+
PROJECT_COPYRIGHT = [
|
15
19
|
"# Copyright (c) #{Time.now.year} Michael Fellinger m.fellinger@gmail.com",
|
16
20
|
"# All files in this distribution are subject to the terms of the Ruby license."
|
17
21
|
]
|
18
22
|
|
19
23
|
# To release the monthly version do:
|
20
|
-
# $
|
24
|
+
# $ VERSION=2009.03 rake release
|
21
25
|
|
22
26
|
GEMSPEC = Gem::Specification.new{|s|
|
23
27
|
s.name = 'ramaze'
|
@@ -25,39 +29,42 @@ GEMSPEC = Gem::Specification.new{|s|
|
|
25
29
|
s.summary = "Ramaze is a simple and modular web framework"
|
26
30
|
s.description = s.summary
|
27
31
|
s.email = 'm.fellinger@gmail.com'
|
28
|
-
s.homepage = 'http://
|
32
|
+
s.homepage = 'http://ramaze.net'
|
29
33
|
s.platform = Gem::Platform::RUBY
|
30
|
-
s.version =
|
34
|
+
s.version = PROJECT_VERSION
|
31
35
|
s.files = `git ls-files`.split("\n").sort
|
32
36
|
s.has_rdoc = true
|
33
37
|
s.require_path = 'lib'
|
34
|
-
s.bindir
|
35
|
-
s.executables
|
38
|
+
s.bindir = "bin"
|
39
|
+
s.executables = ["ramaze"]
|
36
40
|
s.rubyforge_project = "ramaze"
|
41
|
+
s.required_rubygems_version = '>= 1.3.1'
|
37
42
|
|
38
|
-
|
39
|
-
# s.add_dependency('manveru-innate', '>= 2009.04')
|
43
|
+
s.add_dependency('innate', '= 2009.06.12')
|
40
44
|
|
41
|
-
#
|
42
|
-
|
43
|
-
|
44
|
-
|
45
|
-
|
46
|
-
|
47
|
-
|
48
|
-
|
49
|
-
|
50
|
-
|
51
|
-
|
52
|
-
|
53
|
-
|
45
|
+
# rip those out if they cause you trouble
|
46
|
+
s.add_development_dependency('Remarkably', '~> 0.5.2')
|
47
|
+
s.add_development_dependency('bacon', '>= 1.1.0')
|
48
|
+
s.add_development_dependency('erubis', '>= 2.6.4')
|
49
|
+
s.add_development_dependency('ezamar', '>= 2009.06')
|
50
|
+
s.add_development_dependency('haml', '~> 2.0.9')
|
51
|
+
s.add_development_dependency('hpricot', '>= 0.8.1')
|
52
|
+
s.add_development_dependency('json', '>= 1.1.6')
|
53
|
+
s.add_development_dependency('liquid', '~> 2.0.0')
|
54
|
+
s.add_development_dependency('localmemcache', '~> 0.4.0')
|
55
|
+
s.add_development_dependency('memcache-client', '~> 1.7.2')
|
56
|
+
s.add_development_dependency('nagoro', '>= 2009.05')
|
57
|
+
s.add_development_dependency('rack-test', '>= 0.3.0')
|
58
|
+
s.add_development_dependency('sequel', '= 3.1.0')
|
59
|
+
s.add_development_dependency('tagz', '>= 5.0.1')
|
60
|
+
s.add_development_dependency('tenjin', '~> 0.6.1')
|
54
61
|
|
55
62
|
s.post_install_message = <<MESSAGE.strip
|
56
63
|
============================================================
|
57
64
|
|
58
65
|
Thank you for installing Ramaze!
|
59
66
|
You can now do create a new project:
|
60
|
-
# ramaze
|
67
|
+
# ramaze create yourproject
|
61
68
|
|
62
69
|
============================================================
|
63
70
|
MESSAGE
|
@@ -0,0 +1,67 @@
|
|
1
|
+
require 'ramaze'
|
2
|
+
|
3
|
+
class BenchCore < Ramaze::Controller
|
4
|
+
map '/'
|
5
|
+
end
|
6
|
+
|
7
|
+
Ramaze.start(:started => true)
|
8
|
+
|
9
|
+
Innate::Log.loggers.clear
|
10
|
+
|
11
|
+
require 'benchmark'
|
12
|
+
|
13
|
+
Benchmark.bmbm(20) do |b|
|
14
|
+
n = 500
|
15
|
+
urls = ['/small', '/large']
|
16
|
+
engines = %w[Etanni Haml ERB]
|
17
|
+
|
18
|
+
urls.each do |url|
|
19
|
+
engines.each do |engine|
|
20
|
+
b.report("Unached %10s %p:" % [engine, url]) do
|
21
|
+
BenchCore.provide(:html, :engine => engine)
|
22
|
+
Innate::View.options.cache = false
|
23
|
+
n.times{ Innate::Mock.get(url) }
|
24
|
+
end
|
25
|
+
|
26
|
+
b.report("Cached %11s %p:" % [engine, url]) do
|
27
|
+
BenchCore.provide(:html, :engine => engine)
|
28
|
+
Innate::Cache.view.clear
|
29
|
+
Innate::View.options.cache = true
|
30
|
+
n.times{ Innate::Mock.get(url) }
|
31
|
+
end
|
32
|
+
end
|
33
|
+
end
|
34
|
+
end
|
35
|
+
|
36
|
+
__END__
|
37
|
+
This benchmark is from Sat May 2 14:58:14 JST 2009
|
38
|
+
n = 500
|
39
|
+
|
40
|
+
Rehearsal ----------------------------------------------------------------
|
41
|
+
Unached Etanni "/small": 6.560000 0.490000 7.050000 ( 7.138829)
|
42
|
+
Cached Etanni "/small": 6.370000 0.420000 6.790000 ( 6.859946)
|
43
|
+
Unached Haml "/small": 8.680000 0.600000 9.280000 ( 9.379500)
|
44
|
+
Cached Haml "/small": 6.830000 0.370000 7.200000 ( 7.239311)
|
45
|
+
Unached ERB "/small": 8.980000 0.540000 9.520000 ( 9.585725)
|
46
|
+
Cached ERB "/small": 6.470000 0.450000 6.920000 ( 6.961339)
|
47
|
+
Unached Etanni "/large": 7.800000 0.490000 8.290000 ( 8.338521)
|
48
|
+
Cached Etanni "/large": 7.480000 0.400000 7.880000 ( 7.927069)
|
49
|
+
Unached Haml "/large": 11.970000 0.620000 12.590000 ( 12.645620)
|
50
|
+
Cached Haml "/large": 6.760000 0.490000 7.250000 ( 7.296633)
|
51
|
+
Unached ERB "/large": 20.700000 1.000000 21.700000 ( 21.752810)
|
52
|
+
Cached ERB "/large": 7.590000 0.430000 8.020000 ( 8.079993)
|
53
|
+
----------------------------------------------------- total: 112.490000sec
|
54
|
+
|
55
|
+
user system total real
|
56
|
+
Unached Etanni "/small": 6.450000 0.420000 6.870000 ( 6.869656)
|
57
|
+
Cached Etanni "/small": 6.280000 0.420000 6.700000 ( 6.702520)
|
58
|
+
Unached Haml "/small": 8.810000 0.510000 9.320000 ( 9.343563)
|
59
|
+
Cached Haml "/small": 6.670000 0.450000 7.120000 ( 7.125798)
|
60
|
+
Unached ERB "/small": 8.890000 0.540000 9.430000 ( 9.450362)
|
61
|
+
Cached ERB "/small": 6.530000 0.400000 6.930000 ( 6.942688)
|
62
|
+
Unached Etanni "/large": 7.830000 0.500000 8.330000 ( 8.348678)
|
63
|
+
Cached Etanni "/large": 7.320000 0.470000 7.790000 ( 7.798482)
|
64
|
+
Unached Haml "/large": 11.880000 0.630000 12.510000 ( 12.531796)
|
65
|
+
Cached Haml "/large": 6.870000 0.410000 7.280000 ( 7.298600)
|
66
|
+
Unached ERB "/large": 20.570000 0.930000 21.500000 ( 21.523399)
|
67
|
+
Cached ERB "/large": 7.560000 0.430000 7.990000 ( 7.999896)
|