backlog 0.9.1 → 0.10.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (1196) hide show
  1. data/History.txt +17 -0
  2. data/README.txt +14 -3
  3. data/Rakefile +18 -4
  4. data/app/controllers/application.rb +2 -0
  5. data/app/controllers/tasks_controller.rb +4 -3
  6. data/app/controllers/user_controller.rb +1 -0
  7. data/app/helpers/application_helper.rb +2 -0
  8. data/app/models/period.rb +5 -6
  9. data/app/models/task.rb +1 -1
  10. data/app/views/backlogs/_tasks.rhtml +1 -1
  11. data/app/views/periods/_burn_down_chart.rhtml +2 -1
  12. data/app/views/user/login.rhtml +1 -1
  13. data/config/database.yml +26 -1
  14. data/config/environment.rb +7 -1
  15. data/config/war.rb +26 -0
  16. data/config/war.rb~ +11 -0
  17. data/db/migrate/018_create_groups.rb +3 -9
  18. data/db/schema.rb +53 -53
  19. data/lib/postgresql-8.2-504.jdbc4.jar +0 -0
  20. data/lib/url_for_fix.rb +28 -0
  21. data/lib/version_from_history.rb +2 -2
  22. data/test/fixtures/periods.yml +11 -5
  23. data/test/fixtures/tasks.yml +14 -6
  24. data/test/fixtures/users.yml +1 -1
  25. data/test/functional/backlogs_controller_test.rb +19 -0
  26. data/test/functional/estimates_controller_test.rb +2 -5
  27. data/test/functional/periods_controller_test.rb +36 -24
  28. data/test/functional/tasks_controller_test.rb +47 -14
  29. data/test/functional/user_controller_test.rb +7 -38
  30. data/test/functional/works_controller_test.rb +2 -2
  31. data/test/performance/test.rb +3 -0
  32. data/test/performance/test_threaded.rb +36 -0
  33. data/test/test_helper.rb +45 -0
  34. data/vendor/plugins/goldspike/README +13 -0
  35. data/vendor/{rails/railties/lib/rails_generator/generators/components/plugin/templates → plugins/goldspike}/Rakefile +3 -3
  36. data/vendor/plugins/goldspike/generators/goldspike/goldspike_generator.rb +21 -0
  37. data/vendor/plugins/goldspike/generators/goldspike/templates/war.rb +8 -0
  38. data/vendor/plugins/goldspike/generators/goldspike/templates/web.xml.erb +57 -0
  39. data/vendor/{rails/railties/lib/rails_generator/generators/components/plugin/templates → plugins/goldspike}/init.rb +0 -0
  40. data/vendor/plugins/goldspike/install.rb +4 -0
  41. data/vendor/plugins/goldspike/lib/create_war.rb +102 -0
  42. data/vendor/plugins/goldspike/lib/java_library.rb +137 -0
  43. data/vendor/plugins/goldspike/lib/packer.rb +216 -0
  44. data/vendor/plugins/goldspike/lib/run.rb +161 -0
  45. data/vendor/plugins/goldspike/lib/util.rb +35 -0
  46. data/vendor/plugins/goldspike/lib/war_config.rb +327 -0
  47. data/vendor/plugins/goldspike/tasks/war.rake +49 -0
  48. data/vendor/{rails/railties/lib/rails_generator/generators/components/plugin/templates/unit_test.rb → plugins/goldspike/test/test_create_war.rb} +2 -2
  49. data/vendor/plugins/goldspike/test/test_java_library.rb +130 -0
  50. data/vendor/plugins/goldspike/test/test_maven_library.rb +132 -0
  51. data/vendor/plugins/goldspike/test/war_config_test_config.rb +15 -0
  52. metadata +35 -1396
  53. data/vendor/rails/REVISION_6747 +0 -0
  54. data/vendor/rails/actionmailer/CHANGELOG +0 -281
  55. data/vendor/rails/actionmailer/MIT-LICENSE +0 -21
  56. data/vendor/rails/actionmailer/README +0 -145
  57. data/vendor/rails/actionmailer/Rakefile +0 -95
  58. data/vendor/rails/actionmailer/install.rb +0 -30
  59. data/vendor/rails/actionmailer/lib/action_mailer.rb +0 -51
  60. data/vendor/rails/actionmailer/lib/action_mailer/adv_attr_accessor.rb +0 -30
  61. data/vendor/rails/actionmailer/lib/action_mailer/base.rb +0 -570
  62. data/vendor/rails/actionmailer/lib/action_mailer/helpers.rb +0 -111
  63. data/vendor/rails/actionmailer/lib/action_mailer/mail_helper.rb +0 -19
  64. data/vendor/rails/actionmailer/lib/action_mailer/part.rb +0 -113
  65. data/vendor/rails/actionmailer/lib/action_mailer/part_container.rb +0 -51
  66. data/vendor/rails/actionmailer/lib/action_mailer/quoting.rb +0 -59
  67. data/vendor/rails/actionmailer/lib/action_mailer/test_helper.rb +0 -67
  68. data/vendor/rails/actionmailer/lib/action_mailer/utils.rb +0 -8
  69. data/vendor/rails/actionmailer/lib/action_mailer/vendor/text/format.rb +0 -1466
  70. data/vendor/rails/actionmailer/lib/action_mailer/vendor/tmail.rb +0 -3
  71. data/vendor/rails/actionmailer/lib/action_mailer/vendor/tmail/address.rb +0 -242
  72. data/vendor/rails/actionmailer/lib/action_mailer/vendor/tmail/attachments.rb +0 -41
  73. data/vendor/rails/actionmailer/lib/action_mailer/vendor/tmail/base64.rb +0 -71
  74. data/vendor/rails/actionmailer/lib/action_mailer/vendor/tmail/config.rb +0 -69
  75. data/vendor/rails/actionmailer/lib/action_mailer/vendor/tmail/encode.rb +0 -467
  76. data/vendor/rails/actionmailer/lib/action_mailer/vendor/tmail/facade.rb +0 -552
  77. data/vendor/rails/actionmailer/lib/action_mailer/vendor/tmail/header.rb +0 -914
  78. data/vendor/rails/actionmailer/lib/action_mailer/vendor/tmail/info.rb +0 -35
  79. data/vendor/rails/actionmailer/lib/action_mailer/vendor/tmail/loader.rb +0 -1
  80. data/vendor/rails/actionmailer/lib/action_mailer/vendor/tmail/mail.rb +0 -447
  81. data/vendor/rails/actionmailer/lib/action_mailer/vendor/tmail/mailbox.rb +0 -433
  82. data/vendor/rails/actionmailer/lib/action_mailer/vendor/tmail/mbox.rb +0 -1
  83. data/vendor/rails/actionmailer/lib/action_mailer/vendor/tmail/net.rb +0 -280
  84. data/vendor/rails/actionmailer/lib/action_mailer/vendor/tmail/obsolete.rb +0 -135
  85. data/vendor/rails/actionmailer/lib/action_mailer/vendor/tmail/parser.rb +0 -1522
  86. data/vendor/rails/actionmailer/lib/action_mailer/vendor/tmail/port.rb +0 -377
  87. data/vendor/rails/actionmailer/lib/action_mailer/vendor/tmail/quoting.rb +0 -131
  88. data/vendor/rails/actionmailer/lib/action_mailer/vendor/tmail/scanner.rb +0 -41
  89. data/vendor/rails/actionmailer/lib/action_mailer/vendor/tmail/scanner_r.rb +0 -263
  90. data/vendor/rails/actionmailer/lib/action_mailer/vendor/tmail/stringio.rb +0 -277
  91. data/vendor/rails/actionmailer/lib/action_mailer/vendor/tmail/tmail.rb +0 -1
  92. data/vendor/rails/actionmailer/lib/action_mailer/vendor/tmail/utils.rb +0 -238
  93. data/vendor/rails/actionmailer/lib/action_mailer/version.rb +0 -9
  94. data/vendor/rails/actionmailer/test/abstract_unit.rb +0 -39
  95. data/vendor/rails/actionmailer/test/fixtures/first_mailer/share.erb +0 -1
  96. data/vendor/rails/actionmailer/test/fixtures/first_mailer/share.rhtml +0 -0
  97. data/vendor/rails/actionmailer/test/fixtures/helper_mailer/use_example_helper.erb +0 -1
  98. data/vendor/rails/actionmailer/test/fixtures/helper_mailer/use_example_helper.rhtml +0 -0
  99. data/vendor/rails/actionmailer/test/fixtures/helper_mailer/use_helper.erb +0 -1
  100. data/vendor/rails/actionmailer/test/fixtures/helper_mailer/use_helper.rhtml +0 -0
  101. data/vendor/rails/actionmailer/test/fixtures/helper_mailer/use_helper_method.erb +0 -1
  102. data/vendor/rails/actionmailer/test/fixtures/helper_mailer/use_helper_method.rhtml +0 -0
  103. data/vendor/rails/actionmailer/test/fixtures/helper_mailer/use_mail_helper.erb +0 -5
  104. data/vendor/rails/actionmailer/test/fixtures/helper_mailer/use_mail_helper.rhtml +0 -0
  105. data/vendor/rails/actionmailer/test/fixtures/helpers/example_helper.rb +0 -5
  106. data/vendor/rails/actionmailer/test/fixtures/path.with.dots/funky_path_mailer/multipart_with_template_path_with_dots.erb +0 -1
  107. data/vendor/rails/actionmailer/test/fixtures/path.with.dots/funky_path_mailer/multipart_with_template_path_with_dots.rhtml +0 -0
  108. data/vendor/rails/actionmailer/test/fixtures/path.with.dots/multipart_with_template_path_with_dots.rhtml +0 -0
  109. data/vendor/rails/actionmailer/test/fixtures/raw_email +0 -14
  110. data/vendor/rails/actionmailer/test/fixtures/raw_email10 +0 -20
  111. data/vendor/rails/actionmailer/test/fixtures/raw_email11 +0 -34
  112. data/vendor/rails/actionmailer/test/fixtures/raw_email12 +0 -32
  113. data/vendor/rails/actionmailer/test/fixtures/raw_email13 +0 -29
  114. data/vendor/rails/actionmailer/test/fixtures/raw_email2 +0 -114
  115. data/vendor/rails/actionmailer/test/fixtures/raw_email3 +0 -70
  116. data/vendor/rails/actionmailer/test/fixtures/raw_email4 +0 -59
  117. data/vendor/rails/actionmailer/test/fixtures/raw_email5 +0 -19
  118. data/vendor/rails/actionmailer/test/fixtures/raw_email6 +0 -20
  119. data/vendor/rails/actionmailer/test/fixtures/raw_email7 +0 -66
  120. data/vendor/rails/actionmailer/test/fixtures/raw_email8 +0 -47
  121. data/vendor/rails/actionmailer/test/fixtures/raw_email9 +0 -28
  122. data/vendor/rails/actionmailer/test/fixtures/raw_email_quoted_with_0d0a +0 -14
  123. data/vendor/rails/actionmailer/test/fixtures/raw_email_with_nested_attachment +0 -100
  124. data/vendor/rails/actionmailer/test/fixtures/raw_email_with_partially_quoted_subject +0 -14
  125. data/vendor/rails/actionmailer/test/fixtures/second_mailer/share.erb +0 -1
  126. data/vendor/rails/actionmailer/test/fixtures/second_mailer/share.rhtml +0 -0
  127. data/vendor/rails/actionmailer/test/fixtures/templates/signed_up.erb +0 -3
  128. data/vendor/rails/actionmailer/test/fixtures/templates/signed_up.rhtml +0 -0
  129. data/vendor/rails/actionmailer/test/fixtures/test_mailer/implicitly_multipart_example.ignored.erb +0 -1
  130. data/vendor/rails/actionmailer/test/fixtures/test_mailer/implicitly_multipart_example.ignored.rhtml +0 -0
  131. data/vendor/rails/actionmailer/test/fixtures/test_mailer/implicitly_multipart_example.rhtml.bak +0 -1
  132. data/vendor/rails/actionmailer/test/fixtures/test_mailer/implicitly_multipart_example.text.html.erb +0 -10
  133. data/vendor/rails/actionmailer/test/fixtures/test_mailer/implicitly_multipart_example.text.html.rhtml +0 -0
  134. data/vendor/rails/actionmailer/test/fixtures/test_mailer/implicitly_multipart_example.text.plain.erb +0 -2
  135. data/vendor/rails/actionmailer/test/fixtures/test_mailer/implicitly_multipart_example.text.plain.rhtml +0 -0
  136. data/vendor/rails/actionmailer/test/fixtures/test_mailer/implicitly_multipart_example.text.yaml.erb +0 -1
  137. data/vendor/rails/actionmailer/test/fixtures/test_mailer/implicitly_multipart_example.text.yaml.rhtml +0 -0
  138. data/vendor/rails/actionmailer/test/fixtures/test_mailer/signed_up.erb +0 -3
  139. data/vendor/rails/actionmailer/test/fixtures/test_mailer/signed_up.rhtml +0 -0
  140. data/vendor/rails/actionmailer/test/fixtures/test_mailer/signed_up_with_url.erb +0 -3
  141. data/vendor/rails/actionmailer/test/fixtures/test_mailer/signed_up_with_url.rhtml +0 -0
  142. data/vendor/rails/actionmailer/test/mail_helper_test.rb +0 -91
  143. data/vendor/rails/actionmailer/test/mail_render_test.rb +0 -79
  144. data/vendor/rails/actionmailer/test/mail_service_test.rb +0 -850
  145. data/vendor/rails/actionmailer/test/quoting_test.rb +0 -57
  146. data/vendor/rails/actionmailer/test/test_helper_test.rb +0 -79
  147. data/vendor/rails/actionmailer/test/tmail_test.rb +0 -21
  148. data/vendor/rails/actionmailer/test/url_test.rb +0 -68
  149. data/vendor/rails/actionpack/CHANGELOG +0 -3560
  150. data/vendor/rails/actionpack/MIT-LICENSE +0 -21
  151. data/vendor/rails/actionpack/README +0 -469
  152. data/vendor/rails/actionpack/RUNNING_UNIT_TESTS +0 -25
  153. data/vendor/rails/actionpack/Rakefile +0 -154
  154. data/vendor/rails/actionpack/examples/address_book/index.erb +0 -33
  155. data/vendor/rails/actionpack/examples/address_book/index.rhtml +0 -0
  156. data/vendor/rails/actionpack/examples/address_book/layout.erb +0 -8
  157. data/vendor/rails/actionpack/examples/address_book/layout.rhtml +0 -0
  158. data/vendor/rails/actionpack/examples/address_book_controller.cgi +0 -9
  159. data/vendor/rails/actionpack/examples/address_book_controller.fcgi +0 -6
  160. data/vendor/rails/actionpack/examples/address_book_controller.rb +0 -52
  161. data/vendor/rails/actionpack/examples/address_book_controller.rbx +0 -4
  162. data/vendor/rails/actionpack/examples/benchmark.rb +0 -52
  163. data/vendor/rails/actionpack/examples/benchmark_with_ar.fcgi +0 -89
  164. data/vendor/rails/actionpack/examples/blog_controller.cgi +0 -53
  165. data/vendor/rails/actionpack/examples/debate/index.erb +0 -14
  166. data/vendor/rails/actionpack/examples/debate/index.rhtml +0 -0
  167. data/vendor/rails/actionpack/examples/debate/new_topic.erb +0 -22
  168. data/vendor/rails/actionpack/examples/debate/new_topic.rhtml +0 -0
  169. data/vendor/rails/actionpack/examples/debate/topic.erb +0 -32
  170. data/vendor/rails/actionpack/examples/debate/topic.rhtml +0 -0
  171. data/vendor/rails/actionpack/examples/debate_controller.cgi +0 -57
  172. data/vendor/rails/actionpack/install.rb +0 -30
  173. data/vendor/rails/actionpack/lib/action_controller.rb +0 -85
  174. data/vendor/rails/actionpack/lib/action_controller/assertions.rb +0 -70
  175. data/vendor/rails/actionpack/lib/action_controller/assertions/dom_assertions.rb +0 -25
  176. data/vendor/rails/actionpack/lib/action_controller/assertions/model_assertions.rb +0 -12
  177. data/vendor/rails/actionpack/lib/action_controller/assertions/response_assertions.rb +0 -141
  178. data/vendor/rails/actionpack/lib/action_controller/assertions/routing_assertions.rb +0 -99
  179. data/vendor/rails/actionpack/lib/action_controller/assertions/selector_assertions.rb +0 -585
  180. data/vendor/rails/actionpack/lib/action_controller/assertions/tag_assertions.rb +0 -117
  181. data/vendor/rails/actionpack/lib/action_controller/base.rb +0 -1251
  182. data/vendor/rails/actionpack/lib/action_controller/benchmarking.rb +0 -93
  183. data/vendor/rails/actionpack/lib/action_controller/caching.rb +0 -656
  184. data/vendor/rails/actionpack/lib/action_controller/cgi_ext.rb +0 -18
  185. data/vendor/rails/actionpack/lib/action_controller/cgi_ext/cookie.rb +0 -123
  186. data/vendor/rails/actionpack/lib/action_controller/cgi_ext/parameters.rb +0 -208
  187. data/vendor/rails/actionpack/lib/action_controller/cgi_ext/query_extension.rb +0 -96
  188. data/vendor/rails/actionpack/lib/action_controller/cgi_ext/session.rb +0 -63
  189. data/vendor/rails/actionpack/lib/action_controller/cgi_ext/stdinput.rb +0 -23
  190. data/vendor/rails/actionpack/lib/action_controller/cgi_process.rb +0 -217
  191. data/vendor/rails/actionpack/lib/action_controller/components.rb +0 -165
  192. data/vendor/rails/actionpack/lib/action_controller/cookies.rb +0 -78
  193. data/vendor/rails/actionpack/lib/action_controller/filters.rb +0 -752
  194. data/vendor/rails/actionpack/lib/action_controller/flash.rb +0 -184
  195. data/vendor/rails/actionpack/lib/action_controller/helpers.rb +0 -153
  196. data/vendor/rails/actionpack/lib/action_controller/http_authentication.rb +0 -121
  197. data/vendor/rails/actionpack/lib/action_controller/integration.rb +0 -552
  198. data/vendor/rails/actionpack/lib/action_controller/layout.rb +0 -318
  199. data/vendor/rails/actionpack/lib/action_controller/macros/auto_complete.rb +0 -53
  200. data/vendor/rails/actionpack/lib/action_controller/macros/in_place_editing.rb +0 -33
  201. data/vendor/rails/actionpack/lib/action_controller/mime_responds.rb +0 -191
  202. data/vendor/rails/actionpack/lib/action_controller/mime_type.rb +0 -157
  203. data/vendor/rails/actionpack/lib/action_controller/mime_types.rb +0 -20
  204. data/vendor/rails/actionpack/lib/action_controller/pagination.rb +0 -402
  205. data/vendor/rails/actionpack/lib/action_controller/polymorphic_routes.rb +0 -56
  206. data/vendor/rails/actionpack/lib/action_controller/record_identifier.rb +0 -91
  207. data/vendor/rails/actionpack/lib/action_controller/request.rb +0 -316
  208. data/vendor/rails/actionpack/lib/action_controller/rescue.rb +0 -152
  209. data/vendor/rails/actionpack/lib/action_controller/resources.rb +0 -485
  210. data/vendor/rails/actionpack/lib/action_controller/response.rb +0 -76
  211. data/vendor/rails/actionpack/lib/action_controller/routing.rb +0 -1365
  212. data/vendor/rails/actionpack/lib/action_controller/scaffolding.rb +0 -191
  213. data/vendor/rails/actionpack/lib/action_controller/session/active_record_store.rb +0 -335
  214. data/vendor/rails/actionpack/lib/action_controller/session/cookie_store.rb +0 -143
  215. data/vendor/rails/actionpack/lib/action_controller/session/drb_server.rb +0 -32
  216. data/vendor/rails/actionpack/lib/action_controller/session/drb_store.rb +0 -35
  217. data/vendor/rails/actionpack/lib/action_controller/session/mem_cache_store.rb +0 -105
  218. data/vendor/rails/actionpack/lib/action_controller/session_management.rb +0 -150
  219. data/vendor/rails/actionpack/lib/action_controller/status_codes.rb +0 -88
  220. data/vendor/rails/actionpack/lib/action_controller/streaming.rb +0 -141
  221. data/vendor/rails/actionpack/lib/action_controller/templates/rescues/_request_and_response.erb +0 -24
  222. data/vendor/rails/actionpack/lib/action_controller/templates/rescues/_request_and_response.rhtml +0 -0
  223. data/vendor/rails/actionpack/lib/action_controller/templates/rescues/_trace.erb +0 -26
  224. data/vendor/rails/actionpack/lib/action_controller/templates/rescues/_trace.rhtml +0 -0
  225. data/vendor/rails/actionpack/lib/action_controller/templates/rescues/diagnostics.erb +0 -11
  226. data/vendor/rails/actionpack/lib/action_controller/templates/rescues/diagnostics.rhtml +0 -0
  227. data/vendor/rails/actionpack/lib/action_controller/templates/rescues/layout.erb +0 -29
  228. data/vendor/rails/actionpack/lib/action_controller/templates/rescues/layout.rhtml +0 -0
  229. data/vendor/rails/actionpack/lib/action_controller/templates/rescues/missing_template.erb +0 -2
  230. data/vendor/rails/actionpack/lib/action_controller/templates/rescues/missing_template.rhtml +0 -0
  231. data/vendor/rails/actionpack/lib/action_controller/templates/rescues/routing_error.erb +0 -10
  232. data/vendor/rails/actionpack/lib/action_controller/templates/rescues/routing_error.rhtml +0 -0
  233. data/vendor/rails/actionpack/lib/action_controller/templates/rescues/template_error.erb +0 -21
  234. data/vendor/rails/actionpack/lib/action_controller/templates/rescues/template_error.rhtml +0 -0
  235. data/vendor/rails/actionpack/lib/action_controller/templates/rescues/unknown_action.erb +0 -2
  236. data/vendor/rails/actionpack/lib/action_controller/templates/rescues/unknown_action.rhtml +0 -0
  237. data/vendor/rails/actionpack/lib/action_controller/templates/scaffolds/edit.erb +0 -7
  238. data/vendor/rails/actionpack/lib/action_controller/templates/scaffolds/edit.rhtml +0 -0
  239. data/vendor/rails/actionpack/lib/action_controller/templates/scaffolds/layout.erb +0 -69
  240. data/vendor/rails/actionpack/lib/action_controller/templates/scaffolds/layout.rhtml +0 -0
  241. data/vendor/rails/actionpack/lib/action_controller/templates/scaffolds/list.erb +0 -27
  242. data/vendor/rails/actionpack/lib/action_controller/templates/scaffolds/list.rhtml +0 -0
  243. data/vendor/rails/actionpack/lib/action_controller/templates/scaffolds/new.erb +0 -6
  244. data/vendor/rails/actionpack/lib/action_controller/templates/scaffolds/new.rhtml +0 -0
  245. data/vendor/rails/actionpack/lib/action_controller/templates/scaffolds/show.erb +0 -9
  246. data/vendor/rails/actionpack/lib/action_controller/templates/scaffolds/show.rhtml +0 -0
  247. data/vendor/rails/actionpack/lib/action_controller/test_process.rb +0 -516
  248. data/vendor/rails/actionpack/lib/action_controller/url_rewriter.rb +0 -124
  249. data/vendor/rails/actionpack/lib/action_controller/vendor/html-scanner/html/document.rb +0 -64
  250. data/vendor/rails/actionpack/lib/action_controller/vendor/html-scanner/html/node.rb +0 -530
  251. data/vendor/rails/actionpack/lib/action_controller/vendor/html-scanner/html/selector.rb +0 -828
  252. data/vendor/rails/actionpack/lib/action_controller/vendor/html-scanner/html/tokenizer.rb +0 -105
  253. data/vendor/rails/actionpack/lib/action_controller/vendor/html-scanner/html/version.rb +0 -11
  254. data/vendor/rails/actionpack/lib/action_controller/verification.rb +0 -108
  255. data/vendor/rails/actionpack/lib/action_pack.rb +0 -24
  256. data/vendor/rails/actionpack/lib/action_pack/version.rb +0 -9
  257. data/vendor/rails/actionpack/lib/action_view.rb +0 -31
  258. data/vendor/rails/actionpack/lib/action_view/base.rb +0 -625
  259. data/vendor/rails/actionpack/lib/action_view/compiled_templates.rb +0 -69
  260. data/vendor/rails/actionpack/lib/action_view/helpers/active_record_helper.rb +0 -237
  261. data/vendor/rails/actionpack/lib/action_view/helpers/asset_tag_helper.rb +0 -405
  262. data/vendor/rails/actionpack/lib/action_view/helpers/benchmark_helper.rb +0 -24
  263. data/vendor/rails/actionpack/lib/action_view/helpers/cache_helper.rb +0 -10
  264. data/vendor/rails/actionpack/lib/action_view/helpers/capture_helper.rb +0 -128
  265. data/vendor/rails/actionpack/lib/action_view/helpers/date_helper.rb +0 -454
  266. data/vendor/rails/actionpack/lib/action_view/helpers/debug_helper.rb +0 -31
  267. data/vendor/rails/actionpack/lib/action_view/helpers/form_helper.rb +0 -609
  268. data/vendor/rails/actionpack/lib/action_view/helpers/form_options_helper.rb +0 -372
  269. data/vendor/rails/actionpack/lib/action_view/helpers/form_tag_helper.rb +0 -192
  270. data/vendor/rails/actionpack/lib/action_view/helpers/java_script_macros_helper.rb +0 -233
  271. data/vendor/rails/actionpack/lib/action_view/helpers/javascript_helper.rb +0 -193
  272. data/vendor/rails/actionpack/lib/action_view/helpers/javascripts/controls.js +0 -833
  273. data/vendor/rails/actionpack/lib/action_view/helpers/javascripts/dragdrop.js +0 -942
  274. data/vendor/rails/actionpack/lib/action_view/helpers/javascripts/effects.js +0 -1088
  275. data/vendor/rails/actionpack/lib/action_view/helpers/javascripts/prototype.js +0 -2515
  276. data/vendor/rails/actionpack/lib/action_view/helpers/number_helper.rb +0 -152
  277. data/vendor/rails/actionpack/lib/action_view/helpers/pagination_helper.rb +0 -86
  278. data/vendor/rails/actionpack/lib/action_view/helpers/prototype_helper.rb +0 -913
  279. data/vendor/rails/actionpack/lib/action_view/helpers/record_identification_helper.rb +0 -20
  280. data/vendor/rails/actionpack/lib/action_view/helpers/record_tag_helper.rb +0 -59
  281. data/vendor/rails/actionpack/lib/action_view/helpers/scriptaculous_helper.rb +0 -140
  282. data/vendor/rails/actionpack/lib/action_view/helpers/tag_helper.rb +0 -108
  283. data/vendor/rails/actionpack/lib/action_view/helpers/text_helper.rb +0 -401
  284. data/vendor/rails/actionpack/lib/action_view/helpers/url_helper.rb +0 -496
  285. data/vendor/rails/actionpack/lib/action_view/partials.rb +0 -128
  286. data/vendor/rails/actionpack/lib/action_view/template_error.rb +0 -102
  287. data/vendor/rails/actionpack/test/abstract_unit.rb +0 -29
  288. data/vendor/rails/actionpack/test/active_record_unit.rb +0 -108
  289. data/vendor/rails/actionpack/test/activerecord/active_record_store_test.rb +0 -142
  290. data/vendor/rails/actionpack/test/activerecord/pagination_test.rb +0 -156
  291. data/vendor/rails/actionpack/test/controller/action_pack_assertions_test.rb +0 -479
  292. data/vendor/rails/actionpack/test/controller/addresses_render_test.rb +0 -43
  293. data/vendor/rails/actionpack/test/controller/assert_select_test.rb +0 -597
  294. data/vendor/rails/actionpack/test/controller/base_test.rb +0 -134
  295. data/vendor/rails/actionpack/test/controller/benchmark_test.rb +0 -33
  296. data/vendor/rails/actionpack/test/controller/caching_test.rb +0 -262
  297. data/vendor/rails/actionpack/test/controller/capture_test.rb +0 -71
  298. data/vendor/rails/actionpack/test/controller/cgi_test.rb +0 -432
  299. data/vendor/rails/actionpack/test/controller/components_test.rb +0 -129
  300. data/vendor/rails/actionpack/test/controller/content_type_test.rb +0 -139
  301. data/vendor/rails/actionpack/test/controller/controller_fixtures/app/controllers/admin/user_controller.rb +0 -0
  302. data/vendor/rails/actionpack/test/controller/controller_fixtures/app/controllers/user_controller.rb +0 -0
  303. data/vendor/rails/actionpack/test/controller/controller_fixtures/vendor/plugins/bad_plugin/lib/plugin_controller.rb +0 -0
  304. data/vendor/rails/actionpack/test/controller/cookie_test.rb +0 -88
  305. data/vendor/rails/actionpack/test/controller/custom_handler_test.rb +0 -41
  306. data/vendor/rails/actionpack/test/controller/deprecation/deprecated_base_methods_test.rb +0 -48
  307. data/vendor/rails/actionpack/test/controller/fake_controllers.rb +0 -16
  308. data/vendor/rails/actionpack/test/controller/filter_params_test.rb +0 -42
  309. data/vendor/rails/actionpack/test/controller/filters_test.rb +0 -752
  310. data/vendor/rails/actionpack/test/controller/flash_test.rb +0 -147
  311. data/vendor/rails/actionpack/test/controller/fragment_store_setting_test.rb +0 -45
  312. data/vendor/rails/actionpack/test/controller/helper_test.rb +0 -204
  313. data/vendor/rails/actionpack/test/controller/html-scanner/document_test.rb +0 -104
  314. data/vendor/rails/actionpack/test/controller/html-scanner/node_test.rb +0 -69
  315. data/vendor/rails/actionpack/test/controller/html-scanner/tag_node_test.rb +0 -239
  316. data/vendor/rails/actionpack/test/controller/html-scanner/text_node_test.rb +0 -51
  317. data/vendor/rails/actionpack/test/controller/html-scanner/tokenizer_test.rb +0 -125
  318. data/vendor/rails/actionpack/test/controller/http_authentication_test.rb +0 -42
  319. data/vendor/rails/actionpack/test/controller/integration_test.rb +0 -187
  320. data/vendor/rails/actionpack/test/controller/layout_test.rb +0 -202
  321. data/vendor/rails/actionpack/test/controller/mime_responds_test.rb +0 -358
  322. data/vendor/rails/actionpack/test/controller/mime_type_test.rb +0 -54
  323. data/vendor/rails/actionpack/test/controller/new_render_test.rb +0 -769
  324. data/vendor/rails/actionpack/test/controller/raw_post_test.rb +0 -74
  325. data/vendor/rails/actionpack/test/controller/record_identifier_test.rb +0 -103
  326. data/vendor/rails/actionpack/test/controller/redirect_test.rb +0 -180
  327. data/vendor/rails/actionpack/test/controller/render_test.rb +0 -404
  328. data/vendor/rails/actionpack/test/controller/request_test.rb +0 -393
  329. data/vendor/rails/actionpack/test/controller/rescue_test.rb +0 -215
  330. data/vendor/rails/actionpack/test/controller/resources_test.rb +0 -585
  331. data/vendor/rails/actionpack/test/controller/routing_test.rb +0 -1902
  332. data/vendor/rails/actionpack/test/controller/selector_test.rb +0 -628
  333. data/vendor/rails/actionpack/test/controller/send_file_test.rb +0 -127
  334. data/vendor/rails/actionpack/test/controller/session/cookie_store_test.rb +0 -228
  335. data/vendor/rails/actionpack/test/controller/session_management_test.rb +0 -156
  336. data/vendor/rails/actionpack/test/controller/test_test.rb +0 -520
  337. data/vendor/rails/actionpack/test/controller/url_rewriter_test.rb +0 -218
  338. data/vendor/rails/actionpack/test/controller/verification_test.rb +0 -242
  339. data/vendor/rails/actionpack/test/controller/view_paths_test.rb +0 -79
  340. data/vendor/rails/actionpack/test/controller/webservice_test.rb +0 -181
  341. data/vendor/rails/actionpack/test/fixtures/addresses/list.erb +0 -1
  342. data/vendor/rails/actionpack/test/fixtures/addresses/list.rhtml +0 -0
  343. data/vendor/rails/actionpack/test/fixtures/companies.yml +0 -24
  344. data/vendor/rails/actionpack/test/fixtures/company.rb +0 -9
  345. data/vendor/rails/actionpack/test/fixtures/content_type/render_default_content_types_for_respond_to.rhtml +0 -1
  346. data/vendor/rails/actionpack/test/fixtures/content_type/render_default_for_rhtml.rhtml +0 -1
  347. data/vendor/rails/actionpack/test/fixtures/content_type/render_default_for_rjs.rjs +0 -1
  348. data/vendor/rails/actionpack/test/fixtures/content_type/render_default_for_rxml.rxml +0 -1
  349. data/vendor/rails/actionpack/test/fixtures/db_definitions/sqlite.sql +0 -42
  350. data/vendor/rails/actionpack/test/fixtures/developer.rb +0 -7
  351. data/vendor/rails/actionpack/test/fixtures/developers.yml +0 -21
  352. data/vendor/rails/actionpack/test/fixtures/developers_projects.yml +0 -13
  353. data/vendor/rails/actionpack/test/fixtures/fun/games/hello_world.erb +0 -1
  354. data/vendor/rails/actionpack/test/fixtures/fun/games/hello_world.rhtml +0 -0
  355. data/vendor/rails/actionpack/test/fixtures/helpers/abc_helper.rb +0 -5
  356. data/vendor/rails/actionpack/test/fixtures/helpers/fun/games_helper.rb +0 -3
  357. data/vendor/rails/actionpack/test/fixtures/helpers/fun/pdf_helper.rb +0 -3
  358. data/vendor/rails/actionpack/test/fixtures/layout_tests/layouts/controller_name_space/nested.rhtml +0 -1
  359. data/vendor/rails/actionpack/test/fixtures/layout_tests/layouts/item.rhtml +0 -1
  360. data/vendor/rails/actionpack/test/fixtures/layout_tests/layouts/layout_test.rhtml +0 -1
  361. data/vendor/rails/actionpack/test/fixtures/layout_tests/layouts/multiple_extensions.html.erb +0 -1
  362. data/vendor/rails/actionpack/test/fixtures/layout_tests/layouts/third_party_template_library.mab +0 -1
  363. data/vendor/rails/actionpack/test/fixtures/layout_tests/views/hello.rhtml +0 -1
  364. data/vendor/rails/actionpack/test/fixtures/layouts/builder.builder +0 -3
  365. data/vendor/rails/actionpack/test/fixtures/layouts/builder.rxml +0 -0
  366. data/vendor/rails/actionpack/test/fixtures/layouts/standard.erb +0 -1
  367. data/vendor/rails/actionpack/test/fixtures/layouts/standard.rhtml +0 -0
  368. data/vendor/rails/actionpack/test/fixtures/layouts/talk_from_action.erb +0 -2
  369. data/vendor/rails/actionpack/test/fixtures/layouts/talk_from_action.rhtml +0 -0
  370. data/vendor/rails/actionpack/test/fixtures/layouts/yield.erb +0 -2
  371. data/vendor/rails/actionpack/test/fixtures/layouts/yield.rhtml +0 -0
  372. data/vendor/rails/actionpack/test/fixtures/multipart/binary_file +0 -0
  373. data/vendor/rails/actionpack/test/fixtures/multipart/large_text_file +0 -10
  374. data/vendor/rails/actionpack/test/fixtures/multipart/mixed_files +0 -0
  375. data/vendor/rails/actionpack/test/fixtures/multipart/mona_lisa.jpg +0 -0
  376. data/vendor/rails/actionpack/test/fixtures/multipart/single_parameter +0 -5
  377. data/vendor/rails/actionpack/test/fixtures/multipart/text_file +0 -10
  378. data/vendor/rails/actionpack/test/fixtures/override/test/hello_world.erb +0 -1
  379. data/vendor/rails/actionpack/test/fixtures/override/test/hello_world.rhtml +0 -0
  380. data/vendor/rails/actionpack/test/fixtures/project.rb +0 -3
  381. data/vendor/rails/actionpack/test/fixtures/projects.yml +0 -7
  382. data/vendor/rails/actionpack/test/fixtures/public/404.html +0 -1
  383. data/vendor/rails/actionpack/test/fixtures/public/500.html +0 -1
  384. data/vendor/rails/actionpack/test/fixtures/public/images/rails.png +0 -0
  385. data/vendor/rails/actionpack/test/fixtures/public/javascripts/application.js +0 -0
  386. data/vendor/rails/actionpack/test/fixtures/public/javascripts/bank.js +0 -1
  387. data/vendor/rails/actionpack/test/fixtures/public/javascripts/robber.js +0 -1
  388. data/vendor/rails/actionpack/test/fixtures/public/stylesheets/bank.css +0 -1
  389. data/vendor/rails/actionpack/test/fixtures/public/stylesheets/robber.css +0 -1
  390. data/vendor/rails/actionpack/test/fixtures/replies.yml +0 -13
  391. data/vendor/rails/actionpack/test/fixtures/reply.rb +0 -5
  392. data/vendor/rails/actionpack/test/fixtures/respond_to/all_types_with_layout.html.erb +0 -1
  393. data/vendor/rails/actionpack/test/fixtures/respond_to/all_types_with_layout.js.rjs +0 -1
  394. data/vendor/rails/actionpack/test/fixtures/respond_to/layouts/standard.rhtml +0 -1
  395. data/vendor/rails/actionpack/test/fixtures/respond_to/using_defaults.html.erb +0 -1
  396. data/vendor/rails/actionpack/test/fixtures/respond_to/using_defaults.js.rjs +0 -1
  397. data/vendor/rails/actionpack/test/fixtures/respond_to/using_defaults.xml.builder +0 -1
  398. data/vendor/rails/actionpack/test/fixtures/respond_to/using_defaults_with_type_list.html.erb +0 -1
  399. data/vendor/rails/actionpack/test/fixtures/respond_to/using_defaults_with_type_list.js.rjs +0 -1
  400. data/vendor/rails/actionpack/test/fixtures/respond_to/using_defaults_with_type_list.xml.builder +0 -1
  401. data/vendor/rails/actionpack/test/fixtures/scope/test/modgreet.erb +0 -1
  402. data/vendor/rails/actionpack/test/fixtures/scope/test/modgreet.rhtml +0 -0
  403. data/vendor/rails/actionpack/test/fixtures/test/_customer.erb +0 -1
  404. data/vendor/rails/actionpack/test/fixtures/test/_customer.rhtml +0 -0
  405. data/vendor/rails/actionpack/test/fixtures/test/_customer_greeting.erb +0 -1
  406. data/vendor/rails/actionpack/test/fixtures/test/_customer_greeting.rhtml +0 -0
  407. data/vendor/rails/actionpack/test/fixtures/test/_hash_object.erb +0 -1
  408. data/vendor/rails/actionpack/test/fixtures/test/_hash_object.rhtml +0 -0
  409. data/vendor/rails/actionpack/test/fixtures/test/_hello.builder +0 -1
  410. data/vendor/rails/actionpack/test/fixtures/test/_hello.rxml +0 -0
  411. data/vendor/rails/actionpack/test/fixtures/test/_partial.erb +0 -1
  412. data/vendor/rails/actionpack/test/fixtures/test/_partial.html.erb +0 -1
  413. data/vendor/rails/actionpack/test/fixtures/test/_partial.js.erb +0 -1
  414. data/vendor/rails/actionpack/test/fixtures/test/_partial.rhtml +0 -0
  415. data/vendor/rails/actionpack/test/fixtures/test/_partial_only.erb +0 -1
  416. data/vendor/rails/actionpack/test/fixtures/test/_partial_only.rhtml +0 -0
  417. data/vendor/rails/actionpack/test/fixtures/test/_person.erb +0 -2
  418. data/vendor/rails/actionpack/test/fixtures/test/_person.rhtml +0 -0
  419. data/vendor/rails/actionpack/test/fixtures/test/action_talk_to_layout.erb +0 -2
  420. data/vendor/rails/actionpack/test/fixtures/test/action_talk_to_layout.rhtml +0 -0
  421. data/vendor/rails/actionpack/test/fixtures/test/block_content_for.erb +0 -2
  422. data/vendor/rails/actionpack/test/fixtures/test/block_content_for.rhtml +0 -0
  423. data/vendor/rails/actionpack/test/fixtures/test/capturing.erb +0 -4
  424. data/vendor/rails/actionpack/test/fixtures/test/capturing.rhtml +0 -0
  425. data/vendor/rails/actionpack/test/fixtures/test/content_for.erb +0 -2
  426. data/vendor/rails/actionpack/test/fixtures/test/content_for.rhtml +0 -0
  427. data/vendor/rails/actionpack/test/fixtures/test/delete_with_js.rjs +0 -2
  428. data/vendor/rails/actionpack/test/fixtures/test/dot.directory/render_file_with_ivar.erb +0 -1
  429. data/vendor/rails/actionpack/test/fixtures/test/dot.directory/render_file_with_ivar.rhtml +0 -0
  430. data/vendor/rails/actionpack/test/fixtures/test/enum_rjs_test.rjs +0 -6
  431. data/vendor/rails/actionpack/test/fixtures/test/erb_content_for.erb +0 -2
  432. data/vendor/rails/actionpack/test/fixtures/test/erb_content_for.rhtml +0 -0
  433. data/vendor/rails/actionpack/test/fixtures/test/formatted_html_erb.html.erb +0 -1
  434. data/vendor/rails/actionpack/test/fixtures/test/formatted_xml_erb.builder +0 -1
  435. data/vendor/rails/actionpack/test/fixtures/test/formatted_xml_erb.html.erb +0 -1
  436. data/vendor/rails/actionpack/test/fixtures/test/formatted_xml_erb.xml.erb +0 -1
  437. data/vendor/rails/actionpack/test/fixtures/test/greeting.erb +0 -1
  438. data/vendor/rails/actionpack/test/fixtures/test/greeting.rhtml +0 -0
  439. data/vendor/rails/actionpack/test/fixtures/test/hello.builder +0 -4
  440. data/vendor/rails/actionpack/test/fixtures/test/hello.rxml +0 -0
  441. data/vendor/rails/actionpack/test/fixtures/test/hello_world.builder +0 -4
  442. data/vendor/rails/actionpack/test/fixtures/test/hello_world.erb +0 -1
  443. data/vendor/rails/actionpack/test/fixtures/test/hello_world.rhtml +0 -0
  444. data/vendor/rails/actionpack/test/fixtures/test/hello_world.rxml +0 -0
  445. data/vendor/rails/actionpack/test/fixtures/test/hello_world_container.builder +0 -3
  446. data/vendor/rails/actionpack/test/fixtures/test/hello_world_container.rxml +0 -0
  447. data/vendor/rails/actionpack/test/fixtures/test/hello_world_with_layout_false.erb +0 -1
  448. data/vendor/rails/actionpack/test/fixtures/test/hello_world_with_layout_false.rhtml +0 -0
  449. data/vendor/rails/actionpack/test/fixtures/test/hello_xml_world.builder +0 -11
  450. data/vendor/rails/actionpack/test/fixtures/test/hello_xml_world.rxml +0 -0
  451. data/vendor/rails/actionpack/test/fixtures/test/list.erb +0 -1
  452. data/vendor/rails/actionpack/test/fixtures/test/list.rhtml +0 -0
  453. data/vendor/rails/actionpack/test/fixtures/test/non_erb_block_content_for.builder +0 -4
  454. data/vendor/rails/actionpack/test/fixtures/test/non_erb_block_content_for.rxml +0 -0
  455. data/vendor/rails/actionpack/test/fixtures/test/potential_conflicts.erb +0 -4
  456. data/vendor/rails/actionpack/test/fixtures/test/potential_conflicts.rhtml +0 -0
  457. data/vendor/rails/actionpack/test/fixtures/test/render_file_with_ivar.erb +0 -1
  458. data/vendor/rails/actionpack/test/fixtures/test/render_file_with_ivar.rhtml +0 -0
  459. data/vendor/rails/actionpack/test/fixtures/test/render_file_with_locals.erb +0 -1
  460. data/vendor/rails/actionpack/test/fixtures/test/render_file_with_locals.rhtml +0 -0
  461. data/vendor/rails/actionpack/test/fixtures/test/render_to_string_test.erb +0 -1
  462. data/vendor/rails/actionpack/test/fixtures/test/render_to_string_test.rhtml +0 -0
  463. data/vendor/rails/actionpack/test/fixtures/test/update_element_with_capture.erb +0 -9
  464. data/vendor/rails/actionpack/test/fixtures/test/update_element_with_capture.rhtml +0 -0
  465. data/vendor/rails/actionpack/test/fixtures/topic.rb +0 -3
  466. data/vendor/rails/actionpack/test/fixtures/topics.yml +0 -22
  467. data/vendor/rails/actionpack/test/template/active_record_helper_test.rb +0 -197
  468. data/vendor/rails/actionpack/test/template/asset_tag_helper_test.rb +0 -367
  469. data/vendor/rails/actionpack/test/template/benchmark_helper_test.rb +0 -72
  470. data/vendor/rails/actionpack/test/template/compiled_templates_test.rb +0 -168
  471. data/vendor/rails/actionpack/test/template/date_helper_test.rb +0 -1394
  472. data/vendor/rails/actionpack/test/template/form_helper_test.rb +0 -611
  473. data/vendor/rails/actionpack/test/template/form_options_helper_test.rb +0 -489
  474. data/vendor/rails/actionpack/test/template/form_tag_helper_test.rb +0 -149
  475. data/vendor/rails/actionpack/test/template/java_script_macros_helper_test.rb +0 -109
  476. data/vendor/rails/actionpack/test/template/javascript_helper_test.rb +0 -67
  477. data/vendor/rails/actionpack/test/template/number_helper_test.rb +0 -89
  478. data/vendor/rails/actionpack/test/template/prototype_helper_test.rb +0 -556
  479. data/vendor/rails/actionpack/test/template/scriptaculous_helper_test.rb +0 -90
  480. data/vendor/rails/actionpack/test/template/tag_helper_test.rb +0 -74
  481. data/vendor/rails/actionpack/test/template/text_helper_test.rb +0 -356
  482. data/vendor/rails/actionpack/test/template/url_helper_test.rb +0 -423
  483. data/vendor/rails/actionpack/test/testing_sandbox.rb +0 -11
  484. data/vendor/rails/activerecord/CHANGELOG +0 -3195
  485. data/vendor/rails/activerecord/MIT-LICENSE +0 -20
  486. data/vendor/rails/activerecord/README +0 -360
  487. data/vendor/rails/activerecord/RUNNING_UNIT_TESTS +0 -64
  488. data/vendor/rails/activerecord/Rakefile +0 -223
  489. data/vendor/rails/activerecord/benchmarks/benchmark.rb +0 -26
  490. data/vendor/rails/activerecord/benchmarks/mysql_benchmark.rb +0 -19
  491. data/vendor/rails/activerecord/examples/associations.png +0 -0
  492. data/vendor/rails/activerecord/examples/associations.rb +0 -87
  493. data/vendor/rails/activerecord/examples/shared_setup.rb +0 -15
  494. data/vendor/rails/activerecord/examples/validation.rb +0 -85
  495. data/vendor/rails/activerecord/install.rb +0 -30
  496. data/vendor/rails/activerecord/lib/active_record.rb +0 -85
  497. data/vendor/rails/activerecord/lib/active_record/acts/list.rb +0 -253
  498. data/vendor/rails/activerecord/lib/active_record/acts/nested_set.rb +0 -211
  499. data/vendor/rails/activerecord/lib/active_record/acts/tree.rb +0 -96
  500. data/vendor/rails/activerecord/lib/active_record/aggregations.rb +0 -191
  501. data/vendor/rails/activerecord/lib/active_record/associations.rb +0 -1701
  502. data/vendor/rails/activerecord/lib/active_record/associations/association_collection.rb +0 -212
  503. data/vendor/rails/activerecord/lib/active_record/associations/association_proxy.rb +0 -162
  504. data/vendor/rails/activerecord/lib/active_record/associations/belongs_to_association.rb +0 -56
  505. data/vendor/rails/activerecord/lib/active_record/associations/belongs_to_polymorphic_association.rb +0 -50
  506. data/vendor/rails/activerecord/lib/active_record/associations/has_and_belongs_to_many_association.rb +0 -163
  507. data/vendor/rails/activerecord/lib/active_record/associations/has_many_association.rb +0 -196
  508. data/vendor/rails/activerecord/lib/active_record/associations/has_many_through_association.rb +0 -245
  509. data/vendor/rails/activerecord/lib/active_record/associations/has_one_association.rb +0 -96
  510. data/vendor/rails/activerecord/lib/active_record/attribute_methods.rb +0 -75
  511. data/vendor/rails/activerecord/lib/active_record/base.rb +0 -2276
  512. data/vendor/rails/activerecord/lib/active_record/calculations.rb +0 -274
  513. data/vendor/rails/activerecord/lib/active_record/callbacks.rb +0 -371
  514. data/vendor/rails/activerecord/lib/active_record/connection_adapters/abstract/connection_specification.rb +0 -279
  515. data/vendor/rails/activerecord/lib/active_record/connection_adapters/abstract/database_statements.rb +0 -135
  516. data/vendor/rails/activerecord/lib/active_record/connection_adapters/abstract/quoting.rb +0 -61
  517. data/vendor/rails/activerecord/lib/active_record/connection_adapters/abstract/schema_definitions.rb +0 -393
  518. data/vendor/rails/activerecord/lib/active_record/connection_adapters/abstract/schema_statements.rb +0 -303
  519. data/vendor/rails/activerecord/lib/active_record/connection_adapters/abstract_adapter.rb +0 -157
  520. data/vendor/rails/activerecord/lib/active_record/connection_adapters/db2_adapter.rb +0 -228
  521. data/vendor/rails/activerecord/lib/active_record/connection_adapters/firebird_adapter.rb +0 -728
  522. data/vendor/rails/activerecord/lib/active_record/connection_adapters/frontbase_adapter.rb +0 -863
  523. data/vendor/rails/activerecord/lib/active_record/connection_adapters/mysql_adapter.rb +0 -421
  524. data/vendor/rails/activerecord/lib/active_record/connection_adapters/openbase_adapter.rb +0 -349
  525. data/vendor/rails/activerecord/lib/active_record/connection_adapters/oracle_adapter.rb +0 -710
  526. data/vendor/rails/activerecord/lib/active_record/connection_adapters/postgresql_adapter.rb +0 -582
  527. data/vendor/rails/activerecord/lib/active_record/connection_adapters/sqlite_adapter.rb +0 -415
  528. data/vendor/rails/activerecord/lib/active_record/connection_adapters/sqlserver_adapter.rb +0 -606
  529. data/vendor/rails/activerecord/lib/active_record/connection_adapters/sybase_adapter.rb +0 -666
  530. data/vendor/rails/activerecord/lib/active_record/deprecated_associations.rb +0 -104
  531. data/vendor/rails/activerecord/lib/active_record/deprecated_finders.rb +0 -44
  532. data/vendor/rails/activerecord/lib/active_record/fixtures.rb +0 -639
  533. data/vendor/rails/activerecord/lib/active_record/locking/optimistic.rb +0 -137
  534. data/vendor/rails/activerecord/lib/active_record/locking/pessimistic.rb +0 -77
  535. data/vendor/rails/activerecord/lib/active_record/migration.rb +0 -393
  536. data/vendor/rails/activerecord/lib/active_record/observer.rb +0 -178
  537. data/vendor/rails/activerecord/lib/active_record/query_cache.rb +0 -111
  538. data/vendor/rails/activerecord/lib/active_record/reflection.rb +0 -219
  539. data/vendor/rails/activerecord/lib/active_record/schema.rb +0 -58
  540. data/vendor/rails/activerecord/lib/active_record/schema_dumper.rb +0 -164
  541. data/vendor/rails/activerecord/lib/active_record/timestamp.rb +0 -50
  542. data/vendor/rails/activerecord/lib/active_record/transactions.rb +0 -128
  543. data/vendor/rails/activerecord/lib/active_record/validations.rb +0 -902
  544. data/vendor/rails/activerecord/lib/active_record/vendor/db2.rb +0 -362
  545. data/vendor/rails/activerecord/lib/active_record/vendor/mysql.rb +0 -1214
  546. data/vendor/rails/activerecord/lib/active_record/version.rb +0 -9
  547. data/vendor/rails/activerecord/lib/active_record/wrappers/yaml_wrapper.rb +0 -15
  548. data/vendor/rails/activerecord/lib/active_record/wrappings.rb +0 -58
  549. data/vendor/rails/activerecord/lib/active_record/xml_serialization.rb +0 -327
  550. data/vendor/rails/activerecord/test/aaa_create_tables_test.rb +0 -59
  551. data/vendor/rails/activerecord/test/abstract_unit.rb +0 -79
  552. data/vendor/rails/activerecord/test/active_schema_test_mysql.rb +0 -31
  553. data/vendor/rails/activerecord/test/adapter_test.rb +0 -87
  554. data/vendor/rails/activerecord/test/adapter_test_sqlserver.rb +0 -95
  555. data/vendor/rails/activerecord/test/aggregations_test.rb +0 -95
  556. data/vendor/rails/activerecord/test/all.sh +0 -8
  557. data/vendor/rails/activerecord/test/ar_schema_test.rb +0 -33
  558. data/vendor/rails/activerecord/test/association_inheritance_reload.rb +0 -14
  559. data/vendor/rails/activerecord/test/associations/callbacks_test.rb +0 -126
  560. data/vendor/rails/activerecord/test/associations/cascaded_eager_loading_test.rb +0 -138
  561. data/vendor/rails/activerecord/test/associations/eager_singularization_test.rb +0 -145
  562. data/vendor/rails/activerecord/test/associations/eager_test.rb +0 -393
  563. data/vendor/rails/activerecord/test/associations/extension_test.rb +0 -42
  564. data/vendor/rails/activerecord/test/associations/join_model_test.rb +0 -497
  565. data/vendor/rails/activerecord/test/associations_test.rb +0 -1880
  566. data/vendor/rails/activerecord/test/attribute_methods_test.rb +0 -49
  567. data/vendor/rails/activerecord/test/base_test.rb +0 -1656
  568. data/vendor/rails/activerecord/test/binary_test.rb +0 -37
  569. data/vendor/rails/activerecord/test/calculations_test.rb +0 -219
  570. data/vendor/rails/activerecord/test/callbacks_test.rb +0 -400
  571. data/vendor/rails/activerecord/test/class_inheritable_attributes_test.rb +0 -32
  572. data/vendor/rails/activerecord/test/column_alias_test.rb +0 -17
  573. data/vendor/rails/activerecord/test/connection_test_firebird.rb +0 -8
  574. data/vendor/rails/activerecord/test/connections/native_db2/connection.rb +0 -25
  575. data/vendor/rails/activerecord/test/connections/native_firebird/connection.rb +0 -26
  576. data/vendor/rails/activerecord/test/connections/native_frontbase/connection.rb +0 -27
  577. data/vendor/rails/activerecord/test/connections/native_mysql/connection.rb +0 -27
  578. data/vendor/rails/activerecord/test/connections/native_openbase/connection.rb +0 -21
  579. data/vendor/rails/activerecord/test/connections/native_oracle/connection.rb +0 -27
  580. data/vendor/rails/activerecord/test/connections/native_postgresql/connection.rb +0 -23
  581. data/vendor/rails/activerecord/test/connections/native_sqlite/connection.rb +0 -25
  582. data/vendor/rails/activerecord/test/connections/native_sqlite3/connection.rb +0 -25
  583. data/vendor/rails/activerecord/test/connections/native_sqlite3/in_memory_connection.rb +0 -18
  584. data/vendor/rails/activerecord/test/connections/native_sqlserver/connection.rb +0 -23
  585. data/vendor/rails/activerecord/test/connections/native_sqlserver_odbc/connection.rb +0 -25
  586. data/vendor/rails/activerecord/test/connections/native_sybase/connection.rb +0 -23
  587. data/vendor/rails/activerecord/test/copy_table_test_sqlite.rb +0 -65
  588. data/vendor/rails/activerecord/test/datatype_test_postgresql.rb +0 -52
  589. data/vendor/rails/activerecord/test/default_test_firebird.rb +0 -16
  590. data/vendor/rails/activerecord/test/defaults_test.rb +0 -60
  591. data/vendor/rails/activerecord/test/deprecated_associations_test.rb +0 -396
  592. data/vendor/rails/activerecord/test/deprecated_finder_test.rb +0 -151
  593. data/vendor/rails/activerecord/test/empty_date_time_test.rb +0 -25
  594. data/vendor/rails/activerecord/test/finder_test.rb +0 -523
  595. data/vendor/rails/activerecord/test/fixtures/accounts.yml +0 -28
  596. data/vendor/rails/activerecord/test/fixtures/all/developers.yml +0 -0
  597. data/vendor/rails/activerecord/test/fixtures/all/people.csv +0 -0
  598. data/vendor/rails/activerecord/test/fixtures/all/tasks.yml +0 -0
  599. data/vendor/rails/activerecord/test/fixtures/author.rb +0 -99
  600. data/vendor/rails/activerecord/test/fixtures/author_favorites.yml +0 -4
  601. data/vendor/rails/activerecord/test/fixtures/authors.yml +0 -7
  602. data/vendor/rails/activerecord/test/fixtures/auto_id.rb +0 -4
  603. data/vendor/rails/activerecord/test/fixtures/bad_fixtures/attr_with_numeric_first_char +0 -1
  604. data/vendor/rails/activerecord/test/fixtures/bad_fixtures/attr_with_spaces +0 -1
  605. data/vendor/rails/activerecord/test/fixtures/bad_fixtures/blank_line +0 -3
  606. data/vendor/rails/activerecord/test/fixtures/bad_fixtures/duplicate_attributes +0 -3
  607. data/vendor/rails/activerecord/test/fixtures/bad_fixtures/missing_value +0 -1
  608. data/vendor/rails/activerecord/test/fixtures/binary.rb +0 -2
  609. data/vendor/rails/activerecord/test/fixtures/categories.yml +0 -14
  610. data/vendor/rails/activerecord/test/fixtures/categories/special_categories.yml +0 -9
  611. data/vendor/rails/activerecord/test/fixtures/categories/subsubdir/arbitrary_filename.yml +0 -4
  612. data/vendor/rails/activerecord/test/fixtures/categories_ordered.yml +0 -7
  613. data/vendor/rails/activerecord/test/fixtures/categories_posts.yml +0 -23
  614. data/vendor/rails/activerecord/test/fixtures/categorization.rb +0 -5
  615. data/vendor/rails/activerecord/test/fixtures/categorizations.yml +0 -17
  616. data/vendor/rails/activerecord/test/fixtures/category.rb +0 -20
  617. data/vendor/rails/activerecord/test/fixtures/column_name.rb +0 -3
  618. data/vendor/rails/activerecord/test/fixtures/comment.rb +0 -23
  619. data/vendor/rails/activerecord/test/fixtures/comments.yml +0 -59
  620. data/vendor/rails/activerecord/test/fixtures/companies.yml +0 -55
  621. data/vendor/rails/activerecord/test/fixtures/company.rb +0 -111
  622. data/vendor/rails/activerecord/test/fixtures/company_in_module.rb +0 -59
  623. data/vendor/rails/activerecord/test/fixtures/computer.rb +0 -3
  624. data/vendor/rails/activerecord/test/fixtures/computers.yml +0 -4
  625. data/vendor/rails/activerecord/test/fixtures/course.rb +0 -3
  626. data/vendor/rails/activerecord/test/fixtures/courses.yml +0 -7
  627. data/vendor/rails/activerecord/test/fixtures/customer.rb +0 -55
  628. data/vendor/rails/activerecord/test/fixtures/customers.yml +0 -17
  629. data/vendor/rails/activerecord/test/fixtures/db_definitions/db2.drop.sql +0 -32
  630. data/vendor/rails/activerecord/test/fixtures/db_definitions/db2.sql +0 -231
  631. data/vendor/rails/activerecord/test/fixtures/db_definitions/db22.drop.sql +0 -2
  632. data/vendor/rails/activerecord/test/fixtures/db_definitions/db22.sql +0 -5
  633. data/vendor/rails/activerecord/test/fixtures/db_definitions/firebird.drop.sql +0 -63
  634. data/vendor/rails/activerecord/test/fixtures/db_definitions/firebird.sql +0 -304
  635. data/vendor/rails/activerecord/test/fixtures/db_definitions/firebird2.drop.sql +0 -2
  636. data/vendor/rails/activerecord/test/fixtures/db_definitions/firebird2.sql +0 -6
  637. data/vendor/rails/activerecord/test/fixtures/db_definitions/frontbase.drop.sql +0 -32
  638. data/vendor/rails/activerecord/test/fixtures/db_definitions/frontbase.sql +0 -268
  639. data/vendor/rails/activerecord/test/fixtures/db_definitions/frontbase2.drop.sql +0 -1
  640. data/vendor/rails/activerecord/test/fixtures/db_definitions/frontbase2.sql +0 -4
  641. data/vendor/rails/activerecord/test/fixtures/db_definitions/mysql.drop.sql +0 -32
  642. data/vendor/rails/activerecord/test/fixtures/db_definitions/mysql.sql +0 -234
  643. data/vendor/rails/activerecord/test/fixtures/db_definitions/mysql2.drop.sql +0 -2
  644. data/vendor/rails/activerecord/test/fixtures/db_definitions/mysql2.sql +0 -5
  645. data/vendor/rails/activerecord/test/fixtures/db_definitions/openbase.drop.sql +0 -2
  646. data/vendor/rails/activerecord/test/fixtures/db_definitions/openbase.sql +0 -302
  647. data/vendor/rails/activerecord/test/fixtures/db_definitions/openbase2.drop.sql +0 -2
  648. data/vendor/rails/activerecord/test/fixtures/db_definitions/openbase2.sql +0 -7
  649. data/vendor/rails/activerecord/test/fixtures/db_definitions/oracle.drop.sql +0 -65
  650. data/vendor/rails/activerecord/test/fixtures/db_definitions/oracle.sql +0 -325
  651. data/vendor/rails/activerecord/test/fixtures/db_definitions/oracle2.drop.sql +0 -2
  652. data/vendor/rails/activerecord/test/fixtures/db_definitions/oracle2.sql +0 -6
  653. data/vendor/rails/activerecord/test/fixtures/db_definitions/postgresql.drop.sql +0 -37
  654. data/vendor/rails/activerecord/test/fixtures/db_definitions/postgresql.sql +0 -247
  655. data/vendor/rails/activerecord/test/fixtures/db_definitions/postgresql2.drop.sql +0 -2
  656. data/vendor/rails/activerecord/test/fixtures/db_definitions/postgresql2.sql +0 -4
  657. data/vendor/rails/activerecord/test/fixtures/db_definitions/schema.rb +0 -74
  658. data/vendor/rails/activerecord/test/fixtures/db_definitions/sqlite.drop.sql +0 -32
  659. data/vendor/rails/activerecord/test/fixtures/db_definitions/sqlite.sql +0 -215
  660. data/vendor/rails/activerecord/test/fixtures/db_definitions/sqlite2.drop.sql +0 -2
  661. data/vendor/rails/activerecord/test/fixtures/db_definitions/sqlite2.sql +0 -5
  662. data/vendor/rails/activerecord/test/fixtures/db_definitions/sqlserver.drop.sql +0 -34
  663. data/vendor/rails/activerecord/test/fixtures/db_definitions/sqlserver.sql +0 -243
  664. data/vendor/rails/activerecord/test/fixtures/db_definitions/sqlserver2.drop.sql +0 -2
  665. data/vendor/rails/activerecord/test/fixtures/db_definitions/sqlserver2.sql +0 -5
  666. data/vendor/rails/activerecord/test/fixtures/db_definitions/sybase.drop.sql +0 -34
  667. data/vendor/rails/activerecord/test/fixtures/db_definitions/sybase.sql +0 -218
  668. data/vendor/rails/activerecord/test/fixtures/db_definitions/sybase2.drop.sql +0 -4
  669. data/vendor/rails/activerecord/test/fixtures/db_definitions/sybase2.sql +0 -5
  670. data/vendor/rails/activerecord/test/fixtures/default.rb +0 -2
  671. data/vendor/rails/activerecord/test/fixtures/developer.rb +0 -52
  672. data/vendor/rails/activerecord/test/fixtures/developers.yml +0 -21
  673. data/vendor/rails/activerecord/test/fixtures/developers_projects.yml +0 -17
  674. data/vendor/rails/activerecord/test/fixtures/developers_projects/david_action_controller +0 -3
  675. data/vendor/rails/activerecord/test/fixtures/developers_projects/david_active_record +0 -3
  676. data/vendor/rails/activerecord/test/fixtures/developers_projects/jamis_active_record +0 -2
  677. data/vendor/rails/activerecord/test/fixtures/edge.rb +0 -5
  678. data/vendor/rails/activerecord/test/fixtures/edges.yml +0 -6
  679. data/vendor/rails/activerecord/test/fixtures/entrant.rb +0 -3
  680. data/vendor/rails/activerecord/test/fixtures/entrants.yml +0 -14
  681. data/vendor/rails/activerecord/test/fixtures/fk_test_has_fk.yml +0 -3
  682. data/vendor/rails/activerecord/test/fixtures/fk_test_has_pk.yml +0 -2
  683. data/vendor/rails/activerecord/test/fixtures/flowers.jpg +0 -0
  684. data/vendor/rails/activerecord/test/fixtures/funny_jokes.yml +0 -10
  685. data/vendor/rails/activerecord/test/fixtures/joke.rb +0 -6
  686. data/vendor/rails/activerecord/test/fixtures/keyboard.rb +0 -3
  687. data/vendor/rails/activerecord/test/fixtures/legacy_thing.rb +0 -3
  688. data/vendor/rails/activerecord/test/fixtures/legacy_things.yml +0 -3
  689. data/vendor/rails/activerecord/test/fixtures/migrations/1_people_have_last_names.rb +0 -9
  690. data/vendor/rails/activerecord/test/fixtures/migrations/2_we_need_reminders.rb +0 -12
  691. data/vendor/rails/activerecord/test/fixtures/migrations/3_innocent_jointable.rb +0 -12
  692. data/vendor/rails/activerecord/test/fixtures/migrations_with_decimal/1_give_me_big_numbers.rb +0 -15
  693. data/vendor/rails/activerecord/test/fixtures/migrations_with_duplicate/1_people_have_last_names.rb +0 -9
  694. data/vendor/rails/activerecord/test/fixtures/migrations_with_duplicate/2_we_need_reminders.rb +0 -12
  695. data/vendor/rails/activerecord/test/fixtures/migrations_with_duplicate/3_foo.rb +0 -7
  696. data/vendor/rails/activerecord/test/fixtures/migrations_with_duplicate/3_innocent_jointable.rb +0 -12
  697. data/vendor/rails/activerecord/test/fixtures/migrations_with_missing_versions/1000_people_have_middle_names.rb +0 -9
  698. data/vendor/rails/activerecord/test/fixtures/migrations_with_missing_versions/1_people_have_last_names.rb +0 -9
  699. data/vendor/rails/activerecord/test/fixtures/migrations_with_missing_versions/3_we_need_reminders.rb +0 -12
  700. data/vendor/rails/activerecord/test/fixtures/migrations_with_missing_versions/4_innocent_jointable.rb +0 -12
  701. data/vendor/rails/activerecord/test/fixtures/mixed_case_monkey.rb +0 -3
  702. data/vendor/rails/activerecord/test/fixtures/mixed_case_monkeys.yml +0 -6
  703. data/vendor/rails/activerecord/test/fixtures/mixin.rb +0 -63
  704. data/vendor/rails/activerecord/test/fixtures/mixins.yml +0 -127
  705. data/vendor/rails/activerecord/test/fixtures/movie.rb +0 -5
  706. data/vendor/rails/activerecord/test/fixtures/movies.yml +0 -7
  707. data/vendor/rails/activerecord/test/fixtures/naked/csv/accounts.csv +0 -1
  708. data/vendor/rails/activerecord/test/fixtures/naked/yml/accounts.yml +0 -1
  709. data/vendor/rails/activerecord/test/fixtures/naked/yml/companies.yml +0 -1
  710. data/vendor/rails/activerecord/test/fixtures/naked/yml/courses.yml +0 -1
  711. data/vendor/rails/activerecord/test/fixtures/order.rb +0 -4
  712. data/vendor/rails/activerecord/test/fixtures/people.yml +0 -3
  713. data/vendor/rails/activerecord/test/fixtures/person.rb +0 -4
  714. data/vendor/rails/activerecord/test/fixtures/post.rb +0 -58
  715. data/vendor/rails/activerecord/test/fixtures/posts.yml +0 -48
  716. data/vendor/rails/activerecord/test/fixtures/project.rb +0 -27
  717. data/vendor/rails/activerecord/test/fixtures/projects.yml +0 -7
  718. data/vendor/rails/activerecord/test/fixtures/reader.rb +0 -4
  719. data/vendor/rails/activerecord/test/fixtures/readers.yml +0 -4
  720. data/vendor/rails/activerecord/test/fixtures/reply.rb +0 -37
  721. data/vendor/rails/activerecord/test/fixtures/subject.rb +0 -4
  722. data/vendor/rails/activerecord/test/fixtures/subscriber.rb +0 -6
  723. data/vendor/rails/activerecord/test/fixtures/subscribers/first +0 -2
  724. data/vendor/rails/activerecord/test/fixtures/subscribers/second +0 -2
  725. data/vendor/rails/activerecord/test/fixtures/tag.rb +0 -7
  726. data/vendor/rails/activerecord/test/fixtures/tagging.rb +0 -6
  727. data/vendor/rails/activerecord/test/fixtures/taggings.yml +0 -18
  728. data/vendor/rails/activerecord/test/fixtures/tags.yml +0 -7
  729. data/vendor/rails/activerecord/test/fixtures/task.rb +0 -3
  730. data/vendor/rails/activerecord/test/fixtures/tasks.yml +0 -7
  731. data/vendor/rails/activerecord/test/fixtures/topic.rb +0 -25
  732. data/vendor/rails/activerecord/test/fixtures/topics.yml +0 -22
  733. data/vendor/rails/activerecord/test/fixtures/vertex.rb +0 -9
  734. data/vendor/rails/activerecord/test/fixtures/vertices.yml +0 -4
  735. data/vendor/rails/activerecord/test/fixtures_test.rb +0 -410
  736. data/vendor/rails/activerecord/test/inheritance_test.rb +0 -212
  737. data/vendor/rails/activerecord/test/lifecycle_test.rb +0 -137
  738. data/vendor/rails/activerecord/test/locking_test.rb +0 -241
  739. data/vendor/rails/activerecord/test/method_scoping_test.rb +0 -416
  740. data/vendor/rails/activerecord/test/migration_test.rb +0 -781
  741. data/vendor/rails/activerecord/test/migration_test_firebird.rb +0 -124
  742. data/vendor/rails/activerecord/test/mixin_nested_set_test.rb +0 -196
  743. data/vendor/rails/activerecord/test/mixin_test.rb +0 -550
  744. data/vendor/rails/activerecord/test/modules_test.rb +0 -34
  745. data/vendor/rails/activerecord/test/multiple_db_test.rb +0 -60
  746. data/vendor/rails/activerecord/test/pk_test.rb +0 -101
  747. data/vendor/rails/activerecord/test/query_cache_test.rb +0 -107
  748. data/vendor/rails/activerecord/test/readonly_test.rb +0 -107
  749. data/vendor/rails/activerecord/test/reflection_test.rb +0 -166
  750. data/vendor/rails/activerecord/test/schema_authorization_test_postgresql.rb +0 -75
  751. data/vendor/rails/activerecord/test/schema_dumper_test.rb +0 -124
  752. data/vendor/rails/activerecord/test/schema_test_postgresql.rb +0 -64
  753. data/vendor/rails/activerecord/test/synonym_test_oracle.rb +0 -17
  754. data/vendor/rails/activerecord/test/table_name_test_sqlserver.rb +0 -23
  755. data/vendor/rails/activerecord/test/threaded_connections_test.rb +0 -48
  756. data/vendor/rails/activerecord/test/transactions_test.rb +0 -268
  757. data/vendor/rails/activerecord/test/unconnected_test.rb +0 -32
  758. data/vendor/rails/activerecord/test/validations_test.rb +0 -1131
  759. data/vendor/rails/activerecord/test/xml_serialization_test.rb +0 -153
  760. data/vendor/rails/activeresource/CHANGELOG +0 -177
  761. data/vendor/rails/activeresource/MIT-LICENSE +0 -20
  762. data/vendor/rails/activeresource/README +0 -235
  763. data/vendor/rails/activeresource/Rakefile +0 -132
  764. data/vendor/rails/activeresource/lib/active_resource.rb +0 -47
  765. data/vendor/rails/activeresource/lib/active_resource/base.rb +0 -424
  766. data/vendor/rails/activeresource/lib/active_resource/connection.rb +0 -161
  767. data/vendor/rails/activeresource/lib/active_resource/custom_methods.rb +0 -104
  768. data/vendor/rails/activeresource/lib/active_resource/http_mock.rb +0 -131
  769. data/vendor/rails/activeresource/lib/active_resource/struct.rb +0 -16
  770. data/vendor/rails/activeresource/lib/active_resource/validations.rb +0 -161
  771. data/vendor/rails/activeresource/lib/active_resource/version.rb +0 -9
  772. data/vendor/rails/activeresource/test/abstract_unit.rb +0 -10
  773. data/vendor/rails/activeresource/test/authorization_test.rb +0 -82
  774. data/vendor/rails/activeresource/test/base/custom_methods_test.rb +0 -87
  775. data/vendor/rails/activeresource/test/base/equality_test.rb +0 -43
  776. data/vendor/rails/activeresource/test/base/load_test.rb +0 -111
  777. data/vendor/rails/activeresource/test/base_errors_test.rb +0 -35
  778. data/vendor/rails/activeresource/test/base_test.rb +0 -390
  779. data/vendor/rails/activeresource/test/connection_test.rb +0 -148
  780. data/vendor/rails/activeresource/test/fixtures/beast.rb +0 -14
  781. data/vendor/rails/activeresource/test/fixtures/person.rb +0 -3
  782. data/vendor/rails/activeresource/test/fixtures/street_address.rb +0 -4
  783. data/vendor/rails/activeresource/test/setter_trap.rb +0 -29
  784. data/vendor/rails/activesupport/CHANGELOG +0 -787
  785. data/vendor/rails/activesupport/MIT-LICENSE +0 -20
  786. data/vendor/rails/activesupport/README +0 -43
  787. data/vendor/rails/activesupport/Rakefile +0 -82
  788. data/vendor/rails/activesupport/install.rb +0 -30
  789. data/vendor/rails/activesupport/lib/active_support.rb +0 -46
  790. data/vendor/rails/activesupport/lib/active_support/caching_tools.rb +0 -62
  791. data/vendor/rails/activesupport/lib/active_support/clean_logger.rb +0 -78
  792. data/vendor/rails/activesupport/lib/active_support/core_ext.rb +0 -1
  793. data/vendor/rails/activesupport/lib/active_support/core_ext/array.rb +0 -7
  794. data/vendor/rails/activesupport/lib/active_support/core_ext/array/conversions.rb +0 -72
  795. data/vendor/rails/activesupport/lib/active_support/core_ext/array/grouping.rb +0 -55
  796. data/vendor/rails/activesupport/lib/active_support/core_ext/bigdecimal.rb +0 -3
  797. data/vendor/rails/activesupport/lib/active_support/core_ext/bigdecimal/formatting.rb +0 -7
  798. data/vendor/rails/activesupport/lib/active_support/core_ext/blank.rb +0 -50
  799. data/vendor/rails/activesupport/lib/active_support/core_ext/cgi.rb +0 -5
  800. data/vendor/rails/activesupport/lib/active_support/core_ext/cgi/escape_skipping_slashes.rb +0 -14
  801. data/vendor/rails/activesupport/lib/active_support/core_ext/class.rb +0 -3
  802. data/vendor/rails/activesupport/lib/active_support/core_ext/class/attribute_accessors.rb +0 -48
  803. data/vendor/rails/activesupport/lib/active_support/core_ext/class/inheritable_attributes.rb +0 -140
  804. data/vendor/rails/activesupport/lib/active_support/core_ext/class/removal.rb +0 -24
  805. data/vendor/rails/activesupport/lib/active_support/core_ext/date.rb +0 -10
  806. data/vendor/rails/activesupport/lib/active_support/core_ext/date/behavior.rb +0 -13
  807. data/vendor/rails/activesupport/lib/active_support/core_ext/date/calculations.rb +0 -45
  808. data/vendor/rails/activesupport/lib/active_support/core_ext/date/conversions.rb +0 -40
  809. data/vendor/rails/activesupport/lib/active_support/core_ext/date_time.rb +0 -8
  810. data/vendor/rails/activesupport/lib/active_support/core_ext/date_time/calculations.rb +0 -173
  811. data/vendor/rails/activesupport/lib/active_support/core_ext/date_time/conversions.rb +0 -33
  812. data/vendor/rails/activesupport/lib/active_support/core_ext/enumerable.rb +0 -62
  813. data/vendor/rails/activesupport/lib/active_support/core_ext/exception.rb +0 -33
  814. data/vendor/rails/activesupport/lib/active_support/core_ext/file.rb +0 -21
  815. data/vendor/rails/activesupport/lib/active_support/core_ext/hash.rb +0 -12
  816. data/vendor/rails/activesupport/lib/active_support/core_ext/hash/conversions.rb +0 -221
  817. data/vendor/rails/activesupport/lib/active_support/core_ext/hash/diff.rb +0 -11
  818. data/vendor/rails/activesupport/lib/active_support/core_ext/hash/indifferent_access.rb +0 -101
  819. data/vendor/rails/activesupport/lib/active_support/core_ext/hash/keys.rb +0 -53
  820. data/vendor/rails/activesupport/lib/active_support/core_ext/hash/reverse_merge.rb +0 -25
  821. data/vendor/rails/activesupport/lib/active_support/core_ext/hash/slice.rb +0 -28
  822. data/vendor/rails/activesupport/lib/active_support/core_ext/integer.rb +0 -7
  823. data/vendor/rails/activesupport/lib/active_support/core_ext/integer/even_odd.rb +0 -24
  824. data/vendor/rails/activesupport/lib/active_support/core_ext/integer/inflections.rb +0 -21
  825. data/vendor/rails/activesupport/lib/active_support/core_ext/kernel.rb +0 -5
  826. data/vendor/rails/activesupport/lib/active_support/core_ext/kernel/agnostics.rb +0 -11
  827. data/vendor/rails/activesupport/lib/active_support/core_ext/kernel/daemonizing.rb +0 -15
  828. data/vendor/rails/activesupport/lib/active_support/core_ext/kernel/debugger.rb +0 -13
  829. data/vendor/rails/activesupport/lib/active_support/core_ext/kernel/reporting.rb +0 -51
  830. data/vendor/rails/activesupport/lib/active_support/core_ext/kernel/requires.rb +0 -24
  831. data/vendor/rails/activesupport/lib/active_support/core_ext/load_error.rb +0 -38
  832. data/vendor/rails/activesupport/lib/active_support/core_ext/logger.rb +0 -16
  833. data/vendor/rails/activesupport/lib/active_support/core_ext/module.rb +0 -8
  834. data/vendor/rails/activesupport/lib/active_support/core_ext/module/aliasing.rb +0 -70
  835. data/vendor/rails/activesupport/lib/active_support/core_ext/module/attr_accessor_with_default.rb +0 -31
  836. data/vendor/rails/activesupport/lib/active_support/core_ext/module/attr_internal.rb +0 -31
  837. data/vendor/rails/activesupport/lib/active_support/core_ext/module/attribute_accessors.rb +0 -48
  838. data/vendor/rails/activesupport/lib/active_support/core_ext/module/delegation.rb +0 -41
  839. data/vendor/rails/activesupport/lib/active_support/core_ext/module/inclusion.rb +0 -11
  840. data/vendor/rails/activesupport/lib/active_support/core_ext/module/introspection.rb +0 -35
  841. data/vendor/rails/activesupport/lib/active_support/core_ext/module/loading.rb +0 -13
  842. data/vendor/rails/activesupport/lib/active_support/core_ext/name_error.rb +0 -17
  843. data/vendor/rails/activesupport/lib/active_support/core_ext/numeric.rb +0 -7
  844. data/vendor/rails/activesupport/lib/active_support/core_ext/numeric/bytes.rb +0 -44
  845. data/vendor/rails/activesupport/lib/active_support/core_ext/numeric/time.rb +0 -91
  846. data/vendor/rails/activesupport/lib/active_support/core_ext/object.rb +0 -2
  847. data/vendor/rails/activesupport/lib/active_support/core_ext/object/extending.rb +0 -47
  848. data/vendor/rails/activesupport/lib/active_support/core_ext/object/misc.rb +0 -54
  849. data/vendor/rails/activesupport/lib/active_support/core_ext/pathname.rb +0 -7
  850. data/vendor/rails/activesupport/lib/active_support/core_ext/pathname/clean_within.rb +0 -14
  851. data/vendor/rails/activesupport/lib/active_support/core_ext/proc.rb +0 -12
  852. data/vendor/rails/activesupport/lib/active_support/core_ext/range.rb +0 -5
  853. data/vendor/rails/activesupport/lib/active_support/core_ext/range/conversions.rb +0 -21
  854. data/vendor/rails/activesupport/lib/active_support/core_ext/string.rb +0 -15
  855. data/vendor/rails/activesupport/lib/active_support/core_ext/string/access.rb +0 -58
  856. data/vendor/rails/activesupport/lib/active_support/core_ext/string/conversions.rb +0 -19
  857. data/vendor/rails/activesupport/lib/active_support/core_ext/string/inflections.rb +0 -153
  858. data/vendor/rails/activesupport/lib/active_support/core_ext/string/iterators.rb +0 -17
  859. data/vendor/rails/activesupport/lib/active_support/core_ext/string/starts_ends_with.rb +0 -20
  860. data/vendor/rails/activesupport/lib/active_support/core_ext/string/unicode.rb +0 -42
  861. data/vendor/rails/activesupport/lib/active_support/core_ext/symbol.rb +0 -12
  862. data/vendor/rails/activesupport/lib/active_support/core_ext/test.rb +0 -2
  863. data/vendor/rails/activesupport/lib/active_support/core_ext/test/difference.rb +0 -40
  864. data/vendor/rails/activesupport/lib/active_support/core_ext/time.rb +0 -19
  865. data/vendor/rails/activesupport/lib/active_support/core_ext/time/behavior.rb +0 -13
  866. data/vendor/rails/activesupport/lib/active_support/core_ext/time/calculations.rb +0 -239
  867. data/vendor/rails/activesupport/lib/active_support/core_ext/time/conversions.rb +0 -39
  868. data/vendor/rails/activesupport/lib/active_support/dependencies.rb +0 -539
  869. data/vendor/rails/activesupport/lib/active_support/deprecation.rb +0 -202
  870. data/vendor/rails/activesupport/lib/active_support/duration.rb +0 -89
  871. data/vendor/rails/activesupport/lib/active_support/inflections.rb +0 -52
  872. data/vendor/rails/activesupport/lib/active_support/inflector.rb +0 -275
  873. data/vendor/rails/activesupport/lib/active_support/json.rb +0 -31
  874. data/vendor/rails/activesupport/lib/active_support/json/decoding.rb +0 -40
  875. data/vendor/rails/activesupport/lib/active_support/json/encoders/enumerable.rb +0 -5
  876. data/vendor/rails/activesupport/lib/active_support/json/encoders/false_class.rb +0 -5
  877. data/vendor/rails/activesupport/lib/active_support/json/encoders/hash.rb +0 -12
  878. data/vendor/rails/activesupport/lib/active_support/json/encoders/nil_class.rb +0 -5
  879. data/vendor/rails/activesupport/lib/active_support/json/encoders/numeric.rb +0 -5
  880. data/vendor/rails/activesupport/lib/active_support/json/encoders/object.rb +0 -10
  881. data/vendor/rails/activesupport/lib/active_support/json/encoders/regexp.rb +0 -5
  882. data/vendor/rails/activesupport/lib/active_support/json/encoders/string.rb +0 -27
  883. data/vendor/rails/activesupport/lib/active_support/json/encoders/symbol.rb +0 -5
  884. data/vendor/rails/activesupport/lib/active_support/json/encoders/true_class.rb +0 -5
  885. data/vendor/rails/activesupport/lib/active_support/json/encoding.rb +0 -45
  886. data/vendor/rails/activesupport/lib/active_support/json/variable.rb +0 -10
  887. data/vendor/rails/activesupport/lib/active_support/multibyte.rb +0 -7
  888. data/vendor/rails/activesupport/lib/active_support/multibyte/chars.rb +0 -129
  889. data/vendor/rails/activesupport/lib/active_support/multibyte/generators/generate_tables.rb +0 -149
  890. data/vendor/rails/activesupport/lib/active_support/multibyte/handlers/passthru_handler.rb +0 -9
  891. data/vendor/rails/activesupport/lib/active_support/multibyte/handlers/utf8_handler.rb +0 -458
  892. data/vendor/rails/activesupport/lib/active_support/multibyte/handlers/utf8_handler_proc.rb +0 -43
  893. data/vendor/rails/activesupport/lib/active_support/option_merger.rb +0 -25
  894. data/vendor/rails/activesupport/lib/active_support/ordered_options.rb +0 -44
  895. data/vendor/rails/activesupport/lib/active_support/reloadable.rb +0 -60
  896. data/vendor/rails/activesupport/lib/active_support/values/time_zone.rb +0 -180
  897. data/vendor/rails/activesupport/lib/active_support/values/unicode_tables.dat +0 -0
  898. data/vendor/rails/activesupport/lib/active_support/vendor/builder.rb +0 -13
  899. data/vendor/rails/activesupport/lib/active_support/vendor/builder/blankslate.rb +0 -63
  900. data/vendor/rails/activesupport/lib/active_support/vendor/builder/xchar.rb +0 -112
  901. data/vendor/rails/activesupport/lib/active_support/vendor/builder/xmlbase.rb +0 -145
  902. data/vendor/rails/activesupport/lib/active_support/vendor/builder/xmlevents.rb +0 -63
  903. data/vendor/rails/activesupport/lib/active_support/vendor/builder/xmlmarkup.rb +0 -327
  904. data/vendor/rails/activesupport/lib/active_support/vendor/xml_simple.rb +0 -1021
  905. data/vendor/rails/activesupport/lib/active_support/version.rb +0 -9
  906. data/vendor/rails/activesupport/lib/active_support/whiny_nil.rb +0 -38
  907. data/vendor/rails/activesupport/test/abstract_unit.rb +0 -7
  908. data/vendor/rails/activesupport/test/autoloading_fixtures/a/b.rb +0 -2
  909. data/vendor/rails/activesupport/test/autoloading_fixtures/a/c/d.rb +0 -2
  910. data/vendor/rails/activesupport/test/autoloading_fixtures/a/c/e/f.rb +0 -2
  911. data/vendor/rails/activesupport/test/autoloading_fixtures/application.rb +0 -1
  912. data/vendor/rails/activesupport/test/autoloading_fixtures/class_folder.rb +0 -3
  913. data/vendor/rails/activesupport/test/autoloading_fixtures/class_folder/class_folder_subclass.rb +0 -3
  914. data/vendor/rails/activesupport/test/autoloading_fixtures/class_folder/inline_class.rb +0 -2
  915. data/vendor/rails/activesupport/test/autoloading_fixtures/class_folder/nested_class.rb +0 -7
  916. data/vendor/rails/activesupport/test/autoloading_fixtures/conflict.rb +0 -1
  917. data/vendor/rails/activesupport/test/autoloading_fixtures/counting_loader.rb +0 -5
  918. data/vendor/rails/activesupport/test/autoloading_fixtures/cross_site_dependency.rb +0 -2
  919. data/vendor/rails/activesupport/test/autoloading_fixtures/e.rb +0 -2
  920. data/vendor/rails/activesupport/test/autoloading_fixtures/module_folder/inline_class.rb +0 -2
  921. data/vendor/rails/activesupport/test/autoloading_fixtures/module_folder/nested_class.rb +0 -4
  922. data/vendor/rails/activesupport/test/autoloading_fixtures/module_folder/nested_sibling.rb +0 -2
  923. data/vendor/rails/activesupport/test/autoloading_fixtures/module_with_custom_const_missing/a/b.rb +0 -1
  924. data/vendor/rails/activesupport/test/autoloading_fixtures/multiple_constant_file.rb +0 -2
  925. data/vendor/rails/activesupport/test/autoloading_fixtures/raises_name_error.rb +0 -3
  926. data/vendor/rails/activesupport/test/autoloading_fixtures/raises_no_method_error.rb +0 -3
  927. data/vendor/rails/activesupport/test/caching_tools_test.rb +0 -79
  928. data/vendor/rails/activesupport/test/clean_logger_test.rb +0 -87
  929. data/vendor/rails/activesupport/test/core_ext/array_ext_test.rb +0 -182
  930. data/vendor/rails/activesupport/test/core_ext/blank_test.rb +0 -11
  931. data/vendor/rails/activesupport/test/core_ext/cgi_ext_test.rb +0 -14
  932. data/vendor/rails/activesupport/test/core_ext/class/attribute_accessor_test.rb +0 -31
  933. data/vendor/rails/activesupport/test/core_ext/class/class_inheritable_attributes_test.rb +0 -208
  934. data/vendor/rails/activesupport/test/core_ext/class_test.rb +0 -36
  935. data/vendor/rails/activesupport/test/core_ext/date_ext_test.rb +0 -21
  936. data/vendor/rails/activesupport/test/core_ext/date_time_ext_test.rb +0 -152
  937. data/vendor/rails/activesupport/test/core_ext/duration_test.rb +0 -21
  938. data/vendor/rails/activesupport/test/core_ext/enumerable_test.rb +0 -61
  939. data/vendor/rails/activesupport/test/core_ext/exception_test.rb +0 -64
  940. data/vendor/rails/activesupport/test/core_ext/file_test.rb +0 -29
  941. data/vendor/rails/activesupport/test/core_ext/hash_ext_test.rb +0 -622
  942. data/vendor/rails/activesupport/test/core_ext/integer_ext_test.rb +0 -37
  943. data/vendor/rails/activesupport/test/core_ext/kernel_test.rb +0 -43
  944. data/vendor/rails/activesupport/test/core_ext/load_error_tests.rb +0 -16
  945. data/vendor/rails/activesupport/test/core_ext/module/attr_accessor_with_default.rb +0 -30
  946. data/vendor/rails/activesupport/test/core_ext/module/attr_accessor_with_default_test.rb +0 -30
  947. data/vendor/rails/activesupport/test/core_ext/module/attr_internal_test.rb +0 -52
  948. data/vendor/rails/activesupport/test/core_ext/module/attribute_accessor_test.rb +0 -33
  949. data/vendor/rails/activesupport/test/core_ext/module/attribute_aliasing_test.rb +0 -31
  950. data/vendor/rails/activesupport/test/core_ext/module_test.rb +0 -274
  951. data/vendor/rails/activesupport/test/core_ext/name_error_test.rb +0 -24
  952. data/vendor/rails/activesupport/test/core_ext/numeric_ext_test.rb +0 -104
  953. data/vendor/rails/activesupport/test/core_ext/object_and_class_ext_test.rb +0 -216
  954. data/vendor/rails/activesupport/test/core_ext/pathname_test.rb +0 -9
  955. data/vendor/rails/activesupport/test/core_ext/proc_test.rb +0 -11
  956. data/vendor/rails/activesupport/test/core_ext/range_ext_test.rb +0 -13
  957. data/vendor/rails/activesupport/test/core_ext/string_ext_test.rb +0 -152
  958. data/vendor/rails/activesupport/test/core_ext/symbol_test.rb +0 -9
  959. data/vendor/rails/activesupport/test/core_ext/time_ext_test.rb +0 -373
  960. data/vendor/rails/activesupport/test/dependencies/check_warnings.rb +0 -2
  961. data/vendor/rails/activesupport/test/dependencies/conflict.rb +0 -1
  962. data/vendor/rails/activesupport/test/dependencies/cross_site_depender.rb +0 -3
  963. data/vendor/rails/activesupport/test/dependencies/mutual_one.rb +0 -4
  964. data/vendor/rails/activesupport/test/dependencies/mutual_two.rb +0 -4
  965. data/vendor/rails/activesupport/test/dependencies/raises_exception.rb +0 -3
  966. data/vendor/rails/activesupport/test/dependencies/requires_nonexistent0.rb +0 -1
  967. data/vendor/rails/activesupport/test/dependencies/requires_nonexistent1.rb +0 -1
  968. data/vendor/rails/activesupport/test/dependencies/service_one.rb +0 -5
  969. data/vendor/rails/activesupport/test/dependencies/service_two.rb +0 -2
  970. data/vendor/rails/activesupport/test/dependencies_test.rb +0 -752
  971. data/vendor/rails/activesupport/test/deprecation_test.rb +0 -151
  972. data/vendor/rails/activesupport/test/inflector_test.rb +0 -438
  973. data/vendor/rails/activesupport/test/json/decoding_test.rb +0 -28
  974. data/vendor/rails/activesupport/test/json/encoding_test.rb +0 -96
  975. data/vendor/rails/activesupport/test/multibyte_chars_test.rb +0 -164
  976. data/vendor/rails/activesupport/test/multibyte_conformance.rb +0 -141
  977. data/vendor/rails/activesupport/test/multibyte_handler_test.rb +0 -277
  978. data/vendor/rails/activesupport/test/option_merger_test.rb +0 -50
  979. data/vendor/rails/activesupport/test/ordered_options_test.rb +0 -80
  980. data/vendor/rails/activesupport/test/reloadable_test.rb +0 -123
  981. data/vendor/rails/activesupport/test/test_test.rb +0 -56
  982. data/vendor/rails/activesupport/test/time_zone_test.rb +0 -91
  983. data/vendor/rails/activesupport/test/whiny_nil_test.rb +0 -38
  984. data/vendor/rails/railties/CHANGELOG +0 -1407
  985. data/vendor/rails/railties/MIT-LICENSE +0 -20
  986. data/vendor/rails/railties/README +0 -180
  987. data/vendor/rails/railties/Rakefile +0 -355
  988. data/vendor/rails/railties/bin/about +0 -3
  989. data/vendor/rails/railties/bin/console +0 -3
  990. data/vendor/rails/railties/bin/destroy +0 -3
  991. data/vendor/rails/railties/bin/generate +0 -3
  992. data/vendor/rails/railties/bin/performance/benchmarker +0 -3
  993. data/vendor/rails/railties/bin/performance/profiler +0 -3
  994. data/vendor/rails/railties/bin/plugin +0 -3
  995. data/vendor/rails/railties/bin/process/inspector +0 -3
  996. data/vendor/rails/railties/bin/process/reaper +0 -3
  997. data/vendor/rails/railties/bin/process/spawner +0 -3
  998. data/vendor/rails/railties/bin/rails +0 -19
  999. data/vendor/rails/railties/bin/runner +0 -3
  1000. data/vendor/rails/railties/bin/server +0 -3
  1001. data/vendor/rails/railties/builtin/rails_info/rails/info.rb +0 -123
  1002. data/vendor/rails/railties/builtin/rails_info/rails/info_controller.rb +0 -9
  1003. data/vendor/rails/railties/builtin/rails_info/rails/info_helper.rb +0 -2
  1004. data/vendor/rails/railties/builtin/rails_info/rails_info_controller.rb +0 -2
  1005. data/vendor/rails/railties/configs/apache.conf +0 -40
  1006. data/vendor/rails/railties/configs/databases/frontbase.yml +0 -28
  1007. data/vendor/rails/railties/configs/databases/mysql.yml +0 -48
  1008. data/vendor/rails/railties/configs/databases/oracle.yml +0 -39
  1009. data/vendor/rails/railties/configs/databases/postgresql.yml +0 -44
  1010. data/vendor/rails/railties/configs/databases/sqlite2.yml +0 -16
  1011. data/vendor/rails/railties/configs/databases/sqlite3.yml +0 -19
  1012. data/vendor/rails/railties/configs/empty.log +0 -0
  1013. data/vendor/rails/railties/configs/initializers/inflections.rb +0 -8
  1014. data/vendor/rails/railties/configs/initializers/mime_types.rb +0 -3
  1015. data/vendor/rails/railties/configs/lighttpd.conf +0 -54
  1016. data/vendor/rails/railties/configs/routes.rb +0 -27
  1017. data/vendor/rails/railties/dispatches/dispatch.fcgi +0 -24
  1018. data/vendor/rails/railties/dispatches/dispatch.rb +0 -10
  1019. data/vendor/rails/railties/dispatches/gateway.cgi +0 -97
  1020. data/vendor/rails/railties/doc/README_FOR_APP +0 -2
  1021. data/vendor/rails/railties/environments/boot.rb +0 -36
  1022. data/vendor/rails/railties/environments/development.rb +0 -18
  1023. data/vendor/rails/railties/environments/environment.rb +0 -55
  1024. data/vendor/rails/railties/environments/production.rb +0 -18
  1025. data/vendor/rails/railties/environments/test.rb +0 -19
  1026. data/vendor/rails/railties/fresh_rakefile +0 -10
  1027. data/vendor/rails/railties/helpers/application.rb +0 -6
  1028. data/vendor/rails/railties/helpers/application_helper.rb +0 -3
  1029. data/vendor/rails/railties/helpers/test_helper.rb +0 -36
  1030. data/vendor/rails/railties/html/404.html +0 -30
  1031. data/vendor/rails/railties/html/500.html +0 -30
  1032. data/vendor/rails/railties/html/favicon.ico +0 -0
  1033. data/vendor/rails/railties/html/images/rails.png +0 -0
  1034. data/vendor/rails/railties/html/index.html +0 -277
  1035. data/vendor/rails/railties/html/javascripts/application.js +0 -2
  1036. data/vendor/rails/railties/html/javascripts/controls.js +0 -833
  1037. data/vendor/rails/railties/html/javascripts/dragdrop.js +0 -942
  1038. data/vendor/rails/railties/html/javascripts/effects.js +0 -1088
  1039. data/vendor/rails/railties/html/javascripts/prototype.js +0 -2515
  1040. data/vendor/rails/railties/html/robots.txt +0 -1
  1041. data/vendor/rails/railties/lib/code_statistics.rb +0 -107
  1042. data/vendor/rails/railties/lib/commands.rb +0 -17
  1043. data/vendor/rails/railties/lib/commands/about.rb +0 -2
  1044. data/vendor/rails/railties/lib/commands/console.rb +0 -32
  1045. data/vendor/rails/railties/lib/commands/destroy.rb +0 -6
  1046. data/vendor/rails/railties/lib/commands/generate.rb +0 -6
  1047. data/vendor/rails/railties/lib/commands/ncgi/listener +0 -86
  1048. data/vendor/rails/railties/lib/commands/ncgi/tracker +0 -69
  1049. data/vendor/rails/railties/lib/commands/performance/benchmarker.rb +0 -24
  1050. data/vendor/rails/railties/lib/commands/performance/profiler.rb +0 -50
  1051. data/vendor/rails/railties/lib/commands/plugin.rb +0 -918
  1052. data/vendor/rails/railties/lib/commands/process/inspector.rb +0 -68
  1053. data/vendor/rails/railties/lib/commands/process/reaper.rb +0 -149
  1054. data/vendor/rails/railties/lib/commands/process/spawner.rb +0 -209
  1055. data/vendor/rails/railties/lib/commands/process/spinner.rb +0 -57
  1056. data/vendor/rails/railties/lib/commands/runner.rb +0 -48
  1057. data/vendor/rails/railties/lib/commands/server.rb +0 -39
  1058. data/vendor/rails/railties/lib/commands/servers/base.rb +0 -31
  1059. data/vendor/rails/railties/lib/commands/servers/lighttpd.rb +0 -94
  1060. data/vendor/rails/railties/lib/commands/servers/mongrel.rb +0 -69
  1061. data/vendor/rails/railties/lib/commands/servers/webrick.rb +0 -65
  1062. data/vendor/rails/railties/lib/commands/update.rb +0 -4
  1063. data/vendor/rails/railties/lib/console_app.rb +0 -27
  1064. data/vendor/rails/railties/lib/console_sandbox.rb +0 -6
  1065. data/vendor/rails/railties/lib/console_with_helpers.rb +0 -23
  1066. data/vendor/rails/railties/lib/dispatcher.rb +0 -181
  1067. data/vendor/rails/railties/lib/fcgi_handler.rb +0 -207
  1068. data/vendor/rails/railties/lib/initializer.rb +0 -693
  1069. data/vendor/rails/railties/lib/rails/plugin/loader.rb +0 -123
  1070. data/vendor/rails/railties/lib/rails/plugin/locator.rb +0 -59
  1071. data/vendor/rails/railties/lib/rails/version.rb +0 -9
  1072. data/vendor/rails/railties/lib/rails_generator.rb +0 -43
  1073. data/vendor/rails/railties/lib/rails_generator/base.rb +0 -261
  1074. data/vendor/rails/railties/lib/rails_generator/commands.rb +0 -581
  1075. data/vendor/rails/railties/lib/rails_generator/generated_attribute.rb +0 -42
  1076. data/vendor/rails/railties/lib/rails_generator/generators/applications/app/USAGE +0 -16
  1077. data/vendor/rails/railties/lib/rails_generator/generators/applications/app/app_generator.rb +0 -175
  1078. data/vendor/rails/railties/lib/rails_generator/generators/components/controller/USAGE +0 -30
  1079. data/vendor/rails/railties/lib/rails_generator/generators/components/controller/controller_generator.rb +0 -37
  1080. data/vendor/rails/railties/lib/rails_generator/generators/components/controller/templates/controller.rb +0 -10
  1081. data/vendor/rails/railties/lib/rails_generator/generators/components/controller/templates/functional_test.rb +0 -18
  1082. data/vendor/rails/railties/lib/rails_generator/generators/components/controller/templates/helper.rb +0 -2
  1083. data/vendor/rails/railties/lib/rails_generator/generators/components/controller/templates/view.html.erb +0 -2
  1084. data/vendor/rails/railties/lib/rails_generator/generators/components/integration_test/USAGE +0 -14
  1085. data/vendor/rails/railties/lib/rails_generator/generators/components/integration_test/integration_test_generator.rb +0 -16
  1086. data/vendor/rails/railties/lib/rails_generator/generators/components/integration_test/templates/integration_test.rb +0 -10
  1087. data/vendor/rails/railties/lib/rails_generator/generators/components/mailer/USAGE +0 -18
  1088. data/vendor/rails/railties/lib/rails_generator/generators/components/mailer/mailer_generator.rb +0 -34
  1089. data/vendor/rails/railties/lib/rails_generator/generators/components/mailer/templates/fixture.erb +0 -3
  1090. data/vendor/rails/railties/lib/rails_generator/generators/components/mailer/templates/fixture.rhtml +0 -0
  1091. data/vendor/rails/railties/lib/rails_generator/generators/components/mailer/templates/mailer.rb +0 -13
  1092. data/vendor/rails/railties/lib/rails_generator/generators/components/mailer/templates/unit_test.rb +0 -37
  1093. data/vendor/rails/railties/lib/rails_generator/generators/components/mailer/templates/view.erb +0 -3
  1094. data/vendor/rails/railties/lib/rails_generator/generators/components/mailer/templates/view.rhtml +0 -0
  1095. data/vendor/rails/railties/lib/rails_generator/generators/components/migration/USAGE +0 -14
  1096. data/vendor/rails/railties/lib/rails_generator/generators/components/migration/migration_generator.rb +0 -7
  1097. data/vendor/rails/railties/lib/rails_generator/generators/components/migration/templates/migration.rb +0 -7
  1098. data/vendor/rails/railties/lib/rails_generator/generators/components/model/USAGE +0 -26
  1099. data/vendor/rails/railties/lib/rails_generator/generators/components/model/model_generator.rb +0 -38
  1100. data/vendor/rails/railties/lib/rails_generator/generators/components/model/templates/fixtures.yml +0 -11
  1101. data/vendor/rails/railties/lib/rails_generator/generators/components/model/templates/migration.rb +0 -13
  1102. data/vendor/rails/railties/lib/rails_generator/generators/components/model/templates/model.rb +0 -2
  1103. data/vendor/rails/railties/lib/rails_generator/generators/components/model/templates/unit_test.rb +0 -10
  1104. data/vendor/rails/railties/lib/rails_generator/generators/components/observer/USAGE +0 -15
  1105. data/vendor/rails/railties/lib/rails_generator/generators/components/observer/observer_generator.rb +0 -16
  1106. data/vendor/rails/railties/lib/rails_generator/generators/components/observer/templates/observer.rb +0 -2
  1107. data/vendor/rails/railties/lib/rails_generator/generators/components/observer/templates/unit_test.rb +0 -10
  1108. data/vendor/rails/railties/lib/rails_generator/generators/components/plugin/USAGE +0 -35
  1109. data/vendor/rails/railties/lib/rails_generator/generators/components/plugin/plugin_generator.rb +0 -39
  1110. data/vendor/rails/railties/lib/rails_generator/generators/components/plugin/templates/MIT-LICENSE +0 -20
  1111. data/vendor/rails/railties/lib/rails_generator/generators/components/plugin/templates/README +0 -13
  1112. data/vendor/rails/railties/lib/rails_generator/generators/components/plugin/templates/USAGE +0 -8
  1113. data/vendor/rails/railties/lib/rails_generator/generators/components/plugin/templates/generator.rb +0 -8
  1114. data/vendor/rails/railties/lib/rails_generator/generators/components/plugin/templates/install.rb +0 -1
  1115. data/vendor/rails/railties/lib/rails_generator/generators/components/plugin/templates/plugin.rb +0 -1
  1116. data/vendor/rails/railties/lib/rails_generator/generators/components/plugin/templates/tasks.rake +0 -4
  1117. data/vendor/rails/railties/lib/rails_generator/generators/components/plugin/templates/uninstall.rb +0 -1
  1118. data/vendor/rails/railties/lib/rails_generator/generators/components/resource/USAGE +0 -30
  1119. data/vendor/rails/railties/lib/rails_generator/generators/components/resource/resource_generator.rb +0 -63
  1120. data/vendor/rails/railties/lib/rails_generator/generators/components/resource/templates/USAGE +0 -18
  1121. data/vendor/rails/railties/lib/rails_generator/generators/components/resource/templates/controller.rb +0 -2
  1122. data/vendor/rails/railties/lib/rails_generator/generators/components/resource/templates/fixtures.yml +0 -0
  1123. data/vendor/rails/railties/lib/rails_generator/generators/components/resource/templates/functional_test.rb +0 -20
  1124. data/vendor/rails/railties/lib/rails_generator/generators/components/resource/templates/helper.rb +0 -2
  1125. data/vendor/rails/railties/lib/rails_generator/generators/components/resource/templates/migration.rb +0 -0
  1126. data/vendor/rails/railties/lib/rails_generator/generators/components/resource/templates/model.rb +0 -0
  1127. data/vendor/rails/railties/lib/rails_generator/generators/components/resource/templates/unit_test.rb +0 -0
  1128. data/vendor/rails/railties/lib/rails_generator/generators/components/scaffold/USAGE +0 -37
  1129. data/vendor/rails/railties/lib/rails_generator/generators/components/scaffold/scaffold_generator.rb +0 -92
  1130. data/vendor/rails/railties/lib/rails_generator/generators/components/scaffold/templates/controller.rb +0 -85
  1131. data/vendor/rails/railties/lib/rails_generator/generators/components/scaffold/templates/fixtures.yml +0 -11
  1132. data/vendor/rails/railties/lib/rails_generator/generators/components/scaffold/templates/functional_test.rb +0 -57
  1133. data/vendor/rails/railties/lib/rails_generator/generators/components/scaffold/templates/helper.rb +0 -2
  1134. data/vendor/rails/railties/lib/rails_generator/generators/components/scaffold/templates/layout.html.erb +0 -17
  1135. data/vendor/rails/railties/lib/rails_generator/generators/components/scaffold/templates/migration.rb +0 -13
  1136. data/vendor/rails/railties/lib/rails_generator/generators/components/scaffold/templates/model.rb +0 -2
  1137. data/vendor/rails/railties/lib/rails_generator/generators/components/scaffold/templates/style.css +0 -74
  1138. data/vendor/rails/railties/lib/rails_generator/generators/components/scaffold/templates/unit_test.rb +0 -10
  1139. data/vendor/rails/railties/lib/rails_generator/generators/components/scaffold/templates/view_edit.html.erb +0 -19
  1140. data/vendor/rails/railties/lib/rails_generator/generators/components/scaffold/templates/view_index.html.erb +0 -24
  1141. data/vendor/rails/railties/lib/rails_generator/generators/components/scaffold/templates/view_new.html.erb +0 -18
  1142. data/vendor/rails/railties/lib/rails_generator/generators/components/scaffold/templates/view_show.html.erb +0 -10
  1143. data/vendor/rails/railties/lib/rails_generator/generators/components/session_migration/USAGE +0 -15
  1144. data/vendor/rails/railties/lib/rails_generator/generators/components/session_migration/session_migration_generator.rb +0 -18
  1145. data/vendor/rails/railties/lib/rails_generator/generators/components/session_migration/templates/migration.rb +0 -16
  1146. data/vendor/rails/railties/lib/rails_generator/generators/components/web_service/USAGE +0 -28
  1147. data/vendor/rails/railties/lib/rails_generator/generators/components/web_service/templates/api_definition.rb +0 -5
  1148. data/vendor/rails/railties/lib/rails_generator/generators/components/web_service/templates/controller.rb +0 -8
  1149. data/vendor/rails/railties/lib/rails_generator/generators/components/web_service/templates/functional_test.rb +0 -19
  1150. data/vendor/rails/railties/lib/rails_generator/generators/components/web_service/web_service_generator.rb +0 -29
  1151. data/vendor/rails/railties/lib/rails_generator/lookup.rb +0 -209
  1152. data/vendor/rails/railties/lib/rails_generator/manifest.rb +0 -53
  1153. data/vendor/rails/railties/lib/rails_generator/options.rb +0 -143
  1154. data/vendor/rails/railties/lib/rails_generator/scripts.rb +0 -83
  1155. data/vendor/rails/railties/lib/rails_generator/scripts/destroy.rb +0 -30
  1156. data/vendor/rails/railties/lib/rails_generator/scripts/generate.rb +0 -7
  1157. data/vendor/rails/railties/lib/rails_generator/scripts/update.rb +0 -12
  1158. data/vendor/rails/railties/lib/rails_generator/simple_logger.rb +0 -46
  1159. data/vendor/rails/railties/lib/rails_generator/spec.rb +0 -44
  1160. data/vendor/rails/railties/lib/railties_path.rb +0 -1
  1161. data/vendor/rails/railties/lib/ruby_version_check.rb +0 -17
  1162. data/vendor/rails/railties/lib/rubyprof_ext.rb +0 -35
  1163. data/vendor/rails/railties/lib/tasks/annotations.rake +0 -84
  1164. data/vendor/rails/railties/lib/tasks/databases.rake +0 -187
  1165. data/vendor/rails/railties/lib/tasks/documentation.rake +0 -82
  1166. data/vendor/rails/railties/lib/tasks/framework.rake +0 -112
  1167. data/vendor/rails/railties/lib/tasks/log.rake +0 -9
  1168. data/vendor/rails/railties/lib/tasks/misc.rake +0 -4
  1169. data/vendor/rails/railties/lib/tasks/pre_namespace_aliases.rake +0 -53
  1170. data/vendor/rails/railties/lib/tasks/rails.rb +0 -8
  1171. data/vendor/rails/railties/lib/tasks/statistics.rake +0 -18
  1172. data/vendor/rails/railties/lib/tasks/testing.rake +0 -120
  1173. data/vendor/rails/railties/lib/tasks/tmp.rake +0 -37
  1174. data/vendor/rails/railties/lib/test_help.rb +0 -17
  1175. data/vendor/rails/railties/lib/webrick_server.rb +0 -165
  1176. data/vendor/rails/railties/test/abstract_unit.rb +0 -17
  1177. data/vendor/rails/railties/test/dispatcher_test.rb +0 -139
  1178. data/vendor/rails/railties/test/fcgi_dispatcher_test.rb +0 -266
  1179. data/vendor/rails/railties/test/fixtures/environment_with_constant.rb +0 -1
  1180. data/vendor/rails/railties/test/fixtures/lib/generators/missing_class/missing_class_generator.rb +0 -0
  1181. data/vendor/rails/railties/test/fixtures/lib/generators/working/working_generator.rb +0 -2
  1182. data/vendor/rails/railties/test/fixtures/plugins/default/plugin_with_no_lib_dir/init.rb +0 -0
  1183. data/vendor/rails/railties/test/fixtures/plugins/default/stubby/init.rb +0 -7
  1184. data/vendor/rails/railties/test/fixtures/plugins/default/stubby/lib/stubby_mixin.rb +0 -2
  1185. data/vendor/rails/railties/test/initializer_test.rb +0 -22
  1186. data/vendor/rails/railties/test/mocks/dispatcher.rb +0 -13
  1187. data/vendor/rails/railties/test/mocks/fcgi.rb +0 -15
  1188. data/vendor/rails/railties/test/mocks/routes.rb +0 -6
  1189. data/vendor/rails/railties/test/mocks/stubbed_breakpoint.rb +0 -2
  1190. data/vendor/rails/railties/test/mocks/stubbed_kernel.rb +0 -5
  1191. data/vendor/rails/railties/test/plugin_loader_test.rb +0 -78
  1192. data/vendor/rails/railties/test/plugin_locator_test.rb +0 -41
  1193. data/vendor/rails/railties/test/plugin_test_helper.rb +0 -18
  1194. data/vendor/rails/railties/test/rails_generator_test.rb +0 -137
  1195. data/vendor/rails/railties/test/rails_info_controller_test.rb +0 -48
  1196. data/vendor/rails/railties/test/rails_info_test.rb +0 -98
@@ -1,117 +0,0 @@
1
- require 'rexml/document'
2
- require 'html/document'
3
-
4
- module ActionController
5
- module Assertions
6
- module TagAssertions
7
- # Asserts that there is a tag/node/element in the body of the response
8
- # that meets all of the given conditions. The +conditions+ parameter must
9
- # be a hash of any of the following keys (all are optional):
10
- #
11
- # * <tt>:tag</tt>: the node type must match the corresponding value
12
- # * <tt>:attributes</tt>: a hash. The node's attributes must match the
13
- # corresponding values in the hash.
14
- # * <tt>:parent</tt>: a hash. The node's parent must match the
15
- # corresponding hash.
16
- # * <tt>:child</tt>: a hash. At least one of the node's immediate children
17
- # must meet the criteria described by the hash.
18
- # * <tt>:ancestor</tt>: a hash. At least one of the node's ancestors must
19
- # meet the criteria described by the hash.
20
- # * <tt>:descendant</tt>: a hash. At least one of the node's descendants
21
- # must meet the criteria described by the hash.
22
- # * <tt>:sibling</tt>: a hash. At least one of the node's siblings must
23
- # meet the criteria described by the hash.
24
- # * <tt>:after</tt>: a hash. The node must be after any sibling meeting
25
- # the criteria described by the hash, and at least one sibling must match.
26
- # * <tt>:before</tt>: a hash. The node must be before any sibling meeting
27
- # the criteria described by the hash, and at least one sibling must match.
28
- # * <tt>:children</tt>: a hash, for counting children of a node. Accepts
29
- # the keys:
30
- # * <tt>:count</tt>: either a number or a range which must equal (or
31
- # include) the number of children that match.
32
- # * <tt>:less_than</tt>: the number of matching children must be less
33
- # than this number.
34
- # * <tt>:greater_than</tt>: the number of matching children must be
35
- # greater than this number.
36
- # * <tt>:only</tt>: another hash consisting of the keys to use
37
- # to match on the children, and only matching children will be
38
- # counted.
39
- # * <tt>:content</tt>: the textual content of the node must match the
40
- # given value. This will not match HTML tags in the body of a
41
- # tag--only text.
42
- #
43
- # Conditions are matched using the following algorithm:
44
- #
45
- # * if the condition is a string, it must be a substring of the value.
46
- # * if the condition is a regexp, it must match the value.
47
- # * if the condition is a number, the value must match number.to_s.
48
- # * if the condition is +true+, the value must not be +nil+.
49
- # * if the condition is +false+ or +nil+, the value must be +nil+.
50
- #
51
- # Usage:
52
- #
53
- # # assert that there is a "span" tag
54
- # assert_tag :tag => "span"
55
- #
56
- # # assert that there is a "span" tag with id="x"
57
- # assert_tag :tag => "span", :attributes => { :id => "x" }
58
- #
59
- # # assert that there is a "span" tag using the short-hand
60
- # assert_tag :span
61
- #
62
- # # assert that there is a "span" tag with id="x" using the short-hand
63
- # assert_tag :span, :attributes => { :id => "x" }
64
- #
65
- # # assert that there is a "span" inside of a "div"
66
- # assert_tag :tag => "span", :parent => { :tag => "div" }
67
- #
68
- # # assert that there is a "span" somewhere inside a table
69
- # assert_tag :tag => "span", :ancestor => { :tag => "table" }
70
- #
71
- # # assert that there is a "span" with at least one "em" child
72
- # assert_tag :tag => "span", :child => { :tag => "em" }
73
- #
74
- # # assert that there is a "span" containing a (possibly nested)
75
- # # "strong" tag.
76
- # assert_tag :tag => "span", :descendant => { :tag => "strong" }
77
- #
78
- # # assert that there is a "span" containing between 2 and 4 "em" tags
79
- # # as immediate children
80
- # assert_tag :tag => "span",
81
- # :children => { :count => 2..4, :only => { :tag => "em" } }
82
- #
83
- # # get funky: assert that there is a "div", with an "ul" ancestor
84
- # # and an "li" parent (with "class" = "enum"), and containing a
85
- # # "span" descendant that contains text matching /hello world/
86
- # assert_tag :tag => "div",
87
- # :ancestor => { :tag => "ul" },
88
- # :parent => { :tag => "li",
89
- # :attributes => { :class => "enum" } },
90
- # :descendant => { :tag => "span",
91
- # :child => /hello world/ }
92
- #
93
- # <strong>Please note</strong: #assert_tag and #assert_no_tag only work
94
- # with well-formed XHTML. They recognize a few tags as implicitly self-closing
95
- # (like br and hr and such) but will not work correctly with tags
96
- # that allow optional closing tags (p, li, td). <em>You must explicitly
97
- # close all of your tags to use these assertions.</em>
98
- def assert_tag(*opts)
99
- clean_backtrace do
100
- opts = opts.size > 1 ? opts.last.merge({ :tag => opts.first.to_s }) : opts.first
101
- tag = find_tag(opts)
102
- assert tag, "expected tag, but no tag found matching #{opts.inspect} in:\n#{@response.body.inspect}"
103
- end
104
- end
105
-
106
- # Identical to #assert_tag, but asserts that a matching tag does _not_
107
- # exist. (See #assert_tag for a full discussion of the syntax.)
108
- def assert_no_tag(*opts)
109
- clean_backtrace do
110
- opts = opts.size > 1 ? opts.last.merge({ :tag => opts.first.to_s }) : opts.first
111
- tag = find_tag(opts)
112
- assert !tag, "expected no tag, but found tag matching #{opts.inspect} in:\n#{@response.body.inspect}"
113
- end
114
- end
115
- end
116
- end
117
- end
@@ -1,1251 +0,0 @@
1
- require 'action_controller/mime_type'
2
- require 'action_controller/request'
3
- require 'action_controller/response'
4
- require 'action_controller/routing'
5
- require 'action_controller/resources'
6
- require 'action_controller/url_rewriter'
7
- require 'action_controller/status_codes'
8
- require 'drb'
9
- require 'set'
10
-
11
- module ActionController #:nodoc:
12
- class ActionControllerError < StandardError #:nodoc:
13
- end
14
- class SessionRestoreError < ActionControllerError #:nodoc:
15
- end
16
- class MissingTemplate < ActionControllerError #:nodoc:
17
- end
18
- class RoutingError < ActionControllerError #:nodoc:
19
- attr_reader :failures
20
- def initialize(message, failures=[])
21
- super(message)
22
- @failures = failures
23
- end
24
- end
25
- class UnknownController < ActionControllerError #:nodoc:
26
- end
27
- class UnknownAction < ActionControllerError #:nodoc:
28
- end
29
- class MissingFile < ActionControllerError #:nodoc:
30
- end
31
- class RenderError < ActionControllerError #:nodoc:
32
- end
33
- class SessionOverflowError < ActionControllerError #:nodoc:
34
- DEFAULT_MESSAGE = 'Your session data is larger than the data column in which it is to be stored. You must increase the size of your data column if you intend to store large data.'
35
-
36
- def initialize(message = nil)
37
- super(message || DEFAULT_MESSAGE)
38
- end
39
- end
40
- class DoubleRenderError < ActionControllerError #:nodoc:
41
- DEFAULT_MESSAGE = "Render and/or redirect were called multiple times in this action. Please note that you may only call render OR redirect, and only once per action. Also note that neither redirect nor render terminate execution of the action, so if you want to exit an action after redirecting, you need to do something like \"redirect_to(...) and return\". Finally, note that to cause a before filter to halt execution of the rest of the filter chain, the filter must return false, explicitly, so \"render(...) and return false\"."
42
-
43
- def initialize(message = nil)
44
- super(message || DEFAULT_MESSAGE)
45
- end
46
- end
47
- class RedirectBackError < ActionControllerError #:nodoc:
48
- DEFAULT_MESSAGE = 'No HTTP_REFERER was set in the request to this action, so redirect_to :back could not be called successfully. If this is a test, make sure to specify request.env["HTTP_REFERER"].'
49
-
50
- def initialize(message = nil)
51
- super(message || DEFAULT_MESSAGE)
52
- end
53
- end
54
-
55
- # Action Controllers are the core of a web request in Rails. They are made up of one or more actions that are executed
56
- # on request and then either render a template or redirect to another action. An action is defined as a public method
57
- # on the controller, which will automatically be made accessible to the web-server through Rails Routes.
58
- #
59
- # A sample controller could look like this:
60
- #
61
- # class GuestBookController < ActionController::Base
62
- # def index
63
- # @entries = Entry.find(:all)
64
- # end
65
- #
66
- # def sign
67
- # Entry.create(params[:entry])
68
- # redirect_to :action => "index"
69
- # end
70
- # end
71
- #
72
- # Actions, by default, render a template in the <tt>app/views</tt> directory corresponding to the name of the controller and action
73
- # after executing code in the action. For example, the +index+ action of the +GuestBookController+ would render the
74
- # template <tt>app/views/guestbook/index.erb</tt> by default after populating the <tt>@entries</tt> instance variable.
75
- #
76
- # Unlike index, the sign action will not render a template. After performing its main purpose (creating a
77
- # new entry in the guest book), it initiates a redirect instead. This redirect works by returning an external
78
- # "302 Moved" HTTP response that takes the user to the index action.
79
- #
80
- # The index and sign represent the two basic action archetypes used in Action Controllers. Get-and-show and do-and-redirect.
81
- # Most actions are variations of these themes.
82
- #
83
- # == Requests
84
- #
85
- # Requests are processed by the Action Controller framework by extracting the value of the "action" key in the request parameters.
86
- # This value should hold the name of the action to be performed. Once the action has been identified, the remaining
87
- # request parameters, the session (if one is available), and the full request with all the http headers are made available to
88
- # the action through instance variables. Then the action is performed.
89
- #
90
- # The full request object is available with the request accessor and is primarily used to query for http headers. These queries
91
- # are made by accessing the environment hash, like this:
92
- #
93
- # def server_ip
94
- # location = request.env["SERVER_ADDR"]
95
- # render :text => "This server hosted at #{location}"
96
- # end
97
- #
98
- # == Parameters
99
- #
100
- # All request parameters, whether they come from a GET or POST request, or from the URL, are available through the params method
101
- # which returns a hash. For example, an action that was performed through <tt>/weblog/list?category=All&limit=5</tt> will include
102
- # <tt>{ "category" => "All", "limit" => 5 }</tt> in params.
103
- #
104
- # It's also possible to construct multi-dimensional parameter hashes by specifying keys using brackets, such as:
105
- #
106
- # <input type="text" name="post[name]" value="david">
107
- # <input type="text" name="post[address]" value="hyacintvej">
108
- #
109
- # A request stemming from a form holding these inputs will include <tt>{ "post" => { "name" => "david", "address" => "hyacintvej" } }</tt>.
110
- # If the address input had been named "post[address][street]", the params would have included
111
- # <tt>{ "post" => { "address" => { "street" => "hyacintvej" } } }</tt>. There's no limit to the depth of the nesting.
112
- #
113
- # == Sessions
114
- #
115
- # Sessions allows you to store objects in between requests. This is useful for objects that are not yet ready to be persisted,
116
- # such as a Signup object constructed in a multi-paged process, or objects that don't change much and are needed all the time, such
117
- # as a User object for a system that requires login. The session should not be used, however, as a cache for objects where it's likely
118
- # they could be changed unknowingly. It's usually too much work to keep it all synchronized -- something databases already excel at.
119
- #
120
- # You can place objects in the session by using the <tt>session</tt> method, which accesses a hash:
121
- #
122
- # session[:person] = Person.authenticate(user_name, password)
123
- #
124
- # And retrieved again through the same hash:
125
- #
126
- # Hello #{session[:person]}
127
- #
128
- # For removing objects from the session, you can either assign a single key to nil, like <tt>session[:person] = nil</tt>, or you can
129
- # remove the entire session with reset_session.
130
- #
131
- # By default, sessions are stored on the file system in <tt>RAILS_ROOT/tmp/sessions</tt>. Any object can be placed in the session
132
- # (as long as it can be Marshalled). But remember that 1000 active sessions each storing a 50kb object could lead to a 50MB store on the filesystem.
133
- # In other words, think carefully about size and caching before resorting to the use of the session on the filesystem.
134
- #
135
- # An alternative to storing sessions on disk is to use ActiveRecordStore to store sessions in your database, which can solve problems
136
- # caused by storing sessions in the file system and may speed up your application. To use ActiveRecordStore, uncomment the line:
137
- #
138
- # config.action_controller.session_store = :active_record_store
139
- #
140
- # in your <tt>environment.rb</tt> and run <tt>rake db:sessions:create</tt>.
141
- #
142
- # == Responses
143
- #
144
- # Each action results in a response, which holds the headers and document to be sent to the user's browser. The actual response
145
- # object is generated automatically through the use of renders and redirects and requires no user intervention.
146
- #
147
- # == Renders
148
- #
149
- # Action Controller sends content to the user by using one of five rendering methods. The most versatile and common is the rendering
150
- # of a template. Included in the Action Pack is the Action View, which enables rendering of ERb templates. It's automatically configured.
151
- # The controller passes objects to the view by assigning instance variables:
152
- #
153
- # def show
154
- # @post = Post.find(params[:id])
155
- # end
156
- #
157
- # Which are then automatically available to the view:
158
- #
159
- # Title: <%= @post.title %>
160
- #
161
- # You don't have to rely on the automated rendering. Especially actions that could result in the rendering of different templates will use
162
- # the manual rendering methods:
163
- #
164
- # def search
165
- # @results = Search.find(params[:query])
166
- # case @results
167
- # when 0 then render :action => "no_results"
168
- # when 1 then render :action => "show"
169
- # when 2..10 then render :action => "show_many"
170
- # end
171
- # end
172
- #
173
- # Read more about writing ERb and Builder templates in link:classes/ActionView/Base.html.
174
- #
175
- # == Redirects
176
- #
177
- # Redirects are used to move from one action to another. For example, after a <tt>create</tt> action, which stores a blog entry to a database,
178
- # we might like to show the user the new entry. Because we're following good DRY principles (Don't Repeat Yourself), we're going to reuse (and redirect to)
179
- # a <tt>show</tt> action that we'll assume has already been created. The code might look like this:
180
- #
181
- # def create
182
- # @entry = Entry.new(params[:entry])
183
- # if @entry.save
184
- # # The entry was saved correctly, redirect to show
185
- # redirect_to :action => 'show', :id => @entry.id
186
- # else
187
- # # things didn't go so well, do something else
188
- # end
189
- # end
190
- #
191
- # In this case, after saving our new entry to the database, the user is redirected to the <tt>show</tt> method which is then executed.
192
- #
193
- # == Calling multiple redirects or renders
194
- #
195
- # An action should conclude with a single render or redirect. Attempting to try to do either again will result in a DoubleRenderError:
196
- #
197
- # def do_something
198
- # redirect_to :action => "elsewhere"
199
- # render :action => "overthere" # raises DoubleRenderError
200
- # end
201
- #
202
- # If you need to redirect on the condition of something, then be sure to add "and return" to halt execution.
203
- #
204
- # def do_something
205
- # redirect_to(:action => "elsewhere") and return if monkeys.nil?
206
- # render :action => "overthere" # won't be called unless monkeys is nil
207
- # end
208
- #
209
- class Base
210
- DEFAULT_RENDER_STATUS_CODE = "200 OK"
211
-
212
- include Reloadable::Deprecated
213
- include StatusCodes
214
-
215
- # Determines whether the view has access to controller internals @request, @response, @session, and @template.
216
- # By default, it does.
217
- @@view_controller_internals = true
218
- cattr_accessor :view_controller_internals
219
-
220
- # Protected instance variable cache
221
- @@protected_variables_cache = nil
222
- cattr_accessor :protected_variables_cache
223
-
224
- # Prepends all the URL-generating helpers from AssetHelper. This makes it possible to easily move javascripts, stylesheets,
225
- # and images to a dedicated asset server away from the main web server. Example:
226
- # ActionController::Base.asset_host = "http://assets.example.com"
227
- @@asset_host = ""
228
- cattr_accessor :asset_host
229
-
230
- # All requests are considered local by default, so everyone will be exposed to detailed debugging screens on errors.
231
- # When the application is ready to go public, this should be set to false, and the protected method <tt>local_request?</tt>
232
- # should instead be implemented in the controller to determine when debugging screens should be shown.
233
- @@consider_all_requests_local = true
234
- cattr_accessor :consider_all_requests_local
235
-
236
- # Enable or disable the collection of failure information for RoutingErrors.
237
- # This information can be extremely useful when tweaking custom routes, but is
238
- # pointless once routes have been tested and verified.
239
- @@debug_routes = true
240
- cattr_accessor :debug_routes
241
-
242
- # Controls whether the application is thread-safe, so multi-threaded servers like WEBrick know whether to apply a mutex
243
- # around the performance of each action. Action Pack and Active Record are by default thread-safe, but many applications
244
- # may not be. Turned off by default.
245
- @@allow_concurrency = false
246
- cattr_accessor :allow_concurrency
247
-
248
- # Modern REST web services often need to submit complex data to the web application.
249
- # The param_parsers hash lets you register handlers which will process the http body and add parameters to the
250
- # <tt>params</tt> hash. These handlers are invoked for post and put requests.
251
- #
252
- # By default application/xml is enabled. A XmlSimple class with the same param name as the root will be instanciated
253
- # in the <tt>params</tt>. This allows XML requests to mask themselves as regular form submissions, so you can have one
254
- # action serve both regular forms and web service requests.
255
- #
256
- # Example of doing your own parser for a custom content type:
257
- #
258
- # ActionController::Base.param_parsers[Mime::Type.lookup('application/atom+xml')] = Proc.new do |data|
259
- # node = REXML::Document.new(post)
260
- # { node.root.name => node.root }
261
- # end
262
- #
263
- # Note: Up until release 1.1 of Rails, Action Controller would default to using XmlSimple configured to discard the
264
- # root node for such requests. The new default is to keep the root, such that "<r><name>David</name></r>" results
265
- # in params[:r][:name] for "David" instead of params[:name]. To get the old behavior, you can
266
- # re-register XmlSimple as application/xml handler ike this:
267
- #
268
- # ActionController::Base.param_parsers[Mime::XML] =
269
- # Proc.new { |data| XmlSimple.xml_in(data, 'ForceArray' => false) }
270
- #
271
- # A YAML parser is also available and can be turned on with:
272
- #
273
- # ActionController::Base.param_parsers[Mime::YAML] = :yaml
274
- @@param_parsers = { Mime::XML => :xml_simple }
275
- cattr_accessor :param_parsers
276
-
277
- # Controls the default charset for all renders.
278
- @@default_charset = "utf-8"
279
- cattr_accessor :default_charset
280
-
281
- # The logger is used for generating information on the action run-time (including benchmarking) if available.
282
- # Can be set to nil for no logging. Compatible with both Ruby's own Logger and Log4r loggers.
283
- cattr_accessor :logger
284
-
285
- # Determines which template class should be used by ActionController.
286
- cattr_accessor :template_class
287
-
288
- # Turn on +ignore_missing_templates+ if you want to unit test actions without making the associated templates.
289
- cattr_accessor :ignore_missing_templates
290
-
291
- # Holds the request object that's primarily used to get environment variables through access like
292
- # <tt>request.env["REQUEST_URI"]</tt>.
293
- attr_internal :request
294
-
295
- # Holds a hash of all the GET, POST, and Url parameters passed to the action. Accessed like <tt>params["post_id"]</tt>
296
- # to get the post_id. No type casts are made, so all values are returned as strings.
297
- attr_internal :params
298
-
299
- # Holds the response object that's primarily used to set additional HTTP headers through access like
300
- # <tt>response.headers["Cache-Control"] = "no-cache"</tt>. Can also be used to access the final body HTML after a template
301
- # has been rendered through response.body -- useful for <tt>after_filter</tt>s that wants to manipulate the output,
302
- # such as a OutputCompressionFilter.
303
- attr_internal :response
304
-
305
- # Holds a hash of objects in the session. Accessed like <tt>session[:person]</tt> to get the object tied to the "person"
306
- # key. The session will hold any type of object as values, but the key should be a string or symbol.
307
- attr_internal :session
308
-
309
- # Holds a hash of header names and values. Accessed like <tt>headers["Cache-Control"]</tt> to get the value of the Cache-Control
310
- # directive. Values should always be specified as strings.
311
- attr_internal :headers
312
-
313
- # Holds the hash of variables that are passed on to the template class to be made available to the view. This hash
314
- # is generated by taking a snapshot of all the instance variables in the current scope just before a template is rendered.
315
- attr_accessor :assigns
316
-
317
- # Returns the name of the action this controller is processing.
318
- attr_accessor :action_name
319
-
320
- # Templates that are exempt from layouts
321
- @@exempt_from_layout = Set.new([/\.rjs$/])
322
-
323
- class << self
324
- # Factory for the standard create, process loop where the controller is discarded after processing.
325
- def process(request, response) #:nodoc:
326
- new.process(request, response)
327
- end
328
-
329
- # Converts the class name from something like "OneModule::TwoModule::NeatController" to "NeatController".
330
- def controller_class_name
331
- @controller_class_name ||= name.demodulize
332
- end
333
-
334
- # Converts the class name from something like "OneModule::TwoModule::NeatController" to "neat".
335
- def controller_name
336
- @controller_name ||= controller_class_name.sub(/Controller$/, '').underscore
337
- end
338
-
339
- # Converts the class name from something like "OneModule::TwoModule::NeatController" to "one_module/two_module/neat".
340
- def controller_path
341
- @controller_path ||= name.gsub(/Controller$/, '').underscore
342
- end
343
-
344
- # Return an array containing the names of public methods that have been marked hidden from the action processor.
345
- # By default, all methods defined in ActionController::Base and included modules are hidden.
346
- # More methods can be hidden using <tt>hide_actions</tt>.
347
- def hidden_actions
348
- write_inheritable_attribute(:hidden_actions, ActionController::Base.public_instance_methods) unless read_inheritable_attribute(:hidden_actions)
349
- read_inheritable_attribute(:hidden_actions)
350
- end
351
-
352
- # Hide each of the given methods from being callable as actions.
353
- def hide_action(*names)
354
- write_inheritable_attribute(:hidden_actions, hidden_actions | names.collect { |n| n.to_s })
355
- end
356
-
357
- # Deprecated. Use view_paths instead.
358
- def template_root=(path)
359
- prepend_view_path path
360
- template_root
361
- end
362
-
363
- # Deprecated. Use view_paths instead.
364
- def template_root
365
- view_paths.first
366
- end
367
- deprecate :template_root => :view_paths
368
-
369
- @@view_paths = {}
370
-
371
- # View load paths determine the bases from which template references can be made. So a call to
372
- # render("test/template") will be looked up in the view load paths array and the closest match will be
373
- # returned.
374
- def view_paths=(value)
375
- @@view_paths[name] = value
376
- end
377
-
378
- # View load paths for controller.
379
- def view_paths
380
- if paths = @@view_paths[name]
381
- paths
382
- else
383
- if superclass.respond_to?(:view_paths)
384
- superclass.view_paths.dup.freeze
385
- else
386
- @@view_paths[name] = []
387
- end
388
- end
389
- end
390
-
391
- # Adds a view_path to the front of the view_paths array.
392
- # If the current class has no view paths, copy them from
393
- # the superclass
394
- def prepend_view_path(path)
395
- self.view_paths = view_paths.dup if view_paths.frozen?
396
- view_paths.unshift(path)
397
- end
398
-
399
- # Adds a view_path to the end of the view_paths array.
400
- # If the current class has no view paths, copy them from
401
- # the superclass
402
- def append_view_path(path)
403
- self.view_paths = view_paths.dup if view_paths.frozen?
404
- view_paths << path
405
- end
406
-
407
- # Replace sensitive paramater data from the request log.
408
- # Filters paramaters that have any of the arguments as a substring.
409
- # Looks in all subhashes of the param hash for keys to filter.
410
- # If a block is given, each key and value of the paramater hash and all
411
- # subhashes is passed to it, the value or key
412
- # can be replaced using String#replace or similar method.
413
- #
414
- # Examples:
415
- # filter_parameter_logging
416
- # => Does nothing, just slows the logging process down
417
- #
418
- # filter_parameter_logging :password
419
- # => replaces the value to all keys matching /password/i with "[FILTERED]"
420
- #
421
- # filter_parameter_logging :foo, "bar"
422
- # => replaces the value to all keys matching /foo|bar/i with "[FILTERED]"
423
- #
424
- # filter_parameter_logging { |k,v| v.reverse! if k =~ /secret/i }
425
- # => reverses the value to all keys matching /secret/i
426
- #
427
- # filter_parameter_logging(:foo, "bar") { |k,v| v.reverse! if k =~ /secret/i }
428
- # => reverses the value to all keys matching /secret/i, and
429
- # replaces the value to all keys matching /foo|bar/i with "[FILTERED]"
430
- def filter_parameter_logging(*filter_words, &block)
431
- parameter_filter = Regexp.new(filter_words.collect{ |s| s.to_s }.join('|'), true) if filter_words.length > 0
432
-
433
- define_method(:filter_parameters) do |unfiltered_parameters|
434
- filtered_parameters = {}
435
-
436
- unfiltered_parameters.each do |key, value|
437
- if key =~ parameter_filter
438
- filtered_parameters[key] = '[FILTERED]'
439
- elsif value.is_a?(Hash)
440
- filtered_parameters[key] = filter_parameters(value)
441
- elsif block_given?
442
- key, value = key.dup, value.dup
443
- yield key, value
444
- filtered_parameters[key] = value
445
- else
446
- filtered_parameters[key] = value
447
- end
448
- end
449
-
450
- filtered_parameters
451
- end
452
- end
453
-
454
- # Don't render layouts for templates with the given extensions.
455
- def exempt_from_layout(*extensions)
456
- regexps = extensions.collect do |extension|
457
- extension.is_a?(Regexp) ? extension : /\.#{Regexp.escape(extension.to_s)}$/
458
- end
459
- @@exempt_from_layout.merge regexps
460
- end
461
- end
462
-
463
- public
464
- # Extracts the action_name from the request parameters and performs that action.
465
- def process(request, response, method = :perform_action, *arguments) #:nodoc:
466
- initialize_template_class(response)
467
- assign_shortcuts(request, response)
468
- initialize_current_url
469
- assign_names
470
- forget_variables_added_to_assigns
471
-
472
- log_processing
473
- send(method, *arguments)
474
-
475
- assign_default_content_type_and_charset
476
-
477
- response.request = request
478
- response.prepare!
479
- response
480
- ensure
481
- process_cleanup
482
- end
483
-
484
- # Returns a URL that has been rewritten according to the options hash and the defined Routes.
485
- # (For doing a complete redirect, use redirect_to).
486
- #  
487
- # <tt>url_for</tt> is used to:
488
- #  
489
- # All keys given to url_for are forwarded to the Route module, save for the following:
490
- # * <tt>:anchor</tt> -- specifies the anchor name to be appended to the path. For example,
491
- # <tt>url_for :controller => 'posts', :action => 'show', :id => 10, :anchor => 'comments'</tt>
492
- # will produce "/posts/show/10#comments".
493
- # * <tt>:only_path</tt> -- if true, returns the relative URL (omitting the protocol, host name, and port) (<tt>false</tt> by default)
494
- # * <tt>:trailing_slash</tt> -- if true, adds a trailing slash, as in "/archive/2005/". Note that this
495
- # is currently not recommended since it breaks caching.
496
- # * <tt>:host</tt> -- overrides the default (current) host if provided
497
- # * <tt>:protocol</tt> -- overrides the default (current) protocol if provided
498
- # * <tt>:user</tt> -- Inline HTTP authentication (only plucked out if :password is also present)
499
- # * <tt>:password</tt> -- Inline HTTP authentication (only plucked out if :user is also present)
500
- #
501
- # The URL is generated from the remaining keys in the hash. A URL contains two key parts: the <base> and a query string.
502
- # Routes composes a query string as the key/value pairs not included in the <base>.
503
- #
504
- # The default Routes setup supports a typical Rails path of "controller/action/id" where action and id are optional, with
505
- # action defaulting to 'index' when not given. Here are some typical url_for statements and their corresponding URLs:
506
- #  
507
- # url_for :controller => 'posts', :action => 'recent' # => 'proto://host.com/posts/recent'
508
- # url_for :controller => 'posts', :action => 'index' # => 'proto://host.com/posts'
509
- # url_for :controller => 'posts', :action => 'show', :id => 10 # => 'proto://host.com/posts/show/10'
510
- # url_for :controller => 'posts', :user => 'd', :password => '123' # => 'proto://d:123@host.com/posts'
511
- #
512
- # When generating a new URL, missing values may be filled in from the current request's parameters. For example,
513
- # <tt>url_for :action => 'some_action'</tt> will retain the current controller, as expected. This behavior extends to
514
- # other parameters, including <tt>:controller</tt>, <tt>:id</tt>, and any other parameters that are placed into a Route's
515
- # path.
516
- #  
517
- # The URL helpers such as <tt>url_for</tt> have a limited form of memory: when generating a new URL, they can look for
518
- # missing values in the current request's parameters. Routes attempts to guess when a value should and should not be
519
- # taken from the defaults. There are a few simple rules on how this is performed:
520
- #
521
- # * If the controller name begins with a slash, no defaults are used: <tt>url_for :controller => '/home'</tt>
522
- # * If the controller changes, the action will default to index unless provided
523
- #
524
- # The final rule is applied while the URL is being generated and is best illustrated by an example. Let us consider the
525
- # route given by <tt>map.connect 'people/:last/:first/:action', :action => 'bio', :controller => 'people'</tt>.
526
- #
527
- # Suppose that the current URL is "people/hh/david/contacts". Let's consider a few different cases of URLs which are generated
528
- # from this page.
529
- #
530
- # * <tt>url_for :action => 'bio'</tt> -- During the generation of this URL, default values will be used for the first and
531
- # last components, and the action shall change. The generated URL will be, "people/hh/david/bio".
532
- # * <tt>url_for :first => 'davids-little-brother'</tt> This generates the URL 'people/hh/davids-little-brother' -- note
533
- # that this URL leaves out the assumed action of 'bio'.
534
- #
535
- # However, you might ask why the action from the current request, 'contacts', isn't carried over into the new URL. The
536
- # answer has to do with the order in which the parameters appear in the generated path. In a nutshell, since the
537
- # value that appears in the slot for <tt>:first</tt> is not equal to default value for <tt>:first</tt> we stop using
538
- # defaults. On it's own, this rule can account for much of the typical Rails URL behavior.
539
- #  
540
- # Although a convienence, defaults can occasionaly get in your way. In some cases a default persists longer than desired.
541
- # The default may be cleared by adding <tt>:name => nil</tt> to <tt>url_for</tt>'s options.
542
- # This is often required when writing form helpers, since the defaults in play may vary greatly depending upon where the
543
- # helper is used from. The following line will redirect to PostController's default action, regardless of the page it is
544
- # displayed on:
545
- #
546
- # url_for :controller => 'posts', :action => nil
547
- #
548
- # If you explicitly want to create a URL that's almost the same as the current URL, you can do so using the
549
- # :overwrite_params options. Say for your posts you have different views for showing and printing them.
550
- # Then, in the show view, you get the URL for the print view like this
551
- #
552
- # url_for :overwrite_params => { :action => 'print' }
553
- #
554
- # This takes the current URL as is and only exchanges the action. In contrast, <tt>url_for :action => 'print'</tt>
555
- # would have slashed-off the path components after the changed action.
556
- def url_for(options = nil) #:doc:
557
- case options || {}
558
- when String
559
- options
560
- when Hash
561
- @url.rewrite(rewrite_options(options))
562
- else
563
- polymorphic_url(options, self)
564
- end
565
- end
566
-
567
- # Converts the class name from something like "OneModule::TwoModule::NeatController" to "NeatController".
568
- def controller_class_name
569
- self.class.controller_class_name
570
- end
571
-
572
- # Converts the class name from something like "OneModule::TwoModule::NeatController" to "neat".
573
- def controller_name
574
- self.class.controller_name
575
- end
576
-
577
- # Converts the class name from something like "OneModule::TwoModule::NeatController" to "one_module/two_module/neat".
578
- def controller_path
579
- self.class.controller_path
580
- end
581
-
582
- def session_enabled?
583
- request.session_options && request.session_options[:disabled] != false
584
- end
585
-
586
- # View load paths for controller.
587
- def view_paths
588
- self.class.view_paths
589
- end
590
-
591
- protected
592
- # Renders the content that will be returned to the browser as the response body.
593
- #
594
- # === Rendering an action
595
- #
596
- # Action rendering is the most common form and the type used automatically by Action Controller when nothing else is
597
- # specified. By default, actions are rendered within the current layout (if one exists).
598
- #
599
- # # Renders the template for the action "goal" within the current controller
600
- # render :action => "goal"
601
- #
602
- # # Renders the template for the action "short_goal" within the current controller,
603
- # # but without the current active layout
604
- # render :action => "short_goal", :layout => false
605
- #
606
- # # Renders the template for the action "long_goal" within the current controller,
607
- # # but with a custom layout
608
- # render :action => "long_goal", :layout => "spectacular"
609
- #
610
- # _Deprecation_ _notice_: This used to have the signatures <tt>render_action("action", status = 200)</tt>,
611
- # <tt>render_without_layout("controller/action", status = 200)</tt>, and
612
- # <tt>render_with_layout("controller/action", status = 200, layout)</tt>.
613
- #
614
- # === Rendering partials
615
- #
616
- # Partial rendering in a controller is most commonly used together with Ajax calls that only update one or a few elements on a page
617
- # without reloading. Rendering of partials from the controller makes it possible to use the same partial template in
618
- # both the full-page rendering (by calling it from within the template) and when sub-page updates happen (from the
619
- # controller action responding to Ajax calls). By default, the current layout is not used.
620
- #
621
- # # Renders the same partial with a local variable.
622
- # render :partial => "person", :locals => { :name => "david" }
623
- #
624
- # # Renders a collection of the same partial by making each element
625
- # # of @winners available through the local variable "person" as it
626
- # # builds the complete response.
627
- # render :partial => "person", :collection => @winners
628
- #
629
- # # Renders the same collection of partials, but also renders the
630
- # # person_divider partial between each person partial.
631
- # render :partial => "person", :collection => @winners, :spacer_template => "person_divider"
632
- #
633
- # # Renders a collection of partials located in a view subfolder
634
- # # outside of our current controller. In this example we will be
635
- # # rendering app/views/shared/_note.r(html|xml) Inside the partial
636
- # # each element of @new_notes is available as the local var "note".
637
- # render :partial => "shared/note", :collection => @new_notes
638
- #
639
- # # Renders the partial with a status code of 500 (internal error).
640
- # render :partial => "broken", :status => 500
641
- #
642
- # Note that the partial filename must also be a valid Ruby variable name,
643
- # so e.g. 2005 and register-user are invalid.
644
- #
645
- #
646
- # == Automatic etagging
647
- #
648
- # Rendering will automatically insert the etag header on 200 OK responses. The etag is calculated using MD5 of the
649
- # response body. If a request comes in that has a matching etag, the response will be changed to a 304 Not Modified
650
- # and the response body will be set to an empty string. No etag header will be inserted if it's already set.
651
- #
652
- # === Rendering a template
653
- #
654
- # Template rendering works just like action rendering except that it takes a path relative to the template root.
655
- # The current layout is automatically applied.
656
- #
657
- # # Renders the template located in [TEMPLATE_ROOT]/weblog/show.r(html|xml) (in Rails, app/views/weblog/show.erb)
658
- # render :template => "weblog/show"
659
- #
660
- # === Rendering a file
661
- #
662
- # File rendering works just like action rendering except that it takes a filesystem path. By default, the path
663
- # is assumed to be absolute, and the current layout is not applied.
664
- #
665
- # # Renders the template located at the absolute filesystem path
666
- # render :file => "/path/to/some/template.erb"
667
- # render :file => "c:/path/to/some/template.erb"
668
- #
669
- # # Renders a template within the current layout, and with a 404 status code
670
- # render :file => "/path/to/some/template.erb", :layout => true, :status => 404
671
- # render :file => "c:/path/to/some/template.erb", :layout => true, :status => 404
672
- #
673
- # # Renders a template relative to the template root and chooses the proper file extension
674
- # render :file => "some/template", :use_full_path => true
675
- #
676
- # _Deprecation_ _notice_: This used to have the signature <tt>render_file(path, status = 200)</tt>
677
- #
678
- # === Rendering text
679
- #
680
- # Rendering of text is usually used for tests or for rendering prepared content, such as a cache. By default, text
681
- # rendering is not done within the active layout.
682
- #
683
- # # Renders the clear text "hello world" with status code 200
684
- # render :text => "hello world!"
685
- #
686
- # # Renders the clear text "Explosion!" with status code 500
687
- # render :text => "Explosion!", :status => 500
688
- #
689
- # # Renders the clear text "Hi there!" within the current active layout (if one exists)
690
- # render :text => "Explosion!", :layout => true
691
- #
692
- # # Renders the clear text "Hi there!" within the layout
693
- # # placed in "app/views/layouts/special.r(html|xml)"
694
- # render :text => "Explosion!", :layout => "special"
695
- #
696
- # The :text option can also accept a Proc object, which can be used to manually control the page generation. This should
697
- # generally be avoided, as it violates the separation between code and content, and because almost everything that can be
698
- # done with this method can also be done more cleanly using one of the other rendering methods, most notably templates.
699
- #
700
- # # Renders "Hello from code!"
701
- # render :text => proc { |response, output| output.write("Hello from code!") }
702
- #
703
- # _Deprecation_ _notice_: This used to have the signature <tt>render_text("text", status = 200)</tt>
704
- #
705
- # === Rendering JSON
706
- #
707
- # Rendering JSON sets the content type to text/x-json and optionally wraps the JSON in a callback. It is expected
708
- # that the response will be eval'd for use as a data structure.
709
- #
710
- # # Renders '{name: "David"}'
711
- # render :json => {:name => "David"}.to_json
712
- #
713
- # Sometimes the result isn't handled directly by a script (such as when the request comes from a SCRIPT tag),
714
- # so the callback option is provided for these cases.
715
- #
716
- # # Renders 'show({name: "David"})'
717
- # render :json => {:name => "David"}.to_json, :callback => 'show'
718
- #
719
- # === Rendering an inline template
720
- #
721
- # Rendering of an inline template works as a cross between text and action rendering where the source for the template
722
- # is supplied inline, like text, but its interpreted with ERb or Builder, like action. By default, ERb is used for rendering
723
- # and the current layout is not used.
724
- #
725
- # # Renders "hello, hello, hello, again"
726
- # render :inline => "<%= 'hello, ' * 3 + 'again' %>"
727
- #
728
- # # Renders "<p>Good seeing you!</p>" using Builder
729
- # render :inline => "xml.p { 'Good seeing you!' }", :type => :builder
730
- #
731
- # # Renders "hello david"
732
- # render :inline => "<%= 'hello ' + name %>", :locals => { :name => "david" }
733
- #
734
- # _Deprecation_ _notice_: This used to have the signature <tt>render_template(template, status = 200, type = :rhtml)</tt>
735
- #
736
- # === Rendering inline JavaScriptGenerator page updates
737
- #
738
- # In addition to rendering JavaScriptGenerator page updates with Ajax in RJS templates (see ActionView::Base for details),
739
- # you can also pass the <tt>:update</tt> parameter to +render+, along with a block, to render page updates inline.
740
- #
741
- # render :update do |page|
742
- # page.replace_html 'user_list', :partial => 'user', :collection => @users
743
- # page.visual_effect :highlight, 'user_list'
744
- # end
745
- #
746
- # === Rendering with status and location headers
747
- #
748
- # All renders take the :status and :location options and turn them into headers. They can even be used together:
749
- #
750
- # render :xml => post.to_xml, :status => :created, :location => post_url(post)
751
- def render(options = nil, deprecated_status = nil, &block) #:doc:
752
- raise DoubleRenderError, "Can only render or redirect once per action" if performed?
753
-
754
- if options.nil?
755
- return render_file(default_template_name, deprecated_status, true)
756
- else
757
- # Backwards compatibility
758
- unless options.is_a?(Hash)
759
- if options == :update
760
- options = { :update => true }
761
- else
762
- ActiveSupport::Deprecation.warn(
763
- "You called render('#{options}'), which is a deprecated API call. Instead you use " +
764
- "render :file => #{options}. Calling render with just a string will be removed from Rails 2.0.",
765
- caller
766
- )
767
-
768
- return render_file(options, deprecated_status, true)
769
- end
770
- end
771
- end
772
-
773
- if content_type = options[:content_type]
774
- response.content_type = content_type.to_s
775
- end
776
-
777
- if location = options[:location]
778
- response.headers["Location"] = location
779
- end
780
-
781
- if text = options[:text]
782
- render_text(text, options[:status])
783
-
784
- else
785
- if file = options[:file]
786
- render_file(file, options[:status], options[:use_full_path], options[:locals] || {})
787
-
788
- elsif template = options[:template]
789
- render_file(template, options[:status], true)
790
-
791
- elsif inline = options[:inline]
792
- render_template(inline, options[:status], options[:type], options[:locals] || {})
793
-
794
- elsif action_name = options[:action]
795
- ActiveSupport::Deprecation.silence do
796
- render_action(action_name, options[:status], options[:layout])
797
- end
798
-
799
- elsif xml = options[:xml]
800
- render_xml(xml, options[:status])
801
-
802
- elsif json = options[:json]
803
- render_json(json, options[:callback], options[:status])
804
-
805
- elsif partial = options[:partial]
806
- partial = default_template_name if partial == true
807
- if collection = options[:collection]
808
- render_partial_collection(partial, collection, options[:spacer_template], options[:locals], options[:status])
809
- else
810
- render_partial(partial, ActionView::Base::ObjectWrapper.new(options[:object]), options[:locals], options[:status])
811
- end
812
-
813
- elsif options[:update]
814
- add_variables_to_assigns
815
- @template.send :evaluate_assigns
816
-
817
- generator = ActionView::Helpers::PrototypeHelper::JavaScriptGenerator.new(@template, &block)
818
- render_javascript(generator.to_s)
819
-
820
- elsif options[:nothing]
821
- # Safari doesn't pass the headers of the return if the response is zero length
822
- render_text(" ", options[:status])
823
-
824
- else
825
- render_file(default_template_name, options[:status], true)
826
-
827
- end
828
- end
829
- end
830
-
831
- # Renders according to the same rules as <tt>render</tt>, but returns the result in a string instead
832
- # of sending it as the response body to the browser.
833
- def render_to_string(options = nil, &block) #:doc:
834
- ActiveSupport::Deprecation.silence { render(options, &block) }
835
- ensure
836
- erase_render_results
837
- forget_variables_added_to_assigns
838
- reset_variables_added_to_assigns
839
- end
840
-
841
- def render_action(action_name, status = nil, with_layout = true) #:nodoc:
842
- template = default_template_name(action_name.to_s)
843
- if with_layout && !template_exempt_from_layout?(template)
844
- render_with_layout(:file => template, :status => status, :use_full_path => true, :layout => true)
845
- else
846
- render_without_layout(:file => template, :status => status, :use_full_path => true)
847
- end
848
- end
849
-
850
- def render_file(template_path, status = nil, use_full_path = false, locals = {}) #:nodoc:
851
- add_variables_to_assigns
852
- assert_existence_of_template_file(template_path) if use_full_path
853
- logger.info("Rendering #{template_path}" + (status ? " (#{status})" : '')) if logger
854
- render_text(@template.render_file(template_path, use_full_path, locals), status)
855
- end
856
-
857
- def render_template(template, status = nil, type = :erb, local_assigns = {}) #:nodoc:
858
- add_variables_to_assigns
859
- render_text(@template.render_template(type, template, nil, local_assigns), status)
860
- end
861
-
862
- def render_text(text = nil, status = nil, append_response = false) #:nodoc:
863
- @performed_render = true
864
-
865
- response.headers['Status'] = interpret_status(status || DEFAULT_RENDER_STATUS_CODE)
866
-
867
- if append_response
868
- response.body ||= ''
869
- response.body << text.to_s
870
- else
871
- response.body = text.is_a?(Proc) ? text : text.to_s
872
- end
873
- end
874
-
875
- def render_javascript(javascript, status = nil, append_response = true) #:nodoc:
876
- response.content_type = Mime::JS
877
- render_text(javascript, status, append_response)
878
- end
879
-
880
- def render_xml(xml, status = nil) #:nodoc:
881
- response.content_type = Mime::XML
882
- render_text(xml.respond_to?(:to_xml) ? xml.to_xml : xml, status)
883
- end
884
-
885
- def render_json(json, callback = nil, status = nil) #:nodoc:
886
- json = "#{callback}(#{json})" unless callback.blank?
887
-
888
- response.content_type = Mime::JSON
889
- render_text(json, status)
890
- end
891
-
892
- def render_nothing(status = nil) #:nodoc:
893
- render_text(' ', status)
894
- end
895
-
896
- def render_partial(partial_path = default_template_name, object = nil, local_assigns = nil, status = nil) #:nodoc:
897
- add_variables_to_assigns
898
- render_text(@template.send(:render_partial, partial_path, object, local_assigns), status)
899
- end
900
-
901
- def render_partial_collection(partial_name, collection, partial_spacer_template = nil, local_assigns = nil, status = nil) #:nodoc:
902
- add_variables_to_assigns
903
- render_text(@template.send(:render_partial_collection, partial_name, collection, partial_spacer_template, local_assigns), status)
904
- end
905
-
906
- def render_with_layout(template_name = default_template_name, status = nil, layout = nil) #:nodoc:
907
- render_with_a_layout(template_name, status, layout)
908
- end
909
-
910
- def render_without_layout(template_name = default_template_name, status = nil) #:nodoc:
911
- render_with_no_layout(template_name, status)
912
- end
913
-
914
-
915
- # Return a response that has no content (merely headers). The options
916
- # argument is interpreted to be a hash of header names and values.
917
- # This allows you to easily return a response that consists only of
918
- # significant headers:
919
- #
920
- # head :created, :location => person_path(@person)
921
- #
922
- # It can also be used to return exceptional conditions:
923
- #
924
- # return head(:method_not_allowed) unless request.post?
925
- # return head(:bad_request) unless valid_request?
926
- # render
927
- def head(*args)
928
- if args.length > 2
929
- raise ArgumentError, "too many arguments to head"
930
- elsif args.empty?
931
- raise ArgumentError, "too few arguments to head"
932
- elsif args.length == 2
933
- status = args.shift
934
- options = args.shift
935
- elsif args.first.is_a?(Hash)
936
- options = args.first
937
- else
938
- status = args.first
939
- options = {}
940
- end
941
-
942
- raise ArgumentError, "head requires an options hash" if !options.is_a?(Hash)
943
-
944
- status = interpret_status(status || options.delete(:status) || :ok)
945
-
946
- options.each do |key, value|
947
- headers[key.to_s.dasherize.split(/-/).map { |v| v.capitalize }.join("-")] = value.to_s
948
- end
949
-
950
- render :nothing => true, :status => status
951
- end
952
-
953
-
954
- # Clears the rendered results, allowing for another render to be performed.
955
- def erase_render_results #:nodoc:
956
- response.body = nil
957
- @performed_render = false
958
- end
959
-
960
- # Clears the redirected results from the headers, resets the status to 200 and returns
961
- # the URL that was used to redirect or nil if there was no redirected URL
962
- # Note that +redirect_to+ will change the body of the response to indicate a redirection.
963
- # The response body is not reset here, see +erase_render_results+
964
- def erase_redirect_results #:nodoc:
965
- @performed_redirect = false
966
- response.redirected_to = nil
967
- response.redirected_to_method_params = nil
968
- response.headers['Status'] = DEFAULT_RENDER_STATUS_CODE
969
- response.headers.delete('Location')
970
- end
971
-
972
- # Erase both render and redirect results
973
- def erase_results #:nodoc:
974
- erase_render_results
975
- erase_redirect_results
976
- end
977
-
978
- def rewrite_options(options) #:nodoc:
979
- if defaults = default_url_options(options)
980
- defaults.merge(options)
981
- else
982
- options
983
- end
984
- end
985
-
986
- # Overwrite to implement a number of default options that all url_for-based methods will use. The default options should come in
987
- # the form of a hash, just like the one you would use for url_for directly. Example:
988
- #
989
- # def default_url_options(options)
990
- # { :project => @project.active? ? @project.url_name : "unknown" }
991
- # end
992
- #
993
- # As you can infer from the example, this is mostly useful for situations where you want to centralize dynamic decisions about the
994
- # urls as they stem from the business domain. Please note that any individual url_for call can always override the defaults set
995
- # by this method.
996
- def default_url_options(options) #:doc:
997
- end
998
-
999
- # Redirects the browser to the target specified in +options+. This parameter can take one of three forms:
1000
- #
1001
- # * <tt>Hash</tt>: The URL will be generated by calling url_for with the +options+.
1002
- # * <tt>Record</tt>: The URL will be generated by calling url_for with the +options+, which will reference a named URL for that record.
1003
- # * <tt>String starting with protocol:// (like http://)</tt>: Is passed straight through as the target for redirection.
1004
- # * <tt>String not containing a protocol</tt>: The current protocol and host is prepended to the string.
1005
- # * <tt>:back</tt>: Back to the page that issued the request. Useful for forms that are triggered from multiple places.
1006
- # Short-hand for redirect_to(request.env["HTTP_REFERER"])
1007
- #
1008
- # Examples:
1009
- # redirect_to :action => "show", :id => 5
1010
- # redirect_to post
1011
- # redirect_to "http://www.rubyonrails.org"
1012
- # redirect_to "/images/screenshot.jpg"
1013
- # redirect_to :back
1014
- #
1015
- # The redirection happens as a "302 Moved" header.
1016
- #
1017
- # When using <tt>redirect_to :back</tt>, if there is no referrer,
1018
- # RedirectBackError will be raised. You may specify some fallback
1019
- # behavior for this case by rescueing RedirectBackError.
1020
- def redirect_to(options = {}) #:doc:
1021
- case options
1022
- when %r{^\w+://.*}
1023
- raise DoubleRenderError if performed?
1024
- logger.info("Redirected to #{options}") if logger
1025
- response.redirect(options)
1026
- response.redirected_to = options
1027
- @performed_redirect = true
1028
-
1029
- when String
1030
- redirect_to(request.protocol + request.host_with_port + options)
1031
-
1032
- when :back
1033
- request.env["HTTP_REFERER"] ? redirect_to(request.env["HTTP_REFERER"]) : raise(RedirectBackError)
1034
-
1035
- else
1036
- redirect_to(url_for(options))
1037
- response.redirected_to = options
1038
- end
1039
- end
1040
-
1041
- # Sets a HTTP 1.1 Cache-Control header. Defaults to issuing a "private" instruction, so that
1042
- # intermediate caches shouldn't cache the response.
1043
- #
1044
- # Examples:
1045
- # expires_in 20.minutes
1046
- # expires_in 3.hours, :private => false
1047
- # expires in 3.hours, 'max-stale' => 5.hours, :private => nil, :public => true
1048
- #
1049
- # This method will overwrite an existing Cache-Control header.
1050
- # See http://www.w3.org/Protocols/rfc2616/rfc2616-sec14.html for more possibilities.
1051
- def expires_in(seconds, options = {}) #:doc:
1052
- cache_options = { 'max-age' => seconds, 'private' => true }.symbolize_keys.merge!(options.symbolize_keys)
1053
- cache_options.delete_if { |k,v| v.nil? or v == false }
1054
- cache_control = cache_options.map{ |k,v| v == true ? k.to_s : "#{k.to_s}=#{v.to_s}"}
1055
- response.headers["Cache-Control"] = cache_control.join(', ')
1056
- end
1057
-
1058
- # Sets a HTTP 1.1 Cache-Control header of "no-cache" so no caching should occur by the browser or
1059
- # intermediate caches (like caching proxy servers).
1060
- def expires_now #:doc:
1061
- response.headers["Cache-Control"] = "no-cache"
1062
- end
1063
-
1064
- # Resets the session by clearing out all the objects stored within and initializing a new session object.
1065
- def reset_session #:doc:
1066
- request.reset_session
1067
- @_session = request.session
1068
- response.session = @_session
1069
- end
1070
-
1071
- private
1072
- def self.view_class
1073
- @view_class ||=
1074
- # create a new class based on the default template class and include helper methods
1075
- returning Class.new(ActionView::Base) do |view_class|
1076
- view_class.send(:include, master_helper_module)
1077
- end
1078
- end
1079
-
1080
- def initialize_template_class(response)
1081
- raise "You must assign a template class through ActionController.template_class= before processing a request" unless @@template_class
1082
-
1083
- response.template = self.class.view_class.new(view_paths, {}, self)
1084
- response.redirected_to = nil
1085
- @performed_render = @performed_redirect = false
1086
- end
1087
-
1088
- def assign_shortcuts(request, response)
1089
- @_request, @_params, @_cookies = request, request.parameters, request.cookies
1090
-
1091
- @_response = response
1092
- @_response.session = request.session
1093
-
1094
- @_session = @_response.session
1095
- @template = @_response.template
1096
- @assigns = @_response.template.assigns
1097
-
1098
- @_headers = @_response.headers
1099
- end
1100
-
1101
- def initialize_current_url
1102
- @url = UrlRewriter.new(request, params.clone)
1103
- end
1104
-
1105
- def log_processing
1106
- if logger
1107
- logger.info "\n\nProcessing #{controller_class_name}\##{action_name} (for #{request_origin}) [#{request.method.to_s.upcase}]"
1108
- logger.info " Session ID: #{@_session.session_id}" if @_session and @_session.respond_to?(:session_id)
1109
- logger.info " Parameters: #{respond_to?(:filter_parameters) ? filter_parameters(params).inspect : params.inspect}"
1110
- end
1111
- end
1112
-
1113
- def perform_action
1114
- if self.class.action_methods.include?(action_name)
1115
- send(action_name)
1116
- render unless performed?
1117
- elsif respond_to? :method_missing
1118
- send(:method_missing, action_name)
1119
- render unless performed?
1120
- elsif template_exists? && template_public?
1121
- render
1122
- else
1123
- raise UnknownAction, "No action responded to #{action_name}", caller
1124
- end
1125
- end
1126
-
1127
- def performed?
1128
- @performed_render || @performed_redirect
1129
- end
1130
-
1131
- def assign_names
1132
- @action_name = (params['action'] || 'index')
1133
- end
1134
-
1135
- def assign_default_content_type_and_charset
1136
- response.content_type ||= Mime::HTML
1137
- response.charset ||= self.class.default_charset unless sending_file?
1138
- end
1139
-
1140
- def sending_file?
1141
- response.headers["Content-Transfer-Encoding"] == "binary"
1142
- end
1143
-
1144
- def action_methods
1145
- self.class.action_methods
1146
- end
1147
-
1148
- def self.action_methods
1149
- @action_methods ||= Set.new(public_instance_methods - hidden_actions)
1150
- end
1151
-
1152
- def add_variables_to_assigns
1153
- unless @variables_added
1154
- add_instance_variables_to_assigns
1155
- add_class_variables_to_assigns if view_controller_internals
1156
- @variables_added = true
1157
- end
1158
- end
1159
-
1160
- def forget_variables_added_to_assigns
1161
- @variables_added = nil
1162
- end
1163
-
1164
- def reset_variables_added_to_assigns
1165
- @template.instance_variable_set("@assigns_added", nil)
1166
- end
1167
-
1168
- def add_instance_variables_to_assigns
1169
- @@protected_variables_cache ||= Set.new(protected_instance_variables)
1170
- instance_variables.each do |var|
1171
- next if @@protected_variables_cache.include?(var)
1172
- @assigns[var[1..-1]] = instance_variable_get(var)
1173
- end
1174
- end
1175
-
1176
- def add_class_variables_to_assigns
1177
- %w(view_paths logger template_class ignore_missing_templates).each do |cvar|
1178
- @assigns[cvar] = self.send(cvar)
1179
- end
1180
- end
1181
-
1182
- def protected_instance_variables
1183
- if view_controller_internals
1184
- %w(@assigns @performed_redirect @performed_render)
1185
- else
1186
- %w(@assigns @performed_redirect @performed_render
1187
- @_request @request @_response @response @_params @params
1188
- @_session @session @_cookies @cookies
1189
- @template @request_origin @parent_controller)
1190
- end
1191
- end
1192
-
1193
- def request_origin
1194
- # this *needs* to be cached!
1195
- # otherwise you'd get different results if calling it more than once
1196
- @request_origin ||= "#{request.remote_ip} at #{Time.now.to_s(:db)}"
1197
- end
1198
-
1199
- def complete_request_uri
1200
- "#{request.protocol}#{request.host}#{request.request_uri}"
1201
- end
1202
-
1203
- def close_session
1204
- @_session.close if @_session && @_session.respond_to?(:close)
1205
- end
1206
-
1207
- def template_exists?(template_name = default_template_name)
1208
- @template.file_exists?(template_name)
1209
- end
1210
-
1211
- def template_public?(template_name = default_template_name)
1212
- @template.file_public?(template_name)
1213
- end
1214
-
1215
- def template_exempt_from_layout?(template_name = default_template_name)
1216
- extension = @template && @template.pick_template_extension(template_name)
1217
- name_with_extension = !template_name.include?('.') && extension ? "#{template_name}.#{extension}" : template_name
1218
- extension == :rjs || @@exempt_from_layout.any? { |ext| name_with_extension =~ ext }
1219
- end
1220
-
1221
- def assert_existence_of_template_file(template_name)
1222
- unless template_exists?(template_name) || ignore_missing_templates
1223
- full_template_path = template_name.include?('.') ? template_name : @template.full_template_path(template_name, "#{@template.template_format}.erb")
1224
- template_type = (template_name =~ /layouts/i) ? 'layout' : 'template'
1225
- raise(MissingTemplate, "Missing #{template_type} #{full_template_path}")
1226
- end
1227
- end
1228
-
1229
- def default_template_name(action_name = self.action_name)
1230
- if action_name
1231
- action_name = action_name.to_s
1232
- if action_name.include?('/') && template_path_includes_controller?(action_name)
1233
- action_name = strip_out_controller(action_name)
1234
- end
1235
- end
1236
- "#{self.class.controller_path}/#{action_name}"
1237
- end
1238
-
1239
- def strip_out_controller(path)
1240
- path.split('/', 2).last
1241
- end
1242
-
1243
- def template_path_includes_controller?(path)
1244
- self.class.controller_path.split('/')[-1] == path.split('/')[0]
1245
- end
1246
-
1247
- def process_cleanup
1248
- close_session
1249
- end
1250
- end
1251
- end