waves 0.7.6 → 0.7.7

Sign up to get free protection for your applications and to get access to all the features.
Files changed (291) hide show
  1. data/app/Rakefile +64 -6
  2. data/app/configurations/development.rb.erb +2 -1
  3. data/app/configurations/mapping.rb.erb +1 -0
  4. data/app/configurations/production.rb.erb +1 -0
  5. data/app/lib/application.rb.erb +2 -2
  6. data/bin/waves +36 -1
  7. data/doc/HISTORY +44 -0
  8. data/doc/LICENSE +22 -0
  9. data/doc/rdoc/classes/Erubis/Context.html +218 -0
  10. data/doc/rdoc/classes/Kernel.html +145 -0
  11. data/doc/rdoc/classes/Symbol.html +154 -0
  12. data/doc/rdoc/classes/Tempfile.html +161 -0
  13. data/doc/rdoc/classes/Waves.html +455 -0
  14. data/doc/rdoc/classes/Waves/Application.html +371 -0
  15. data/doc/rdoc/classes/Waves/Blackboard.html +296 -0
  16. data/doc/rdoc/classes/Waves/Configurations.html +283 -0
  17. data/doc/rdoc/classes/Waves/Configurations/Base.html +209 -0
  18. data/doc/rdoc/classes/Waves/Configurations/Default.html +237 -0
  19. data/doc/rdoc/classes/Waves/Console.html +187 -0
  20. data/doc/rdoc/classes/Waves/Controllers.html +203 -0
  21. data/doc/rdoc/classes/Waves/Controllers/Base.html +151 -0
  22. data/doc/rdoc/classes/Waves/Controllers/Mixin.html +312 -0
  23. data/doc/rdoc/classes/Waves/Dispatchers.html +118 -0
  24. data/doc/rdoc/classes/Waves/Dispatchers/Base.html +198 -0
  25. data/doc/rdoc/classes/Waves/Dispatchers/Default.html +224 -0
  26. data/doc/rdoc/classes/Waves/Dispatchers/NotFoundError.html +122 -0
  27. data/doc/rdoc/classes/Waves/Dispatchers/Redirect.html +173 -0
  28. data/doc/rdoc/classes/Waves/Foundations.html +131 -0
  29. data/doc/rdoc/classes/Waves/Foundations/Default.html +179 -0
  30. data/doc/rdoc/classes/Waves/Foundations/Simple.html +167 -0
  31. data/doc/rdoc/classes/Waves/Helpers.html +176 -0
  32. data/doc/rdoc/classes/Waves/Helpers/AssetHelper.html +212 -0
  33. data/doc/rdoc/classes/Waves/Helpers/Common.html +213 -0
  34. data/doc/rdoc/classes/Waves/Helpers/Default.html +135 -0
  35. data/doc/rdoc/classes/Waves/Helpers/Form.html +201 -0
  36. data/doc/rdoc/classes/Waves/Helpers/Formatting.html +232 -0
  37. data/doc/rdoc/classes/Waves/Helpers/Model.html +194 -0
  38. data/doc/rdoc/classes/Waves/Helpers/NumberHelper.html +165 -0
  39. data/doc/rdoc/classes/Waves/Helpers/TagHelper.html +226 -0
  40. data/doc/rdoc/classes/Waves/Helpers/UrlHelper.html +242 -0
  41. data/doc/rdoc/classes/Waves/Helpers/View.html +163 -0
  42. data/doc/rdoc/classes/Waves/Inflect/InflectorMethods.html +475 -0
  43. data/doc/rdoc/classes/Waves/Layers.html +175 -0
  44. data/doc/rdoc/classes/Waves/Layers/DefaultErrors.html +161 -0
  45. data/doc/rdoc/classes/Waves/Layers/Inflect.html +119 -0
  46. data/doc/rdoc/classes/Waves/Layers/Inflect/English.html +168 -0
  47. data/doc/rdoc/classes/Waves/Layers/Inflect/English/Rules.html +112 -0
  48. data/doc/rdoc/classes/Waves/Layers/Inflect/English/StringMethods.html +194 -0
  49. data/doc/rdoc/classes/Waves/Layers/MVC.html +204 -0
  50. data/doc/rdoc/classes/Waves/Layers/ORM/ActiveRecord.html +239 -0
  51. data/doc/rdoc/classes/Waves/Layers/ORM/ActiveRecord/ControllerMethods.html +246 -0
  52. data/doc/rdoc/classes/Waves/Layers/ORM/ActiveRecord/Symbol.html +132 -0
  53. data/doc/rdoc/classes/Waves/Layers/ORM/DataMapper.html +166 -0
  54. data/doc/rdoc/classes/Waves/Layers/ORM/Filebase.html +157 -0
  55. data/doc/rdoc/classes/Waves/Layers/ORM/Sequel.html +232 -0
  56. data/doc/rdoc/classes/Waves/Layers/ORM/Sequel/ControllerMethods.html +246 -0
  57. data/doc/rdoc/classes/Waves/Layers/Simple.html +169 -0
  58. data/doc/rdoc/classes/Waves/Layers/SimpleErrors.html +159 -0
  59. data/doc/rdoc/classes/Waves/Logger.html +288 -0
  60. data/doc/rdoc/classes/Waves/Mapping.html +760 -0
  61. data/doc/rdoc/classes/Waves/Mapping/PrettyUrls.html +129 -0
  62. data/doc/rdoc/classes/Waves/Mapping/PrettyUrls/GetRules.html +174 -0
  63. data/doc/rdoc/classes/Waves/Mapping/PrettyUrls/RestRules.html +180 -0
  64. data/doc/rdoc/classes/Waves/MimeTypes.html +200 -0
  65. data/doc/rdoc/classes/Waves/Renderers/Erubis.html +162 -0
  66. data/doc/rdoc/classes/Waves/Renderers/Haml.html +160 -0
  67. data/doc/rdoc/classes/Waves/Renderers/Markaby.html +167 -0
  68. data/doc/rdoc/classes/Waves/Renderers/Mixin.html +191 -0
  69. data/doc/rdoc/classes/Waves/Renderers/Scope.html +181 -0
  70. data/doc/rdoc/classes/Waves/Request.html +441 -0
  71. data/doc/rdoc/classes/Waves/Request/ParseError.html +111 -0
  72. data/doc/rdoc/classes/Waves/Response.html +283 -0
  73. data/doc/rdoc/classes/Waves/ResponseMixin.html +460 -0
  74. data/doc/rdoc/classes/Waves/ResponseProxy.html +269 -0
  75. data/doc/rdoc/classes/Waves/Server.html +488 -0
  76. data/doc/rdoc/classes/Waves/Session.html +330 -0
  77. data/doc/rdoc/classes/Waves/Utilities/Hash.html +185 -0
  78. data/doc/rdoc/classes/Waves/Utilities/Integer.html +424 -0
  79. data/doc/rdoc/classes/Waves/Utilities/Module.html +174 -0
  80. data/doc/rdoc/classes/Waves/Utilities/Object.html +155 -0
  81. data/doc/rdoc/classes/Waves/Utilities/Proc.html +145 -0
  82. data/doc/rdoc/classes/Waves/Utilities/String.html +290 -0
  83. data/doc/rdoc/classes/Waves/Views.html +278 -0
  84. data/doc/rdoc/classes/Waves/Views/Base.html +118 -0
  85. data/doc/rdoc/classes/Waves/Views/Mixin.html +279 -0
  86. data/doc/rdoc/classes/Waves/Views/NoTemplateError.html +111 -0
  87. data/doc/rdoc/created.rid +1 -0
  88. data/doc/rdoc/files/README_rdoc.html +415 -0
  89. data/doc/rdoc/files/bin/waves.html +135 -0
  90. data/doc/rdoc/files/doc/HISTORY.html +265 -0
  91. data/doc/rdoc/files/lib/commands/waves-console_rb.html +110 -0
  92. data/doc/rdoc/files/lib/commands/waves-server_rb.html +108 -0
  93. data/doc/rdoc/files/lib/controllers/base_rb.html +101 -0
  94. data/doc/rdoc/files/lib/controllers/mixin_rb.html +101 -0
  95. data/doc/rdoc/files/lib/dispatchers/base_rb.html +101 -0
  96. data/doc/rdoc/files/lib/dispatchers/default_rb.html +101 -0
  97. data/doc/rdoc/files/lib/foundations/default_rb.html +101 -0
  98. data/doc/rdoc/files/lib/foundations/simple_rb.html +101 -0
  99. data/doc/rdoc/files/lib/helpers/asset_helper_rb.html +101 -0
  100. data/doc/rdoc/files/lib/helpers/common_rb.html +101 -0
  101. data/doc/rdoc/files/lib/helpers/default_rb.html +101 -0
  102. data/doc/rdoc/files/lib/helpers/form_rb.html +101 -0
  103. data/doc/rdoc/files/lib/helpers/formatting_rb.html +108 -0
  104. data/doc/rdoc/files/lib/helpers/model_rb.html +101 -0
  105. data/doc/rdoc/files/lib/helpers/number_helper_rb.html +101 -0
  106. data/doc/rdoc/files/lib/helpers/tag_helper_rb.html +101 -0
  107. data/doc/rdoc/files/lib/helpers/url_helper_rb.html +101 -0
  108. data/doc/rdoc/files/lib/helpers/view_rb.html +101 -0
  109. data/doc/rdoc/files/lib/layers/default_errors_rb.html +101 -0
  110. data/doc/rdoc/files/lib/layers/inflect/english/rules_rb.html +101 -0
  111. data/doc/rdoc/files/lib/layers/inflect/english/string_rb.html +101 -0
  112. data/doc/rdoc/files/lib/layers/inflect/english_rb.html +109 -0
  113. data/doc/rdoc/files/lib/layers/mvc_rb.html +101 -0
  114. data/doc/rdoc/files/lib/layers/orm/active_record/tasks/generate_rb.html +101 -0
  115. data/doc/rdoc/files/lib/layers/orm/active_record/tasks/schema_rb.html +101 -0
  116. data/doc/rdoc/files/lib/layers/orm/active_record_rb.html +108 -0
  117. data/doc/rdoc/files/lib/layers/orm/data_mapper_rb.html +108 -0
  118. data/doc/rdoc/files/lib/layers/orm/filebase_rb.html +101 -0
  119. data/doc/rdoc/files/lib/layers/orm/migration_rb.html +101 -0
  120. data/doc/rdoc/files/lib/layers/orm/sequel/tasks/generate_rb.html +101 -0
  121. data/doc/rdoc/files/lib/layers/orm/sequel/tasks/schema_rb.html +101 -0
  122. data/doc/rdoc/files/lib/layers/orm/sequel_rb.html +108 -0
  123. data/doc/rdoc/files/lib/layers/simple_errors_rb.html +101 -0
  124. data/doc/rdoc/files/lib/layers/simple_rb.html +101 -0
  125. data/doc/rdoc/files/lib/mapping/mapping_rb.html +101 -0
  126. data/doc/rdoc/files/lib/mapping/pretty_urls_rb.html +101 -0
  127. data/doc/rdoc/files/lib/renderers/erubis_rb.html +108 -0
  128. data/doc/rdoc/files/lib/renderers/haml_rb.html +108 -0
  129. data/doc/rdoc/files/lib/renderers/markaby_rb.html +108 -0
  130. data/doc/rdoc/files/lib/renderers/mixin_rb.html +101 -0
  131. data/doc/rdoc/files/lib/runtime/application_rb.html +107 -0
  132. data/doc/rdoc/files/lib/runtime/blackboard_rb.html +101 -0
  133. data/doc/rdoc/files/lib/runtime/configuration_rb.html +101 -0
  134. data/doc/rdoc/files/lib/runtime/console_rb.html +101 -0
  135. data/doc/rdoc/files/lib/runtime/debugger_rb.html +101 -0
  136. data/doc/rdoc/files/lib/runtime/logger_rb.html +108 -0
  137. data/doc/rdoc/files/lib/runtime/mime_types_rb.html +101 -0
  138. data/doc/rdoc/files/lib/runtime/request_rb.html +101 -0
  139. data/doc/rdoc/files/lib/runtime/response_mixin_rb.html +101 -0
  140. data/doc/rdoc/files/lib/runtime/response_proxy_rb.html +101 -0
  141. data/doc/rdoc/files/lib/runtime/response_rb.html +101 -0
  142. data/doc/rdoc/files/lib/runtime/server_rb.html +108 -0
  143. data/doc/rdoc/files/lib/runtime/session_rb.html +101 -0
  144. data/doc/rdoc/files/lib/tasks/cluster_rb.html +101 -0
  145. data/doc/rdoc/files/lib/tasks/gem_rb.html +108 -0
  146. data/doc/rdoc/files/lib/tasks/generate_rb.html +101 -0
  147. data/doc/rdoc/files/lib/utilities/hash_rb.html +101 -0
  148. data/doc/rdoc/files/lib/utilities/inflect_rb.html +111 -0
  149. data/doc/rdoc/files/lib/utilities/integer_rb.html +101 -0
  150. data/doc/rdoc/files/lib/utilities/module_rb.html +101 -0
  151. data/doc/rdoc/files/lib/utilities/object_rb.html +101 -0
  152. data/doc/rdoc/files/lib/utilities/proc_rb.html +101 -0
  153. data/doc/rdoc/files/lib/utilities/string_rb.html +101 -0
  154. data/doc/rdoc/files/lib/utilities/symbol_rb.html +101 -0
  155. data/doc/rdoc/files/lib/utilities/tempfile_rb.html +115 -0
  156. data/doc/rdoc/files/lib/views/base_rb.html +101 -0
  157. data/doc/rdoc/files/lib/views/mixin_rb.html +101 -0
  158. data/doc/rdoc/files/lib/waves_rb.html +195 -0
  159. data/doc/rdoc/fr_class_index.html +104 -0
  160. data/doc/rdoc/fr_file_index.html +97 -0
  161. data/doc/rdoc/fr_method_index.html +233 -0
  162. data/doc/rdoc/index.html +24 -0
  163. data/doc/rdoc/rdoc-style.css +208 -0
  164. data/lib/foundations/default.rb +1 -0
  165. data/lib/layers/default_errors.rb +10 -13
  166. data/lib/layers/inflect/english.rb +24 -0
  167. data/lib/layers/inflect/english/rules.rb +88 -0
  168. data/lib/layers/inflect/english/string.rb +24 -0
  169. data/lib/layers/mvc.rb +31 -35
  170. data/lib/layers/orm/active_record.rb +83 -32
  171. data/lib/layers/orm/active_record/tasks/generate.rb +28 -0
  172. data/lib/layers/orm/active_record/tasks/schema.rb +7 -15
  173. data/lib/layers/orm/data_mapper.rb +12 -16
  174. data/lib/layers/orm/migration.rb +20 -11
  175. data/lib/layers/orm/sequel.rb +53 -49
  176. data/lib/layers/orm/sequel/tasks/generate.rb +28 -0
  177. data/lib/layers/orm/sequel/tasks/schema.rb +6 -14
  178. data/lib/layers/simple.rb +6 -13
  179. data/lib/layers/simple_errors.rb +5 -8
  180. data/lib/renderers/haml.rb +45 -0
  181. data/lib/runtime/application.rb +0 -2
  182. data/lib/tasks/cluster.rb +1 -1
  183. data/lib/utilities/inflect.rb +86 -168
  184. data/lib/utilities/integer.rb +23 -16
  185. data/lib/utilities/module.rb +19 -15
  186. data/lib/utilities/object.rb +22 -14
  187. data/lib/utilities/proc.rb +13 -7
  188. data/lib/utilities/string.rb +0 -12
  189. data/lib/utilities/symbol.rb +4 -1
  190. data/lib/utilities/tempfile.rb +9 -0
  191. data/lib/waves.rb +3 -1
  192. data/samples/blog/Rakefile +14 -0
  193. data/samples/blog/bin/waves-console +3 -0
  194. data/samples/blog/bin/waves-server +3 -0
  195. data/samples/blog/blog.db +0 -0
  196. data/samples/blog/configurations/development.rb +31 -0
  197. data/samples/blog/configurations/mapping.rb +23 -0
  198. data/samples/blog/configurations/production.rb +30 -0
  199. data/samples/blog/doc/EMTPY +0 -0
  200. data/samples/blog/lib/application.rb +5 -0
  201. data/samples/blog/models/comment.rb +14 -0
  202. data/samples/blog/models/entry.rb +14 -0
  203. data/samples/blog/public/css/site.css +2 -0
  204. data/samples/blog/public/javascript/site.js +13 -0
  205. data/samples/blog/schema/migrations/001_initial_schema.rb +17 -0
  206. data/samples/blog/schema/migrations/002_add_comments.rb +18 -0
  207. data/samples/blog/schema/migrations/templates/empty.rb.erb +9 -0
  208. data/samples/blog/startup.rb +6 -0
  209. data/samples/blog/templates/comment/add.mab +10 -0
  210. data/samples/blog/templates/comment/list.mab +6 -0
  211. data/samples/blog/templates/entry/editor.mab +13 -0
  212. data/samples/blog/templates/entry/list.mab +11 -0
  213. data/samples/blog/templates/entry/show.mab +9 -0
  214. data/samples/blog/templates/entry/summary.mab +5 -0
  215. data/samples/blog/templates/errors/not_found_404.mab +2 -0
  216. data/samples/blog/templates/errors/server_error_500.mab +2 -0
  217. data/samples/blog/templates/layouts/default.mab +17 -0
  218. data/samples/jub/Rakefile +72 -0
  219. data/samples/jub/bin/waves-console +4 -0
  220. data/samples/jub/bin/waves-server +4 -0
  221. data/samples/jub/configurations/development.rb +31 -0
  222. data/samples/jub/configurations/mapping.rb +18 -0
  223. data/samples/jub/configurations/production.rb +31 -0
  224. data/samples/jub/lib/application.rb +5 -0
  225. data/samples/jub/startup.rb +6 -0
  226. data/samples/jub/templates/errors/not_found_404.mab +2 -0
  227. data/samples/jub/templates/errors/server_error_500.mab +2 -0
  228. data/samples/jub/templates/layouts/default.mab +14 -0
  229. data/verify/app_generation/helpers.rb +24 -0
  230. data/verify/app_generation/startup.rb +39 -0
  231. data/verify/blackboard/blackboard_verify.rb +92 -0
  232. data/verify/blackboard/helpers.rb +5 -0
  233. data/verify/configurations/attributes.rb +37 -0
  234. data/verify/configurations/helpers.rb +1 -0
  235. data/verify/configurations/rack_integration.rb +29 -0
  236. data/verify/controllers/base.rb +37 -0
  237. data/verify/controllers/helpers.rb +13 -0
  238. data/verify/controllers/interface.rb +51 -0
  239. data/verify/core/helpers.rb +3 -0
  240. data/verify/core/utilities.rb +177 -0
  241. data/verify/foundations/default.rb +86 -0
  242. data/verify/foundations/default_application/Rakefile +14 -0
  243. data/verify/foundations/default_application/bin/waves-console +3 -0
  244. data/verify/foundations/default_application/bin/waves-server +3 -0
  245. data/verify/foundations/default_application/configurations/development.rb +26 -0
  246. data/verify/foundations/default_application/configurations/mapping.rb +14 -0
  247. data/verify/foundations/default_application/configurations/production.rb +30 -0
  248. data/verify/foundations/default_application/controllers/default.rb +15 -0
  249. data/verify/foundations/default_application/controllers/loaded.rb +15 -0
  250. data/verify/foundations/default_application/defaultapplication.db +0 -0
  251. data/verify/foundations/default_application/helpers/loaded.rb +10 -0
  252. data/verify/foundations/default_application/lib/application.rb +5 -0
  253. data/verify/foundations/default_application/models/default.rb +13 -0
  254. data/verify/foundations/default_application/models/loaded.rb +13 -0
  255. data/verify/foundations/default_application/schema/migrations/templates/empty.rb.erb +9 -0
  256. data/verify/foundations/default_application/startup.rb +7 -0
  257. data/verify/foundations/default_application/templates/errors/not_found_404.mab +2 -0
  258. data/verify/foundations/default_application/templates/errors/server_error_500.mab +2 -0
  259. data/verify/foundations/default_application/templates/layouts/default.mab +14 -0
  260. data/verify/foundations/default_application/views/default.rb +7 -0
  261. data/verify/foundations/default_application/views/loaded.rb +15 -0
  262. data/verify/foundations/helpers.rb +1 -0
  263. data/verify/foundations/simple.rb +25 -0
  264. data/verify/helpers.rb +76 -0
  265. data/verify/layers/data_mapper/association_verify.rb +87 -0
  266. data/verify/layers/default_errors.rb +29 -0
  267. data/verify/layers/helpers.rb +1 -0
  268. data/verify/layers/migration.rb +33 -0
  269. data/verify/layers/sequel/model.rb +41 -0
  270. data/verify/layers/sequeltest.db +0 -0
  271. data/verify/mapping/always.rb +19 -0
  272. data/verify/mapping/filters.rb +65 -0
  273. data/verify/mapping/handle.rb +24 -0
  274. data/verify/mapping/helpers.rb +7 -0
  275. data/verify/mapping/matches.rb +27 -0
  276. data/verify/mapping/named.rb +29 -0
  277. data/verify/mapping/options.rb +17 -0
  278. data/verify/mapping/path.rb +40 -0
  279. data/verify/mapping/response_proxy.rb +50 -0
  280. data/verify/mapping/threaded.rb +25 -0
  281. data/verify/requests/helpers.rb +16 -0
  282. data/verify/requests/request.rb +73 -0
  283. data/verify/requests/response.rb +59 -0
  284. data/verify/requests/session.rb +54 -0
  285. data/verify/views/helpers.rb +1 -0
  286. data/verify/views/rendering.rb +34 -0
  287. data/verify/views/templates/foo.erb +0 -0
  288. data/verify/views/templates/moo.erb +0 -0
  289. data/verify/views/templates/moo.mab +0 -0
  290. metadata +597 -224
  291. data/lib/utilities/kernel.rb +0 -34
@@ -0,0 +1,73 @@
1
+ # require 'test_helper' because RubyMate needs help
2
+ require File.join(File.dirname(__FILE__) , "helpers")
3
+
4
+ describe "A Waves request instance" do
5
+
6
+ before do
7
+ Waves::Session.stub!(:base_path).and_return(BasePath)
8
+ @request = Waves::Request.new(env_for)
9
+ end
10
+
11
+ it "has session, response, and blackboard objects" do
12
+ @request.session.class.should == Waves::Session
13
+ @request.response.class.should == Waves::Response
14
+ @request.blackboard.class.should == Waves::Blackboard
15
+ end
16
+
17
+ it "provides an accessor to the Rack request" do
18
+ @request.rack_request.class.should == Rack::Request
19
+ end
20
+
21
+ it "wraps some useful Rack data in more elegant methods" do
22
+ @request.rack_request.should.receive(:path_info)
23
+ @request.path
24
+
25
+ @request.rack_request.should.receive(:host)
26
+ @request.domain
27
+
28
+ @request.rack_request.env.should.receive(:[]).with('CONTENT_TYPE')
29
+ @request.content_type
30
+ end
31
+
32
+ it "delegates unknown methods to the Rack request" do
33
+ @request.rack_request.should.receive(:chitty_bang_bang)
34
+ @request.chitty_bang_bang
35
+ end
36
+
37
+ end
38
+
39
+ describe "The HTTP request method" do
40
+
41
+ before do
42
+ Waves::Session.stub!(:base_path).and_return(BasePath)
43
+ end
44
+
45
+ it "is determined in a straightforward manner for straightforward requests" do
46
+ @get = Waves::Request.new(env_for("/", :method => 'GET'))
47
+ @post = Waves::Request.new(env_for("/", :method => 'POST'))
48
+ @put = Waves::Request.new(env_for("/", :method => 'PUT'))
49
+ @delete = Waves::Request.new(env_for("/", :method => 'DELETE'))
50
+
51
+ @get.method.should == :get
52
+ @post.method.should == :post
53
+ @put.method.should == :put
54
+ @delete.method.should == :delete
55
+ end
56
+
57
+ it "can be set with the '_method' query param on a POST" do
58
+ @url_put = Waves::Request.new(env_for("/?_method=put", :method => 'POST'))
59
+ @url_delete = Waves::Request.new(env_for("/?_method=delete", :method => 'POST'))
60
+
61
+ @url_put.method.should == :put; @url_put.put?.should.be.true
62
+ @url_delete.method.should == :delete; @url_delete.delete?.should.be.true
63
+ end
64
+
65
+ it "can be set with the '_method' body param on a POST" do
66
+ @body_put = Waves::Request.new(env_for("/", :method => 'POST', :input => '_method=put'))
67
+ @body_delete = Waves::Request.new(env_for("/", :method => 'POST', :input => '_method=delete'))
68
+
69
+ @body_put.method.should == :put; @body_put.put?.should.be.true
70
+ @body_delete.method.should == :delete
71
+ end
72
+
73
+ end
@@ -0,0 +1,59 @@
1
+ # require 'test_helper' because RubyMate needs help
2
+ require File.join(File.dirname(__FILE__) , "helpers")
3
+
4
+ describe "An instance of Waves::Response" do
5
+
6
+ before do
7
+ Waves::Session.stub!(:base_path).and_return(BasePath)
8
+ @request = Waves::Request.new(env_for)
9
+ @response = Waves::Response.new(@request)
10
+ end
11
+
12
+ it "has a Rack::Response" do
13
+ @response.rack_response.class.should == Rack::Response
14
+ end
15
+
16
+ it "has a Waves::Request" do
17
+ @response.request.class.should == Waves::Request
18
+ end
19
+
20
+ it "can access the session for the current request" do
21
+ @response.session.class.should == Waves::Session
22
+ end
23
+
24
+ it "provides setter methods for commonly used headers" do
25
+ @response.rack_response.should.receive(:[]=).with('Content-Type', 'text/javascript')
26
+ @response.content_type = 'text/javascript'
27
+
28
+ @response.rack_response.should.receive(:[]=).with('Content-Length', '42')
29
+ @response.content_length = '42'
30
+
31
+ @response.rack_response.should.receive(:[]=).with('Location', '/here/')
32
+ @response.location = '/here/'
33
+
34
+ @response.rack_response.should.receive(:[]=).with('Expires', 'Thu, 09 Aug 2007 05:22:55 GMT')
35
+ @response.expires = 'Thu, 09 Aug 2007 05:22:55 GMT'
36
+ end
37
+
38
+ it "delegates unknown methods to the Rack response" do
39
+ @response.rack_response.should.receive(:mclintock!)
40
+ @response.mclintock!
41
+ end
42
+
43
+ end
44
+
45
+ describe "Waves::Response#finish" do
46
+
47
+ before do
48
+ Waves::Session.stub!(:base_path).and_return(BasePath)
49
+ @request = Waves::Request.new(env_for)
50
+ @response = Waves::Response.new(@request)
51
+ end
52
+
53
+ it "saves the request session and calls Rack::Response#finish" do
54
+ @response.session.should.receive(:save)
55
+ @response.rack_response.should.receive(:finish)
56
+ @response.finish
57
+ end
58
+
59
+ end
@@ -0,0 +1,54 @@
1
+ # require 'test_helper' because RubyMate needs help
2
+ require File.join(File.dirname(__FILE__) , "helpers")
3
+
4
+ SessionData = "--- \nmoo: cow\n"
5
+
6
+
7
+
8
+ describe "An new instance of Waves::Session" do
9
+
10
+
11
+ before do
12
+ FileUtils.mkdir(BasePath) unless File.exist?(BasePath)
13
+ Waves::Session.stub!(:generate_session_id).and_return("fake_session")
14
+ Waves::Session.stub!(:base_path).and_return(BasePath)
15
+ end
16
+
17
+ after do
18
+ FileUtils.rm Dir["#{BasePath}/fake_session"]
19
+ FileUtils.rmdir BasePath
20
+ end
21
+
22
+ it "loads data from a session file if one exists" do
23
+ File.write(BasePath / :fake_session, SessionData)
24
+ @request = Waves::Request.new(env_for)
25
+ session = @request.session
26
+ session.to_hash.should == { 'moo' => 'cow'}
27
+ end
28
+
29
+ it "is empty when no session file exists" do
30
+ Waves::Session.stub!(:generate_session_id).and_return("other_session")
31
+ @request = Waves::Request.new(env_for)
32
+ session = @request.session
33
+ session.to_hash.should.be.empty
34
+ end
35
+
36
+ end
37
+
38
+ describe "Session values" do
39
+
40
+ before do
41
+ Waves::Session.stub!(:base_path).and_return(BasePath)
42
+ @request = Waves::Request.new(env_for)
43
+ end
44
+
45
+ it "can be read and written using [] and []=" do
46
+ session = Waves::Session.new(@request)
47
+ session['moo'].should.be.nil
48
+ session['moo'] = 'bull'
49
+ session['moo'].should == 'bull'
50
+ end
51
+
52
+ end
53
+
54
+
@@ -0,0 +1 @@
1
+ require File.join(File.dirname(__FILE__) , "..", "helpers")
@@ -0,0 +1,34 @@
1
+ # require 'test_helper' because RubyMate needs help
2
+ require File.join(File.dirname(__FILE__) , "helpers")
3
+
4
+ Dir.chdir(File.dirname(__FILE__)) do
5
+ class TestView
6
+ include Waves::Views::Mixin
7
+ end
8
+
9
+ describe "Waves::Views" do
10
+
11
+ it "provides a list of Renderers" do
12
+ Waves::Views.renderers.should.respond_to :[]
13
+ end
14
+
15
+ it "defines an error for missing templates" do
16
+ defined?(Waves::Views::NoTemplateError).should.not.be.nil
17
+ end
18
+
19
+ end
20
+
21
+ describe "A class which has included Waves::Views::Mixin" do
22
+
23
+ before do
24
+ @view = TestView.new(mock(:request))
25
+ end
26
+
27
+ it "uses the first renderer for which it can find a template file with the associated extension" do
28
+ @view.renderer("foo").should == Waves::Renderers::Erubis
29
+ @view.renderer("moo").should == Waves::Renderers::Erubis
30
+ @view.renderer("bleat").should == nil
31
+ end
32
+
33
+ end
34
+ end
File without changes
File without changes
File without changes
metadata CHANGED
@@ -1,158 +1,62 @@
1
- --- !ruby/object:Gem::Specification
2
- name: waves
3
- version: !ruby/object:Gem::Version
4
- version: 0.7.6
5
- platform: ruby
6
- authors:
7
- - Dan Yoder
8
- autorequire:
9
- bindir: bin
10
- cert_chain: []
11
-
12
- date: 2008-06-25 00:00:00 -05:00
13
- default_executable:
14
- dependencies:
15
- - !ruby/object:Gem::Dependency
16
- name: mongrel
17
- type: :runtime
18
- version_requirement:
19
- version_requirements: !ruby/object:Gem::Requirement
20
- requirements:
21
- - - ">="
22
- - !ruby/object:Gem::Version
23
- version: "0"
24
- version:
25
- - !ruby/object:Gem::Dependency
26
- name: rack
27
- type: :runtime
28
- version_requirement:
29
- version_requirements: !ruby/object:Gem::Requirement
30
- requirements:
31
- - - ">="
32
- - !ruby/object:Gem::Version
33
- version: "0"
34
- version:
35
- - !ruby/object:Gem::Dependency
36
- name: markaby
37
- type: :runtime
38
- version_requirement:
39
- version_requirements: !ruby/object:Gem::Requirement
40
- requirements:
41
- - - ">="
42
- - !ruby/object:Gem::Version
43
- version: "0"
44
- version:
45
- - !ruby/object:Gem::Dependency
46
- name: erubis
47
- type: :runtime
48
- version_requirement:
49
- version_requirements: !ruby/object:Gem::Requirement
50
- requirements:
51
- - - ">="
52
- - !ruby/object:Gem::Version
53
- version: "0"
54
- version:
55
- - !ruby/object:Gem::Dependency
56
- name: RedCloth
57
- type: :runtime
58
- version_requirement:
59
- version_requirements: !ruby/object:Gem::Requirement
60
- requirements:
61
- - - ">="
62
- - !ruby/object:Gem::Version
63
- version: "0"
64
- version:
65
- - !ruby/object:Gem::Dependency
66
- name: metaid
67
- type: :runtime
68
- version_requirement:
69
- version_requirements: !ruby/object:Gem::Requirement
70
- requirements:
71
- - - ">="
72
- - !ruby/object:Gem::Version
73
- version: "0"
74
- version:
75
- - !ruby/object:Gem::Dependency
76
- name: extensions
77
- type: :runtime
78
- version_requirement:
79
- version_requirements: !ruby/object:Gem::Requirement
80
- requirements:
81
- - - ">="
82
- - !ruby/object:Gem::Version
83
- version: "0"
84
- version:
85
- - !ruby/object:Gem::Dependency
86
- name: live_console
87
- type: :runtime
88
- version_requirement:
89
- version_requirements: !ruby/object:Gem::Requirement
90
- requirements:
91
- - - ">="
92
- - !ruby/object:Gem::Version
93
- version: "0"
94
- version:
95
- - !ruby/object:Gem::Dependency
96
- name: choice
97
- type: :runtime
98
- version_requirement:
99
- version_requirements: !ruby/object:Gem::Requirement
100
- requirements:
101
- - - ">="
102
- - !ruby/object:Gem::Version
103
- version: "0"
104
- version:
105
- - !ruby/object:Gem::Dependency
106
- name: daemons
107
- type: :runtime
108
- version_requirement:
109
- version_requirements: !ruby/object:Gem::Requirement
110
- requirements:
111
- - - ">="
112
- - !ruby/object:Gem::Version
113
- version: "0"
114
- version:
115
- - !ruby/object:Gem::Dependency
116
- name: rakegen
117
- type: :runtime
118
- version_requirement:
119
- version_requirements: !ruby/object:Gem::Requirement
120
- requirements:
121
- - - ">="
122
- - !ruby/object:Gem::Version
123
- version: "0"
124
- version:
125
- - !ruby/object:Gem::Dependency
126
- name: sequel
127
- type: :runtime
128
- version_requirement:
129
- version_requirements: !ruby/object:Gem::Requirement
130
- requirements:
131
- - - ">="
132
- - !ruby/object:Gem::Version
133
- version: 2.0.0
134
- version:
135
- - !ruby/object:Gem::Dependency
136
- name: autocode
137
- type: :runtime
138
- version_requirement:
139
- version_requirements: !ruby/object:Gem::Requirement
140
- requirements:
141
- - - ">="
142
- - !ruby/object:Gem::Version
143
- version: 1.0.0
144
- version:
145
- description:
146
- email: dan@zeraweb.com
1
+ --- !ruby/object:Gem::Specification
2
+ extensions: []
3
+ homepage: http://rubywaves.com
147
4
  executables:
148
5
  - waves
149
6
  - waves-server
150
7
  - waves-console
151
- extensions: []
152
-
153
- extra_rdoc_files: []
154
-
8
+ version: !ruby/object:Gem::Version
9
+ version: 0.7.7
10
+ post_install_message:
11
+ date: 2008-07-11 05:00:00 +00:00
155
12
  files:
13
+ - app/bin
14
+ - app/configurations
15
+ - app/controllers
16
+ - app/doc
17
+ - app/helpers
18
+ - app/lib
19
+ - app/log
20
+ - app/models
21
+ - app/public
22
+ - app/Rakefile
23
+ - app/schema
24
+ - app/startup.rb
25
+ - app/templates
26
+ - app/tmp
27
+ - app/views
28
+ - app/bin/waves-console
29
+ - app/bin/waves-server
30
+ - app/configurations/development.rb.erb
31
+ - app/configurations/mapping.rb.erb
32
+ - app/configurations/production.rb.erb
33
+ - app/lib/application.rb.erb
34
+ - app/lib/tasks
35
+ - app/public/css
36
+ - app/public/flash
37
+ - app/public/images
38
+ - app/public/javascript
39
+ - app/schema/migrations
40
+ - app/templates/errors
41
+ - app/templates/layouts
42
+ - app/templates/errors/not_found_404.mab
43
+ - app/templates/errors/server_error_500.mab
44
+ - app/templates/layouts/default.mab
45
+ - app/tmp/sessions
46
+ - app/controllers/.gitignore
47
+ - app/doc/.gitignore
48
+ - app/helpers/.gitignore
49
+ - app/lib/tasks/.gitignore
50
+ - app/log/.gitignore
51
+ - app/models/.gitignore
52
+ - app/public/css/.gitignore
53
+ - app/public/flash/.gitignore
54
+ - app/public/images/.gitignore
55
+ - app/public/javascript/.gitignore
56
+ - app/schema/migrations/.gitignore
57
+ - app/tmp/sessions/.gitignore
58
+ - app/views/.gitignore
59
+ - lib/waves.rb
156
60
  - lib/commands/waves-console.rb
157
61
  - lib/commands/waves-server.rb
158
62
  - lib/controllers/base.rb
@@ -173,18 +77,24 @@ files:
173
77
  - lib/helpers/view.rb
174
78
  - lib/layers/default_errors.rb
175
79
  - lib/layers/mvc.rb
176
- - lib/layers/orm/active_record/tasks/schema.rb
80
+ - lib/layers/simple.rb
81
+ - lib/layers/simple_errors.rb
82
+ - lib/layers/inflect/english.rb
83
+ - lib/layers/inflect/english/rules.rb
84
+ - lib/layers/inflect/english/string.rb
177
85
  - lib/layers/orm/active_record.rb
178
86
  - lib/layers/orm/data_mapper.rb
179
87
  - lib/layers/orm/filebase.rb
180
88
  - lib/layers/orm/migration.rb
181
- - lib/layers/orm/sequel/tasks/schema.rb
182
89
  - lib/layers/orm/sequel.rb
183
- - lib/layers/simple.rb
184
- - lib/layers/simple_errors.rb
90
+ - lib/layers/orm/active_record/tasks/generate.rb
91
+ - lib/layers/orm/active_record/tasks/schema.rb
92
+ - lib/layers/orm/sequel/tasks/generate.rb
93
+ - lib/layers/orm/sequel/tasks/schema.rb
185
94
  - lib/mapping/mapping.rb
186
95
  - lib/mapping/pretty_urls.rb
187
96
  - lib/renderers/erubis.rb
97
+ - lib/renderers/haml.rb
188
98
  - lib/renderers/markaby.rb
189
99
  - lib/renderers/mixin.rb
190
100
  - lib/runtime/application.rb
@@ -206,88 +116,551 @@ files:
206
116
  - lib/utilities/hash.rb
207
117
  - lib/utilities/inflect.rb
208
118
  - lib/utilities/integer.rb
209
- - lib/utilities/kernel.rb
210
119
  - lib/utilities/module.rb
211
120
  - lib/utilities/object.rb
212
121
  - lib/utilities/proc.rb
213
122
  - lib/utilities/string.rb
214
123
  - lib/utilities/symbol.rb
124
+ - lib/utilities/tempfile.rb
215
125
  - lib/views/base.rb
216
126
  - lib/views/mixin.rb
217
- - lib/waves.rb
218
127
  - lib/layers/orm/active_record/migrations/empty.rb.erb
219
128
  - lib/layers/orm/sequel/migrations/empty.rb.erb
220
- - app/bin
221
- - app/bin/waves-console
222
- - app/bin/waves-server
223
- - app/configurations
224
- - app/configurations/development.rb.erb
225
- - app/configurations/mapping.rb.erb
226
- - app/configurations/production.rb.erb
227
- - app/controllers
228
- - app/doc
229
- - app/helpers
230
- - app/lib
231
- - app/lib/application.rb.erb
232
- - app/lib/tasks
233
- - app/log
234
- - app/models
235
- - app/public
236
- - app/public/css
237
- - app/public/flash
238
- - app/public/images
239
- - app/public/javascript
240
- - app/Rakefile
241
- - app/schema
242
- - app/schema/migrations
243
- - app/startup.rb
244
- - app/templates
245
- - app/templates/errors
246
- - app/templates/errors/not_found_404.mab
247
- - app/templates/errors/server_error_500.mab
248
- - app/templates/layouts
249
- - app/templates/layouts/default.mab
250
- - app/tmp
251
- - app/tmp/sessions
252
- - app/views
253
- - app/controllers/.gitignore
254
- - app/doc/.gitignore
255
- - app/helpers/.gitignore
256
- - app/lib/tasks/.gitignore
257
- - app/log/.gitignore
258
- - app/models/.gitignore
259
- - app/public/css/.gitignore
260
- - app/public/flash/.gitignore
261
- - app/public/images/.gitignore
262
- - app/public/javascript/.gitignore
263
- - app/schema/migrations/.gitignore
264
- - app/tmp/sessions/.gitignore
265
- - app/views/.gitignore
266
- has_rdoc: true
267
- homepage: http://rubywaves.com
268
- post_install_message:
129
+ - doc/HISTORY
130
+ - doc/LICENSE
131
+ - doc/rdoc
132
+ - doc/rdoc/classes
133
+ - doc/rdoc/created.rid
134
+ - doc/rdoc/files
135
+ - doc/rdoc/fr_class_index.html
136
+ - doc/rdoc/fr_file_index.html
137
+ - doc/rdoc/fr_method_index.html
138
+ - doc/rdoc/index.html
139
+ - doc/rdoc/rdoc-style.css
140
+ - doc/rdoc/classes/Erubis
141
+ - doc/rdoc/classes/Kernel.html
142
+ - doc/rdoc/classes/Symbol.html
143
+ - doc/rdoc/classes/Tempfile.html
144
+ - doc/rdoc/classes/Waves
145
+ - doc/rdoc/classes/Waves.html
146
+ - doc/rdoc/classes/Erubis/Context.html
147
+ - doc/rdoc/classes/Waves/Application.html
148
+ - doc/rdoc/classes/Waves/Blackboard.html
149
+ - doc/rdoc/classes/Waves/Configurations
150
+ - doc/rdoc/classes/Waves/Configurations.html
151
+ - doc/rdoc/classes/Waves/Console.html
152
+ - doc/rdoc/classes/Waves/Controllers
153
+ - doc/rdoc/classes/Waves/Controllers.html
154
+ - doc/rdoc/classes/Waves/Dispatchers
155
+ - doc/rdoc/classes/Waves/Dispatchers.html
156
+ - doc/rdoc/classes/Waves/Foundations
157
+ - doc/rdoc/classes/Waves/Foundations.html
158
+ - doc/rdoc/classes/Waves/Helpers
159
+ - doc/rdoc/classes/Waves/Helpers.html
160
+ - doc/rdoc/classes/Waves/Inflect
161
+ - doc/rdoc/classes/Waves/Layers
162
+ - doc/rdoc/classes/Waves/Layers.html
163
+ - doc/rdoc/classes/Waves/Logger.html
164
+ - doc/rdoc/classes/Waves/Mapping
165
+ - doc/rdoc/classes/Waves/Mapping.html
166
+ - doc/rdoc/classes/Waves/MimeTypes.html
167
+ - doc/rdoc/classes/Waves/Renderers
168
+ - doc/rdoc/classes/Waves/Request
169
+ - doc/rdoc/classes/Waves/Request.html
170
+ - doc/rdoc/classes/Waves/Response.html
171
+ - doc/rdoc/classes/Waves/ResponseMixin.html
172
+ - doc/rdoc/classes/Waves/ResponseProxy.html
173
+ - doc/rdoc/classes/Waves/Server.html
174
+ - doc/rdoc/classes/Waves/Session.html
175
+ - doc/rdoc/classes/Waves/Utilities
176
+ - doc/rdoc/classes/Waves/Views
177
+ - doc/rdoc/classes/Waves/Views.html
178
+ - doc/rdoc/classes/Waves/Configurations/Base.html
179
+ - doc/rdoc/classes/Waves/Configurations/Default.html
180
+ - doc/rdoc/classes/Waves/Controllers/Base.html
181
+ - doc/rdoc/classes/Waves/Controllers/Mixin.html
182
+ - doc/rdoc/classes/Waves/Dispatchers/Base.html
183
+ - doc/rdoc/classes/Waves/Dispatchers/Default.html
184
+ - doc/rdoc/classes/Waves/Dispatchers/NotFoundError.html
185
+ - doc/rdoc/classes/Waves/Dispatchers/Redirect.html
186
+ - doc/rdoc/classes/Waves/Foundations/Default.html
187
+ - doc/rdoc/classes/Waves/Foundations/Simple.html
188
+ - doc/rdoc/classes/Waves/Helpers/AssetHelper.html
189
+ - doc/rdoc/classes/Waves/Helpers/Common.html
190
+ - doc/rdoc/classes/Waves/Helpers/Default.html
191
+ - doc/rdoc/classes/Waves/Helpers/Form.html
192
+ - doc/rdoc/classes/Waves/Helpers/Formatting.html
193
+ - doc/rdoc/classes/Waves/Helpers/Model.html
194
+ - doc/rdoc/classes/Waves/Helpers/NumberHelper.html
195
+ - doc/rdoc/classes/Waves/Helpers/TagHelper.html
196
+ - doc/rdoc/classes/Waves/Helpers/UrlHelper.html
197
+ - doc/rdoc/classes/Waves/Helpers/View.html
198
+ - doc/rdoc/classes/Waves/Inflect/InflectorMethods.html
199
+ - doc/rdoc/classes/Waves/Layers/DefaultErrors.html
200
+ - doc/rdoc/classes/Waves/Layers/Inflect
201
+ - doc/rdoc/classes/Waves/Layers/Inflect.html
202
+ - doc/rdoc/classes/Waves/Layers/MVC.html
203
+ - doc/rdoc/classes/Waves/Layers/ORM
204
+ - doc/rdoc/classes/Waves/Layers/Simple.html
205
+ - doc/rdoc/classes/Waves/Layers/SimpleErrors.html
206
+ - doc/rdoc/classes/Waves/Layers/Inflect/English
207
+ - doc/rdoc/classes/Waves/Layers/Inflect/English.html
208
+ - doc/rdoc/classes/Waves/Layers/Inflect/English/Rules.html
209
+ - doc/rdoc/classes/Waves/Layers/Inflect/English/StringMethods.html
210
+ - doc/rdoc/classes/Waves/Layers/ORM/ActiveRecord
211
+ - doc/rdoc/classes/Waves/Layers/ORM/ActiveRecord.html
212
+ - doc/rdoc/classes/Waves/Layers/ORM/DataMapper.html
213
+ - doc/rdoc/classes/Waves/Layers/ORM/Filebase.html
214
+ - doc/rdoc/classes/Waves/Layers/ORM/Sequel
215
+ - doc/rdoc/classes/Waves/Layers/ORM/Sequel.html
216
+ - doc/rdoc/classes/Waves/Layers/ORM/ActiveRecord/ControllerMethods.html
217
+ - doc/rdoc/classes/Waves/Layers/ORM/ActiveRecord/Symbol.html
218
+ - doc/rdoc/classes/Waves/Layers/ORM/Sequel/ControllerMethods.html
219
+ - doc/rdoc/classes/Waves/Mapping/PrettyUrls
220
+ - doc/rdoc/classes/Waves/Mapping/PrettyUrls.html
221
+ - doc/rdoc/classes/Waves/Mapping/PrettyUrls/GetRules.html
222
+ - doc/rdoc/classes/Waves/Mapping/PrettyUrls/RestRules.html
223
+ - doc/rdoc/classes/Waves/Renderers/Erubis.html
224
+ - doc/rdoc/classes/Waves/Renderers/Haml.html
225
+ - doc/rdoc/classes/Waves/Renderers/Markaby.html
226
+ - doc/rdoc/classes/Waves/Renderers/Mixin.html
227
+ - doc/rdoc/classes/Waves/Renderers/Scope.html
228
+ - doc/rdoc/classes/Waves/Request/ParseError.html
229
+ - doc/rdoc/classes/Waves/Utilities/Hash.html
230
+ - doc/rdoc/classes/Waves/Utilities/Integer.html
231
+ - doc/rdoc/classes/Waves/Utilities/Module.html
232
+ - doc/rdoc/classes/Waves/Utilities/Object.html
233
+ - doc/rdoc/classes/Waves/Utilities/Proc.html
234
+ - doc/rdoc/classes/Waves/Utilities/String.html
235
+ - doc/rdoc/classes/Waves/Views/Base.html
236
+ - doc/rdoc/classes/Waves/Views/Mixin.html
237
+ - doc/rdoc/classes/Waves/Views/NoTemplateError.html
238
+ - doc/rdoc/files/bin
239
+ - doc/rdoc/files/doc
240
+ - doc/rdoc/files/lib
241
+ - doc/rdoc/files/README_rdoc.html
242
+ - doc/rdoc/files/bin/waves.html
243
+ - doc/rdoc/files/doc/HISTORY.html
244
+ - doc/rdoc/files/lib/commands
245
+ - doc/rdoc/files/lib/controllers
246
+ - doc/rdoc/files/lib/dispatchers
247
+ - doc/rdoc/files/lib/foundations
248
+ - doc/rdoc/files/lib/helpers
249
+ - doc/rdoc/files/lib/layers
250
+ - doc/rdoc/files/lib/mapping
251
+ - doc/rdoc/files/lib/renderers
252
+ - doc/rdoc/files/lib/runtime
253
+ - doc/rdoc/files/lib/tasks
254
+ - doc/rdoc/files/lib/utilities
255
+ - doc/rdoc/files/lib/views
256
+ - doc/rdoc/files/lib/waves_rb.html
257
+ - doc/rdoc/files/lib/commands/waves-console_rb.html
258
+ - doc/rdoc/files/lib/commands/waves-server_rb.html
259
+ - doc/rdoc/files/lib/controllers/base_rb.html
260
+ - doc/rdoc/files/lib/controllers/mixin_rb.html
261
+ - doc/rdoc/files/lib/dispatchers/base_rb.html
262
+ - doc/rdoc/files/lib/dispatchers/default_rb.html
263
+ - doc/rdoc/files/lib/foundations/default_rb.html
264
+ - doc/rdoc/files/lib/foundations/simple_rb.html
265
+ - doc/rdoc/files/lib/helpers/asset_helper_rb.html
266
+ - doc/rdoc/files/lib/helpers/common_rb.html
267
+ - doc/rdoc/files/lib/helpers/default_rb.html
268
+ - doc/rdoc/files/lib/helpers/form_rb.html
269
+ - doc/rdoc/files/lib/helpers/formatting_rb.html
270
+ - doc/rdoc/files/lib/helpers/model_rb.html
271
+ - doc/rdoc/files/lib/helpers/number_helper_rb.html
272
+ - doc/rdoc/files/lib/helpers/tag_helper_rb.html
273
+ - doc/rdoc/files/lib/helpers/url_helper_rb.html
274
+ - doc/rdoc/files/lib/helpers/view_rb.html
275
+ - doc/rdoc/files/lib/layers/default_errors_rb.html
276
+ - doc/rdoc/files/lib/layers/inflect
277
+ - doc/rdoc/files/lib/layers/mvc_rb.html
278
+ - doc/rdoc/files/lib/layers/orm
279
+ - doc/rdoc/files/lib/layers/simple_errors_rb.html
280
+ - doc/rdoc/files/lib/layers/simple_rb.html
281
+ - doc/rdoc/files/lib/layers/inflect/english
282
+ - doc/rdoc/files/lib/layers/inflect/english_rb.html
283
+ - doc/rdoc/files/lib/layers/inflect/english/rules_rb.html
284
+ - doc/rdoc/files/lib/layers/inflect/english/string_rb.html
285
+ - doc/rdoc/files/lib/layers/orm/active_record
286
+ - doc/rdoc/files/lib/layers/orm/active_record_rb.html
287
+ - doc/rdoc/files/lib/layers/orm/data_mapper_rb.html
288
+ - doc/rdoc/files/lib/layers/orm/filebase_rb.html
289
+ - doc/rdoc/files/lib/layers/orm/migration_rb.html
290
+ - doc/rdoc/files/lib/layers/orm/sequel
291
+ - doc/rdoc/files/lib/layers/orm/sequel_rb.html
292
+ - doc/rdoc/files/lib/layers/orm/active_record/tasks
293
+ - doc/rdoc/files/lib/layers/orm/active_record/tasks/generate_rb.html
294
+ - doc/rdoc/files/lib/layers/orm/active_record/tasks/schema_rb.html
295
+ - doc/rdoc/files/lib/layers/orm/sequel/tasks
296
+ - doc/rdoc/files/lib/layers/orm/sequel/tasks/generate_rb.html
297
+ - doc/rdoc/files/lib/layers/orm/sequel/tasks/schema_rb.html
298
+ - doc/rdoc/files/lib/mapping/mapping_rb.html
299
+ - doc/rdoc/files/lib/mapping/pretty_urls_rb.html
300
+ - doc/rdoc/files/lib/renderers/erubis_rb.html
301
+ - doc/rdoc/files/lib/renderers/haml_rb.html
302
+ - doc/rdoc/files/lib/renderers/markaby_rb.html
303
+ - doc/rdoc/files/lib/renderers/mixin_rb.html
304
+ - doc/rdoc/files/lib/runtime/application_rb.html
305
+ - doc/rdoc/files/lib/runtime/blackboard_rb.html
306
+ - doc/rdoc/files/lib/runtime/configuration_rb.html
307
+ - doc/rdoc/files/lib/runtime/console_rb.html
308
+ - doc/rdoc/files/lib/runtime/debugger_rb.html
309
+ - doc/rdoc/files/lib/runtime/logger_rb.html
310
+ - doc/rdoc/files/lib/runtime/mime_types_rb.html
311
+ - doc/rdoc/files/lib/runtime/request_rb.html
312
+ - doc/rdoc/files/lib/runtime/response_mixin_rb.html
313
+ - doc/rdoc/files/lib/runtime/response_proxy_rb.html
314
+ - doc/rdoc/files/lib/runtime/response_rb.html
315
+ - doc/rdoc/files/lib/runtime/server_rb.html
316
+ - doc/rdoc/files/lib/runtime/session_rb.html
317
+ - doc/rdoc/files/lib/tasks/cluster_rb.html
318
+ - doc/rdoc/files/lib/tasks/gem_rb.html
319
+ - doc/rdoc/files/lib/tasks/generate_rb.html
320
+ - doc/rdoc/files/lib/utilities/hash_rb.html
321
+ - doc/rdoc/files/lib/utilities/inflect_rb.html
322
+ - doc/rdoc/files/lib/utilities/integer_rb.html
323
+ - doc/rdoc/files/lib/utilities/module_rb.html
324
+ - doc/rdoc/files/lib/utilities/object_rb.html
325
+ - doc/rdoc/files/lib/utilities/proc_rb.html
326
+ - doc/rdoc/files/lib/utilities/string_rb.html
327
+ - doc/rdoc/files/lib/utilities/symbol_rb.html
328
+ - doc/rdoc/files/lib/utilities/tempfile_rb.html
329
+ - doc/rdoc/files/lib/views/base_rb.html
330
+ - doc/rdoc/files/lib/views/mixin_rb.html
331
+ - samples/blog
332
+ - samples/jub
333
+ - samples/blog/bin
334
+ - samples/blog/blog.db
335
+ - samples/blog/configurations
336
+ - samples/blog/doc
337
+ - samples/blog/lib
338
+ - samples/blog/models
339
+ - samples/blog/public
340
+ - samples/blog/Rakefile
341
+ - samples/blog/schema
342
+ - samples/blog/startup.rb
343
+ - samples/blog/templates
344
+ - samples/blog/bin/waves-console
345
+ - samples/blog/bin/waves-server
346
+ - samples/blog/configurations/development.rb
347
+ - samples/blog/configurations/mapping.rb
348
+ - samples/blog/configurations/production.rb
349
+ - samples/blog/doc/EMTPY
350
+ - samples/blog/lib/application.rb
351
+ - samples/blog/models/comment.rb
352
+ - samples/blog/models/entry.rb
353
+ - samples/blog/public/css
354
+ - samples/blog/public/javascript
355
+ - samples/blog/public/css/site.css
356
+ - samples/blog/public/javascript/site.js
357
+ - samples/blog/schema/migrations
358
+ - samples/blog/schema/migrations/001_initial_schema.rb
359
+ - samples/blog/schema/migrations/002_add_comments.rb
360
+ - samples/blog/schema/migrations/templates
361
+ - samples/blog/schema/migrations/templates/empty.rb.erb
362
+ - samples/blog/templates/comment
363
+ - samples/blog/templates/entry
364
+ - samples/blog/templates/errors
365
+ - samples/blog/templates/layouts
366
+ - samples/blog/templates/comment/add.mab
367
+ - samples/blog/templates/comment/list.mab
368
+ - samples/blog/templates/entry/editor.mab
369
+ - samples/blog/templates/entry/list.mab
370
+ - samples/blog/templates/entry/show.mab
371
+ - samples/blog/templates/entry/summary.mab
372
+ - samples/blog/templates/errors/not_found_404.mab
373
+ - samples/blog/templates/errors/server_error_500.mab
374
+ - samples/blog/templates/layouts/default.mab
375
+ - samples/jub/bin
376
+ - samples/jub/configurations
377
+ - samples/jub/controllers
378
+ - samples/jub/doc
379
+ - samples/jub/helpers
380
+ - samples/jub/lib
381
+ - samples/jub/log
382
+ - samples/jub/models
383
+ - samples/jub/public
384
+ - samples/jub/Rakefile
385
+ - samples/jub/schema
386
+ - samples/jub/startup.rb
387
+ - samples/jub/templates
388
+ - samples/jub/tmp
389
+ - samples/jub/views
390
+ - samples/jub/bin/waves-console
391
+ - samples/jub/bin/waves-server
392
+ - samples/jub/configurations/development.rb
393
+ - samples/jub/configurations/mapping.rb
394
+ - samples/jub/configurations/production.rb
395
+ - samples/jub/lib/application.rb
396
+ - samples/jub/lib/tasks
397
+ - samples/jub/public/css
398
+ - samples/jub/public/flash
399
+ - samples/jub/public/images
400
+ - samples/jub/public/javascript
401
+ - samples/jub/schema/migrations
402
+ - samples/jub/templates/errors
403
+ - samples/jub/templates/layouts
404
+ - samples/jub/templates/errors/not_found_404.mab
405
+ - samples/jub/templates/errors/server_error_500.mab
406
+ - samples/jub/templates/layouts/default.mab
407
+ - samples/jub/tmp/sessions
408
+ - verify/app_generation
409
+ - verify/blackboard
410
+ - verify/configurations
411
+ - verify/controllers
412
+ - verify/core
413
+ - verify/foundations
414
+ - verify/helpers.rb
415
+ - verify/layers
416
+ - verify/mapping
417
+ - verify/requests
418
+ - verify/views
419
+ - verify/app_generation/helpers.rb
420
+ - verify/app_generation/startup.rb
421
+ - verify/blackboard/blackboard_verify.rb
422
+ - verify/blackboard/helpers.rb
423
+ - verify/configurations/attributes.rb
424
+ - verify/configurations/helpers.rb
425
+ - verify/configurations/rack_integration.rb
426
+ - verify/controllers/base.rb
427
+ - verify/controllers/helpers.rb
428
+ - verify/controllers/interface.rb
429
+ - verify/core/helpers.rb
430
+ - verify/core/utilities.rb
431
+ - verify/foundations/default.rb
432
+ - verify/foundations/default_application
433
+ - verify/foundations/helpers.rb
434
+ - verify/foundations/simple.rb
435
+ - verify/foundations/default_application/bin
436
+ - verify/foundations/default_application/configurations
437
+ - verify/foundations/default_application/controllers
438
+ - verify/foundations/default_application/defaultapplication.db
439
+ - verify/foundations/default_application/doc
440
+ - verify/foundations/default_application/helpers
441
+ - verify/foundations/default_application/lib
442
+ - verify/foundations/default_application/log
443
+ - verify/foundations/default_application/models
444
+ - verify/foundations/default_application/public
445
+ - verify/foundations/default_application/Rakefile
446
+ - verify/foundations/default_application/schema
447
+ - verify/foundations/default_application/startup.rb
448
+ - verify/foundations/default_application/templates
449
+ - verify/foundations/default_application/tmp
450
+ - verify/foundations/default_application/views
451
+ - verify/foundations/default_application/bin/waves-console
452
+ - verify/foundations/default_application/bin/waves-server
453
+ - verify/foundations/default_application/configurations/development.rb
454
+ - verify/foundations/default_application/configurations/mapping.rb
455
+ - verify/foundations/default_application/configurations/production.rb
456
+ - verify/foundations/default_application/controllers/default.rb
457
+ - verify/foundations/default_application/controllers/loaded.rb
458
+ - verify/foundations/default_application/helpers/loaded.rb
459
+ - verify/foundations/default_application/lib/application.rb
460
+ - verify/foundations/default_application/lib/tasks
461
+ - verify/foundations/default_application/models/default.rb
462
+ - verify/foundations/default_application/models/loaded.rb
463
+ - verify/foundations/default_application/public/css
464
+ - verify/foundations/default_application/public/flash
465
+ - verify/foundations/default_application/public/images
466
+ - verify/foundations/default_application/public/javascript
467
+ - verify/foundations/default_application/schema/migrations
468
+ - verify/foundations/default_application/schema/migrations/templates
469
+ - verify/foundations/default_application/schema/migrations/templates/empty.rb.erb
470
+ - verify/foundations/default_application/templates/errors
471
+ - verify/foundations/default_application/templates/layouts
472
+ - verify/foundations/default_application/templates/errors/not_found_404.mab
473
+ - verify/foundations/default_application/templates/errors/server_error_500.mab
474
+ - verify/foundations/default_application/templates/layouts/default.mab
475
+ - verify/foundations/default_application/tmp/sessions
476
+ - verify/foundations/default_application/views/default.rb
477
+ - verify/foundations/default_application/views/loaded.rb
478
+ - verify/layers/data_mapper
479
+ - verify/layers/default_errors.rb
480
+ - verify/layers/helpers.rb
481
+ - verify/layers/migration.rb
482
+ - verify/layers/sequel
483
+ - verify/layers/sequeltest.db
484
+ - verify/layers/data_mapper/association_verify.rb
485
+ - verify/layers/sequel/model.rb
486
+ - verify/mapping/always.rb
487
+ - verify/mapping/filters.rb
488
+ - verify/mapping/handle.rb
489
+ - verify/mapping/helpers.rb
490
+ - verify/mapping/matches.rb
491
+ - verify/mapping/named.rb
492
+ - verify/mapping/options.rb
493
+ - verify/mapping/path.rb
494
+ - verify/mapping/response_proxy.rb
495
+ - verify/mapping/threaded.rb
496
+ - verify/requests/helpers.rb
497
+ - verify/requests/request.rb
498
+ - verify/requests/response.rb
499
+ - verify/requests/session.rb
500
+ - verify/views/helpers.rb
501
+ - verify/views/rendering.rb
502
+ - verify/views/templates
503
+ - verify/views/templates/foo.erb
504
+ - verify/views/templates/moo.erb
505
+ - verify/views/templates/moo.mab
506
+ rubygems_version: 1.1.1
269
507
  rdoc_options: []
270
-
271
- require_paths:
272
- - lib
273
- required_ruby_version: !ruby/object:Gem::Requirement
274
- requirements:
275
- - - ">="
276
- - !ruby/object:Gem::Version
277
- version: 1.8.6
508
+ signing_key:
509
+ cert_chain: []
510
+ name: waves
511
+ has_rdoc: true
512
+ platform: ruby
513
+ summary: Open-source framework for building Ruby-based Web applications.
514
+ default_executable:
515
+ bindir: bin
516
+ required_rubygems_version: !ruby/object:Gem::Requirement
278
517
  version:
279
- required_rubygems_version: !ruby/object:Gem::Requirement
280
518
  requirements:
281
- - - ">="
282
- - !ruby/object:Gem::Version
283
- version: "0"
519
+ - - '>='
520
+ - !ruby/object:Gem::Version
521
+ version: !str 0
522
+ required_ruby_version: !ruby/object:Gem::Requirement
284
523
  version:
285
- requirements: []
286
-
287
- rubyforge_project:
288
- rubygems_version: 1.2.0
289
- signing_key:
524
+ requirements:
525
+ - - '>='
526
+ - !ruby/object:Gem::Version
527
+ version: 1.8.6
528
+ require_paths:
529
+ - lib
290
530
  specification_version: 2
291
- summary: Open-source framework for building Ruby-based Web applications.
292
531
  test_files: []
293
-
532
+ dependencies:
533
+ - !ruby/object:Gem::Dependency
534
+ name: mongrel
535
+ version_requirement:
536
+ version_requirements: !ruby/object:Gem::Requirement
537
+ version:
538
+ requirements:
539
+ - - '>='
540
+ - !ruby/object:Gem::Version
541
+ version: !str 0
542
+ - !ruby/object:Gem::Dependency
543
+ name: rack
544
+ version_requirement:
545
+ version_requirements: !ruby/object:Gem::Requirement
546
+ version:
547
+ requirements:
548
+ - - '>='
549
+ - !ruby/object:Gem::Version
550
+ version: !str 0
551
+ - !ruby/object:Gem::Dependency
552
+ name: markaby
553
+ version_requirement:
554
+ version_requirements: !ruby/object:Gem::Requirement
555
+ version:
556
+ requirements:
557
+ - - '>='
558
+ - !ruby/object:Gem::Version
559
+ version: !str 0
560
+ - !ruby/object:Gem::Dependency
561
+ name: erubis
562
+ version_requirement:
563
+ version_requirements: !ruby/object:Gem::Requirement
564
+ version:
565
+ requirements:
566
+ - - '>='
567
+ - !ruby/object:Gem::Version
568
+ version: !str 0
569
+ - !ruby/object:Gem::Dependency
570
+ name: haml
571
+ version_requirement:
572
+ version_requirements: !ruby/object:Gem::Requirement
573
+ version:
574
+ requirements:
575
+ - - '>='
576
+ - !ruby/object:Gem::Version
577
+ version: !str 0
578
+ - !ruby/object:Gem::Dependency
579
+ name: RedCloth
580
+ version_requirement:
581
+ version_requirements: !ruby/object:Gem::Requirement
582
+ version:
583
+ requirements:
584
+ - - '>='
585
+ - !ruby/object:Gem::Version
586
+ version: !str 0
587
+ - !ruby/object:Gem::Dependency
588
+ name: metaid
589
+ version_requirement:
590
+ version_requirements: !ruby/object:Gem::Requirement
591
+ version:
592
+ requirements:
593
+ - - '>='
594
+ - !ruby/object:Gem::Version
595
+ version: !str 0
596
+ - !ruby/object:Gem::Dependency
597
+ name: extensions
598
+ version_requirement:
599
+ version_requirements: !ruby/object:Gem::Requirement
600
+ version:
601
+ requirements:
602
+ - - '>='
603
+ - !ruby/object:Gem::Version
604
+ version: !str 0
605
+ - !ruby/object:Gem::Dependency
606
+ name: live_console
607
+ version_requirement:
608
+ version_requirements: !ruby/object:Gem::Requirement
609
+ version:
610
+ requirements:
611
+ - - '>='
612
+ - !ruby/object:Gem::Version
613
+ version: !str 0
614
+ - !ruby/object:Gem::Dependency
615
+ name: choice
616
+ version_requirement:
617
+ version_requirements: !ruby/object:Gem::Requirement
618
+ version:
619
+ requirements:
620
+ - - '>='
621
+ - !ruby/object:Gem::Version
622
+ version: !str 0
623
+ - !ruby/object:Gem::Dependency
624
+ name: daemons
625
+ version_requirement:
626
+ version_requirements: !ruby/object:Gem::Requirement
627
+ version:
628
+ requirements:
629
+ - - '>='
630
+ - !ruby/object:Gem::Version
631
+ version: !str 0
632
+ - !ruby/object:Gem::Dependency
633
+ name: rakegen
634
+ version_requirement:
635
+ version_requirements: !ruby/object:Gem::Requirement
636
+ version:
637
+ requirements:
638
+ - - '>='
639
+ - !ruby/object:Gem::Version
640
+ version: !str 0
641
+ - !ruby/object:Gem::Dependency
642
+ name: sequel
643
+ version_requirement:
644
+ version_requirements: !ruby/object:Gem::Requirement
645
+ version:
646
+ requirements:
647
+ - - '>='
648
+ - !ruby/object:Gem::Version
649
+ version: 2.0.0
650
+ - !ruby/object:Gem::Dependency
651
+ name: autocode
652
+ version_requirement:
653
+ version_requirements: !ruby/object:Gem::Requirement
654
+ version:
655
+ requirements:
656
+ - - '>='
657
+ - !ruby/object:Gem::Version
658
+ version: 1.0.0
659
+ description:
660
+ email: dan@zeraweb.com
661
+ authors:
662
+ - Dan Yoder
663
+ extra_rdoc_files: []
664
+ requirements: []
665
+ rubyforge_project: waves
666
+ autorequire: