merb 0.4.0 → 0.4.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (143) hide show
  1. data/README +23 -160
  2. data/Rakefile +15 -14
  3. data/app_generators/merb/merb_generator.rb +4 -3
  4. data/app_generators/merb/templates/Rakefile +1 -6
  5. data/app_generators/merb/templates/app/mailers/views/layout/{application.erb → application.html.erb} +0 -0
  6. data/app_generators/merb/templates/app/mailers/views/layout/application.text.erb +1 -0
  7. data/app_generators/merb/templates/app/parts/views/layout/application.html.erb +1 -0
  8. data/app_generators/merb/templates/app/views/layout/application.html.erb +2 -2
  9. data/app_generators/merb/templates/config/dependencies.rb +1 -1
  10. data/app_generators/merb/templates/config/router.rb +4 -1
  11. data/app_generators/merb/templates/spec/spec_helper.rb +2 -3
  12. data/lib/autotest/merb_rspec.rb +1 -0
  13. data/lib/merb/abstract_controller.rb +31 -2
  14. data/lib/merb/controller.rb +5 -5
  15. data/lib/merb/core_ext/get_args.rb +5 -1
  16. data/lib/merb/exceptions.rb +17 -0
  17. data/lib/merb/generators/merb_app/merb_app.rb +4 -1
  18. data/lib/merb/generators/merb_plugin.rb +4 -1
  19. data/lib/merb/logger.rb +5 -1
  20. data/lib/merb/mail_controller.rb +1 -1
  21. data/lib/merb/mailer.rb +2 -2
  22. data/lib/merb/mixins/controller.rb +5 -1
  23. data/lib/merb/mixins/render.rb +57 -27
  24. data/lib/merb/part_controller.rb +1 -1
  25. data/lib/merb/request.rb +2 -2
  26. data/lib/merb/server.rb +33 -5
  27. data/lib/merb/template/erubis.rb +1 -1
  28. data/lib/merb.rb +15 -5
  29. data/merb_generators/resource/resource_generator.rb +9 -2
  30. data/spec/fixtures/config/merb.yml +18 -0
  31. data/spec/fixtures/controllers/dispatch_spec_controllers.rb +227 -0
  32. data/spec/fixtures/controllers/render_spec_controllers.rb +115 -0
  33. data/spec/fixtures/foo.rb +3 -0
  34. data/spec/fixtures/mailers/views/layout/application.html.erb +3 -0
  35. data/spec/fixtures/mailers/views/layout/application.text.erb +3 -0
  36. data/spec/fixtures/mailers/views/test_mail_controller/eighth.html.erb +1 -0
  37. data/spec/fixtures/mailers/views/test_mail_controller/eighth.text.erb +1 -0
  38. data/spec/fixtures/mailers/views/test_mail_controller/first.html.erb +1 -0
  39. data/spec/fixtures/mailers/views/test_mail_controller/first.text.erb +1 -0
  40. data/spec/fixtures/mailers/views/test_mail_controller/ninth.html.erb +1 -0
  41. data/spec/fixtures/mailers/views/test_mail_controller/ninth.text.erb +1 -0
  42. data/spec/fixtures/mailers/views/test_mail_controller/second.text.erb +1 -0
  43. data/spec/fixtures/mailers/views/test_mail_controller/third.html.erb +1 -0
  44. data/spec/fixtures/models/router_spec_models.rb +20 -0
  45. data/spec/fixtures/parts/views/layout/todo_part.html.erb +3 -0
  46. data/spec/fixtures/parts/views/layout/todo_part.xml.erb +3 -0
  47. data/spec/fixtures/parts/views/todo_part/formatted_output.html.erb +1 -0
  48. data/spec/fixtures/parts/views/todo_part/formatted_output.js.erb +1 -0
  49. data/spec/fixtures/parts/views/todo_part/formatted_output.xml.erb +1 -0
  50. data/spec/fixtures/parts/views/todo_part/list.html.erb +3 -0
  51. data/spec/fixtures/sample.txt +1 -0
  52. data/spec/fixtures/views/erubis.html.erb +1 -0
  53. data/spec/fixtures/views/examples/_erubis.html.erb +1 -0
  54. data/spec/fixtures/views/examples/_haml.html.haml +1 -0
  55. data/spec/fixtures/views/examples/_markaby.html.mab +1 -0
  56. data/spec/fixtures/views/examples/_throw_content.html.erb +6 -0
  57. data/spec/fixtures/views/examples/hello.xml.builder +1 -0
  58. data/spec/fixtures/views/examples/js.js.erb +1 -0
  59. data/spec/fixtures/views/examples/template_catch_content.html.erb +15 -0
  60. data/spec/fixtures/views/examples/template_catch_content_from_partial.html.erb +6 -0
  61. data/spec/fixtures/views/examples/template_throw_content.html.erb +10 -0
  62. data/spec/fixtures/views/exceptions/admin_access_required.html.erb +1 -0
  63. data/spec/fixtures/views/extension_template_controller/_nested_js.js.erb +1 -0
  64. data/spec/fixtures/views/extension_template_controller/_nested_xml.xml.erb +1 -0
  65. data/spec/fixtures/views/extension_template_controller/_render_partial_multiple_times.html.erb +1 -0
  66. data/spec/fixtures/views/extension_template_controller/erubis_templates.html.erb +1 -0
  67. data/spec/fixtures/views/extension_template_controller/erubis_templates.js.erb +1 -0
  68. data/spec/fixtures/views/extension_template_controller/erubis_templates.rhtml +1 -0
  69. data/spec/fixtures/views/extension_template_controller/erubis_templates.xml.erb +1 -0
  70. data/spec/fixtures/views/extension_template_controller/haml_index.html.haml +0 -0
  71. data/spec/fixtures/views/extension_template_controller/haml_templates.html.haml +1 -0
  72. data/spec/fixtures/views/extension_template_controller/haml_templates.js.haml +1 -0
  73. data/spec/fixtures/views/extension_template_controller/haml_templates.xml.haml +1 -0
  74. data/spec/fixtures/views/extension_template_controller/index.html.erb +0 -0
  75. data/spec/fixtures/views/extension_template_controller/markaby_index.html.mab +0 -0
  76. data/spec/fixtures/views/extension_template_controller/markaby_templates.html.mab +1 -0
  77. data/spec/fixtures/views/extension_template_controller/markaby_templates.js.mab +1 -0
  78. data/spec/fixtures/views/extension_template_controller/markaby_templates.xml.mab +1 -0
  79. data/spec/fixtures/views/extension_template_controller/render_multiple_partials.html.erb +4 -0
  80. data/spec/fixtures/views/extension_template_controller/render_nested_js.js.erb +1 -0
  81. data/spec/fixtures/views/extension_template_controller/render_nested_xml.xml.erb +1 -0
  82. data/spec/fixtures/views/haml.html.haml +1 -0
  83. data/spec/fixtures/views/haml.xml.haml +2 -0
  84. data/spec/fixtures/views/layout/application.html.erb +1 -0
  85. data/spec/fixtures/views/layout/application.xml.erb +1 -0
  86. data/spec/fixtures/views/layout/nested/example.html.erb +1 -0
  87. data/spec/fixtures/views/markaby.html.mab +1 -0
  88. data/spec/fixtures/views/nested/example/test.html.erb +1 -0
  89. data/spec/fixtures/views/partials/_erubis.html.erb +1 -0
  90. data/spec/fixtures/views/partials/_erubis_collection.html.erb +1 -0
  91. data/spec/fixtures/views/partials/_erubis_collection_with_locals.html.erb +1 -0
  92. data/spec/fixtures/views/partials/_erubis_new.html.erb +1 -0
  93. data/spec/fixtures/views/partials/_haml.html.haml +1 -0
  94. data/spec/fixtures/views/partials/_haml_collection.html.haml +1 -0
  95. data/spec/fixtures/views/partials/_haml_collection_with_locals.html.haml +1 -0
  96. data/spec/fixtures/views/partials/_haml_new.html.haml +1 -0
  97. data/spec/fixtures/views/partials/_markaby.html.mab +1 -0
  98. data/spec/fixtures/views/partials/_markaby_collection.html.mab +1 -0
  99. data/spec/fixtures/views/partials/_markaby_collection_with_locals.html.mab +1 -0
  100. data/spec/fixtures/views/partials/_markaby_new.html.mab +1 -0
  101. data/spec/fixtures/views/render_object_controller/render_object_with_template.html.erb +1 -0
  102. data/spec/fixtures/views/render_object_controller/render_object_with_template.js.erb +1 -0
  103. data/spec/fixtures/views/render_object_controller/render_object_with_template.xml.erb +1 -0
  104. data/spec/fixtures/views/template_views/interface__buffer_erubis.html.erb +4 -0
  105. data/spec/fixtures/views/template_views/interface__buffer_haml.html.haml +7 -0
  106. data/spec/fixtures/views/template_views/interface__buffer_markaby.html.mab +7 -0
  107. data/spec/fixtures/views/template_views/interface_capture_erubis.html.erb +15 -0
  108. data/spec/fixtures/views/template_views/interface_capture_haml.html.haml +15 -0
  109. data/spec/fixtures/views/template_views/interface_capture_markaby.html.mab +4 -0
  110. data/spec/fixtures/views/template_views/interface_concat_erubis.html.erb +12 -0
  111. data/spec/fixtures/views/template_views/interface_concat_haml.html.haml +11 -0
  112. data/spec/fixtures/views/template_views/interface_concat_markaby.html.mab +14 -0
  113. data/spec/fixtures/views/test.dir/the_template.html.erb +1 -0
  114. data/spec/merb/abstract_controller_spec.rb +37 -0
  115. data/spec/merb/caching_spec.rb +102 -0
  116. data/spec/merb/config_spec.rb +29 -0
  117. data/spec/merb/controller_filters_spec.rb +188 -0
  118. data/spec/merb/controller_spec.rb +144 -0
  119. data/spec/merb/cookie_store_spec.rb +85 -0
  120. data/spec/merb/core_ext_spec.rb +430 -0
  121. data/spec/merb/dispatch_spec.rb +514 -0
  122. data/spec/merb/fake_request_spec.rb +72 -0
  123. data/spec/merb/form_control_mixin_spec.rb +431 -0
  124. data/spec/merb/generator_spec.rb +121 -0
  125. data/spec/merb/handler_spec.rb +169 -0
  126. data/spec/merb/mail_controller_spec.rb +144 -0
  127. data/spec/merb/mailer_spec.rb +87 -0
  128. data/spec/merb/multipart_spec.rb +49 -0
  129. data/spec/merb/part_controller_spec.rb +92 -0
  130. data/spec/merb/plugins_spec.rb +80 -0
  131. data/spec/merb/render_spec.rb +378 -0
  132. data/spec/merb/request_spec.rb +243 -0
  133. data/spec/merb/responder_spec.rb +561 -0
  134. data/spec/merb/router_spec.rb +726 -0
  135. data/spec/merb/template_spec.rb +41 -0
  136. data/spec/merb/upload_handler_spec.rb +101 -0
  137. data/spec/merb/view_context_spec.rb +148 -0
  138. data/spec/spec_generator_helper.rb +19 -0
  139. data/spec/spec_helper.rb +88 -0
  140. metadata +203 -65
  141. data/lib/merb/caching/store/memcache.rb +0 -20
  142. data/script/destroy +0 -14
  143. data/script/generate +0 -14
metadata CHANGED
@@ -1,10 +1,10 @@
1
1
  --- !ruby/object:Gem::Specification
2
- rubygems_version: 0.9.4
2
+ rubygems_version: 0.9.2
3
3
  specification_version: 1
4
4
  name: merb
5
5
  version: !ruby/object:Gem::Version
6
- version: 0.4.0
7
- date: 2007-11-06 00:00:00 -08:00
6
+ version: 0.4.1
7
+ date: 2007-11-12 00:00:00 -06:00
8
8
  summary: Merb == Mongrel + Erb. Pocket rocket web framework.
9
9
  require_paths:
10
10
  - lib
@@ -34,22 +34,185 @@ files:
34
34
  - Rakefile
35
35
  - TODO
36
36
  - bin/merb
37
+ - spec/fixtures
38
+ - spec/merb
39
+ - spec/spec_generator_helper.rb
40
+ - spec/spec_helper.rb
41
+ - spec/fixtures/config
42
+ - spec/fixtures/controllers
43
+ - spec/fixtures/foo.rb
44
+ - spec/fixtures/mailers
45
+ - spec/fixtures/models
46
+ - spec/fixtures/parts
47
+ - spec/fixtures/sample.txt
48
+ - spec/fixtures/views
49
+ - spec/fixtures/config/merb.yml
50
+ - spec/fixtures/controllers/dispatch_spec_controllers.rb
51
+ - spec/fixtures/controllers/render_spec_controllers.rb
52
+ - spec/fixtures/mailers/views
53
+ - spec/fixtures/mailers/views/layout
54
+ - spec/fixtures/mailers/views/test_mail_controller
55
+ - spec/fixtures/mailers/views/layout/application.html.erb
56
+ - spec/fixtures/mailers/views/layout/application.text.erb
57
+ - spec/fixtures/mailers/views/test_mail_controller/eighth.html.erb
58
+ - spec/fixtures/mailers/views/test_mail_controller/eighth.text.erb
59
+ - spec/fixtures/mailers/views/test_mail_controller/first.html.erb
60
+ - spec/fixtures/mailers/views/test_mail_controller/first.text.erb
61
+ - spec/fixtures/mailers/views/test_mail_controller/ninth.html.erb
62
+ - spec/fixtures/mailers/views/test_mail_controller/ninth.text.erb
63
+ - spec/fixtures/mailers/views/test_mail_controller/second.text.erb
64
+ - spec/fixtures/mailers/views/test_mail_controller/third.html.erb
65
+ - spec/fixtures/models/router_spec_models.rb
66
+ - spec/fixtures/parts/helpers
67
+ - spec/fixtures/parts/views
68
+ - spec/fixtures/parts/views/layout
69
+ - spec/fixtures/parts/views/todo_part
70
+ - spec/fixtures/parts/views/layout/todo_part.html.erb
71
+ - spec/fixtures/parts/views/layout/todo_part.xml.erb
72
+ - spec/fixtures/parts/views/todo_part/formatted_output.html.erb
73
+ - spec/fixtures/parts/views/todo_part/formatted_output.js.erb
74
+ - spec/fixtures/parts/views/todo_part/formatted_output.xml.erb
75
+ - spec/fixtures/parts/views/todo_part/list.html.erb
76
+ - spec/fixtures/views/erubis.html.erb
77
+ - spec/fixtures/views/examples
78
+ - spec/fixtures/views/exceptions
79
+ - spec/fixtures/views/extension_template_controller
80
+ - spec/fixtures/views/haml.html.haml
81
+ - spec/fixtures/views/haml.xml.haml
82
+ - spec/fixtures/views/layout
83
+ - spec/fixtures/views/markaby.html.mab
84
+ - spec/fixtures/views/nested
85
+ - spec/fixtures/views/partials
86
+ - spec/fixtures/views/render_object_controller
87
+ - spec/fixtures/views/template_views
88
+ - spec/fixtures/views/test.dir
89
+ - spec/fixtures/views/examples/_erubis.html.erb
90
+ - spec/fixtures/views/examples/_haml.html.haml
91
+ - spec/fixtures/views/examples/_markaby.html.mab
92
+ - spec/fixtures/views/examples/_throw_content.html.erb
93
+ - spec/fixtures/views/examples/hello.xml.builder
94
+ - spec/fixtures/views/examples/js.js.erb
95
+ - spec/fixtures/views/examples/template_catch_content.html.erb
96
+ - spec/fixtures/views/examples/template_catch_content_from_partial.html.erb
97
+ - spec/fixtures/views/examples/template_throw_content.html.erb
98
+ - spec/fixtures/views/exceptions/admin_access_required.html.erb
99
+ - spec/fixtures/views/extension_template_controller/_nested_js.js.erb
100
+ - spec/fixtures/views/extension_template_controller/_nested_xml.xml.erb
101
+ - spec/fixtures/views/extension_template_controller/_render_partial_multiple_times.html.erb
102
+ - spec/fixtures/views/extension_template_controller/erubis_templates.html.erb
103
+ - spec/fixtures/views/extension_template_controller/erubis_templates.js.erb
104
+ - spec/fixtures/views/extension_template_controller/erubis_templates.rhtml
105
+ - spec/fixtures/views/extension_template_controller/erubis_templates.xml.erb
106
+ - spec/fixtures/views/extension_template_controller/haml_index.html.haml
107
+ - spec/fixtures/views/extension_template_controller/haml_templates.html.haml
108
+ - spec/fixtures/views/extension_template_controller/haml_templates.js.haml
109
+ - spec/fixtures/views/extension_template_controller/haml_templates.xml.haml
110
+ - spec/fixtures/views/extension_template_controller/index.html.erb
111
+ - spec/fixtures/views/extension_template_controller/markaby_index.html.mab
112
+ - spec/fixtures/views/extension_template_controller/markaby_templates.html.mab
113
+ - spec/fixtures/views/extension_template_controller/markaby_templates.js.mab
114
+ - spec/fixtures/views/extension_template_controller/markaby_templates.xml.mab
115
+ - spec/fixtures/views/extension_template_controller/render_multiple_partials.html.erb
116
+ - spec/fixtures/views/extension_template_controller/render_nested_js.js.erb
117
+ - spec/fixtures/views/extension_template_controller/render_nested_xml.xml.erb
118
+ - spec/fixtures/views/layout/application.html.erb
119
+ - spec/fixtures/views/layout/application.xml.erb
120
+ - spec/fixtures/views/layout/nested
121
+ - spec/fixtures/views/layout/nested/example.html.erb
122
+ - spec/fixtures/views/nested/example
123
+ - spec/fixtures/views/nested/example/test.html.erb
124
+ - spec/fixtures/views/partials/_erubis.html.erb
125
+ - spec/fixtures/views/partials/_erubis_collection.html.erb
126
+ - spec/fixtures/views/partials/_erubis_collection_with_locals.html.erb
127
+ - spec/fixtures/views/partials/_erubis_new.html.erb
128
+ - spec/fixtures/views/partials/_haml.html.haml
129
+ - spec/fixtures/views/partials/_haml_collection.html.haml
130
+ - spec/fixtures/views/partials/_haml_collection_with_locals.html.haml
131
+ - spec/fixtures/views/partials/_haml_new.html.haml
132
+ - spec/fixtures/views/partials/_markaby.html.mab
133
+ - spec/fixtures/views/partials/_markaby_collection.html.mab
134
+ - spec/fixtures/views/partials/_markaby_collection_with_locals.html.mab
135
+ - spec/fixtures/views/partials/_markaby_new.html.mab
136
+ - spec/fixtures/views/render_object_controller/render_object_with_template.html.erb
137
+ - spec/fixtures/views/render_object_controller/render_object_with_template.js.erb
138
+ - spec/fixtures/views/render_object_controller/render_object_with_template.xml.erb
139
+ - spec/fixtures/views/template_views/interface__buffer_erubis.html.erb
140
+ - spec/fixtures/views/template_views/interface__buffer_haml.html.haml
141
+ - spec/fixtures/views/template_views/interface__buffer_markaby.html.mab
142
+ - spec/fixtures/views/template_views/interface_capture_erubis.html.erb
143
+ - spec/fixtures/views/template_views/interface_capture_haml.html.haml
144
+ - spec/fixtures/views/template_views/interface_capture_markaby.html.mab
145
+ - spec/fixtures/views/template_views/interface_concat_erubis.html.erb
146
+ - spec/fixtures/views/template_views/interface_concat_haml.html.haml
147
+ - spec/fixtures/views/template_views/interface_concat_markaby.html.mab
148
+ - spec/fixtures/views/test.dir/the_template.html.erb
149
+ - spec/merb/abstract_controller_spec.rb
150
+ - spec/merb/caching_spec.rb
151
+ - spec/merb/config_spec.rb
152
+ - spec/merb/controller_filters_spec.rb
153
+ - spec/merb/controller_spec.rb
154
+ - spec/merb/cookie_store_spec.rb
155
+ - spec/merb/core_ext_spec.rb
156
+ - spec/merb/dispatch_spec.rb
157
+ - spec/merb/fake_request_spec.rb
158
+ - spec/merb/form_control_mixin_spec.rb
159
+ - spec/merb/generator_spec.rb
160
+ - spec/merb/handler_spec.rb
161
+ - spec/merb/mail_controller_spec.rb
162
+ - spec/merb/mailer_spec.rb
163
+ - spec/merb/multipart_spec.rb
164
+ - spec/merb/part_controller_spec.rb
165
+ - spec/merb/plugins_spec.rb
166
+ - spec/merb/render_spec.rb
167
+ - spec/merb/request_spec.rb
168
+ - spec/merb/responder_spec.rb
169
+ - spec/merb/router_spec.rb
170
+ - spec/merb/template_spec.rb
171
+ - spec/merb/upload_handler_spec.rb
172
+ - spec/merb/view_context_spec.rb
37
173
  - lib/autotest
174
+ - lib/merb
175
+ - lib/merb.rb
176
+ - lib/tasks
177
+ - lib/tasks.rb
38
178
  - lib/autotest/discover.rb
39
179
  - lib/autotest/merb_rspec.rb
40
- - lib/merb
41
180
  - lib/merb/abstract_controller.rb
42
181
  - lib/merb/caching
182
+ - lib/merb/caching.rb
183
+ - lib/merb/constants.rb
184
+ - lib/merb/controller.rb
185
+ - lib/merb/core_ext
186
+ - lib/merb/core_ext.rb
187
+ - lib/merb/dispatcher.rb
188
+ - lib/merb/drb_server.rb
189
+ - lib/merb/erubis_ext.rb
190
+ - lib/merb/exceptions.rb
191
+ - lib/merb/generators
192
+ - lib/merb/logger.rb
193
+ - lib/merb/mail_controller.rb
194
+ - lib/merb/mailer.rb
195
+ - lib/merb/mixins
196
+ - lib/merb/mongrel_handler.rb
197
+ - lib/merb/part_controller.rb
198
+ - lib/merb/plugins.rb
199
+ - lib/merb/rack_adapter.rb
200
+ - lib/merb/request.rb
201
+ - lib/merb/router.rb
202
+ - lib/merb/server.rb
203
+ - lib/merb/session
204
+ - lib/merb/session.rb
205
+ - lib/merb/template
206
+ - lib/merb/template.rb
207
+ - lib/merb/test
208
+ - lib/merb/upload_handler.rb
209
+ - lib/merb/upload_progress.rb
210
+ - lib/merb/view_context.rb
43
211
  - lib/merb/caching/action_cache.rb
44
212
  - lib/merb/caching/fragment_cache.rb
45
213
  - lib/merb/caching/store
46
214
  - lib/merb/caching/store/file_cache.rb
47
- - lib/merb/caching/store/memcache.rb
48
215
  - lib/merb/caching/store/memory_cache.rb
49
- - lib/merb/caching.rb
50
- - lib/merb/constants.rb
51
- - lib/merb/controller.rb
52
- - lib/merb/core_ext
53
216
  - lib/merb/core_ext/array.rb
54
217
  - lib/merb/core_ext/class.rb
55
218
  - lib/merb/core_ext/enumerable.rb
@@ -64,20 +227,10 @@ files:
64
227
  - lib/merb/core_ext/object.rb
65
228
  - lib/merb/core_ext/string.rb
66
229
  - lib/merb/core_ext/symbol.rb
67
- - lib/merb/core_ext.rb
68
- - lib/merb/dispatcher.rb
69
- - lib/merb/drb_server.rb
70
- - lib/merb/erubis_ext.rb
71
- - lib/merb/exceptions.rb
72
- - lib/merb/generators
73
230
  - lib/merb/generators/merb_app
74
- - lib/merb/generators/merb_app/merb_app.rb
75
231
  - lib/merb/generators/merb_generator_helpers.rb
76
232
  - lib/merb/generators/merb_plugin.rb
77
- - lib/merb/logger.rb
78
- - lib/merb/mail_controller.rb
79
- - lib/merb/mailer.rb
80
- - lib/merb/mixins
233
+ - lib/merb/generators/merb_app/merb_app.rb
81
234
  - lib/merb/mixins/basic_authentication.rb
82
235
  - lib/merb/mixins/controller.rb
83
236
  - lib/merb/mixins/erubis_capture.rb
@@ -86,90 +239,78 @@ files:
86
239
  - lib/merb/mixins/responder.rb
87
240
  - lib/merb/mixins/view_context.rb
88
241
  - lib/merb/mixins/web_controller.rb
89
- - lib/merb/mongrel_handler.rb
90
- - lib/merb/part_controller.rb
91
- - lib/merb/plugins.rb
92
- - lib/merb/rack_adapter.rb
93
- - lib/merb/request.rb
94
- - lib/merb/router.rb
95
- - lib/merb/server.rb
96
- - lib/merb/session
97
242
  - lib/merb/session/cookie_store.rb
98
243
  - lib/merb/session/mem_cache_session.rb
99
244
  - lib/merb/session/memory_session.rb
100
- - lib/merb/session.rb
101
- - lib/merb/template
102
245
  - lib/merb/template/erubis.rb
103
246
  - lib/merb/template/haml.rb
104
247
  - lib/merb/template/markaby.rb
105
248
  - lib/merb/template/xml_builder.rb
106
- - lib/merb/template.rb
107
- - lib/merb/test
108
249
  - lib/merb/test/fake_request.rb
109
250
  - lib/merb/test/helper.rb
110
251
  - lib/merb/test/hpricot.rb
111
252
  - lib/merb/test/multipart.rb
112
253
  - lib/merb/test/rspec.rb
113
- - lib/merb/upload_handler.rb
114
- - lib/merb/upload_progress.rb
115
- - lib/merb/view_context.rb
116
- - lib/merb.rb
117
- - lib/tasks
118
254
  - lib/tasks/merb.rake
119
- - lib/tasks.rb
120
255
  - app_generators/merb
256
+ - app_generators/merb_plugin
121
257
  - app_generators/merb/merb_generator.rb
122
258
  - app_generators/merb/templates
259
+ - app_generators/merb/USAGE
123
260
  - app_generators/merb/templates/app
261
+ - app_generators/merb/templates/config
262
+ - app_generators/merb/templates/public
263
+ - app_generators/merb/templates/Rakefile
264
+ - app_generators/merb/templates/script
265
+ - app_generators/merb/templates/spec
266
+ - app_generators/merb/templates/test
124
267
  - app_generators/merb/templates/app/controllers
268
+ - app_generators/merb/templates/app/helpers
269
+ - app_generators/merb/templates/app/mailers
270
+ - app_generators/merb/templates/app/parts
271
+ - app_generators/merb/templates/app/views
125
272
  - app_generators/merb/templates/app/controllers/application.rb
126
273
  - app_generators/merb/templates/app/controllers/exceptions.rb
127
- - app_generators/merb/templates/app/helpers
128
274
  - app_generators/merb/templates/app/helpers/global_helper.rb
129
- - app_generators/merb/templates/app/mailers
130
275
  - app_generators/merb/templates/app/mailers/views
131
276
  - app_generators/merb/templates/app/mailers/views/layout
132
- - app_generators/merb/templates/app/mailers/views/layout/application.erb
133
- - app_generators/merb/templates/app/views
277
+ - app_generators/merb/templates/app/mailers/views/layout/application.html.erb
278
+ - app_generators/merb/templates/app/mailers/views/layout/application.text.erb
279
+ - app_generators/merb/templates/app/parts/views
280
+ - app_generators/merb/templates/app/parts/views/layout
281
+ - app_generators/merb/templates/app/parts/views/layout/application.html.erb
134
282
  - app_generators/merb/templates/app/views/exceptions
283
+ - app_generators/merb/templates/app/views/layout
135
284
  - app_generators/merb/templates/app/views/exceptions/internal_server_error.html.erb
136
285
  - app_generators/merb/templates/app/views/exceptions/not_acceptable.html.erb
137
286
  - app_generators/merb/templates/app/views/exceptions/not_found.html.erb
138
- - app_generators/merb/templates/app/views/layout
139
287
  - app_generators/merb/templates/app/views/layout/application.html.erb
140
- - app_generators/merb/templates/config
141
288
  - app_generators/merb/templates/config/boot.rb
142
289
  - app_generators/merb/templates/config/dependencies.rb
143
290
  - app_generators/merb/templates/config/environments
144
- - app_generators/merb/templates/config/environments/development.rb
145
- - app_generators/merb/templates/config/environments/production.rb
146
- - app_generators/merb/templates/config/environments/test.rb
147
291
  - app_generators/merb/templates/config/merb.yml
148
292
  - app_generators/merb/templates/config/merb_init.rb
149
293
  - app_generators/merb/templates/config/plugins.yml
150
294
  - app_generators/merb/templates/config/router.rb
151
295
  - app_generators/merb/templates/config/upload.conf
152
- - app_generators/merb/templates/public
296
+ - app_generators/merb/templates/config/environments/development.rb
297
+ - app_generators/merb/templates/config/environments/production.rb
298
+ - app_generators/merb/templates/config/environments/test.rb
153
299
  - app_generators/merb/templates/public/images
154
- - app_generators/merb/templates/public/images/merb.jpg
155
300
  - app_generators/merb/templates/public/merb.fcgi
156
301
  - app_generators/merb/templates/public/stylesheets
302
+ - app_generators/merb/templates/public/images/merb.jpg
157
303
  - app_generators/merb/templates/public/stylesheets/master.css
158
- - app_generators/merb/templates/Rakefile
159
- - app_generators/merb/templates/script
160
304
  - app_generators/merb/templates/script/destroy
161
305
  - app_generators/merb/templates/script/generate
162
306
  - app_generators/merb/templates/script/stop_merb
163
307
  - app_generators/merb/templates/script/win_script.cmd
164
- - app_generators/merb/templates/spec
165
308
  - app_generators/merb/templates/spec/spec.opts
166
309
  - app_generators/merb/templates/spec/spec_helper.rb
167
- - app_generators/merb/templates/test
168
310
  - app_generators/merb/templates/test/test_helper.rb
169
- - app_generators/merb/USAGE
170
- - app_generators/merb_plugin
171
311
  - app_generators/merb_plugin/merb_plugin_generator.rb
172
312
  - app_generators/merb_plugin/templates
313
+ - app_generators/merb_plugin/USAGE
173
314
  - app_generators/merb_plugin/templates/LICENSE
174
315
  - app_generators/merb_plugin/templates/merbtasks.rb
175
316
  - app_generators/merb_plugin/templates/Rakefile
@@ -178,33 +319,33 @@ files:
178
319
  - app_generators/merb_plugin/templates/sampleplugin_spec.rb
179
320
  - app_generators/merb_plugin/templates/spec_helper.rb
180
321
  - app_generators/merb_plugin/templates/TODO
181
- - app_generators/merb_plugin/USAGE
182
322
  - merb_generators/controller
323
+ - merb_generators/resource
183
324
  - merb_generators/controller/controller_generator.rb
184
325
  - merb_generators/controller/templates
326
+ - merb_generators/controller/USAGE
185
327
  - merb_generators/controller/templates/controller.rb
186
328
  - merb_generators/controller/templates/helper.rb
187
329
  - merb_generators/controller/templates/index.html.erb
188
- - merb_generators/controller/USAGE
189
- - merb_generators/resource
190
330
  - merb_generators/resource/resource_generator.rb
191
331
  - merb_generators/resource/USAGE
192
332
  - merb_default_generators/model
333
+ - merb_default_generators/resource_controller
193
334
  - merb_default_generators/model/model_generator.rb
194
335
  - merb_default_generators/model/templates
195
- - merb_default_generators/model/templates/new_model_template.erb
196
336
  - merb_default_generators/model/USAGE
197
- - merb_default_generators/resource_controller
337
+ - merb_default_generators/model/templates/new_model_template.erb
198
338
  - merb_default_generators/resource_controller/resource_controller_generator.rb
199
339
  - merb_default_generators/resource_controller/templates
340
+ - merb_default_generators/resource_controller/USAGE
200
341
  - merb_default_generators/resource_controller/templates/controller.rb
201
342
  - merb_default_generators/resource_controller/templates/edit.html.erb
202
343
  - merb_default_generators/resource_controller/templates/helper.rb
203
344
  - merb_default_generators/resource_controller/templates/index.html.erb
204
345
  - merb_default_generators/resource_controller/templates/new.html.erb
205
346
  - merb_default_generators/resource_controller/templates/show.html.erb
206
- - merb_default_generators/resource_controller/USAGE
207
347
  - rspec_generators/merb_controller_test
348
+ - rspec_generators/merb_model_test
208
349
  - rspec_generators/merb_controller_test/merb_controller_test_generator.rb
209
350
  - rspec_generators/merb_controller_test/templates
210
351
  - rspec_generators/merb_controller_test/templates/controller_spec.rb
@@ -213,21 +354,18 @@ files:
213
354
  - rspec_generators/merb_controller_test/templates/index_spec.rb
214
355
  - rspec_generators/merb_controller_test/templates/new_spec.rb
215
356
  - rspec_generators/merb_controller_test/templates/show_spec.rb
216
- - rspec_generators/merb_model_test
217
357
  - rspec_generators/merb_model_test/merb_model_test_generator.rb
218
358
  - rspec_generators/merb_model_test/templates
219
359
  - rspec_generators/merb_model_test/templates/model_spec_template.erb
220
360
  - test_unit_generators/merb_controller_test
361
+ - test_unit_generators/merb_model_test
221
362
  - test_unit_generators/merb_controller_test/merb_controller_test_generator.rb
222
363
  - test_unit_generators/merb_controller_test/templates
223
364
  - test_unit_generators/merb_controller_test/templates/functional_test.rb
224
365
  - test_unit_generators/merb_controller_test/templates/helper_test.rb
225
- - test_unit_generators/merb_model_test
226
366
  - test_unit_generators/merb_model_test/merb_model_test_generator.rb
227
367
  - test_unit_generators/merb_model_test/templates
228
368
  - test_unit_generators/merb_model_test/templates/model_test_unit_template.erb
229
- - script/destroy
230
- - script/generate
231
369
  test_files: []
232
370
 
233
371
  rdoc_options: []
@@ -1,20 +0,0 @@
1
- module Merb
2
- module Caching
3
- module MemcachedStore
4
-
5
-
6
- def get(name)
7
- ::Cache.get("fragment:#{name}")
8
- end
9
-
10
- def put(name, content = nil)
11
- ::Cache.put("fragment:#{name}", content)
12
- content
13
- end
14
-
15
- def expire_fragment(name)
16
- ::Cache.delete(name)
17
- end
18
- end
19
- end
20
- end
data/script/destroy DELETED
@@ -1,14 +0,0 @@
1
- #!/usr/bin/env ruby
2
- APP_ROOT = File.join(File.dirname(__FILE__), '..')
3
-
4
- begin
5
- require 'rubigen'
6
- rescue LoadError
7
- require 'rubygems'
8
- require 'rubigen'
9
- end
10
- require 'rubigen/scripts/destroy'
11
-
12
- ARGV.shift if ['--help', '-h'].include?(ARGV[0])
13
- RubiGen::Base.use_component_sources! :rubygems
14
- RubiGen::Scripts::Destroy.new.run(ARGV)
data/script/generate DELETED
@@ -1,14 +0,0 @@
1
- #!/usr/bin/env ruby
2
- APP_ROOT = File.join(File.dirname(__FILE__), '..')
3
-
4
- begin
5
- require 'rubigen'
6
- rescue LoadError
7
- require 'rubygems'
8
- require 'rubigen'
9
- end
10
- require 'rubigen/scripts/generate'
11
-
12
- ARGV.shift if ['--help', '-h'].include?(ARGV[0])
13
- RubiGen::Base.use_component_sources! :rubygems
14
- RubiGen::Scripts::Generate.new.run(ARGV)