Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

This repository moved to http://github.com/Ramaze/ramaze

  • Loading branch information...
commit dcb2f32e43cf10a4b272ea4db3748a3634518163 1 parent a4df8b2
@manveru authored
Showing with 1 addition and 45,567 deletions.
  1. +0 −6 .gitignore
  2. +0 −30 .mailmap
  3. +0 −535 MANIFEST
  4. +1 −452 README.md
  5. +0 −112 Rakefile
  6. +0 −67 benchmark/bench_templates/bench.rb
  7. +0 −79 benchmark/bench_templates/view/large.erb
  8. +0 −41 benchmark/bench_templates/view/large.haml
  9. +0 −79 benchmark/bench_templates/view/large.lok
  10. +0 −79 benchmark/bench_templates/view/large.xhtml
  11. +0 −21 benchmark/bench_templates/view/small.erb
  12. +0 −12 benchmark/bench_templates/view/small.haml
  13. +0 −21 benchmark/bench_templates/view/small.lok
  14. +0 −21 benchmark/bench_templates/view/small.xhtml
  15. +0 −131 benchmark/results.txt
  16. +0 −355 benchmark/run.rb
  17. +0 −11 benchmark/suite/minimal.rb
  18. +0 −7 benchmark/suite/no_informer.rb
  19. +0 −9 benchmark/suite/no_sessions.rb
  20. +0 −7 benchmark/suite/no_template.rb
  21. +0 −5 benchmark/suite/simple.rb
  22. +0 −8 benchmark/suite/template_erubis.rb
  23. +0 −8 benchmark/suite/template_etanni.rb
  24. +0 −8 benchmark/suite/template_ezamar.rb
  25. +0 −13 benchmark/suite/template_haml.rb
  26. +0 −11 benchmark/suite/template_liquid.rb
  27. +0 −9 benchmark/suite/template_markaby.rb
  28. +0 −8 benchmark/suite/template_nagoro.rb
  29. +0 −13 benchmark/suite/template_redcloth.rb
  30. +0 −8 benchmark/suite/template_tenjin.rb
  31. +0 −35 benchmark/test.rb
  32. +0 −15 bin/ramaze
  33. +0 −54 doc/AUTHORS
  34. +0 −17,991 doc/CHANGELOG
  35. +0 −56 doc/COPYING
  36. +0 −92 doc/FAQ
  37. +0 −339 doc/GPL
  38. +0 −92 doc/INSTALL
  39. +0 −26 doc/LEGAL
  40. +0 −29 doc/TODO
  41. +0 −119 doc/meta/announcement.txt
  42. +0 −163 doc/meta/configuration.txt
  43. +0 −278 doc/meta/internals.txt
  44. +0 −64 doc/meta/users.kml
  45. +0 −1,512 doc/tutorial/todolist.html
  46. +0 −920 doc/tutorial/todolist.txt
  47. +0 −25 examples/app/auth/layout/auth.xhtml
  48. +0 −25 examples/app/auth/start.rb
  49. +0 −4 examples/app/auth/view/index.xhtml
  50. +0 −20 examples/app/auth/view/login.xhtml
  51. +0 −1  examples/app/auth/view/secret.xhtml
  52. +0 −3  examples/app/blog/README
  53. +0 −71 examples/app/blog/app.rb
  54. +0 −17 examples/app/blog/config.ru
  55. +0 −45 examples/app/blog/controller/comment.rb
  56. +0 −85 examples/app/blog/controller/entry.rb
  57. +0 −88 examples/app/blog/controller/init.rb
  58. +0 −20 examples/app/blog/controller/main.rb
  59. +0 −9 examples/app/blog/controller/tag.rb
  60. +0 −31 examples/app/blog/layout/default.nag
  61. +0 −58 examples/app/blog/model/comment.rb
  62. +0 −89 examples/app/blog/model/entry.rb
  63. +0 −16 examples/app/blog/model/init.rb
  64. +0 −36 examples/app/blog/model/tag.rb
  65. +0 −273 examples/app/blog/public/css/screen.css
  66. +0 −87 examples/app/blog/spec/blog.rb
  67. +0 −5 examples/app/blog/start.rb
  68. +0 −10 examples/app/blog/view/comment/form.nag
  69. +0 −16 examples/app/blog/view/comment/show.nag
  70. +0 −14 examples/app/blog/view/entry/edit.nag
  71. +0 −8 examples/app/blog/view/entry/feed.atom.nag
  72. +0 −7 examples/app/blog/view/entry/feed.rss.nag
  73. +0 −7 examples/app/blog/view/entry/index.nag
  74. +0 −13 examples/app/blog/view/entry/new.nag
  75. +0 −36 examples/app/blog/view/entry/show.nag
  76. +0 −18 examples/app/blog/view/feed.atom.nag
  77. +0 −25 examples/app/blog/view/feed.rss.nag
  78. +0 −6 examples/app/blog/view/index.nag
  79. +0 −5 examples/app/blog/view/tag/index.nag
  80. +0 −13 examples/app/chat/layout/default.xhtml
  81. +0 −38 examples/app/chat/model/history.rb
  82. +0 −7 examples/app/chat/model/message.rb
  83. +0 −9 examples/app/chat/public/css/chat.css
  84. +0 −28 examples/app/chat/public/js/chat.js
  85. +0 −3,436 examples/app/chat/public/js/jquery.js
  86. +0 −39 examples/app/chat/start.rb
  87. +0 −9 examples/app/chat/view/chat.xhtml
  88. +0 −7 examples/app/chat/view/index.xhtml
  89. +0 −5 examples/app/localization/locale/de.yaml
  90. +0 −5 examples/app/localization/locale/en.yaml
  91. +0 −5 examples/app/localization/locale/ja.yaml
  92. +0 −48 examples/app/localization/start.rb
  93. +0 −104 examples/app/sourceview/public/coderay.css
  94. BIN  examples/app/sourceview/public/images/file.gif
  95. BIN  examples/app/sourceview/public/images/folder.gif
  96. BIN  examples/app/sourceview/public/images/tv-collapsable-last.gif
  97. BIN  examples/app/sourceview/public/images/tv-collapsable.gif
  98. BIN  examples/app/sourceview/public/images/tv-expandable-last.gif
  99. BIN  examples/app/sourceview/public/images/tv-expandable.gif
  100. BIN  examples/app/sourceview/public/images/tv-item-last.gif
  101. BIN  examples/app/sourceview/public/images/tv-item.gif
  102. +0 −11 examples/app/sourceview/public/jquery.js
  103. +0 −48 examples/app/sourceview/public/jquery.treeview.css
  104. +0 −223 examples/app/sourceview/public/jquery.treeview.js
  105. +0 −52 examples/app/sourceview/public/sourceview.js
  106. +0 −79 examples/app/sourceview/start.rb
  107. +0 −59 examples/app/sourceview/view/index.haml
  108. +0 −12 examples/app/todolist/controller/init.rb
  109. +0 −39 examples/app/todolist/controller/task.rb
  110. +0 −14 examples/app/todolist/layout/default.xhtml
  111. +0 −14 examples/app/todolist/model/init.rb
  112. +0 −39 examples/app/todolist/model/task.rb
  113. +0 −63 examples/app/todolist/public/css/screen.css
  114. BIN  examples/app/todolist/public/favicon.ico
  115. +0 −11 examples/app/todolist/start.rb
  116. +0 −29 examples/app/todolist/view/index.xhtml
  117. +0 −23 examples/app/upload/start.rb
  118. +0 −25 examples/app/upload/view/index.xhtml
  119. +0 −58 examples/app/whywiki/spec/whywiki.rb
  120. +0 −46 examples/app/whywiki/start.rb
  121. +0 −14 examples/app/whywiki/template/edit.xhtml
  122. +0 −18 examples/app/whywiki/template/show.xhtml
  123. +0 −109 examples/app/wikore/spec/wikore.rb
  124. +0 −78 examples/app/wikore/src/controller.rb
  125. +0 −56 examples/app/wikore/src/model.rb
  126. +0 −9 examples/app/wikore/start.rb
  127. +0 −8 examples/app/wikore/view/index.xhtml
  128. +0 −2  examples/app/wiktacular/README
  129. +0 −27 examples/app/wiktacular/layout/application.xhtml
  130. +0 −1  examples/app/wiktacular/mkd/link/2007-07-20_19-45-51.mkd
  131. +0 −1  examples/app/wiktacular/mkd/link/current.mkd
  132. +0 −1  examples/app/wiktacular/mkd/main/2007-07-20_16-31-33.mkd
  133. +0 −1  examples/app/wiktacular/mkd/main/2007-07-20_19-21-12.mkd
  134. +0 −2  examples/app/wiktacular/mkd/main/2007-07-20_19-23-10.mkd
  135. +0 −2  examples/app/wiktacular/mkd/main/2007-07-20_19-45-07.mkd
  136. +0 −2  examples/app/wiktacular/mkd/main/current.mkd
  137. +0 −3  examples/app/wiktacular/mkd/markdown/current.mkd
  138. +0 −2  examples/app/wiktacular/mkd/testing/2007-07-20_16-43-46.mkd
  139. +0 −3  examples/app/wiktacular/mkd/testing/2007-07-20_19-43-50.mkd
  140. +0 −11 examples/app/wiktacular/mkd/testing/2007-07-21_18-46-01.mkd
  141. +0 −13 examples/app/wiktacular/mkd/testing/2007-07-21_18-46-32.mkd
  142. +0 −17 examples/app/wiktacular/mkd/testing/2007-07-21_18-47-08.mkd
  143. +0 −17 examples/app/wiktacular/mkd/testing/2007-07-21_18-47-54.mkd
  144. +0 −17 examples/app/wiktacular/mkd/testing/current.mkd
  145. BIN  examples/app/wiktacular/public/favicon.ico
  146. +0 −72 examples/app/wiktacular/public/screen.css
  147. +0 −157 examples/app/wiktacular/spec/wiktacular.rb
  148. +0 −55 examples/app/wiktacular/src/controller.rb
  149. +0 −118 examples/app/wiktacular/src/model.rb
  150. +0 −8 examples/app/wiktacular/start.rb
  151. +0 −6 examples/app/wiktacular/view/edit.xhtml
  152. +0 −9 examples/app/wiktacular/view/index.xhtml
  153. +0 −6 examples/app/wiktacular/view/new.xhtml
  154. +0 −47 examples/basic/element.rb
  155. +0 −26 examples/basic/gestalt.rb
  156. +0 −14 examples/basic/hello.rb
  157. +0 −28 examples/basic/layout.rb
  158. +0 −29 examples/basic/linking.rb
  159. +0 −26 examples/basic/partial.rb
  160. +0 −53 examples/basic/simple.rb
  161. +0 −33 examples/helpers/cache.rb
  162. +0 −24 examples/helpers/form_with_sequel.rb
  163. +0 −107 examples/helpers/httpdigest.rb
  164. +0 −18 examples/helpers/identity.rb
  165. +0 −23 examples/helpers/nitro_form.rb
  166. +0 −71 examples/helpers/paginate.rb
  167. +0 −28 examples/helpers/rest.rb
  168. +0 −29 examples/helpers/simple_captcha.rb
  169. +0 −31 examples/misc/css.rb
  170. +0 −159 examples/misc/facebook.rb
  171. +0 −37 examples/misc/memleak_detector.rb
  172. +0 −43 examples/misc/nagoro_element.rb
  173. +0 −132 examples/misc/ramaise.rb
  174. +0 −56 examples/misc/rapp.rb
  175. +0 −45 examples/misc/sequel_scaffolding.rb
  176. +0 −6 examples/misc/serve_directory.rb
  177. +0 −52 examples/templates/template_erubis.rb
  178. +0 −51 examples/templates/template_ezamar.rb
  179. +0 −49 examples/templates/template_haml.rb
  180. +0 −66 examples/templates/template_liquid.rb
  181. +0 −57 examples/templates/template_markaby.rb
  182. +0 −70 examples/templates/template_mustache.rb
  183. +0 −50 examples/templates/template_nagoro.rb
  184. +0 −58 examples/templates/template_redcloth.rb
  185. +0 −54 examples/templates/template_remarkably.rb
  186. +0 −52 examples/templates/template_tenjin.rb
  187. +0 −22 examples/templates/view/external.haml
  188. +0 −28 examples/templates/view/external.liquid
  189. +0 −30 examples/templates/view/external.mab
  190. +0 −29 examples/templates/view/external.mt
  191. +0 −28 examples/templates/view/external.nag
  192. +0 −19 examples/templates/view/external.redcloth
  193. +0 −30 examples/templates/view/external.rem
  194. +0 −28 examples/templates/view/external.rhtml
  195. +0 −28 examples/templates/view/external.tenjin
  196. +0 −28 examples/templates/view/external.zmr
  197. +0 −14 lib/proto/app.rb
  198. +0 −20 lib/proto/config.ru
  199. +0 −11 lib/proto/controller/init.rb
  200. +0 −20 lib/proto/controller/main.rb
  201. +0 −24 lib/proto/layout/default.xhtml
  202. +0 −4 lib/proto/model/init.rb
  203. +0 −24 lib/proto/public/.htaccess
  204. +0 −30 lib/proto/public/css/screen.css
  205. +0 −11 lib/proto/public/dispatch.fcgi
  206. BIN  lib/proto/public/favicon.ico
  207. +0 −6,240 lib/proto/public/js/jquery.js
  208. BIN  lib/proto/public/ramaze.png
  209. +0 −20 lib/proto/spec/main.rb
  210. +0 −10 lib/proto/start.rb
  211. +0 −41 lib/proto/view/index.xhtml
  212. +0 −84 lib/ramaze.rb
  213. +0 −125 lib/ramaze/app.rb
  214. +0 −20 lib/ramaze/cache.rb
  215. +0 −56 lib/ramaze/cache/localmemcache.rb
  216. +0 −42 lib/ramaze/cache/lru.rb
  217. +0 −124 lib/ramaze/cache/memcache.rb
  218. +0 −82 lib/ramaze/cache/sequel.rb
  219. +0 −56 lib/ramaze/contrib/addressable_route.rb
  220. +0 −64 lib/ramaze/contrib/app_graph.rb
  221. +0 −88 lib/ramaze/contrib/email.rb
  222. +0 −23 lib/ramaze/contrib/facebook.rb
  223. +0 −171 lib/ramaze/contrib/facebook/facebook.rb
  224. +0 −113 lib/ramaze/contrib/gettext.rb
  225. +0 −155 lib/ramaze/contrib/gettext/mo.rb
  226. +0 −46 lib/ramaze/contrib/gettext/parser.rb
  227. +0 −109 lib/ramaze/contrib/gettext/po.rb
  228. +0 −1  lib/ramaze/contrib/gzip_filter.rb
  229. +0 −59 lib/ramaze/contrib/maruku_uv.rb
  230. +0 −36 lib/ramaze/contrib/profiling.rb
  231. +0 −23 lib/ramaze/contrib/rest.rb
  232. +0 −26 lib/ramaze/contrib/sequel/create_join.rb
  233. +0 −129 lib/ramaze/contrib/sequel/form_field.rb
  234. +0 −196 lib/ramaze/contrib/sequel/image.rb
  235. +0 −98 lib/ramaze/contrib/sequel/relation.rb
  236. +0 −102 lib/ramaze/controller.rb
  237. +0 −12 lib/ramaze/controller/default.rb
  238. +0 −7 lib/ramaze/current.rb
  239. +0 −24 lib/ramaze/files.rb
  240. +0 −132 lib/ramaze/gestalt.rb
  241. +0 −13 lib/ramaze/helper.rb
  242. +0 −84 lib/ramaze/helper/auth.rb
  243. +0 −41 lib/ramaze/helper/bench.rb
  244. +0 −214 lib/ramaze/helper/blue_form.rb
  245. +0 −117 lib/ramaze/helper/cache.rb
  246. +0 −26 lib/ramaze/helper/disqus.rb
  247. +0 −58 lib/ramaze/helper/erector.rb
  248. +0 −62 lib/ramaze/helper/flash.rb
  249. +0 −133 lib/ramaze/helper/form.rb
  250. +0 −192 lib/ramaze/helper/formatting.rb
  251. +0 −47 lib/ramaze/helper/gestalt.rb
  252. +0 −79 lib/ramaze/helper/gravatar.rb
  253. +0 −96 lib/ramaze/helper/httpdigest.rb
  254. +0 −119 lib/ramaze/helper/identity.rb
  255. +0 −97 lib/ramaze/helper/layout.rb
  256. +0 −56 lib/ramaze/helper/link.rb
  257. +0 −138 lib/ramaze/helper/localize.rb
  258. +0 −31 lib/ramaze/helper/markaby.rb
  259. +0 −16 lib/ramaze/helper/maruku.rb
  260. +0 −14 lib/ramaze/helper/nitroform.rb
  261. +0 −266 lib/ramaze/helper/paginate.rb
  262. +0 −14 lib/ramaze/helper/remarkably.rb
  263. +0 −16 lib/ramaze/helper/request_accessor.rb
  264. +0 −20 lib/ramaze/helper/send_file.rb
  265. +0 −284 lib/ramaze/helper/sequel_form.rb
  266. +0 −61 lib/ramaze/helper/simple_captcha.rb
  267. +0 −75 lib/ramaze/helper/stack.rb
  268. +0 −19 lib/ramaze/helper/tagz.rb
  269. +0 −17 lib/ramaze/helper/thread.rb
  270. +0 −46 lib/ramaze/helper/ultraviolet.rb
  271. +0 −230 lib/ramaze/helper/user.rb
  272. +0 −44 lib/ramaze/helper/xhtml.rb
  273. +0 −26 lib/ramaze/log.rb
  274. +0 −39 lib/ramaze/log/analogger.rb
  275. +0 −38 lib/ramaze/log/growl.rb
  276. +0 −41 lib/ramaze/log/hub.rb
  277. +0 −129 lib/ramaze/log/informer.rb
  278. +0 −28 lib/ramaze/log/knotify.rb
  279. +0 −26 lib/ramaze/log/logger.rb
  280. +0 −83 lib/ramaze/log/logging.rb
  281. +0 −168 lib/ramaze/log/rotatinginformer.rb
  282. +0 −51 lib/ramaze/log/syslog.rb
  283. +0 −92 lib/ramaze/log/xosd.rb
  284. +0 −13 lib/ramaze/middleware_compiler.rb
  285. +0 −69 lib/ramaze/plugin.rb
  286. +0 −172 lib/ramaze/reloader.rb
  287. +0 −85 lib/ramaze/reloader/watch_inotify.rb
  288. +0 −58 lib/ramaze/reloader/watch_stat.rb
  289. +0 −115 lib/ramaze/request.rb
  290. +0 −36 lib/ramaze/response.rb
  291. +0 −123 lib/ramaze/setup.rb
  292. +0 −45 lib/ramaze/snippets.rb
  293. +0 −44 lib/ramaze/snippets/array/put_within.rb
  294. +0 −25 lib/ramaze/snippets/binding/locals.rb
  295. +0 −7 lib/ramaze/snippets/blankslate.rb
  296. +0 −63 lib/ramaze/snippets/fiber.rb
  297. +0 −21 lib/ramaze/snippets/kernel/pretty_inspect.rb
  298. +0 −17 lib/ramaze/snippets/metaid.rb
  299. +0 −32 lib/ramaze/snippets/numeric/filesize_format.rb
  300. +0 −63 lib/ramaze/snippets/numeric/time.rb
Sorry, we could not display the entire diff because too many files (535) changed.
View
6 .gitignore
@@ -1,6 +0,0 @@
-pkg
-.yardoc
-ydoc
-*~
-*.swp
-.redcar
View
30 .mailmap
@@ -1,30 +0,0 @@
-Ara T. Howard <ara.t.howard@gmail.com> ahoward <>
-
-<aman@ramaze.net> <aman@tmm1.net>
-<aman@ramaze.net> <ramaze@tmm1.net>
-
-TJ Vanderpoel <bougy.man@gmail.com> <bougyman@falcon.(none)>
-
-<clinton.nixon@viget.com> <crnixon@gmail.com>
-
-<clive@crous.co.za> <clive@localhost.(none)>
-<clive@crous.co.za> <clive@pc-clive.(none)>
-<clive@crous.co.za> <clive@star120.co.za>
-
-<jonathan.buch@gmail.com> <jo@helloit.fi>
-<jonathan.buch@gmail.com> <john@oxyliquit.de>
-
-<lasso@lassoweb.se> <lasso@lasso-laptop.(none)>
-
-James Tucker <jftucker@gmail.com> <raggi@mbk.local>
-James Tucker <jftucker@gmail.com> raggi
-
-Martin Hilbig <blueonyx@dev-area.net> Martin Hilbig blueonyx@dev-area.net <>
-
-Lee Jarvis <injekt.me@gmail.com> <ljjarvis@gmail.com>
-Lee Jarvis <injekt.me@gmail.com> Lee Jarvis injekt.me@gmail.com <>
-
-Michael Fellinger <m.fellinger@gmail.com> <m.fellinger@gmail.com>
-Michael Fellinger <m.fellinger@gmail.com> <manveru@sigma.localdomain>
-Michael Fellinger <m.fellinger@gmail.com> <manveru@weez-int.com>
-Michael Fellinger <m.fellinger@gmail.com> Michael Fellinger m.fellinger@gmail.com <>
View
535 MANIFEST
@@ -1,535 +0,0 @@
-.gitignore
-.mailmap
-MANIFEST
-README.md
-Rakefile
-benchmark/bench_templates/bench.rb
-benchmark/bench_templates/view/large.erb
-benchmark/bench_templates/view/large.haml
-benchmark/bench_templates/view/large.lok
-benchmark/bench_templates/view/large.xhtml
-benchmark/bench_templates/view/small.erb
-benchmark/bench_templates/view/small.haml
-benchmark/bench_templates/view/small.lok
-benchmark/bench_templates/view/small.xhtml
-benchmark/results.txt
-benchmark/run.rb
-benchmark/suite/minimal.rb
-benchmark/suite/no_informer.rb
-benchmark/suite/no_sessions.rb
-benchmark/suite/no_template.rb
-benchmark/suite/simple.rb
-benchmark/suite/template_erubis.rb
-benchmark/suite/template_etanni.rb
-benchmark/suite/template_ezamar.rb
-benchmark/suite/template_haml.rb
-benchmark/suite/template_liquid.rb
-benchmark/suite/template_markaby.rb
-benchmark/suite/template_nagoro.rb
-benchmark/suite/template_redcloth.rb
-benchmark/suite/template_tenjin.rb
-benchmark/test.rb
-bin/ramaze
-doc/AUTHORS
-doc/CHANGELOG
-doc/COPYING
-doc/FAQ
-doc/GPL
-doc/INSTALL
-doc/LEGAL
-doc/TODO
-doc/meta/announcement.txt
-doc/meta/configuration.txt
-doc/meta/internals.txt
-doc/meta/users.kml
-doc/tutorial/todolist.html
-doc/tutorial/todolist.txt
-examples/app/auth/layout/auth.xhtml
-examples/app/auth/start.rb
-examples/app/auth/view/index.xhtml
-examples/app/auth/view/login.xhtml
-examples/app/auth/view/secret.xhtml
-examples/app/blog/README
-examples/app/blog/app.rb
-examples/app/blog/config.ru
-examples/app/blog/controller/comment.rb
-examples/app/blog/controller/entry.rb
-examples/app/blog/controller/init.rb
-examples/app/blog/controller/main.rb
-examples/app/blog/controller/tag.rb
-examples/app/blog/layout/default.nag
-examples/app/blog/model/comment.rb
-examples/app/blog/model/entry.rb
-examples/app/blog/model/init.rb
-examples/app/blog/model/tag.rb
-examples/app/blog/public/css/screen.css
-examples/app/blog/spec/blog.rb
-examples/app/blog/start.rb
-examples/app/blog/view/comment/form.nag
-examples/app/blog/view/comment/show.nag
-examples/app/blog/view/entry/edit.nag
-examples/app/blog/view/entry/feed.atom.nag
-examples/app/blog/view/entry/feed.rss.nag
-examples/app/blog/view/entry/index.nag
-examples/app/blog/view/entry/new.nag
-examples/app/blog/view/entry/show.nag
-examples/app/blog/view/feed.atom.nag
-examples/app/blog/view/feed.rss.nag
-examples/app/blog/view/index.nag
-examples/app/blog/view/tag/index.nag
-examples/app/chat/layout/default.xhtml
-examples/app/chat/model/history.rb
-examples/app/chat/model/message.rb
-examples/app/chat/public/css/chat.css
-examples/app/chat/public/js/chat.js
-examples/app/chat/public/js/jquery.js
-examples/app/chat/start.rb
-examples/app/chat/view/chat.xhtml
-examples/app/chat/view/index.xhtml
-examples/app/localization/locale/de.yaml
-examples/app/localization/locale/en.yaml
-examples/app/localization/locale/ja.yaml
-examples/app/localization/start.rb
-examples/app/sourceview/public/coderay.css
-examples/app/sourceview/public/images/file.gif
-examples/app/sourceview/public/images/folder.gif
-examples/app/sourceview/public/images/tv-collapsable-last.gif
-examples/app/sourceview/public/images/tv-collapsable.gif
-examples/app/sourceview/public/images/tv-expandable-last.gif
-examples/app/sourceview/public/images/tv-expandable.gif
-examples/app/sourceview/public/images/tv-item-last.gif
-examples/app/sourceview/public/images/tv-item.gif
-examples/app/sourceview/public/jquery.js
-examples/app/sourceview/public/jquery.treeview.css
-examples/app/sourceview/public/jquery.treeview.js
-examples/app/sourceview/public/sourceview.js
-examples/app/sourceview/start.rb
-examples/app/sourceview/view/index.haml
-examples/app/todolist/controller/init.rb
-examples/app/todolist/controller/task.rb
-examples/app/todolist/layout/default.xhtml
-examples/app/todolist/model/init.rb
-examples/app/todolist/model/task.rb
-examples/app/todolist/public/css/screen.css
-examples/app/todolist/public/favicon.ico
-examples/app/todolist/start.rb
-examples/app/todolist/view/index.xhtml
-examples/app/upload/start.rb
-examples/app/upload/view/index.xhtml
-examples/app/whywiki/spec/whywiki.rb
-examples/app/whywiki/start.rb
-examples/app/whywiki/template/edit.xhtml
-examples/app/whywiki/template/show.xhtml
-examples/app/wikore/spec/wikore.rb
-examples/app/wikore/src/controller.rb
-examples/app/wikore/src/model.rb
-examples/app/wikore/start.rb
-examples/app/wikore/view/index.xhtml
-examples/app/wiktacular/README
-examples/app/wiktacular/layout/application.xhtml
-examples/app/wiktacular/mkd/link/2007-07-20_19-45-51.mkd
-examples/app/wiktacular/mkd/link/current.mkd
-examples/app/wiktacular/mkd/main/2007-07-20_16-31-33.mkd
-examples/app/wiktacular/mkd/main/2007-07-20_19-21-12.mkd
-examples/app/wiktacular/mkd/main/2007-07-20_19-23-10.mkd
-examples/app/wiktacular/mkd/main/2007-07-20_19-45-07.mkd
-examples/app/wiktacular/mkd/main/current.mkd
-examples/app/wiktacular/mkd/markdown/current.mkd
-examples/app/wiktacular/mkd/testing/2007-07-20_16-43-46.mkd
-examples/app/wiktacular/mkd/testing/2007-07-20_19-43-50.mkd
-examples/app/wiktacular/mkd/testing/2007-07-21_18-46-01.mkd
-examples/app/wiktacular/mkd/testing/2007-07-21_18-46-32.mkd
-examples/app/wiktacular/mkd/testing/2007-07-21_18-47-08.mkd
-examples/app/wiktacular/mkd/testing/2007-07-21_18-47-54.mkd
-examples/app/wiktacular/mkd/testing/current.mkd
-examples/app/wiktacular/public/favicon.ico
-examples/app/wiktacular/public/screen.css
-examples/app/wiktacular/spec/wiktacular.rb
-examples/app/wiktacular/src/controller.rb
-examples/app/wiktacular/src/model.rb
-examples/app/wiktacular/start.rb
-examples/app/wiktacular/view/edit.xhtml
-examples/app/wiktacular/view/index.xhtml
-examples/app/wiktacular/view/new.xhtml
-examples/basic/element.rb
-examples/basic/gestalt.rb
-examples/basic/hello.rb
-examples/basic/layout.rb
-examples/basic/linking.rb
-examples/basic/partial.rb
-examples/basic/simple.rb
-examples/helpers/cache.rb
-examples/helpers/form_with_sequel.rb
-examples/helpers/httpdigest.rb
-examples/helpers/identity.rb
-examples/helpers/nitro_form.rb
-examples/helpers/paginate.rb
-examples/helpers/rest.rb
-examples/helpers/simple_captcha.rb
-examples/misc/css.rb
-examples/misc/facebook.rb
-examples/misc/memleak_detector.rb
-examples/misc/nagoro_element.rb
-examples/misc/ramaise.rb
-examples/misc/rapp.rb
-examples/misc/sequel_scaffolding.rb
-examples/misc/serve_directory.rb
-examples/templates/template_erubis.rb
-examples/templates/template_ezamar.rb
-examples/templates/template_haml.rb
-examples/templates/template_liquid.rb
-examples/templates/template_markaby.rb
-examples/templates/template_mustache.rb
-examples/templates/template_nagoro.rb
-examples/templates/template_redcloth.rb
-examples/templates/template_remarkably.rb
-examples/templates/template_tenjin.rb
-examples/templates/view/external.haml
-examples/templates/view/external.liquid
-examples/templates/view/external.mab
-examples/templates/view/external.mt
-examples/templates/view/external.nag
-examples/templates/view/external.redcloth
-examples/templates/view/external.rem
-examples/templates/view/external.rhtml
-examples/templates/view/external.tenjin
-examples/templates/view/external.zmr
-lib/proto/app.rb
-lib/proto/config.ru
-lib/proto/controller/init.rb
-lib/proto/controller/main.rb
-lib/proto/layout/default.xhtml
-lib/proto/model/init.rb
-lib/proto/public/.htaccess
-lib/proto/public/css/screen.css
-lib/proto/public/dispatch.fcgi
-lib/proto/public/favicon.ico
-lib/proto/public/js/jquery.js
-lib/proto/public/ramaze.png
-lib/proto/spec/main.rb
-lib/proto/start.rb
-lib/proto/view/index.xhtml
-lib/ramaze.rb
-lib/ramaze/app.rb
-lib/ramaze/cache.rb
-lib/ramaze/cache/localmemcache.rb
-lib/ramaze/cache/lru.rb
-lib/ramaze/cache/memcache.rb
-lib/ramaze/cache/sequel.rb
-lib/ramaze/contrib/addressable_route.rb
-lib/ramaze/contrib/app_graph.rb
-lib/ramaze/contrib/email.rb
-lib/ramaze/contrib/facebook.rb
-lib/ramaze/contrib/facebook/facebook.rb
-lib/ramaze/contrib/gettext.rb
-lib/ramaze/contrib/gettext/mo.rb
-lib/ramaze/contrib/gettext/parser.rb
-lib/ramaze/contrib/gettext/po.rb
-lib/ramaze/contrib/gzip_filter.rb
-lib/ramaze/contrib/maruku_uv.rb
-lib/ramaze/contrib/profiling.rb
-lib/ramaze/contrib/rest.rb
-lib/ramaze/contrib/sequel/create_join.rb
-lib/ramaze/contrib/sequel/form_field.rb
-lib/ramaze/contrib/sequel/image.rb
-lib/ramaze/contrib/sequel/relation.rb
-lib/ramaze/controller.rb
-lib/ramaze/controller/default.rb
-lib/ramaze/current.rb
-lib/ramaze/files.rb
-lib/ramaze/gestalt.rb
-lib/ramaze/helper.rb
-lib/ramaze/helper/auth.rb
-lib/ramaze/helper/bench.rb
-lib/ramaze/helper/blue_form.rb
-lib/ramaze/helper/cache.rb
-lib/ramaze/helper/disqus.rb
-lib/ramaze/helper/erector.rb
-lib/ramaze/helper/flash.rb
-lib/ramaze/helper/form.rb
-lib/ramaze/helper/formatting.rb
-lib/ramaze/helper/gestalt.rb
-lib/ramaze/helper/gravatar.rb
-lib/ramaze/helper/httpdigest.rb
-lib/ramaze/helper/identity.rb
-lib/ramaze/helper/layout.rb
-lib/ramaze/helper/link.rb
-lib/ramaze/helper/localize.rb
-lib/ramaze/helper/markaby.rb
-lib/ramaze/helper/maruku.rb
-lib/ramaze/helper/nitroform.rb
-lib/ramaze/helper/paginate.rb
-lib/ramaze/helper/remarkably.rb
-lib/ramaze/helper/request_accessor.rb
-lib/ramaze/helper/send_file.rb
-lib/ramaze/helper/sequel_form.rb
-lib/ramaze/helper/simple_captcha.rb
-lib/ramaze/helper/stack.rb
-lib/ramaze/helper/tagz.rb
-lib/ramaze/helper/thread.rb
-lib/ramaze/helper/ultraviolet.rb
-lib/ramaze/helper/user.rb
-lib/ramaze/helper/xhtml.rb
-lib/ramaze/log.rb
-lib/ramaze/log/analogger.rb
-lib/ramaze/log/growl.rb
-lib/ramaze/log/hub.rb
-lib/ramaze/log/informer.rb
-lib/ramaze/log/knotify.rb
-lib/ramaze/log/logger.rb
-lib/ramaze/log/logging.rb
-lib/ramaze/log/rotatinginformer.rb
-lib/ramaze/log/syslog.rb
-lib/ramaze/log/xosd.rb
-lib/ramaze/middleware_compiler.rb
-lib/ramaze/plugin.rb
-lib/ramaze/reloader.rb
-lib/ramaze/reloader/watch_inotify.rb
-lib/ramaze/reloader/watch_stat.rb
-lib/ramaze/request.rb
-lib/ramaze/response.rb
-lib/ramaze/setup.rb
-lib/ramaze/snippets.rb
-lib/ramaze/snippets/array/put_within.rb
-lib/ramaze/snippets/binding/locals.rb
-lib/ramaze/snippets/blankslate.rb
-lib/ramaze/snippets/fiber.rb
-lib/ramaze/snippets/kernel/pretty_inspect.rb
-lib/ramaze/snippets/metaid.rb
-lib/ramaze/snippets/numeric/filesize_format.rb
-lib/ramaze/snippets/numeric/time.rb
-lib/ramaze/snippets/object/__dir__.rb
-lib/ramaze/snippets/object/instance_variable_defined.rb
-lib/ramaze/snippets/object/pretty.rb
-lib/ramaze/snippets/object/scope.rb
-lib/ramaze/snippets/ordered_set.rb
-lib/ramaze/snippets/proc/locals.rb
-lib/ramaze/snippets/ramaze/acquire.rb
-lib/ramaze/snippets/ramaze/deprecated.rb
-lib/ramaze/snippets/ramaze/dictionary.rb
-lib/ramaze/snippets/ramaze/fiber.rb
-lib/ramaze/snippets/ramaze/lru_hash.rb
-lib/ramaze/snippets/ramaze/struct.rb
-lib/ramaze/snippets/string/camel_case.rb
-lib/ramaze/snippets/string/color.rb
-lib/ramaze/snippets/string/end_with.rb
-lib/ramaze/snippets/string/esc.rb
-lib/ramaze/snippets/string/ord.rb
-lib/ramaze/snippets/string/snake_case.rb
-lib/ramaze/snippets/string/start_with.rb
-lib/ramaze/snippets/string/unindent.rb
-lib/ramaze/snippets/thread/into.rb
-lib/ramaze/spec.rb
-lib/ramaze/spec/bacon.rb
-lib/ramaze/spec/helper/bacon.rb
-lib/ramaze/spec/helper/pretty_output.rb
-lib/ramaze/spec/helper/snippets.rb
-lib/ramaze/spec/helper/template_examples.rb
-lib/ramaze/tool/bin.rb
-lib/ramaze/tool/create.rb
-lib/ramaze/tool/project_creator.rb
-lib/ramaze/version.rb
-lib/ramaze/view.rb
-lib/ramaze/view/erector.rb
-lib/ramaze/view/erubis.rb
-lib/ramaze/view/ezamar.rb
-lib/ramaze/view/gestalt.rb
-lib/ramaze/view/haml.rb
-lib/ramaze/view/less.rb
-lib/ramaze/view/liquid.rb
-lib/ramaze/view/lokar.rb
-lib/ramaze/view/maruku.rb
-lib/ramaze/view/mustache.rb
-lib/ramaze/view/nagoro.rb
-lib/ramaze/view/nagoro/render_partial.rb
-lib/ramaze/view/redcloth.rb
-lib/ramaze/view/remarkably.rb
-lib/ramaze/view/sass.rb
-lib/ramaze/view/slippers.rb
-lib/ramaze/view/tagz.rb
-lib/ramaze/view/tenjin.rb
-lib/vendor/route_exceptions.rb
-ramaze.gemspec
-spec/contrib/addressable_route.rb
-spec/contrib/rest.rb
-spec/examples/caching.rb
-spec/examples/css.rb
-spec/examples/element.rb
-spec/examples/hello.rb
-spec/examples/helpers/httpdigest.rb
-spec/examples/linking.rb
-spec/examples/misc/sequel_scaffolding.rb
-spec/examples/simple.rb
-spec/examples/templates/template_erubis.rb
-spec/examples/templates/template_ezamar.rb
-spec/examples/templates/template_haml.rb
-spec/examples/templates/template_liquid.rb
-spec/examples/templates/template_markaby.rb
-spec/examples/templates/template_mustache.rb
-spec/examples/templates/template_nagoro.rb
-spec/examples/templates/template_redcloth.rb
-spec/examples/templates/template_remarkably.rb
-spec/examples/templates/template_tenjin.rb
-spec/examples/todolist.rb
-spec/helper.rb
-spec/ramaze/action/render.rb
-spec/ramaze/action/view/bar.xhtml
-spec/ramaze/action/view/instancevars/layout.xhtml
-spec/ramaze/action/view/other_wrapper.erb
-spec/ramaze/action/view/other_wrapper.xhtml
-spec/ramaze/action/view/single_wrapper.xhtml
-spec/ramaze/action/view/sub/sub_wrapper.erb
-spec/ramaze/action/view/sub/sub_wrapper.xhtml
-spec/ramaze/app.rb
-spec/ramaze/app/location.rb
-spec/ramaze/bin/ramaze.rb
-spec/ramaze/cache/localmemcache.rb
-spec/ramaze/cache/lru.rb
-spec/ramaze/cache/memcache.rb
-spec/ramaze/cache/sequel.rb
-spec/ramaze/controller/actionless_templates.rb
-spec/ramaze/controller/lonely_mapping.rb
-spec/ramaze/controller/mapping.rb
-spec/ramaze/controller/provide_inheritance.rb
-spec/ramaze/controller/resolve.rb
-spec/ramaze/controller/subclass.rb
-spec/ramaze/controller/template_resolving.rb
-spec/ramaze/controller/view/bar.xhtml
-spec/ramaze/controller/view/base/another.xhtml
-spec/ramaze/controller/view/greet.xhtml
-spec/ramaze/controller/view/list.xhtml
-spec/ramaze/controller/view/other/greet/other.xhtml
-spec/ramaze/controller/view/other_wrapper.xhtml
-spec/ramaze/dispatcher/directory.rb
-spec/ramaze/dispatcher/file.rb
-spec/ramaze/dispatcher/public/favicon.ico
-spec/ramaze/dispatcher/public/file name.txt
-spec/ramaze/dispatcher/public/test_download.css
-spec/ramaze/error.rb
-spec/ramaze/files.rb
-spec/ramaze/files/public_1/plain.txt
-spec/ramaze/files/public_2/rich.txt
-spec/ramaze/gestalt.rb
-spec/ramaze/helper/auth.rb
-spec/ramaze/helper/bench.rb
-spec/ramaze/helper/blue_form.rb
-spec/ramaze/helper/cache.rb
-spec/ramaze/helper/flash.rb
-spec/ramaze/helper/form.rb
-spec/ramaze/helper/formatting.rb
-spec/ramaze/helper/gestalt.rb
-spec/ramaze/helper/gravatar.rb
-spec/ramaze/helper/httpdigest.rb
-spec/ramaze/helper/layout.rb
-spec/ramaze/helper/layout/default.xhtml
-spec/ramaze/helper/link.rb
-spec/ramaze/helper/localize.rb
-spec/ramaze/helper/maruku.rb
-spec/ramaze/helper/paginate.rb
-spec/ramaze/helper/request_accessor.rb
-spec/ramaze/helper/sequel_form.rb
-spec/ramaze/helper/simple_captcha.rb
-spec/ramaze/helper/stack.rb
-spec/ramaze/helper/user.rb
-spec/ramaze/helper/view/locals.xhtml
-spec/ramaze/helper/view/loop.xhtml
-spec/ramaze/helper/view/num.xhtml
-spec/ramaze/helper/view/partial.xhtml
-spec/ramaze/helper/view/recursive.xhtml
-spec/ramaze/helper/view/recursive_local_ivars.xhtml
-spec/ramaze/helper/view/recursive_locals.xhtml
-spec/ramaze/helper/view/test_template.xhtml
-spec/ramaze/helper/xhtml.rb
-spec/ramaze/log/informer.rb
-spec/ramaze/log/logging.rb
-spec/ramaze/log/syslog.rb
-spec/ramaze/params.rb
-spec/ramaze/public/favicon.ico
-spec/ramaze/public/ramaze.png
-spec/ramaze/public/test_download.css
-spec/ramaze/request.rb
-spec/ramaze/rewrite/file.css
-spec/ramaze/session/memcache.rb
-spec/ramaze/struct.rb
-spec/ramaze/template/ramaze/external.test
-spec/ramaze/view.rb
-spec/ramaze/view/erector.rb
-spec/ramaze/view/erector/external.erector
-spec/ramaze/view/erector/invoke_helper_method.erector
-spec/ramaze/view/erector/layout.erector
-spec/ramaze/view/erector/strict_xhtml.erector
-spec/ramaze/view/erector/sum.erector
-spec/ramaze/view/erubis.rb
-spec/ramaze/view/erubis/external.rhtml
-spec/ramaze/view/erubis/sum.rhtml
-spec/ramaze/view/ezamar.rb
-spec/ramaze/view/ezamar/external.zmr
-spec/ramaze/view/ezamar/sum.zmr
-spec/ramaze/view/gestalt.rb
-spec/ramaze/view/gestalt/external.ges
-spec/ramaze/view/haml.rb
-spec/ramaze/view/haml/external.haml
-spec/ramaze/view/haml/sum.haml
-spec/ramaze/view/less.rb
-spec/ramaze/view/less/file.css.less
-spec/ramaze/view/liquid.rb
-spec/ramaze/view/liquid/external.liquid
-spec/ramaze/view/liquid/sum.liquid
-spec/ramaze/view/lokar.rb
-spec/ramaze/view/lokar/external.lok
-spec/ramaze/view/lokar/sum.lok
-spec/ramaze/view/mustache.rb
-spec/ramaze/view/mustache/external.mt
-spec/ramaze/view/mustache/sum.mt
-spec/ramaze/view/nagoro.rb
-spec/ramaze/view/nagoro/external.nag
-spec/ramaze/view/nagoro/sum.nag
-spec/ramaze/view/redcloth.rb
-spec/ramaze/view/redcloth/external.redcloth
-spec/ramaze/view/remarkably.rb
-spec/ramaze/view/remarkably/external.rem
-spec/ramaze/view/remarkably/sum.rem
-spec/ramaze/view/sass.rb
-spec/ramaze/view/sass/file.css.sass
-spec/ramaze/view/slippers.rb
-spec/ramaze/view/slippers/external.st
-spec/ramaze/view/slippers/sum.st
-spec/ramaze/view/tagz.rb
-spec/ramaze/view/tagz/external.tagz
-spec/ramaze/view/tagz/sum.tagz
-spec/ramaze/view/tenjin.rb
-spec/ramaze/view/tenjin/external.rbhtml
-spec/ramaze/view/tenjin/sum.rbhtml
-spec/snippets/array/put_within.rb
-spec/snippets/binding/locals.rb
-spec/snippets/numeric/filesize_format.rb
-spec/snippets/numeric/time.rb
-spec/snippets/object/__dir__.rb
-spec/snippets/ordered_set.rb
-spec/snippets/ramaze/acquire.rb
-spec/snippets/ramaze/dictionary.rb
-spec/snippets/ramaze/lru_hash.rb
-spec/snippets/ramaze/struct.rb
-spec/snippets/string/camel_case.rb
-spec/snippets/string/color.rb
-spec/snippets/string/snake_case.rb
-spec/snippets/string/unindent.rb
-spec/snippets/thread/into.rb
-tasks/authors.rake
-tasks/bacon.rake
-tasks/changelog.rake
-tasks/copyright.rake
-tasks/gem.rake
-tasks/gem_setup.rake
-tasks/git.rake
-tasks/grancher.rake
-tasks/jquery.rake
-tasks/manifest.rake
-tasks/metric_changes.rake
-tasks/rcov.rake
-tasks/release.rake
-tasks/reversion.rake
-tasks/setup.rake
-tasks/todo.rake
-tasks/traits.rake
-tasks/yard.rake
View
453 README.md
@@ -1,452 +1 @@
- Copyright (c) 2009 Michael Fellinger m.fellinger@gmail.com
- All files in this distribution are subject to the terms of the Ruby license.
-
-# NOTE: The main Ramaze repository has been moved to [Ramaze/ramaze](http://github.com/Ramaze/ramaze). Please refer to this repo in future
-
-# About Ramaze
-
-Ramaze is a very simple and straight-forward web-framework.
-The philosophy of it could be expressed in a mix of KISS and POLS, trying to
-make simple things simple and complex things possible.
-
-This of course is nothing new to anyone who knows some ruby, but is often
-forgotten in a chase for new functionality and features. Ramaze only tries to
-give you the ultimate tools, but you have to use them yourself to achieve
-perfect custom-tailored results.
-
-Another one of the goals during development of Ramaze was to make every part as
-modular and therefor reusable as possible, not only to provide a basic
-understanding after the first glance, but also to make it as simple as possible
-to reuse parts of the code.
-
-The original purpose of Ramaze was to act as a kind of framework to build
-web-frameworks, this was made obsolete by the introduction of rack, which
-provides this feature at a better level without trying to enforce any structural
-layout of the resulting framework.
-
-
-# Features Overview
-
-Ramaze offers following features at the moment:
-
-* Adapters
-
- Ramaze takes advantage of the rack library to provide a common way of
- handling different ways to serve its content.
-
- Rack supports at the moment:
-
- * [Mongrel](http://mongrel.rubyforge.org/)
-
- Mongrel is a fast HTTP library and server for Ruby that is intended for
- hosting Ruby web applications of any kind using plain HTTP rather than
- FastCGI or SCGI.
-
- * [WEBrick](http://www.webrick.org/)
-
- WEBrick is a Ruby library program to build HTTP servers.
-
- * CGI
-
- CGI is the Common Gateway Interface and is one of the most basic ways
- to integrate into Webservers like Apache or Lighttpd.
-
- * FCGI
-
- Improvment of CGI as it doesn't start up a new connection to Ramaze on
- every request.
-
-
-* Templates
- * [Erubis](http://rubyforge.org/projects/erubis)
-
- Erubis is a fast, secure, and very extensible implementation of eRuby.
-
- * [Haml](http://haml.hamptoncatlin.com/)
-
- Haml takes your gross, ugly templates and replaces them with veritable Haiku.
-
- * [Liquid](http://home.leetsoft.com/liquid)
-
- Liquid's syntax and parse model are inspired by Django templates, as well
- as PHP's smarty.
-
- * [Remarkably](http://rubyforge.org/projects/remarkably)
-
- Remarkably is a very tiny Markaby-like XML builder
-
- * [Markaby](http://code.whytheluckystiff.net/markaby/)
-
- Markaby means Markup as Ruby.
-
- * [Sass](http://haml.hamptoncatlin.com/docs/sass)
-
- Sass is a meta-language on top of CSS that‘s used to describe the style of
- a document cleanly and structurally, with more power than flat CSS allows.
-
- * Ezamar
-
- A simple homage to [Nitro](http://nitroproject.org)s templating, is shipped
- together with Ramaze.
-
-* Cache
- * Hash
- * YAML::Store
- * MemCache
-
-* Helper
- * Active by default
- * CGI
-
- Shortcuts for escape/unescape of the CGI module.
-
- * File
-
- Helps you serving files from your Controller.
-
- * Flash
-
- Store a couple of values for one request associated with a session.
-
- * Link
-
- Easier linking to the various parts of your applications Controllers and
- Actions.
-
- * Redirect
-
- Easy redirection.
-
- * Optional
- * Aspect
-
- Allows you to wrap different Actions on your Controller with code.
-
- * Auth
-
- Simple way to add basic authentication.
-
- * Cache
-
- Easy caching Actions and values.
-
- * Identity
-
- For ease of use of the OpenID authentication mechanism.
-
- * Inform
-
- Wrapping the functionality of Ramazes logging facilities.
-
- * Nitroform
-
- Hooks up on nitros form builder to help you creating forms from Og
- objects.
-
- * OpenID
-
- Authentication via OpenID made easy.
-
- * Pager
-
- Displays a collection of entitities in multiple pages.
-
- * Partial
-
- Renders so-called partials.
-
- * Stack
-
- Allows you to use a call/answer mechanism for things like redirection to the
- site a user entered login-forms from.
-
-* Various
- * Sessions
- * Global configuration system
- * Simple request/response handling
- * Custom sophisticated Error-handling
-
-
-# Basic Principles
-
-There are some basic principles that Ramaze tries to follow:
-
-* KISS (Keep It Super Simple)
-
- Ramaze doesn't introduce any major change of paradigm for everyone familiar
- with Ruby and the basics of Web-development.
-
-* POLS (Principle Of Least Surprise)
-
- Ramaze tries to be intuitive and easy to learn. Most functionality is built in
- a way to help, not to obfuscate or confuse.
-
-* Modular design
-
- Use what you want and how you want it.
-
- Through Ruby Ramaze provides one of the most powerful programming-languages
- available, giving you full control over your system.
-
- Even the most essential parts of Ramaze can easily be replaced and/or modified
- without losing the advantage of the whole framework.
-
-* Minimal dependencies
-
- Nothing besides Ruby is required for the basic features.
-
- Of course you can take advantage of several wonderful libraries, but Ramaze is
- built in a way to be run on any basic setup.
-
-* Documentation
-
- Document everything, classes, modules, methods, configuration...
-
- Through 100% documentation Ramaze gives the developer easy and solid
- understanding of the underlying concepts and functionality.
-
-* Open development
-
- Everyone is welcome to contribute to Ramaze in the easiest way possible. The
- repository is open for patches passing the Test-suite.
-
-* Examples
-
- Everyone learns different, some only read the source, others browse
- documentation, but everyone loves examples for a quick and painless start.
-
- Ramaze addresses this need and offers a wide variety of examples of usage,
- basic functionality, project-layout and more advanced applications.
-
-* Fully BDD (Behaviour Driven Design)
-
- Ramaze has a very complete set of so-called specifications built by RSpec.
- These specs define the way Ramaze has to behave.
-
- The specs are checked every time a new patch is pushed into the repository,
- deciding whether the changes the patch applies are valid and don't break the framework.
-
-
-# Installation
-
-## RubyGems
-
- The simplest way of installing Ramaze is via the gem.
-
- [Rubygems](http://rubygems.org) is the package manager for ruby apps and
- libraries and provides you with the last tagged version of Ramaze.
-
- $ gem install ramaze
-
- Versions are made as we see fit and get an announcement out (usually that's
- the major obstacle as there is a lot to announce).
-
-## Git
-
- To get the latest and sweetest, you can just pull from the repository and run
- Ramaze that way.
-
- $ git clone git://github.com/Ramaze/ramaze.git
-
- Please read the `man git` or `git help` for more information about updating
- and creating your own patches.
- This is at the moment the premier way to use Ramaze, since it is the way I
- use it.
-
- Some hints for the usage of Git.
-
- * use `require 'ramaze'` from everywhere
-
- Simply add the path to your repository to the RUBYLIB environment variable.
- If you are using bash you can simply put following line into your .bashrc:
-
- $ export RUBYLIB="$HOME/path/to/repo/lib/"
-
- Of course you should put the real path instead, you can also add multiple
- paths, or create your personal `site_ruby`:
-
- $ export RUBYLIB="$HOME/ruby/ramaze/lib:$HOME/.site_ruby:$HOME/ruby/bacon/lib"
-
- * use `require 'ramaze'` system wide from everywhere
-
- add a file to your `site_ruby` directory named 'ramaze.rb'
- the content should be: `require '/path/to/git/repo/ramaze/lib/ramaze'`
-
- * Pull the latest version
-
- $ git pull
-
- * Reset the repo to original state (if you screw up something)
-
- $ git reset --hard # resets the whole repo
-
- * Revert changes to (for example) lib/ramaze.rb only
-
- $ git checkout master lib/ramaze.rb
-
- * Add and commit all changes.
-
- $ git commit -a
-
- * Adding only specific changes.
-
- # Add hunks you want to commit to the staging area (index)
- $ git add -p
-
- * Commit the changes into the history of your repository
-
- # Create a commit from the hunks added
- $ git commit
-
- * output your patches into a bundle ready to be mailed (compress it before
- sending to make sure it arrives in the way you sent it)
-
- At the end of this process you will have a tar.bz2 for all your changes
- that you can mail to ramaze@googlegroups.com
-
- # make sure you are on latest revision to avoid conflicts
- $ git pull
-
- # create 00xx-blah.patch files against the remote repo
- $ git format-patch origin/HEAD
-
- # From here on you can use either git-send-email or go the manual route
- $ tar -cjf ramaze_bundle.tar.bz2 *.patch
-
-## Direct Download
-
- You can alternatively download the latest source code in a tarball from
- [here](http://github.com/Ramaze/ramaze/tarball/master).
-
-# Getting Started
-
-Now that you have a vague idea of what you're about to get into you might just
-want to get a way to get up and running ASAP.
-Please read below for more information about installation.
-
-Depending on what you are planning to do you can either just go and start
-reading the source or directly get some hands-on experience by trying some of
-the examples.
-Most things will require dependencies though. The basic functionality is
-provided by the WEBrick adapter and the Template::Ramaze, which just run out
-of the box. For more features you will have to install some templating-engines
-and mongrel (_very_ recommended). Ramaze will inform you when it needs further
-dependencies, so just go and try some things.
-
-Some places to get started are:
-- Read the documentation.
-- Run and read the test cases.
-- Look at the examples and run/modify them.
-
-
-
-# A couple of Examples
-
-There are some examples for your instant pleasure inside the examples-directory
-in the Ramaze-distribution.
-You can start up an example just as you usually would any other ruby program:
-
- $ ruby examples/basic/hello.rb
-
-Or:
-
- $ cd examples/app/blog
- $ ruby start.rb
-
-For more information about the usage of ramaze try:
-
- $ ramaze --help
-
-
-Examples include:
-
-* examples/basic/hello.rb
- Hello, World!
-
-* examples/basic/simple.rb
- A bit more advanced than the hello-example, but still very basic.
-
-* examples/app/blog
- Not yet fully functional, but coming along.
-
-* examples/app/whywiki
- A basic examples of a minimalistic application, based on the Wiki of \_why in
- his camping-framework.
-
-* examples/templates
- examples of real usage of the templating-engines. Tries to implement the same
- functionality in each `template_*.rb` file using a different engine.
-
-* Many more fully functional examples can be found in the examples folder.
-
-
-# How to find Help
-
-For help you can:
-
-- Visit us in the channel #ramaze on irc.freenode.net
-
-- Join the Mailinglist at http://groups.google.com/group/ramaze
-
-
-# And thanks to...
-
-There are a large number of people who made Ramaze possible by their ongoing
-efforts in the world of open source and by encouraging and helping me.
-
-This list is by no means a full listing of all these people, but I try to
-get a good coverage despite that.
-
-I would like to thank:
-
-* Yukihiro Matsumoto a.k.a matz
-
- For giving the world Ruby and bringing fun back into programming.
-
-* Zed Shaw a.k.a. zedas
-
- For developing Mongrel, Ramaze started out as a simple Hello World based
- on that awesome server.
-
-* Christian Neukirchen a.k.a chris2
-
- For building rack, which is just what the numerous web-developers had
- anticipated and which will, with no doubt, change the world.
-
-* Pistos
-
- For continious encouragment and building the first real webpage on Ramaze.
- His bugreports were invaluable.
-
-* Jim Weirich
-
- For Rake, which lifts off a lot of tasks from the shoulders of every
- developer who uses it.
-
-* Thomas Sawyer a.k.a Trans
-
- Dragging me deep into the rabbit-hole and showing me how awesome Ruby
- truely is through his work on facets, ratchets and tons of other projects.
-
-* George Moschovitis a.k.a gmosx
-
- For his tremendous efforts in the Nitro/Og framework, which is a source of
- steady inspiration for Ramaze and brought me to Ruby in the first place.
-
-* Rob Levin a.k.a. lilo
-
- He founded the most excellent Freenode IRC-network, where the most important
- channels for rubyists are located (as is #ramaze).
- May he rest in peace.
-
-* The guys (and gals) in the various channels on Freenode
-
- As the people are way too many to be listed, here the channels that i call
- my online home.
- All the people in there deserve special thanks for getting me hooked to Ruby
- and providing their help in a friendly and patient manner.
-
- * \#nitro
- * \#ruby-de
- * \#ruby-lang
- * \#rubyforce
+This repository moved to [Ramaze/ramaze](http://github.com/Ramaze/ramaze).
View
112 Rakefile
@@ -1,112 +0,0 @@
-begin; require 'rubygems'; rescue LoadError; end
-
-require 'rake'
-require 'rake/clean'
-require 'rake/gempackagetask'
-require 'time'
-require 'date'
-
-PROJECT_SPECS = FileList[
- 'spec/{contrib,examples,ramaze,snippets}/**/*.rb',
- 'lib/proto/spec/*.rb'
-]
-
-PROJECT_MODULE = 'Ramaze'
-PROJECT_JQUERY_FILE = 'lib/proto/public/js/jquery.js'
-PROJECT_README = 'README.md'
-PROJECT_VERSION = (ENV['VERSION'] || Date.today.strftime('%Y.%m.%d')).dup
-PROJECT_COPYRIGHT = [
- "# Copyright (c) #{Time.now.year} Michael Fellinger m.fellinger@gmail.com",
- "# All files in this distribution are subject to the terms of the Ruby license."
-]
-
-DEPENDENCIES = {
- 'innate' => {:version => '>= 2010.03'},
-}
-
-DEVELOPMENT_DEPENDENCIES = {
- "abstract" => {:version => "1.0.0"},
- "addressable" => {:version => "2.1.1"},
- "bacon" => {:version => "1.1.0"},
- "builder" => {:version => "2.1.2"},
- "erector" => {:version => "0.7.2"},
- "erubis" => {:version => "2.6.5"},
- "ezamar" => {:version => "2009.06"},
- "haml" => {:version => "2.2.22"},
- "hpricot" => {:version => "0.8.2"},
- "json" => {:version => "1.2.3"},
- "less" => {:version => "1.2.21"},
- "liquid" => {:version => "2.0.0"},
- "locale" => {:version => "2.0.5"},
- "localmemcache" => {:version => "0.4.4"},
- "lokar" => {:version => "0.1.0"},
- "maruku" => {:version => "0.6.0"},
- "memcache-client" => {:version => "1.8.1", :lib => 'memcache'},
- "mustache" => {:version => "0.9.2"},
- "mutter" => {:version => "0.5.3"},
- "nagoro" => {:version => "2009.05"},
- "rack-contrib" => {:version => "0.9.2", :lib => 'rack/contrib'},
- "rack-test" => {:version => "0.5.3", :lib => 'rack/test'},
- "RedCloth" => {:version => "4.2.3"},
- "Remarkably" => {:version => "0.5.2", :lib => 'remarkably'},
- "RubyInline" => {:version => "3.8.4"},
- "sequel" => {:version => "3.9.0"},
- "scaffolding_extensions" => {:version => "1.4.0"},
- "slippers" => {:version => "0.0.14"},
- "sqlite3-ruby" => {:version => "1.2.5", :lib => 'sqlite3'},
- "tagz" => {:version => "7.2.3"},
- "tenjin" => {:version => "0.6.1"},
-}
-
-GEMSPEC = Gem::Specification.new{|s|
- s.name = 'ramaze'
- s.author = "Michael 'manveru' Fellinger"
- s.summary = "Ramaze is a simple and modular web framework"
- s.description = s.summary
- s.email = 'm.fellinger@gmail.com'
- s.homepage = 'http://ramaze.net'
- s.platform = Gem::Platform::RUBY
- s.version = PROJECT_VERSION
- s.files = `git ls-files`.split("\n").sort
- s.has_rdoc = true
- s.require_path = 'lib'
- s.bindir = "bin"
- s.executables = ["ramaze"]
- s.rubyforge_project = "ramaze"
- s.required_rubygems_version = '>= 1.3.5'
-
- s.post_install_message = <<MESSAGE.strip
-============================================================
-
-Thank you for installing Ramaze!
-To create a new project:
-$ ramaze create yourproject
-
-============================================================
-MESSAGE
-}
-
-DEPENDENCIES.each do |name, options|
- GEMSPEC.add_dependency(name, options[:version])
-end
-
-DEVELOPMENT_DEPENDENCIES.each do |name, options|
- GEMSPEC.add_development_dependency(name, options[:version])
-end
-
-Dir['tasks/*.rake'].each{|f| import(f) }
-
-task :default => [:bacon]
-
-CLEAN.include %w[
- **/.*.sw?
- *.gem
- .config
- **/*~
- **/{data.db,cache.yaml}
- *.yaml
- pkg
- rdoc
- ydoc
- *coverage*
-]
View
67 benchmark/bench_templates/bench.rb
@@ -1,67 +0,0 @@
-require 'ramaze'
-
-class BenchCore < Ramaze::Controller
- map '/'
-end
-
-Ramaze.start(:started => true)
-
-Innate::Log.loggers.clear
-
-require 'benchmark'
-
-Benchmark.bmbm(20) do |b|
- n = 500
- urls = ['/small', '/large']
- engines = %w[Etanni Haml ERB Lokar]
-
- urls.each do |url|
- engines.each do |engine|
- b.report("Unached %10s %p:" % [engine, url]) do
- BenchCore.provide(:html, :engine => engine)
- Innate::View.options.cache = false
- n.times{ Innate::Mock.get(url) }
- end
-
- b.report("Cached %11s %p:" % [engine, url]) do
- BenchCore.provide(:html, :engine => engine)
- Innate::Cache.view.clear
- Innate::View.options.cache = true
- n.times{ Innate::Mock.get(url) }
- end
- end
- end
-end
-
-__END__
-This benchmark is from Sat May 2 14:58:14 JST 2009
-n = 500
-
-Rehearsal ----------------------------------------------------------------
-Unached Etanni "/small": 6.560000 0.490000 7.050000 ( 7.138829)
-Cached Etanni "/small": 6.370000 0.420000 6.790000 ( 6.859946)
-Unached Haml "/small": 8.680000 0.600000 9.280000 ( 9.379500)
-Cached Haml "/small": 6.830000 0.370000 7.200000 ( 7.239311)
-Unached ERB "/small": 8.980000 0.540000 9.520000 ( 9.585725)
-Cached ERB "/small": 6.470000 0.450000 6.920000 ( 6.961339)
-Unached Etanni "/large": 7.800000 0.490000 8.290000 ( 8.338521)
-Cached Etanni "/large": 7.480000 0.400000 7.880000 ( 7.927069)
-Unached Haml "/large": 11.970000 0.620000 12.590000 ( 12.645620)
-Cached Haml "/large": 6.760000 0.490000 7.250000 ( 7.296633)
-Unached ERB "/large": 20.700000 1.000000 21.700000 ( 21.752810)
-Cached ERB "/large": 7.590000 0.430000 8.020000 ( 8.079993)
------------------------------------------------------ total: 112.490000sec
-
- user system total real
-Unached Etanni "/small": 6.450000 0.420000 6.870000 ( 6.869656)
-Cached Etanni "/small": 6.280000 0.420000 6.700000 ( 6.702520)
-Unached Haml "/small": 8.810000 0.510000 9.320000 ( 9.343563)
-Cached Haml "/small": 6.670000 0.450000 7.120000 ( 7.125798)
-Unached ERB "/small": 8.890000 0.540000 9.430000 ( 9.450362)
-Cached ERB "/small": 6.530000 0.400000 6.930000 ( 6.942688)
-Unached Etanni "/large": 7.830000 0.500000 8.330000 ( 8.348678)
-Cached Etanni "/large": 7.320000 0.470000 7.790000 ( 7.798482)
-Unached Haml "/large": 11.880000 0.630000 12.510000 ( 12.531796)
-Cached Haml "/large": 6.870000 0.410000 7.280000 ( 7.298600)
-Unached ERB "/large": 20.570000 0.930000 21.500000 ( 21.523399)
-Cached ERB "/large": 7.560000 0.430000 7.990000 ( 7.999896)
View
79 benchmark/bench_templates/view/large.erb
@@ -1,79 +0,0 @@
-<html>
- <head>
- <title>
- <% if @title %>
- <%= @title %>
- <% end %>
- </title>
- </head>
- <body>
- <h1>
- <% if @h1 %>
- <%= @h1 %>
- <% end %>
- </h1>
- <div>
- <% if @v1 %>
- <% if @v2 %>
- <% if @v3 %>
- <% if @v4 %>
- <% if @v5 %>
- <% if @v6 %>
- <% if @v7 %>
- <% if @v8 %>
- <% if @v9 %>
- <% if @v10 %>
- <% if @v11 %>
- <% if @v12 %>
- <% if @v13 %>
- <% if @v14 %>
- <% if @v15 %>
- <% if @v16 %>
- <% if @v17 %>
- <% if @v18 %>
- <% if @v19 %>
- <% if @v20 %>
- <% if @v21 %>
- <% if @v22 %>
- <% if @v23 %>
- <% if @v24 %>
- <% if @v25 %>
- <% if @v26 %>
- <% if @v27 %>
- <% if @v28 %>
- <% if @v29 %>
- <% if @v30 %>
- <%= stuff %>
- <% end %>
- <% end %>
- <% end %>
- <% end %>
- <% end %>
- <% end %>
- <% end %>
- <% end %>
- <% end %>
- <% end %>
- <% end %>
- <% end %>
- <% end %>
- <% end %>
- <% end %>
- <% end %>
- <% end %>
- <% end %>
- <% end %>
- <% end %>
- <% end %>
- <% end %>
- <% end %>
- <% end %>
- <% end %>
- <% end %>
- <% end %>
- <% end %>
- <% end %>
- <% end %>
- </div>
- </body>
-</html>
View
41 benchmark/bench_templates/view/large.haml
@@ -1,41 +0,0 @@
-%html
- %head
- %title
- - if @title
- = @title
- %body
- %h1
- - if @h1
- = @h1
- %div
- - if @v1
- - if @v2
- - if @v3
- - if @v4
- - if @v5
- - if @v6
- - if @v7
- - if @v8
- - if @v9
- - if @v10
- - if @v11
- - if @v12
- - if @v13
- - if @v14
- - if @v15
- - if @v16
- - if @v17
- - if @v18
- - if @v19
- - if @v20
- - if @v21
- - if @v22
- - if @v23
- - if @v24
- - if @v25
- - if @v26
- - if @v27
- - if @v28
- - if @v29
- - if @v30
- = stuff
View
79 benchmark/bench_templates/view/large.lok
@@ -1,79 +0,0 @@
-<html>
- <head>
- <title>
- <?r if @title ?>
- #{@title}
- <?r end ?>
- </title>
- </head>
- <body>
- <h1>
- <?r if @h1 ?>
- #{@h1}
- <?r end ?>
- </h1>
- <div>
- <?r if @v1 ?>
- <?r if @v2 ?>
- <?r if @v3 ?>
- <?r if @v4 ?>
- <?r if @v5 ?>
- <?r if @v6 ?>
- <?r if @v7 ?>
- <?r if @v8 ?>
- <?r if @v9 ?>
- <?r if @v10 ?>
- <?r if @v11 ?>
- <?r if @v12 ?>
- <?r if @v13 ?>
- <?r if @v14 ?>
- <?r if @v15 ?>
- <?r if @v16 ?>
- <?r if @v17 ?>
- <?r if @v18 ?>
- <?r if @v19 ?>
- <?r if @v20 ?>
- <?r if @v21 ?>
- <?r if @v22 ?>
- <?r if @v23 ?>
- <?r if @v24 ?>
- <?r if @v25 ?>
- <?r if @v26 ?>
- <?r if @v27 ?>
- <?r if @v28 ?>
- <?r if @v29 ?>
- <?r if @v30 ?>
- #{stuff}
- <?r end ?>
- <?r end ?>
- <?r end ?>
- <?r end ?>
- <?r end ?>
- <?r end ?>
- <?r end ?>
- <?r end ?>
- <?r end ?>
- <?r end ?>
- <?r end ?>
- <?r end ?>
- <?r end ?>
- <?r end ?>
- <?r end ?>
- <?r end ?>
- <?r end ?>
- <?r end ?>
- <?r end ?>
- <?r end ?>
- <?r end ?>
- <?r end ?>
- <?r end ?>
- <?r end ?>
- <?r end ?>
- <?r end ?>
- <?r end ?>
- <?r end ?>
- <?r end ?>
- <?r end ?>
- </div>
- </body>
-</html>
View
79 benchmark/bench_templates/view/large.xhtml
@@ -1,79 +0,0 @@
-<html>
- <head>
- <title>
- <?r if @title ?>
- #{@title}
- <?r end ?>
- </title>
- </head>
- <body>
- <h1>
- <?r if @h1 ?>
- #{@h1}
- <?r end ?>
- </h1>
- <div>
- <?r if @v1 ?>
- <?r if @v2 ?>
- <?r if @v3 ?>
- <?r if @v4 ?>
- <?r if @v5 ?>
- <?r if @v6 ?>
- <?r if @v7 ?>
- <?r if @v8 ?>
- <?r if @v9 ?>
- <?r if @v10 ?>
- <?r if @v11 ?>
- <?r if @v12 ?>
- <?r if @v13 ?>
- <?r if @v14 ?>
- <?r if @v15 ?>
- <?r if @v16 ?>
- <?r if @v17 ?>
- <?r if @v18 ?>
- <?r if @v19 ?>
- <?r if @v20 ?>
- <?r if @v21 ?>
- <?r if @v22 ?>
- <?r if @v23 ?>
- <?r if @v24 ?>
- <?r if @v25 ?>
- <?r if @v26 ?>
- <?r if @v27 ?>
- <?r if @v28 ?>
- <?r if @v29 ?>
- <?r if @v30 ?>
- #{stuff}
- <?r end ?>
- <?r end ?>
- <?r end ?>
- <?r end ?>
- <?r end ?>
- <?r end ?>
- <?r end ?>
- <?r end ?>
- <?r end ?>
- <?r end ?>
- <?r end ?>
- <?r end ?>
- <?r end ?>
- <?r end ?>
- <?r end ?>
- <?r end ?>
- <?r end ?>
- <?r end ?>
- <?r end ?>
- <?r end ?>
- <?r end ?>
- <?r end ?>
- <?r end ?>
- <?r end ?>
- <?r end ?>
- <?r end ?>
- <?r end ?>
- <?r end ?>
- <?r end ?>
- <?r end ?>
- </div>
- </body>
-</html>
View
21 benchmark/bench_templates/view/small.erb
@@ -1,21 +0,0 @@
-<html>
- <head>
- <title>
- <% if @title %>
- <%= @title %>
- <% end %>
- </title>
- </head>
- <body>
- <h1>
- <% if @h1 %>
- <%= @h1 %>
- <% end %>
- </h1>
- <div>
- <% if @div %>
- <%= @div %>
- <% end %>
- </div>
- </body>
-</html>
View
12 benchmark/bench_templates/view/small.haml
@@ -1,12 +0,0 @@
-%html
- %head
- %title
- - if @title
- = @title
- %body
- %h1
- - if @h1
- = @h1
- %div
- - if @div
- = @div
View
21 benchmark/bench_templates/view/small.lok
@@ -1,21 +0,0 @@
-<html>
- <head>
- <title>
- <?r if @title ?>
- #{@title}
- <?r end ?>
- </title>
- </head>
- <body>
- <h1>
- <?r if @h1 ?>
- #{@h1}
- <?r end ?>
- </h1>
- <div>
- <?r if @div ?>
- #{@div}
- <?r end ?>
- </div>
- </body>
-</html>
View
21 benchmark/bench_templates/view/small.xhtml
@@ -1,21 +0,0 @@
-<html>
- <head>
- <title>
- <?r if @title ?>
- #{@title}
- <?r end ?>
- </title>
- </head>
- <body>
- <h1>
- <?r if @h1 ?>
- #{@h1}
- <?r end ?>
- </h1>
- <div>
- <?r if @div ?>
- #{@div}
- <?r end ?>
- </div>
- </body>
-</html>
View
131 benchmark/results.txt
@@ -1,131 +0,0 @@
-====== simple ======
-<code ruby>
-require 'ramaze'
-
-class MainController < Ramaze::Controller
- def index
- "Hello, World!"
- end
-end
-</code>
-
-=== webrick ===
- Mem usage before: 20.32MB
- Time taken for tests: 7.747022 seconds
- Failed requests: 0
- Requests per second: 129.08 [#/sec] (mean)
- Time per request: 77.470 [ms] (mean)
- Time per request: 7.747 [ms] (mean, across all concurrent requests)
- Mem usage after: 25.43MB
-
-=== mongrel ===
- Mem usage before: 20.25MB
- Time taken for tests: 2.205161 seconds
- Failed requests: 0
- Requests per second: 453.48 [#/sec] (mean)
- Time per request: 22.052 [ms] (mean)
- Time per request: 2.205 [ms] (mean, across all concurrent requests)
- Mem usage after: 21.91MB
-
-=== evented_mongrel ===
- Mem usage before: 22.64MB
- Time taken for tests: 1.311583 seconds
- Failed requests: 0
- Requests per second: 762.44 [#/sec] (mean)
- Time per request: 13.116 [ms] (mean)
- Time per request: 1.312 [ms] (mean, across all concurrent requests)
- Mem usage after: 27.03MB
-
-====== no_template ======
-<code ruby>
-require 'ramaze'
-
-class MainController < Ramaze::Controller
- engine :None
-
- def index
- "Hello, World!"
- end
-end
-</code>
-
-=== evented_mongrel ===
- Mem usage before: 22.63MB
- Time taken for tests: 1.151947 seconds
- Failed requests: 0
- Requests per second: 868.10 [#/sec] (mean)
- Time per request: 11.519 [ms] (mean)
- Time per request: 1.152 [ms] (mean, across all concurrent requests)
- Mem usage after: 27.11MB
-
-====== no_informer ======
-<code ruby>
-require 'ramaze'
-
-class MainController < Ramaze::Controller
- def index
- "Hello, World!"
- end
-end
-
-Ramaze::Inform.loggers = []
-</code>
-
-=== evented_mongrel ===
- Mem usage before: 22.63MB
- Time taken for tests: 1.202878 seconds
- Failed requests: 0
- Requests per second: 831.34 [#/sec] (mean)
- Time per request: 12.029 [ms] (mean)
- Time per request: 1.203 [ms] (mean, across all concurrent requests)
- Mem usage after: 27.07MB
-
-====== no_sessions ======
-<code ruby>
-require 'ramaze'
-
-class MainController < Ramaze::Controller
- def index
- "Hello, World!"
- end
-end
-
-Ramaze::Inform.loggers = []
-Ramaze::Global.sessions = false
-</code>
-
-=== evented_mongrel ===
- Mem usage before: 22.63MB
- Time taken for tests: 0.835254 seconds
- Failed requests: 0
- Requests per second: 1197.24 [#/sec] (mean)
- Time per request: 8.353 [ms] (mean)
- Time per request: 0.835 [ms] (mean, across all concurrent requests)
- Mem usage after: 26.38MB
-
-====== minimal ======
-<code ruby>
-require 'ramaze'
-
-class MainController < Ramaze::Controller
- engine :None
-
- def index
- "Hello, World!"
- end
-end
-
-Ramaze::Global.sourcereload = false
-Ramaze::Global.sessions = false
-Ramaze::Inform.loggers = []
-</code>
-
-=== evented_mongrel ===
- Mem usage before: 22.62MB
- Time taken for tests: 0.647273 seconds
- Failed requests: 0
- Requests per second: 1544.94 [#/sec] (mean)
- Time per request: 6.473 [ms] (mean)
- Time per request: 0.647 [ms] (mean, across all concurrent requests)
- Mem usage after: 26.42MB
-
View
355 benchmark/run.rb
@@ -1,355 +0,0 @@
-require "optparse"
-require "timeout"
-require "net/http"
-
-class String
- def /(o) File.join(self, o.to_s) end
-end
-
-class RamazeBenchmark
-
- class BasicWriter
- def initialize
- @ljust = 24
- end
-
- def write(key, val)
- if key == "Name"
- puts "====== #{val} ======"
- else
- puts((key.to_s + ":").ljust(@ljust) + val.to_s)
- end
- end
-
- def flush
- puts
- $stdout.flush
- end
-
- def close; end
- end
-
- class CSVWriter
- def initialize
- @keys, @vals = [], []
- end
-
- def write(key, val)
- @keys << key
- @vals << (val =~ /^\d[\d.]+/ ? $& : val)
- end
-
- def flush
- unless @header
- puts FasterCSV.generate{|csv| csv << @keys }
- @header = true
- end
-
- puts FasterCSV.generate{|csv| csv << @vals }
- @keys, @vals = [], []
- end
-
- def close; end
- end
-
- class GruffWriter
- RPS = "Requests per second"
-
- def initialize
- @benchmarks = {}
- @order = []
- end
-
- def write(key, val)
- @benchmark ||= {}
- @benchmark[key] = (val =~ /^\d[\d.]+/ ? $&.to_f : val)
- end
-
- def flush
- if @benchmark["Requests per second"]
- name = @benchmark["Name"]
- @benchmarks[name] ||= []
- @benchmarks[name] << @benchmark
- @order << name unless @order.include?(name)
- end
- @benchmark = nil
- end
-
- def close
- g = Gruff::SideBar.new(800)
- g.title = "Ramaze Benchmark"
- setup_gruff_data(g)
- g.labels = gruff_labels
- g.sort = false
- g.hide_legend = true if graph_type == :simple
- g.x_axis_label = "requests/sec"
- g.minimum_value = 0
- g.write
- end
-
- private
-
- def gruff_labels
- table = {}
- @order.each_with_index do |bname, idx|
- table[idx] = bname
- end
- return table
- end
-
- def adapters
- @benchmarks.to_a[0][1].map{|bm| bm["Adapter"]}.uniq
- end
-
- def paths
- @benchmarks.to_a[0][1].map{|bm| bm["Path"]}.uniq
- end
-
- def graph_type
- case [adapters.size > 1, paths.size > 1]
- when [true , true ]; :both
- when [true , false]; :adapter
- when [false, true ]; :path
- else :simple; end
- end
-
- def setup_gruff_data(g)
- case graph_type
- when :simple
- g.data("", @order.map{|name| @benchmarks[name][0][RPS] }, '#6886B4')
- when :adapter
- adapters.each do |adapter|
- g.data(adapter, @order.map{|name|
- @benchmarks[name].find{|bm| bm["Adapter"] == adapter}[RPS]
- })
- end
- when :path
- paths.each do |path|
- g.data(path, @order.map{|name|
- @benchmarks[name].find{|bm| bm["Path"] == path}[RPS]
- })
- end
- when :both
- adapters.each do |adapter|
- paths.each do |path|
- g.data("#{adapter}, #{path}", @order.map{|name|
- @benchmarks[name].find{|bm|
- bm["Adapter"] == adapter && bm["Path"] == path
- }[RPS]
- })
- end
- end
- end
- end
- end
-
- attr_accessor :requests, :adapters, :port, :log, :display_code, :target
- attr_accessor :concurrent, :paths, :benchmarker, :informer
- attr_accessor :mode, :show_log, :formats
-
- def initialize()
- @adapters = [:webrick]
- @port = rand(32768-1)+32768
- @requests = 100
- @concurrent = 10
- @signal = 'SIGKILL'
- @host = "127.0.0.1"
- @paths = ["/"]
- @target = /.+/
- @informer = true
- @formats = ["text"]
- @writers = []
- @mode = :live
- yield self
- end
-
- def start
- # setup writers
- @formats.each do |format|
- case format
- when "csv" ; @writers << CSVWriter.new
- when "gruff"; @writers << GruffWriter.new
- when "text" ; @writers << BasicWriter.new
- end
- end
-
- # benchmarks
- glob = File.expand_path('../suite/*.rb', __FILE__)
- Dir.glob(glob) do |filename|
- @adapters.each do |adapter|
- @paths.each do |path|
- benchmark(filename, adapter, path) if @target.match(filename)
- end
- end
- end
-
- # close writers
- @writers.each do |writer|
- writer.close
- end
- end
-
- # start to measure
- def benchmark(filename, adapter, path)
- # output informations
- l :Name, filename.scan(/\/([^\/]+)\.rb/).to_s
- l :Adapter, adapter
- l :Requests, @requests
- l :Concurrent, @concurrent
- l :Path, path
- l :Informer, @informer
- if @display_code
- l :Code, "<code ruby>\n#{File.read(filename)}\n</code>\n\n"
- end
-
- # real benchmark
- ramaze(filename, adapter) do |pid|
- l "Mem usage before", "#{memsize(pid)}MB"
- ab(path).each do |line|
- l *line.split(/:\s*/)
- end
- l "Mem usage after", "#{memsize(pid)}MB"
- end
-
- # flush writers
- @writers.each do |writer|
- writer.flush
- end
- end
-
- private
-
- # memory usage size
- def memsize(pid)
- (`ps -p #{pid} -o rss=`.strip.to_f/10.24).round/100.0
- end
-
- # output
- def l(key, val)
- @writers.each do |writer|
- writer.write(key.to_s, val)
- end
- end
-
- # url of ramaze server
- def url(path)
- "http://#{@host}:#{@port}#{path}"
- end
-
- # apache benchmark
- def ab(path)
- re = /^(Fail|Req|Time|Total transferred|Document Length|Transfer rate)/
- `ab -c #{@concurrent} -n #{@requests} #{url(path)}`.split("\n").grep(re)
- end
-
- # startup
- def ramaze(filename, adapter)
- pid = fork do
- begin
- require 'ramaze'
- Ramaze.options.mode = @mode
- if @informer
- unless @show_log
- require 'ramaze/log/informer'
- Ramaze::Log.loggers = [Ramaze::Logger::Informer.new("/dev/null")]
- end