merb 0.5.3 → 0.9.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (294) hide show
  1. data/LICENSE +0 -20
  2. data/README +0 -277
  3. data/Rakefile +80 -199
  4. data/TODO +0 -3
  5. metadata +19 -438
  6. data/SVN_REVISION +0 -1
  7. data/app_generators/merb/USAGE +0 -5
  8. data/app_generators/merb/merb_generator.rb +0 -108
  9. data/app_generators/merb/templates/Rakefile +0 -124
  10. data/app_generators/merb/templates/app/controllers/application.rb +0 -3
  11. data/app_generators/merb/templates/app/controllers/exceptions.rb +0 -13
  12. data/app_generators/merb/templates/app/helpers/global_helper.rb +0 -5
  13. data/app_generators/merb/templates/app/mailers/views/layout/application.html.erb +0 -1
  14. data/app_generators/merb/templates/app/mailers/views/layout/application.text.erb +0 -1
  15. data/app_generators/merb/templates/app/parts/views/layout/application.html.erb +0 -1
  16. data/app_generators/merb/templates/app/views/exceptions/internal_server_error.html.erb +0 -216
  17. data/app_generators/merb/templates/app/views/exceptions/not_acceptable.html.erb +0 -38
  18. data/app_generators/merb/templates/app/views/exceptions/not_found.html.erb +0 -40
  19. data/app_generators/merb/templates/app/views/layout/application.html.erb +0 -11
  20. data/app_generators/merb/templates/config/boot.rb +0 -11
  21. data/app_generators/merb/templates/config/dependencies.rb +0 -41
  22. data/app_generators/merb/templates/config/environments/development.rb +0 -1
  23. data/app_generators/merb/templates/config/environments/production.rb +0 -1
  24. data/app_generators/merb/templates/config/environments/test.rb +0 -1
  25. data/app_generators/merb/templates/config/merb.yml +0 -82
  26. data/app_generators/merb/templates/config/merb_init.rb +0 -17
  27. data/app_generators/merb/templates/config/plugins.yml +0 -1
  28. data/app_generators/merb/templates/config/router.rb +0 -35
  29. data/app_generators/merb/templates/config/upload.conf +0 -0
  30. data/app_generators/merb/templates/public/images/merb.jpg +0 -0
  31. data/app_generators/merb/templates/public/merb.fcgi +0 -6
  32. data/app_generators/merb/templates/public/stylesheets/master.css +0 -119
  33. data/app_generators/merb/templates/script/destroy +0 -32
  34. data/app_generators/merb/templates/script/generate +0 -32
  35. data/app_generators/merb/templates/script/stop_merb +0 -13
  36. data/app_generators/merb/templates/script/win_script.cmd +0 -1
  37. data/app_generators/merb/templates/spec/spec.opts +0 -6
  38. data/app_generators/merb/templates/spec/spec_helper.rb +0 -15
  39. data/app_generators/merb/templates/test/test_helper.rb +0 -14
  40. data/app_generators/merb_plugin/USAGE +0 -5
  41. data/app_generators/merb_plugin/merb_plugin_generator.rb +0 -68
  42. data/app_generators/merb_plugin/templates/LICENSE +0 -20
  43. data/app_generators/merb_plugin/templates/README +0 -4
  44. data/app_generators/merb_plugin/templates/Rakefile +0 -35
  45. data/app_generators/merb_plugin/templates/TODO +0 -5
  46. data/app_generators/merb_plugin/templates/merbtasks.rb +0 -6
  47. data/app_generators/merb_plugin/templates/sampleplugin.rb +0 -10
  48. data/app_generators/merb_plugin/templates/sampleplugin_spec.rb +0 -7
  49. data/app_generators/merb_plugin/templates/spec_helper.rb +0 -2
  50. data/bin/merb +0 -4
  51. data/lib/autotest/discover.rb +0 -3
  52. data/lib/autotest/merb_rspec.rb +0 -80
  53. data/lib/merb.rb +0 -188
  54. data/lib/merb/abstract_controller.rb +0 -399
  55. data/lib/merb/assets.rb +0 -160
  56. data/lib/merb/assets.rb.orig +0 -119
  57. data/lib/merb/boot_loader.rb +0 -286
  58. data/lib/merb/boot_loader.rb.orig +0 -235
  59. data/lib/merb/caching.rb +0 -5
  60. data/lib/merb/caching/action_cache.rb +0 -92
  61. data/lib/merb/caching/fragment_cache.rb +0 -39
  62. data/lib/merb/caching/store/file_cache.rb +0 -90
  63. data/lib/merb/caching/store/memory_cache.rb +0 -85
  64. data/lib/merb/config.rb +0 -290
  65. data/lib/merb/constants.rb +0 -50
  66. data/lib/merb/controller.rb +0 -220
  67. data/lib/merb/cookies.rb +0 -95
  68. data/lib/merb/core_ext.rb +0 -15
  69. data/lib/merb/core_ext/array.rb +0 -0
  70. data/lib/merb/core_ext/class.rb +0 -180
  71. data/lib/merb/core_ext/enumerable.rb +0 -49
  72. data/lib/merb/core_ext/get_args.rb +0 -76
  73. data/lib/merb/core_ext/hash.rb +0 -306
  74. data/lib/merb/core_ext/inflections.rb +0 -112
  75. data/lib/merb/core_ext/inflector.rb +0 -275
  76. data/lib/merb/core_ext/kernel.rb +0 -242
  77. data/lib/merb/core_ext/mash.rb +0 -88
  78. data/lib/merb/core_ext/module.rb +0 -67
  79. data/lib/merb/core_ext/numeric.rb +0 -72
  80. data/lib/merb/core_ext/object.rb +0 -183
  81. data/lib/merb/core_ext/string.rb +0 -53
  82. data/lib/merb/core_ext/symbol.rb +0 -6
  83. data/lib/merb/dispatcher.rb +0 -109
  84. data/lib/merb/drb_server.rb +0 -19
  85. data/lib/merb/erubis_ext.rb +0 -10
  86. data/lib/merb/exceptions.rb +0 -192
  87. data/lib/merb/generators/merb_app/merb_app.rb +0 -22
  88. data/lib/merb/generators/merb_generator_helpers.rb +0 -318
  89. data/lib/merb/generators/merb_plugin.rb +0 -22
  90. data/lib/merb/logger.rb +0 -78
  91. data/lib/merb/mail_controller.rb +0 -268
  92. data/lib/merb/mailer.rb +0 -87
  93. data/lib/merb/mixins/basic_authentication.rb +0 -35
  94. data/lib/merb/mixins/controller.rb +0 -160
  95. data/lib/merb/mixins/erubis_capture.rb +0 -68
  96. data/lib/merb/mixins/general_controller.rb +0 -253
  97. data/lib/merb/mixins/inline_partial.rb +0 -32
  98. data/lib/merb/mixins/render.rb +0 -465
  99. data/lib/merb/mixins/responder.rb +0 -449
  100. data/lib/merb/mixins/view_context.rb +0 -558
  101. data/lib/merb/mixins/web_controller.rb +0 -36
  102. data/lib/merb/mongrel_handler.rb +0 -168
  103. data/lib/merb/part_controller.rb +0 -29
  104. data/lib/merb/plugins.rb +0 -16
  105. data/lib/merb/rack_adapter.rb +0 -37
  106. data/lib/merb/request.rb +0 -465
  107. data/lib/merb/router.rb +0 -646
  108. data/lib/merb/server.rb +0 -169
  109. data/lib/merb/session.rb +0 -23
  110. data/lib/merb/session/cookie_store.rb +0 -118
  111. data/lib/merb/session/mem_cache_session.rb +0 -131
  112. data/lib/merb/session/memory_session.rb +0 -176
  113. data/lib/merb/template.rb +0 -37
  114. data/lib/merb/template/erubis.rb +0 -68
  115. data/lib/merb/template/haml.rb +0 -87
  116. data/lib/merb/template/markaby.rb +0 -59
  117. data/lib/merb/template/xml_builder.rb +0 -50
  118. data/lib/merb/test/fake_request.rb +0 -74
  119. data/lib/merb/test/helper.rb +0 -260
  120. data/lib/merb/test/hpricot.rb +0 -136
  121. data/lib/merb/test/multipart.rb +0 -66
  122. data/lib/merb/test/rspec.rb +0 -18
  123. data/lib/merb/test/rspec_matchers/controller_matchers.rb +0 -117
  124. data/lib/merb/test/rspec_matchers/markup_matchers.rb +0 -98
  125. data/lib/merb/upload_handler.rb +0 -80
  126. data/lib/merb/upload_progress.rb +0 -48
  127. data/lib/merb/version.rb +0 -49
  128. data/lib/merb/view_context.rb +0 -79
  129. data/lib/tasks.rb +0 -7
  130. data/lib/tasks/merb.rake +0 -54
  131. data/merb_default_generators/model/USAGE +0 -0
  132. data/merb_default_generators/model/model_generator.rb +0 -16
  133. data/merb_default_generators/model/templates/new_model_template.erb +0 -5
  134. data/merb_default_generators/resource_controller/USAGE +0 -0
  135. data/merb_default_generators/resource_controller/resource_controller_generator.rb +0 -26
  136. data/merb_default_generators/resource_controller/templates/controller.rb +0 -30
  137. data/merb_default_generators/resource_controller/templates/edit.html.erb +0 -1
  138. data/merb_default_generators/resource_controller/templates/helper.rb +0 -5
  139. data/merb_default_generators/resource_controller/templates/index.html.erb +0 -1
  140. data/merb_default_generators/resource_controller/templates/new.html.erb +0 -1
  141. data/merb_default_generators/resource_controller/templates/show.html.erb +0 -1
  142. data/merb_generators/controller/USAGE +0 -5
  143. data/merb_generators/controller/controller_generator.rb +0 -16
  144. data/merb_generators/controller/templates/controller.rb +0 -8
  145. data/merb_generators/controller/templates/helper.rb +0 -5
  146. data/merb_generators/controller/templates/index.html.erb +0 -3
  147. data/merb_generators/part_controller/USAGE +0 -5
  148. data/merb_generators/part_controller/part_controller_generator.rb +0 -27
  149. data/merb_generators/part_controller/templates/controller.rb +0 -8
  150. data/merb_generators/part_controller/templates/helper.rb +0 -5
  151. data/merb_generators/part_controller/templates/index.html.erb +0 -3
  152. data/merb_generators/resource/USAGE +0 -0
  153. data/merb_generators/resource/resource_generator.rb +0 -67
  154. data/rspec_generators/merb_controller_test/merb_controller_test_generator.rb +0 -67
  155. data/rspec_generators/merb_controller_test/templates/controller_spec.rb +0 -8
  156. data/rspec_generators/merb_controller_test/templates/edit_spec.rb +0 -12
  157. data/rspec_generators/merb_controller_test/templates/helper_spec.rb +0 -5
  158. data/rspec_generators/merb_controller_test/templates/index_spec.rb +0 -12
  159. data/rspec_generators/merb_controller_test/templates/new_spec.rb +0 -12
  160. data/rspec_generators/merb_controller_test/templates/show_spec.rb +0 -5
  161. data/rspec_generators/merb_model_test/merb_model_test_generator.rb +0 -26
  162. data/rspec_generators/merb_model_test/templates/model_spec_template.erb +0 -7
  163. data/script/destroy +0 -14
  164. data/script/generate +0 -14
  165. data/spec/fixtures/config/environments/environment_config_test.yml +0 -1
  166. data/spec/fixtures/config/merb.yml +0 -18
  167. data/spec/fixtures/controllers/dispatch_spec_controllers.rb +0 -235
  168. data/spec/fixtures/controllers/render_spec_controllers.rb +0 -184
  169. data/spec/fixtures/foo.rb +0 -3
  170. data/spec/fixtures/mailers/views/layout/application.html.erb +0 -3
  171. data/spec/fixtures/mailers/views/layout/application.text.erb +0 -3
  172. data/spec/fixtures/mailers/views/test_mail_controller/eighth.html.erb +0 -1
  173. data/spec/fixtures/mailers/views/test_mail_controller/eighth.text.erb +0 -1
  174. data/spec/fixtures/mailers/views/test_mail_controller/first.html.erb +0 -1
  175. data/spec/fixtures/mailers/views/test_mail_controller/first.text.erb +0 -1
  176. data/spec/fixtures/mailers/views/test_mail_controller/ninth.html.erb +0 -1
  177. data/spec/fixtures/mailers/views/test_mail_controller/ninth.text.erb +0 -1
  178. data/spec/fixtures/mailers/views/test_mail_controller/second.text.erb +0 -1
  179. data/spec/fixtures/mailers/views/test_mail_controller/third.html.erb +0 -1
  180. data/spec/fixtures/models/router_spec_models.rb +0 -30
  181. data/spec/fixtures/parts/views/layout/todo_part.html.erb +0 -3
  182. data/spec/fixtures/parts/views/layout/todo_part.xml.erb +0 -3
  183. data/spec/fixtures/parts/views/todo_part/formatted_output.html.erb +0 -1
  184. data/spec/fixtures/parts/views/todo_part/formatted_output.js.erb +0 -1
  185. data/spec/fixtures/parts/views/todo_part/formatted_output.xml.erb +0 -1
  186. data/spec/fixtures/parts/views/todo_part/list.html.erb +0 -3
  187. data/spec/fixtures/sample.txt +0 -1
  188. data/spec/fixtures/views/erubis.html.erb +0 -1
  189. data/spec/fixtures/views/examples/_erubis.html.erb +0 -1
  190. data/spec/fixtures/views/examples/_haml.html.haml +0 -1
  191. data/spec/fixtures/views/examples/_markaby.html.mab +0 -1
  192. data/spec/fixtures/views/examples/_throw_content.html.erb +0 -6
  193. data/spec/fixtures/views/examples/hello.xml.builder +0 -1
  194. data/spec/fixtures/views/examples/js.js.erb +0 -1
  195. data/spec/fixtures/views/examples/template_catch_content.html.erb +0 -15
  196. data/spec/fixtures/views/examples/template_catch_content_from_partial.html.erb +0 -6
  197. data/spec/fixtures/views/examples/template_throw_content.html.erb +0 -10
  198. data/spec/fixtures/views/examples/template_throw_content_without_block.html.erb +0 -3
  199. data/spec/fixtures/views/exceptions/admin_access_required.html.erb +0 -1
  200. data/spec/fixtures/views/extension_template_controller/_nested_js.js.erb +0 -1
  201. data/spec/fixtures/views/extension_template_controller/_nested_xml.xml.erb +0 -1
  202. data/spec/fixtures/views/extension_template_controller/_render_partial_multiple_times.html.erb +0 -1
  203. data/spec/fixtures/views/extension_template_controller/erubis_templates.html.erb +0 -1
  204. data/spec/fixtures/views/extension_template_controller/erubis_templates.js.erb +0 -1
  205. data/spec/fixtures/views/extension_template_controller/erubis_templates.rhtml +0 -1
  206. data/spec/fixtures/views/extension_template_controller/erubis_templates.xml.erb +0 -1
  207. data/spec/fixtures/views/extension_template_controller/haml_index.html.haml +0 -0
  208. data/spec/fixtures/views/extension_template_controller/haml_templates.html.haml +0 -1
  209. data/spec/fixtures/views/extension_template_controller/haml_templates.js.haml +0 -1
  210. data/spec/fixtures/views/extension_template_controller/haml_templates.xml.haml +0 -1
  211. data/spec/fixtures/views/extension_template_controller/index.html.erb +0 -0
  212. data/spec/fixtures/views/extension_template_controller/markaby_index.html.mab +0 -0
  213. data/spec/fixtures/views/extension_template_controller/markaby_templates.html.mab +0 -1
  214. data/spec/fixtures/views/extension_template_controller/markaby_templates.js.mab +0 -1
  215. data/spec/fixtures/views/extension_template_controller/markaby_templates.xml.mab +0 -1
  216. data/spec/fixtures/views/extension_template_controller/render_multiple_partials.html.erb +0 -4
  217. data/spec/fixtures/views/extension_template_controller/render_nested_js.js.erb +0 -1
  218. data/spec/fixtures/views/extension_template_controller/render_nested_xml.xml.erb +0 -1
  219. data/spec/fixtures/views/haml.html.haml +0 -1
  220. data/spec/fixtures/views/haml.xml.haml +0 -2
  221. data/spec/fixtures/views/layout/application.html.erb +0 -1
  222. data/spec/fixtures/views/layout/application.xml.erb +0 -1
  223. data/spec/fixtures/views/layout/nested/example.html.erb +0 -1
  224. data/spec/fixtures/views/markaby.html.mab +0 -1
  225. data/spec/fixtures/views/nested/example/test.html.erb +0 -1
  226. data/spec/fixtures/views/partials/_erubis.html.erb +0 -1
  227. data/spec/fixtures/views/partials/_erubis_collection.html.erb +0 -1
  228. data/spec/fixtures/views/partials/_erubis_collection_with_locals.html.erb +0 -1
  229. data/spec/fixtures/views/partials/_erubis_new.html.erb +0 -1
  230. data/spec/fixtures/views/partials/_haml.html.haml +0 -1
  231. data/spec/fixtures/views/partials/_haml_collection.html.haml +0 -1
  232. data/spec/fixtures/views/partials/_haml_collection_with_locals.html.haml +0 -1
  233. data/spec/fixtures/views/partials/_haml_new.html.haml +0 -1
  234. data/spec/fixtures/views/partials/_markaby.html.mab +0 -1
  235. data/spec/fixtures/views/partials/_markaby_collection.html.mab +0 -1
  236. data/spec/fixtures/views/partials/_markaby_collection_with_locals.html.mab +0 -1
  237. data/spec/fixtures/views/partials/_markaby_new.html.mab +0 -1
  238. data/spec/fixtures/views/render_object_controller/render_object_with_template.html.erb +0 -1
  239. data/spec/fixtures/views/render_object_controller/render_object_with_template.js.erb +0 -1
  240. data/spec/fixtures/views/render_object_controller/render_object_with_template.xml.erb +0 -1
  241. data/spec/fixtures/views/template_views/interface__buffer_erubis.html.erb +0 -4
  242. data/spec/fixtures/views/template_views/interface__buffer_haml.html.haml +0 -7
  243. data/spec/fixtures/views/template_views/interface__buffer_markaby.html.mab +0 -7
  244. data/spec/fixtures/views/template_views/interface_capture_erubis.html.erb +0 -15
  245. data/spec/fixtures/views/template_views/interface_capture_haml.html.haml +0 -15
  246. data/spec/fixtures/views/template_views/interface_capture_markaby.html.mab +0 -4
  247. data/spec/fixtures/views/template_views/interface_concat_erubis.html.erb +0 -12
  248. data/spec/fixtures/views/template_views/interface_concat_haml.html.haml +0 -11
  249. data/spec/fixtures/views/template_views/interface_concat_markaby.html.mab +0 -14
  250. data/spec/fixtures/views/test.dir/the_template.html.erb +0 -1
  251. data/spec/merb/abstract_controller_spec.rb +0 -38
  252. data/spec/merb/assets_spec.rb +0 -207
  253. data/spec/merb/caching_spec.rb +0 -102
  254. data/spec/merb/config_spec.rb +0 -29
  255. data/spec/merb/controller_filters_spec.rb +0 -253
  256. data/spec/merb/controller_spec.rb +0 -126
  257. data/spec/merb/cookie_store_spec.rb +0 -72
  258. data/spec/merb/cookies_spec.rb +0 -96
  259. data/spec/merb/core_ext/class_spec.rb +0 -97
  260. data/spec/merb/core_ext/enumerable_spec.rb +0 -27
  261. data/spec/merb/core_ext/hash_spec.rb +0 -251
  262. data/spec/merb/core_ext/inflector_spec.rb +0 -34
  263. data/spec/merb/core_ext/kernel_spec.rb +0 -25
  264. data/spec/merb/core_ext/numeric_spec.rb +0 -26
  265. data/spec/merb/core_ext/object_spec.rb +0 -47
  266. data/spec/merb/core_ext/string_spec.rb +0 -22
  267. data/spec/merb/core_ext/symbol_spec.rb +0 -7
  268. data/spec/merb/dependency_spec.rb +0 -22
  269. data/spec/merb/dispatch_spec.rb +0 -528
  270. data/spec/merb/fake_request_spec.rb +0 -80
  271. data/spec/merb/generator_spec.rb +0 -248
  272. data/spec/merb/handler_spec.rb +0 -169
  273. data/spec/merb/mail_controller_spec.rb +0 -177
  274. data/spec/merb/mailer_spec.rb +0 -87
  275. data/spec/merb/multipart_spec.rb +0 -50
  276. data/spec/merb/part_controller_spec.rb +0 -124
  277. data/spec/merb/plugins_spec.rb +0 -80
  278. data/spec/merb/render_spec.rb +0 -469
  279. data/spec/merb/request_spec.rb +0 -287
  280. data/spec/merb/responder_spec.rb +0 -562
  281. data/spec/merb/router_spec.rb +0 -900
  282. data/spec/merb/server_spec.rb +0 -19
  283. data/spec/merb/template_spec.rb +0 -41
  284. data/spec/merb/upload_handler_spec.rb +0 -108
  285. data/spec/merb/version_spec.rb +0 -33
  286. data/spec/merb/view_context_spec.rb +0 -366
  287. data/spec/spec_generator_helper.rb +0 -34
  288. data/spec/spec_helper.rb +0 -101
  289. data/spec/spec_helpers/url_shared_behaviour.rb +0 -112
  290. data/test_unit_generators/merb_controller_test/merb_controller_test_generator.rb +0 -53
  291. data/test_unit_generators/merb_controller_test/templates/functional_test.rb +0 -17
  292. data/test_unit_generators/merb_controller_test/templates/helper_test.rb +0 -9
  293. data/test_unit_generators/merb_model_test/merb_model_test_generator.rb +0 -29
  294. data/test_unit_generators/merb_model_test/templates/model_test_unit_template.erb +0 -9
@@ -1,38 +0,0 @@
1
- <div id="container">
2
- <div id="header-container">
3
- <img src="/images/merb.jpg">
4
- <!-- <h1>Mongrel + Erb</h1> -->
5
- <h2>pocket rocket web framework</h2>
6
- <hr />
7
- </div>
8
-
9
- <div id="left-container">
10
- <h3>Exception:</h3>
11
- <p><%= params[:exception] %></p>
12
- </div>
13
-
14
- <div id="main-container">
15
- <h3>Why am I seeing this page?</h3>
16
- <p>Merb couldn't find an appropriate content_type to return,
17
- based on what you said was available via provides() and
18
- what the client requested. For more information, visit
19
- http://merbivore.com/fixing_406_issues
20
- </p>
21
-
22
- <h3>Where can I find help?</h3>
23
- <p>If you have any questions or if you can't figure something out, please take a
24
- look at our <a href="http://merb.devjavu.com/"> project development page</a> or,
25
- feel free to come chat at irc.freenode.net, channel #merb.</p>
26
-
27
- <h3>How do I edit this page?</h3>
28
- <p>You can change what people see when this happens byy editing <tt>app/views/exceptions/not_found.html.erb</tt>.</p>
29
-
30
- </div>
31
-
32
- <div id="footer-container">
33
- <hr />
34
- <div class="left"></div>
35
- <div class="right">&copy; 2007 the merb dev team</div>
36
- <p>&nbsp;</p>
37
- </div>
38
- </div>
@@ -1,40 +0,0 @@
1
- <div id="container">
2
- <div id="header-container">
3
- <img src="/images/merb.jpg">
4
- <!-- <h1>Mongrel + Erb</h1> -->
5
- <h2>pocket rocket web framework</h2>
6
- <hr />
7
- </div>
8
-
9
- <div id="left-container">
10
- <h3>Exception:</h3>
11
- <p><%= params[:exception] %></p>
12
- </div>
13
-
14
- <div id="main-container">
15
- <h3>Welcome to Merb!</h3>
16
- <p>Merb is a light-weight MVC framework written in Ruby. We hope you enjoy it.</p>
17
-
18
- <h3>Where can I find help?</h3>
19
- <p>If you have any questions or if you can't figure something out, please take a
20
- look at our <a href="http://merb.devjavu.com/"> project development page</a> or,
21
- feel free to come chat at irc.freenode.net, channel #merb.</p>
22
-
23
- <h3>How do I edit this page?</h3>
24
- <p>You're seeing this page because you need to edit the following files:
25
- <ul>
26
- <li>config/merb.yml <strong><em>(optional)</em></strong></li>
27
- <li>config/router.rb <strong><em>(recommended)</em></strong></li>
28
- <li>app/views/exceptions/not_found.html.erb <strong><em>(recommended)</em></strong></li>
29
- <li>app/views/layout/application.html.erb <strong><em>(change this layout)</em></strong></li>
30
- </ul>
31
- </p>
32
- </div>
33
-
34
- <div id="footer-container">
35
- <hr />
36
- <div class="left"></div>
37
- <div class="right">&copy; 2007 the merb dev team</div>
38
- <p>&nbsp;</p>
39
- </div>
40
- </div>
@@ -1,11 +0,0 @@
1
- <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
2
- <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en-us" lang="en-us">
3
- <head>
4
- <title>Fresh Merb App</title>
5
- <meta http-equiv="content-type" content="text/html; charset=utf-8" />
6
- <link rel="stylesheet" href="/stylesheets/master.css" type="text/css" media="screen" charset="utf-8">
7
- </head>
8
- <body>
9
- <%= catch_content :layout %>
10
- </body>
11
- </html>
@@ -1,11 +0,0 @@
1
- frozen_framework_path = File.join(File.dirname(__FILE__), "..", "framework")
2
-
3
- unless defined?(Merb::framework_root)
4
- if File.directory?(frozen_framework_path)
5
- $:.unshift frozen_framework_path
6
- require File.join(frozen_framework_path, "merb")
7
- else
8
- require 'rubygems' # required for test_unit loading
9
- require 'merb'
10
- end
11
- end
@@ -1,41 +0,0 @@
1
- # Make the app's "gems" directory a place where gems are loaded from
2
- Gem.clear_paths
3
- Gem.path.unshift(Merb.root / "gems")
4
-
5
- # Make the app's "lib" directory a place where ruby files get "require"d from
6
- $LOAD_PATH.unshift(Merb.root / "lib")
7
-
8
- ### Merb doesn't come with database support by default. You need
9
- ### an ORM plugin. Install one, and uncomment one of the following lines,
10
- ### if you need a database.
11
-
12
- ### Uncomment for DataMapper ORM
13
- # use_orm :datamapper
14
-
15
- ### Uncomment for ActiveRecord ORM
16
- # use_orm :activerecord
17
-
18
- ### Uncomment for Sequel ORM
19
- # use_orm :sequel
20
-
21
-
22
- ### This defines which test framework the generators will use
23
- ### rspec is turned on by default
24
- # use_test :test_unit
25
- use_test :rspec
26
-
27
- ### Add your other dependencies here
28
-
29
- # These are some examples of how you might specify dependencies.
30
- #
31
- # dependencies "RedCloth", "merb_helpers"
32
- # OR
33
- # dependency "RedCloth", "> 3.0"
34
- # OR
35
- # dependencies "RedCloth" => "> 3.0", "ruby-aes-cext" => "= 1.0"
36
-
37
- Merb::BootLoader.after_app_loads do
38
- ### Add dependencies here that must load after the application loads:
39
-
40
- # dependency "magic_admin" # this gem uses the app's model classes
41
- end
@@ -1 +0,0 @@
1
- puts "Loaded DEVELOPMENT Environment..."
@@ -1 +0,0 @@
1
- puts "Loaded PRODUCTION Environment..."
@@ -1 +0,0 @@
1
- puts "Loaded TEST Environment..."
@@ -1,82 +0,0 @@
1
- ---
2
- # Hostname or IP address to bind to.
3
- :host: 0.0.0.0
4
-
5
- # Port merb runs on or starting port for merb cluster.
6
- :port: "4000"
7
-
8
- # Set if your app will be hosted in some dir other than the root
9
- #:path_prefix: "/my_app"
10
-
11
- # In development mode your app's files are reloaded whenever Merb detects a
12
- # change. Templates are parsed each time and not cached. In production mode
13
- # templates are cached, as well as all your classes
14
- :environment: development
15
-
16
- # Uncomment if you have more than one ORM or if you need to be specific about
17
- # which memory store to use. Built-in options are: memory, cookie, or mem_cache
18
- #:session_store: sequel
19
-
20
- #:memory_session_ttl: 3600 # one hour
21
-
22
- # A secret key is required when using the 'cookie' session store (default),
23
- # change this value to something unique to your application and keep it private
24
- :session_secret_key: <%= key %>
25
-
26
- # Uncomment to use the merb upload progress. The 'path match' will be treated as
27
- # a regex for any URLs that should be considered for upload monitoring.
28
- #:upload_path_match: /files/\d
29
- #:upload_frequency: 3
30
-
31
- # Uncomment to cache templates in dev mode. Templates are cached
32
- # automatically in production mode.
33
- #:cache_templates: true
34
-
35
- # Uncomment to bundle assets in dev mode. Assets are automatically bundled in
36
- # production mode.
37
- #:bundle_assets: true
38
-
39
- # this is true if you want mongrel to emulate the X-Sendfile header internally,
40
- # false if you want it to fall thru to apache or whatever front end server you use.
41
- # true by default
42
- #:mongrel_x_sendfile: false
43
-
44
- # Uncomment and set this if you want to run a drb server for upload progress
45
- # or other drb services.
46
- #:start_drb: true
47
- #:drb_server_port: 32323
48
-
49
- # If you want to protect some or all of your app with HTTP basic auth then
50
- # uncomment the following and fill in your credentials you want it to use.
51
- # You will then need to set a 'before' filter in a controller. For example:
52
- # before :basic_authentication
53
- #:basic_auth:
54
- # :username: ezra
55
- # :password: test
56
- # :domain: localhost
57
-
58
- # Uncomment this if you want merb to daemonize when you start it. You can also
59
- # just use merb -d for the same effect. Don't uncomment this if you use the
60
- # cluster option.
61
- #:daemonize: true
62
-
63
- # Uncomment this to set the number of members in your merb cluster. Don't set
64
- # this and :daemonize: at the same time.
65
- #:cluster: 3
66
-
67
- # Uncomment this if you want to force merb to show full InternalServerError
68
- # details, even when in production mode
69
- #:exception_details: true
70
-
71
- # It is often useful to use a differant layout from 'application' for errors
72
- # set this to the layout template (or :none) that you want to use by default
73
- #:exception_layout: :none
74
-
75
- # You can override settings for specific environments by creating a yaml
76
- # file for that environment in config/environments. For example, to
77
- # change the configuration only for development create
78
- # config/environments/development.yml
79
-
80
- # If you don't intend to parse JSON, use ActiveSupport, or want to roll your own
81
- # set this to true, to disable the loading of the JSON gem
82
- # :disable_json_gem: true
@@ -1,17 +0,0 @@
1
- # Add your own ruby code here for app specific stuff. This file gets loaded
2
- # after the framework is loaded.
3
- puts "Started merb_init.rb ..."
4
-
5
- # Your app's dependencies, including your database layer (if any) are defined
6
- # in config/dependencies.rb
7
- require File.join(Merb.root, 'config', 'dependencies')
8
-
9
- # Here's where your controllers, helpers, and models, etc. get loaded. If you
10
- # need to change the order of things, just move the call to 'load_application'
11
- # around this file.
12
- puts "Loading Application..."
13
- Merb::BootLoader.load_application
14
-
15
- # Load environment-specific configuration
16
- environment_config = File.join(Merb.root, 'config', 'environments', Merb.environment + '.rb')
17
- require environment_config if File.exist?(environment_config)
@@ -1 +0,0 @@
1
- # This is for configuring plugins, not installing them
@@ -1,35 +0,0 @@
1
- # Merb::Router is the request routing mapper for the merb framework.
2
- #
3
- # You can route a specific URL to a controller / action pair:
4
- #
5
- # r.match("/contact").
6
- # to(:controller => "info", :action => "contact")
7
- #
8
- # You can define placeholder parts of the url with the :symbol notation. These
9
- # placeholders will be available in the params hash of your controllers. For example:
10
- #
11
- # r.match("/books/:book_id/:action").
12
- # to(:controller => "books")
13
- #
14
- # Or, use placeholders in the "to" results for more complicated routing, e.g.:
15
- #
16
- # r.match("/admin/:module/:controller/:action/:id").
17
- # to(:controller => ":module/:controller")
18
- #
19
- # You can also use regular expressions, deferred routes, and many other options.
20
- # See merb/specs/merb/router.rb for a fairly complete usage sample.
21
-
22
- puts "Compiling routes.."
23
- Merb::Router.prepare do |r|
24
- # RESTful routes
25
- # r.resources :posts
26
-
27
- # This is the default route for /:controller/:action/:id
28
- # This is fine for most cases. If you're heavily using resource-based
29
- # routes, you may want to comment/remove this line to prevent
30
- # clients from calling your create or destroy actions with a GET
31
- r.default_routes
32
-
33
- # Change this for your home page to be available at /
34
- # r.match('/').to(:controller => 'whatever', :action =>'index')
35
- end
File without changes
@@ -1,6 +0,0 @@
1
- #!/usr/bin/env ruby
2
-
3
- ARGV=["-F"]
4
- require 'merb/server'
5
-
6
- Merb::Server.run
@@ -1,119 +0,0 @@
1
- body {
2
- font-family: Arial, Verdana, sans-serif;
3
- font-size: 12px;
4
- background-color: #fff;
5
- }
6
- * {
7
- margin: 0px;
8
- padding: 0px;
9
- text-decoration: none;
10
- }
11
- html {
12
- height: 100%;
13
- margin-bottom: 1px;
14
- }
15
- #container {
16
- width: 80%;
17
- text-align: left;
18
- background-color: #fff;
19
- margin-right: auto;
20
- margin-left: auto;
21
- }
22
- #header-container {
23
- width: 100%;
24
- padding-top: 15px;
25
- }
26
- #header-container h1, #header-container h2 {
27
- margin-left: 6px;
28
- margin-bottom: 6px;
29
- }
30
- .spacer {
31
- width: 100%;
32
- height: 15px;
33
- }
34
- hr {
35
- border: 0px;
36
- color: #ccc;
37
- background-color: #cdcdcd;
38
- height: 1px;
39
- width: 100%;
40
- text-align: left;
41
- }
42
- h1 {
43
- font-size: 28px;
44
- color: #c55;
45
- background-color: #fff;
46
- font-family: Arial, Verdana, sans-serif;
47
- font-weight: 300;
48
- }
49
- h2 {
50
- font-size: 15px;
51
- color: #999;
52
- font-family: Arial, Verdana, sans-serif;
53
- font-weight: 300;
54
- background-color: #fff;
55
- }
56
- h3 {
57
- color: #4d9b12;
58
- font-size: 15px;
59
- text-align: left;
60
- font-weight: 300;
61
- padding: 5px;
62
- margin-top: 5px;
63
- }
64
-
65
- #left-container {
66
- float: left;
67
- width: 250px;
68
- background-color: #FFFFFF;
69
- color: black;
70
- }
71
-
72
- #left-container h3 {
73
- color: #c55;
74
- }
75
-
76
- #main-container {
77
- margin: 5px 5px 5px 260px;
78
- padding: 15px;
79
- border-left: 1px solid silver;
80
- min-height: 400px;
81
- }
82
- p {
83
- color: #000;
84
- background-color: #fff;
85
- line-height: 20px;
86
- padding: 5px;
87
- }
88
- a {
89
- color: #4d9b12;
90
- background-color: #fff;
91
- text-decoration: none;
92
- }
93
- a:hover {
94
- color: #4d9b12;
95
- background-color: #fff;
96
- text-decoration: underline;
97
- }
98
- #footer-container {
99
- clear: both;
100
- font-size: 12px;
101
- font-family: Verdana, Arial, sans-serif;
102
- }
103
- .right {
104
- float: right;
105
- font-size: 100%;
106
- margin-top: 5px;
107
- color: #999;
108
- background-color: #fff;
109
- }
110
- .left {
111
- float: left;
112
- font-size: 100%;
113
- margin-top: 5px;
114
- color: #999;
115
- background-color: #fff;
116
- }
117
- #main-container ul {
118
- margin-left: 3.0em;
119
- }
@@ -1,32 +0,0 @@
1
- #!/usr/bin/env ruby
2
- APP_ROOT = File.join(File.dirname(__FILE__), '..')
3
-
4
- # required to overcome a callback in rspec
5
- def at_exit
6
- end
7
-
8
- begin
9
- require 'rubigen'
10
- rescue LoadError
11
- require 'rubygems'
12
- require 'rubigen'
13
- end
14
-
15
- require File.join(File.dirname(__FILE__), "..", 'config', 'boot')
16
- require (APP_ROOT / "config" / "merb_init" )
17
- module Kernel
18
- undef dependency if defined?(Kernel.dependency)
19
- end
20
-
21
- # Make the App's local gems available
22
- Gem.clear_paths
23
- Gem.path.unshift(APP_ROOT / "gems")
24
-
25
- require 'rubigen/scripts/destroy'
26
-
27
- ARGV.shift if ['--help', '-h'].include?(ARGV[0])
28
-
29
- # Default is to use rspec generators in gems. To change this to
30
- # Test::Unit use [:merb, :test_unit]
31
- RubiGen::Base.use_component_sources! Merb::GENERATOR_SCOPE
32
- RubiGen::Scripts::Destroy.new.run(ARGV)