jstorimer-deep-test 0.1.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (1351) hide show
  1. data/.gitignore +6 -0
  2. data/CHANGELOG +47 -0
  3. data/README.rdoc +199 -0
  4. data/Rakefile +150 -0
  5. data/TODO +4 -0
  6. data/VERSION +1 -0
  7. data/infrastructure/dynamic_teardown.rb +22 -0
  8. data/infrastructure/fake_deadlock_error.rb +12 -0
  9. data/infrastructure/load.rb +11 -0
  10. data/infrastructure/test_central_command.rb +15 -0
  11. data/infrastructure/test_exception.rb +7 -0
  12. data/infrastructure/test_factory.rb +74 -0
  13. data/infrastructure/test_logger.rb +11 -0
  14. data/infrastructure/test_operator.rb +15 -0
  15. data/infrastructure/test_result.rb +15 -0
  16. data/infrastructure/thread_agent.rb +21 -0
  17. data/infrastructure/timewarp/Rakefile +14 -0
  18. data/infrastructure/timewarp/lib/timewarp.rb +21 -0
  19. data/infrastructure/timewarp/test/timewarp_test.rb +45 -0
  20. data/lib/deep_test/agent.rb +108 -0
  21. data/lib/deep_test/central_command.rb +165 -0
  22. data/lib/deep_test/cpu_info.rb +22 -0
  23. data/lib/deep_test/database/mysql_setup_listener.rb +112 -0
  24. data/lib/deep_test/database/setup_listener.rb +116 -0
  25. data/lib/deep_test/deadlock_detector.rb +7 -0
  26. data/lib/deep_test/demon.rb +25 -0
  27. data/lib/deep_test/distributed/beachhead.rb +104 -0
  28. data/lib/deep_test/distributed/dispatch_controller.rb +60 -0
  29. data/lib/deep_test/distributed/establish_beachhead.rb +19 -0
  30. data/lib/deep_test/distributed/filename_resolver.rb +40 -0
  31. data/lib/deep_test/distributed/landing_fleet.rb +30 -0
  32. data/lib/deep_test/distributed/landing_ship.rb +60 -0
  33. data/lib/deep_test/distributed/remote_deployment.rb +56 -0
  34. data/lib/deep_test/distributed/rsync.rb +50 -0
  35. data/lib/deep_test/distributed/shell_environment.rb +50 -0
  36. data/lib/deep_test/distributed/ssh_client_connection_info.rb +14 -0
  37. data/lib/deep_test/extensions/object_extension.rb +40 -0
  38. data/lib/deep_test/failure_message.rb +19 -0
  39. data/lib/deep_test/lib_root.rb +4 -0
  40. data/lib/deep_test/listener_list.rb +17 -0
  41. data/lib/deep_test/local_deployment.rb +46 -0
  42. data/lib/deep_test/logger.rb +32 -0
  43. data/lib/deep_test/main.rb +41 -0
  44. data/lib/deep_test/marshallable_exception_wrapper.rb +44 -0
  45. data/lib/deep_test/metrics/data.rb +34 -0
  46. data/lib/deep_test/metrics/measurement.rb +39 -0
  47. data/lib/deep_test/null_listener.rb +62 -0
  48. data/lib/deep_test/options.rb +113 -0
  49. data/lib/deep_test/proxy_io.rb +77 -0
  50. data/lib/deep_test/rake_tasks.rb +13 -0
  51. data/lib/deep_test/result_reader.rb +40 -0
  52. data/lib/deep_test/rspec_detector.rb +21 -0
  53. data/lib/deep_test/spec/extensions/example_group_methods.rb +64 -0
  54. data/lib/deep_test/spec/extensions/example_methods.rb +52 -0
  55. data/lib/deep_test/spec/extensions/options.rb +43 -0
  56. data/lib/deep_test/spec/extensions/spec_task.rb +21 -0
  57. data/lib/deep_test/spec/runner.rb +72 -0
  58. data/lib/deep_test/spec/work_result.rb +35 -0
  59. data/lib/deep_test/spec/work_unit.rb +59 -0
  60. data/lib/deep_test/spec.rb +17 -0
  61. data/lib/deep_test/test/extensions/error.rb +14 -0
  62. data/lib/deep_test/test/run_test_suite.rb +5 -0
  63. data/lib/deep_test/test/runner.rb +24 -0
  64. data/lib/deep_test/test/supervised_test_suite.rb +48 -0
  65. data/lib/deep_test/test/work_result.rb +35 -0
  66. data/lib/deep_test/test/work_unit.rb +40 -0
  67. data/lib/deep_test/test.rb +10 -0
  68. data/lib/deep_test/test_task.rb +47 -0
  69. data/lib/deep_test/ui/console.rb +74 -0
  70. data/lib/deep_test/ui/null.rb +17 -0
  71. data/lib/deep_test/warlock.rb +146 -0
  72. data/lib/deep_test.rb +78 -0
  73. data/lib/telegraph/ack_sequence.rb +14 -0
  74. data/lib/telegraph/logging.rb +20 -0
  75. data/lib/telegraph/message.rb +39 -0
  76. data/lib/telegraph/operator.rb +47 -0
  77. data/lib/telegraph/switchboard.rb +57 -0
  78. data/lib/telegraph/wire.rb +73 -0
  79. data/lib/telegraph.rb +29 -0
  80. data/negative_acceptance_tests/dying_spec.rb +13 -0
  81. data/negative_acceptance_tests/dying_test.rb +13 -0
  82. data/negative_acceptance_tests/failing_spec.rb +9 -0
  83. data/negative_acceptance_tests/failing_test.rb +9 -0
  84. data/negative_acceptance_tests/kill_agent_one_on_start_work.rb +16 -0
  85. data/negative_acceptance_tests/passing_spec.rb +10 -0
  86. data/negative_acceptance_tests/passing_test.rb +12 -0
  87. data/negative_acceptance_tests/tasks.rake +87 -0
  88. data/negative_acceptance_tests/tests.rb +60 -0
  89. data/sample_rails_project/README +182 -0
  90. data/sample_rails_project/Rakefile +10 -0
  91. data/sample_rails_project/app/controllers/application.rb +7 -0
  92. data/sample_rails_project/app/controllers/people_controller.rb +2 -0
  93. data/sample_rails_project/app/helpers/application_helper.rb +3 -0
  94. data/sample_rails_project/app/helpers/people_helper.rb +7 -0
  95. data/sample_rails_project/app/models/person.rb +2 -0
  96. data/sample_rails_project/config/boot.rb +45 -0
  97. data/sample_rails_project/config/database.yml +29 -0
  98. data/sample_rails_project/config/environment.rb +60 -0
  99. data/sample_rails_project/config/environments/development.rb +21 -0
  100. data/sample_rails_project/config/environments/production.rb +18 -0
  101. data/sample_rails_project/config/environments/test.rb +19 -0
  102. data/sample_rails_project/config/routes.rb +23 -0
  103. data/sample_rails_project/db/.gitignore +2 -0
  104. data/sample_rails_project/db/migrate/001_create_people.rb +11 -0
  105. data/sample_rails_project/db/schema.rb +11 -0
  106. data/sample_rails_project/deep_test.rb +34 -0
  107. data/sample_rails_project/doc/README_FOR_APP +2 -0
  108. data/sample_rails_project/lib/foreign_host_agent_simulation_listener.rb +16 -0
  109. data/sample_rails_project/lib/tasks/create.sql +6 -0
  110. data/sample_rails_project/lib/tasks/db.rake +16 -0
  111. data/sample_rails_project/lib/tasks/deep_test.rake +27 -0
  112. data/sample_rails_project/log/.gitignore +2 -0
  113. data/sample_rails_project/public/.htaccess +40 -0
  114. data/sample_rails_project/public/404.html +30 -0
  115. data/sample_rails_project/public/500.html +30 -0
  116. data/sample_rails_project/public/dispatch.cgi +10 -0
  117. data/sample_rails_project/public/dispatch.fcgi +24 -0
  118. data/sample_rails_project/public/dispatch.rb +10 -0
  119. data/sample_rails_project/public/favicon.ico +0 -0
  120. data/sample_rails_project/public/images/rails.png +0 -0
  121. data/sample_rails_project/public/index.html +277 -0
  122. data/sample_rails_project/public/javascripts/application.js +2 -0
  123. data/sample_rails_project/public/javascripts/controls.js +833 -0
  124. data/sample_rails_project/public/javascripts/dragdrop.js +942 -0
  125. data/sample_rails_project/public/javascripts/effects.js +1088 -0
  126. data/sample_rails_project/public/javascripts/prototype.js +2515 -0
  127. data/sample_rails_project/public/robots.txt +1 -0
  128. data/sample_rails_project/script/about +3 -0
  129. data/sample_rails_project/script/breakpointer +3 -0
  130. data/sample_rails_project/script/console +3 -0
  131. data/sample_rails_project/script/destroy +3 -0
  132. data/sample_rails_project/script/generate +3 -0
  133. data/sample_rails_project/script/performance/benchmarker +3 -0
  134. data/sample_rails_project/script/performance/profiler +3 -0
  135. data/sample_rails_project/script/plugin +3 -0
  136. data/sample_rails_project/script/process/inspector +3 -0
  137. data/sample_rails_project/script/process/reaper +3 -0
  138. data/sample_rails_project/script/process/spawner +3 -0
  139. data/sample_rails_project/script/runner +3 -0
  140. data/sample_rails_project/script/server +3 -0
  141. data/sample_rails_project/script/spec +4 -0
  142. data/sample_rails_project/script/spec_server +102 -0
  143. data/sample_rails_project/spec/controllers/people_controller_spec.rb +10 -0
  144. data/sample_rails_project/spec/helpers/people_helper_spec.rb +10 -0
  145. data/sample_rails_project/spec/rcov.opts +2 -0
  146. data/sample_rails_project/spec/spec.opts +6 -0
  147. data/sample_rails_project/spec/spec_helper.rb +43 -0
  148. data/sample_rails_project/stories/all.rb +4 -0
  149. data/sample_rails_project/stories/helper.rb +3 -0
  150. data/sample_rails_project/test/test_helper.rb +30 -0
  151. data/sample_rails_project/test/unit/database_connection_test.rb +13 -0
  152. data/sample_rails_project/test/unit/person_test.rb +13 -0
  153. data/sample_rails_project/vendor/plugins/rspec_on_rails/.gitignore +7 -0
  154. data/sample_rails_project/vendor/plugins/rspec_on_rails/History.txt +40 -0
  155. data/sample_rails_project/vendor/plugins/rspec_on_rails/Manifest.txt +151 -0
  156. data/sample_rails_project/vendor/plugins/rspec_on_rails/README.txt +81 -0
  157. data/sample_rails_project/vendor/plugins/rspec_on_rails/Rakefile +37 -0
  158. data/sample_rails_project/vendor/plugins/rspec_on_rails/UPGRADE +7 -0
  159. data/sample_rails_project/vendor/plugins/rspec_on_rails/generators/rspec/CHANGES +1 -0
  160. data/sample_rails_project/vendor/plugins/rspec_on_rails/generators/rspec/rspec_generator.rb +40 -0
  161. data/sample_rails_project/vendor/plugins/rspec_on_rails/generators/rspec/templates/all_stories.rb +4 -0
  162. data/sample_rails_project/vendor/plugins/rspec_on_rails/generators/rspec/templates/previous_failures.txt +0 -0
  163. data/sample_rails_project/vendor/plugins/rspec_on_rails/generators/rspec/templates/rcov.opts +2 -0
  164. data/sample_rails_project/vendor/plugins/rspec_on_rails/generators/rspec/templates/rspec.rake +132 -0
  165. data/sample_rails_project/vendor/plugins/rspec_on_rails/generators/rspec/templates/script/autospec +3 -0
  166. data/sample_rails_project/vendor/plugins/rspec_on_rails/generators/rspec/templates/script/spec +4 -0
  167. data/sample_rails_project/vendor/plugins/rspec_on_rails/generators/rspec/templates/script/spec_server +116 -0
  168. data/sample_rails_project/vendor/plugins/rspec_on_rails/generators/rspec/templates/spec.opts +4 -0
  169. data/sample_rails_project/vendor/plugins/rspec_on_rails/generators/rspec/templates/spec_helper.rb +47 -0
  170. data/sample_rails_project/vendor/plugins/rspec_on_rails/generators/rspec/templates/stories_helper.rb +3 -0
  171. data/sample_rails_project/vendor/plugins/rspec_on_rails/generators/rspec_controller/USAGE +33 -0
  172. data/sample_rails_project/vendor/plugins/rspec_on_rails/generators/rspec_controller/rspec_controller_generator.rb +49 -0
  173. data/sample_rails_project/vendor/plugins/rspec_on_rails/generators/rspec_controller/templates/controller_spec.rb +25 -0
  174. data/sample_rails_project/vendor/plugins/rspec_on_rails/generators/rspec_controller/templates/helper_spec.rb +11 -0
  175. data/sample_rails_project/vendor/plugins/rspec_on_rails/generators/rspec_controller/templates/view_spec.rb +12 -0
  176. data/sample_rails_project/vendor/plugins/rspec_on_rails/generators/rspec_default_values.rb +19 -0
  177. data/sample_rails_project/vendor/plugins/rspec_on_rails/generators/rspec_model/USAGE +18 -0
  178. data/sample_rails_project/vendor/plugins/rspec_on_rails/generators/rspec_model/rspec_model_generator.rb +35 -0
  179. data/sample_rails_project/vendor/plugins/rspec_on_rails/generators/rspec_model/templates/model_spec.rb +15 -0
  180. data/sample_rails_project/vendor/plugins/rspec_on_rails/generators/rspec_scaffold/rspec_scaffold_generator.rb +154 -0
  181. data/sample_rails_project/vendor/plugins/rspec_on_rails/generators/rspec_scaffold/templates/controller_spec.rb +173 -0
  182. data/sample_rails_project/vendor/plugins/rspec_on_rails/generators/rspec_scaffold/templates/edit_erb_spec.rb +26 -0
  183. data/sample_rails_project/vendor/plugins/rspec_on_rails/generators/rspec_scaffold/templates/helper_spec.rb +11 -0
  184. data/sample_rails_project/vendor/plugins/rspec_on_rails/generators/rspec_scaffold/templates/index_erb_spec.rb +27 -0
  185. data/sample_rails_project/vendor/plugins/rspec_on_rails/generators/rspec_scaffold/templates/new_erb_spec.rb +26 -0
  186. data/sample_rails_project/vendor/plugins/rspec_on_rails/generators/rspec_scaffold/templates/routing_spec.rb +59 -0
  187. data/sample_rails_project/vendor/plugins/rspec_on_rails/generators/rspec_scaffold/templates/show_erb_spec.rb +23 -0
  188. data/sample_rails_project/vendor/plugins/rspec_on_rails/init.rb +9 -0
  189. data/sample_rails_project/vendor/plugins/rspec_on_rails/lib/autotest/discover.rb +1 -0
  190. data/sample_rails_project/vendor/plugins/rspec_on_rails/lib/autotest/rails_rspec.rb +76 -0
  191. data/sample_rails_project/vendor/plugins/rspec_on_rails/lib/spec/rails/example/assigns_hash_proxy.rb +43 -0
  192. data/sample_rails_project/vendor/plugins/rspec_on_rails/lib/spec/rails/example/controller_example_group.rb +279 -0
  193. data/sample_rails_project/vendor/plugins/rspec_on_rails/lib/spec/rails/example/cookies_proxy.rb +25 -0
  194. data/sample_rails_project/vendor/plugins/rspec_on_rails/lib/spec/rails/example/functional_example_group.rb +84 -0
  195. data/sample_rails_project/vendor/plugins/rspec_on_rails/lib/spec/rails/example/helper_example_group.rb +164 -0
  196. data/sample_rails_project/vendor/plugins/rspec_on_rails/lib/spec/rails/example/model_example_group.rb +14 -0
  197. data/sample_rails_project/vendor/plugins/rspec_on_rails/lib/spec/rails/example/rails_example_group.rb +33 -0
  198. data/sample_rails_project/vendor/plugins/rspec_on_rails/lib/spec/rails/example/render_observer.rb +90 -0
  199. data/sample_rails_project/vendor/plugins/rspec_on_rails/lib/spec/rails/example/view_example_group.rb +178 -0
  200. data/sample_rails_project/vendor/plugins/rspec_on_rails/lib/spec/rails/example.rb +47 -0
  201. data/sample_rails_project/vendor/plugins/rspec_on_rails/lib/spec/rails/extensions/action_controller/base.rb +14 -0
  202. data/sample_rails_project/vendor/plugins/rspec_on_rails/lib/spec/rails/extensions/action_controller/rescue.rb +21 -0
  203. data/sample_rails_project/vendor/plugins/rspec_on_rails/lib/spec/rails/extensions/action_controller/test_response.rb +11 -0
  204. data/sample_rails_project/vendor/plugins/rspec_on_rails/lib/spec/rails/extensions/action_view/base.rb +31 -0
  205. data/sample_rails_project/vendor/plugins/rspec_on_rails/lib/spec/rails/extensions/active_record/base.rb +30 -0
  206. data/sample_rails_project/vendor/plugins/rspec_on_rails/lib/spec/rails/extensions/object.rb +5 -0
  207. data/sample_rails_project/vendor/plugins/rspec_on_rails/lib/spec/rails/extensions/spec/example/configuration.rb +71 -0
  208. data/sample_rails_project/vendor/plugins/rspec_on_rails/lib/spec/rails/extensions/spec/matchers/have.rb +21 -0
  209. data/sample_rails_project/vendor/plugins/rspec_on_rails/lib/spec/rails/extensions.rb +12 -0
  210. data/sample_rails_project/vendor/plugins/rspec_on_rails/lib/spec/rails/interop/testcase.rb +14 -0
  211. data/sample_rails_project/vendor/plugins/rspec_on_rails/lib/spec/rails/matchers/assert_select.rb +131 -0
  212. data/sample_rails_project/vendor/plugins/rspec_on_rails/lib/spec/rails/matchers/have_text.rb +57 -0
  213. data/sample_rails_project/vendor/plugins/rspec_on_rails/lib/spec/rails/matchers/include_text.rb +54 -0
  214. data/sample_rails_project/vendor/plugins/rspec_on_rails/lib/spec/rails/matchers/redirect_to.rb +113 -0
  215. data/sample_rails_project/vendor/plugins/rspec_on_rails/lib/spec/rails/matchers/render_template.rb +90 -0
  216. data/sample_rails_project/vendor/plugins/rspec_on_rails/lib/spec/rails/matchers.rb +30 -0
  217. data/sample_rails_project/vendor/plugins/rspec_on_rails/lib/spec/rails/mocks.rb +132 -0
  218. data/sample_rails_project/vendor/plugins/rspec_on_rails/lib/spec/rails/story_adapter.rb +79 -0
  219. data/sample_rails_project/vendor/plugins/rspec_on_rails/lib/spec/rails/version.rb +15 -0
  220. data/sample_rails_project/vendor/plugins/rspec_on_rails/lib/spec/rails.rb +15 -0
  221. data/sample_rails_project/vendor/plugins/rspec_on_rails/spec/rails/autotest/mappings_spec.rb +36 -0
  222. data/sample_rails_project/vendor/plugins/rspec_on_rails/spec/rails/example/assigns_hash_proxy_spec.rb +60 -0
  223. data/sample_rails_project/vendor/plugins/rspec_on_rails/spec/rails/example/configuration_spec.rb +83 -0
  224. data/sample_rails_project/vendor/plugins/rspec_on_rails/spec/rails/example/controller_isolation_spec.rb +62 -0
  225. data/sample_rails_project/vendor/plugins/rspec_on_rails/spec/rails/example/controller_spec_spec.rb +260 -0
  226. data/sample_rails_project/vendor/plugins/rspec_on_rails/spec/rails/example/cookies_proxy_spec.rb +74 -0
  227. data/sample_rails_project/vendor/plugins/rspec_on_rails/spec/rails/example/example_group_factory_spec.rb +112 -0
  228. data/sample_rails_project/vendor/plugins/rspec_on_rails/spec/rails/example/helper_spec_spec.rb +161 -0
  229. data/sample_rails_project/vendor/plugins/rspec_on_rails/spec/rails/example/model_spec_spec.rb +18 -0
  230. data/sample_rails_project/vendor/plugins/rspec_on_rails/spec/rails/example/shared_behaviour_spec.rb +16 -0
  231. data/sample_rails_project/vendor/plugins/rspec_on_rails/spec/rails/example/test_unit_assertion_accessibility_spec.rb +33 -0
  232. data/sample_rails_project/vendor/plugins/rspec_on_rails/spec/rails/example/view_spec_spec.rb +268 -0
  233. data/sample_rails_project/vendor/plugins/rspec_on_rails/spec/rails/extensions/action_controller_rescue_action_spec.rb +54 -0
  234. data/sample_rails_project/vendor/plugins/rspec_on_rails/spec/rails/extensions/action_view_base_spec.rb +48 -0
  235. data/sample_rails_project/vendor/plugins/rspec_on_rails/spec/rails/extensions/active_record_spec.rb +14 -0
  236. data/sample_rails_project/vendor/plugins/rspec_on_rails/spec/rails/interop/testcase_spec.rb +66 -0
  237. data/sample_rails_project/vendor/plugins/rspec_on_rails/spec/rails/matchers/assert_select_spec.rb +806 -0
  238. data/sample_rails_project/vendor/plugins/rspec_on_rails/spec/rails/matchers/description_generation_spec.rb +37 -0
  239. data/sample_rails_project/vendor/plugins/rspec_on_rails/spec/rails/matchers/errors_on_spec.rb +13 -0
  240. data/sample_rails_project/vendor/plugins/rspec_on_rails/spec/rails/matchers/have_text_spec.rb +62 -0
  241. data/sample_rails_project/vendor/plugins/rspec_on_rails/spec/rails/matchers/include_text_spec.rb +64 -0
  242. data/sample_rails_project/vendor/plugins/rspec_on_rails/spec/rails/matchers/redirect_to_spec.rb +209 -0
  243. data/sample_rails_project/vendor/plugins/rspec_on_rails/spec/rails/matchers/render_template_spec.rb +176 -0
  244. data/sample_rails_project/vendor/plugins/rspec_on_rails/spec/rails/mocks/ar_classes.rb +10 -0
  245. data/sample_rails_project/vendor/plugins/rspec_on_rails/spec/rails/mocks/mock_model_spec.rb +90 -0
  246. data/sample_rails_project/vendor/plugins/rspec_on_rails/spec/rails/mocks/stub_model_spec.rb +79 -0
  247. data/sample_rails_project/vendor/plugins/rspec_on_rails/spec/rails/sample_modified_fixture.rb +8 -0
  248. data/sample_rails_project/vendor/plugins/rspec_on_rails/spec/rails/sample_spec.rb +8 -0
  249. data/sample_rails_project/vendor/plugins/rspec_on_rails/spec/rails/spec_server_spec.rb +96 -0
  250. data/sample_rails_project/vendor/plugins/rspec_on_rails/spec/rails/spec_spec.rb +11 -0
  251. data/sample_rails_project/vendor/plugins/rspec_on_rails/spec/rails_suite.rb +7 -0
  252. data/sample_rails_project/vendor/plugins/rspec_on_rails/spec/spec_helper.rb +57 -0
  253. data/sample_rails_project/vendor/plugins/rspec_on_rails/spec_resources/controllers/action_view_base_spec_controller.rb +2 -0
  254. data/sample_rails_project/vendor/plugins/rspec_on_rails/spec_resources/controllers/controller_spec_controller.rb +95 -0
  255. data/sample_rails_project/vendor/plugins/rspec_on_rails/spec_resources/controllers/redirect_spec_controller.rb +59 -0
  256. data/sample_rails_project/vendor/plugins/rspec_on_rails/spec_resources/controllers/render_spec_controller.rb +30 -0
  257. data/sample_rails_project/vendor/plugins/rspec_on_rails/spec_resources/controllers/rjs_spec_controller.rb +58 -0
  258. data/sample_rails_project/vendor/plugins/rspec_on_rails/spec_resources/helpers/explicit_helper.rb +38 -0
  259. data/sample_rails_project/vendor/plugins/rspec_on_rails/spec_resources/helpers/more_explicit_helper.rb +5 -0
  260. data/sample_rails_project/vendor/plugins/rspec_on_rails/spec_resources/helpers/plugin_application_helper.rb +6 -0
  261. data/sample_rails_project/vendor/plugins/rspec_on_rails/spec_resources/helpers/view_spec_helper.rb +13 -0
  262. data/sample_rails_project/vendor/plugins/rspec_on_rails/spec_resources/views/controller_spec/_partial.rhtml +0 -0
  263. data/sample_rails_project/vendor/plugins/rspec_on_rails/spec_resources/views/controller_spec/action_setting_flash_after_session_reset.rhtml +1 -0
  264. data/sample_rails_project/vendor/plugins/rspec_on_rails/spec_resources/views/controller_spec/action_setting_flash_before_session_reset.rhtml +1 -0
  265. data/sample_rails_project/vendor/plugins/rspec_on_rails/spec_resources/views/controller_spec/action_setting_the_assigns_hash.rhtml +0 -0
  266. data/sample_rails_project/vendor/plugins/rspec_on_rails/spec_resources/views/controller_spec/action_with_errors_in_template.rhtml +1 -0
  267. data/sample_rails_project/vendor/plugins/rspec_on_rails/spec_resources/views/controller_spec/action_with_template.rhtml +1 -0
  268. data/sample_rails_project/vendor/plugins/rspec_on_rails/spec_resources/views/layouts/application.rhtml +0 -0
  269. data/sample_rails_project/vendor/plugins/rspec_on_rails/spec_resources/views/layouts/simple.rhtml +0 -0
  270. data/sample_rails_project/vendor/plugins/rspec_on_rails/spec_resources/views/objects/_object.html.erb +1 -0
  271. data/sample_rails_project/vendor/plugins/rspec_on_rails/spec_resources/views/render_spec/_a_partial.rhtml +0 -0
  272. data/sample_rails_project/vendor/plugins/rspec_on_rails/spec_resources/views/render_spec/action_with_alternate_layout.rhtml +0 -0
  273. data/sample_rails_project/vendor/plugins/rspec_on_rails/spec_resources/views/render_spec/some_action.js.rjs +1 -0
  274. data/sample_rails_project/vendor/plugins/rspec_on_rails/spec_resources/views/render_spec/some_action.rhtml +0 -0
  275. data/sample_rails_project/vendor/plugins/rspec_on_rails/spec_resources/views/render_spec/some_action.rjs +1 -0
  276. data/sample_rails_project/vendor/plugins/rspec_on_rails/spec_resources/views/rjs_spec/_replacement_partial.rhtml +1 -0
  277. data/sample_rails_project/vendor/plugins/rspec_on_rails/spec_resources/views/rjs_spec/hide_div.rjs +1 -0
  278. data/sample_rails_project/vendor/plugins/rspec_on_rails/spec_resources/views/rjs_spec/hide_page_element.rjs +1 -0
  279. data/sample_rails_project/vendor/plugins/rspec_on_rails/spec_resources/views/rjs_spec/insert_html.rjs +1 -0
  280. data/sample_rails_project/vendor/plugins/rspec_on_rails/spec_resources/views/rjs_spec/replace.rjs +1 -0
  281. data/sample_rails_project/vendor/plugins/rspec_on_rails/spec_resources/views/rjs_spec/replace_html.rjs +1 -0
  282. data/sample_rails_project/vendor/plugins/rspec_on_rails/spec_resources/views/rjs_spec/replace_html_with_partial.rjs +1 -0
  283. data/sample_rails_project/vendor/plugins/rspec_on_rails/spec_resources/views/rjs_spec/visual_effect.rjs +1 -0
  284. data/sample_rails_project/vendor/plugins/rspec_on_rails/spec_resources/views/rjs_spec/visual_toggle_effect.rjs +1 -0
  285. data/sample_rails_project/vendor/plugins/rspec_on_rails/spec_resources/views/tag_spec/no_tags.rhtml +1 -0
  286. data/sample_rails_project/vendor/plugins/rspec_on_rails/spec_resources/views/tag_spec/single_div_with_no_attributes.rhtml +1 -0
  287. data/sample_rails_project/vendor/plugins/rspec_on_rails/spec_resources/views/tag_spec/single_div_with_one_attribute.rhtml +1 -0
  288. data/sample_rails_project/vendor/plugins/rspec_on_rails/spec_resources/views/view_spec/_partial.rhtml +2 -0
  289. data/sample_rails_project/vendor/plugins/rspec_on_rails/spec_resources/views/view_spec/_partial_used_twice.rhtml +0 -0
  290. data/sample_rails_project/vendor/plugins/rspec_on_rails/spec_resources/views/view_spec/_partial_with_local_variable.rhtml +1 -0
  291. data/sample_rails_project/vendor/plugins/rspec_on_rails/spec_resources/views/view_spec/_partial_with_sub_partial.rhtml +1 -0
  292. data/sample_rails_project/vendor/plugins/rspec_on_rails/spec_resources/views/view_spec/_spacer.rhtml +1 -0
  293. data/sample_rails_project/vendor/plugins/rspec_on_rails/spec_resources/views/view_spec/accessor.rhtml +5 -0
  294. data/sample_rails_project/vendor/plugins/rspec_on_rails/spec_resources/views/view_spec/block_helper.rhtml +3 -0
  295. data/sample_rails_project/vendor/plugins/rspec_on_rails/spec_resources/views/view_spec/entry_form.rhtml +2 -0
  296. data/sample_rails_project/vendor/plugins/rspec_on_rails/spec_resources/views/view_spec/explicit_helper.rhtml +2 -0
  297. data/sample_rails_project/vendor/plugins/rspec_on_rails/spec_resources/views/view_spec/foo/show.rhtml +1 -0
  298. data/sample_rails_project/vendor/plugins/rspec_on_rails/spec_resources/views/view_spec/implicit_helper.rhtml +2 -0
  299. data/sample_rails_project/vendor/plugins/rspec_on_rails/spec_resources/views/view_spec/multiple_helpers.rhtml +3 -0
  300. data/sample_rails_project/vendor/plugins/rspec_on_rails/spec_resources/views/view_spec/template_with_partial.rhtml +5 -0
  301. data/sample_rails_project/vendor/plugins/rspec_on_rails/spec_resources/views/view_spec/template_with_partial_using_collection.rhtml +3 -0
  302. data/sample_rails_project/vendor/plugins/rspec_on_rails/spec_resources/views/view_spec/template_with_partial_with_array.rhtml +1 -0
  303. data/sample_rails_project/vendor/plugins/rspec_on_rails/stories/all.rb +10 -0
  304. data/sample_rails_project/vendor/plugins/rspec_on_rails/stories/configuration/stories.rb +5 -0
  305. data/sample_rails_project/vendor/plugins/rspec_on_rails/stories/helper.rb +6 -0
  306. data/sample_rails_project/vendor/plugins/rspec_on_rails/stories/steps/people.rb +8 -0
  307. data/sample_rails_project/vendor/plugins/rspec_on_rails/stories/transactions_should_rollback +15 -0
  308. data/sample_rails_project/vendor/plugins/rspec_on_rails/stories/transactions_should_rollback.rb +25 -0
  309. data/sample_rails_project/vendor/rails/actionmailer/CHANGELOG +297 -0
  310. data/sample_rails_project/vendor/rails/actionmailer/MIT-LICENSE +21 -0
  311. data/sample_rails_project/vendor/rails/actionmailer/README +145 -0
  312. data/sample_rails_project/vendor/rails/actionmailer/Rakefile +95 -0
  313. data/sample_rails_project/vendor/rails/actionmailer/install.rb +30 -0
  314. data/sample_rails_project/vendor/rails/actionmailer/lib/action_mailer/adv_attr_accessor.rb +30 -0
  315. data/sample_rails_project/vendor/rails/actionmailer/lib/action_mailer/base.rb +582 -0
  316. data/sample_rails_project/vendor/rails/actionmailer/lib/action_mailer/helpers.rb +111 -0
  317. data/sample_rails_project/vendor/rails/actionmailer/lib/action_mailer/mail_helper.rb +19 -0
  318. data/sample_rails_project/vendor/rails/actionmailer/lib/action_mailer/part.rb +113 -0
  319. data/sample_rails_project/vendor/rails/actionmailer/lib/action_mailer/part_container.rb +51 -0
  320. data/sample_rails_project/vendor/rails/actionmailer/lib/action_mailer/quoting.rb +59 -0
  321. data/sample_rails_project/vendor/rails/actionmailer/lib/action_mailer/utils.rb +8 -0
  322. data/sample_rails_project/vendor/rails/actionmailer/lib/action_mailer/vendor/text/format.rb +1466 -0
  323. data/sample_rails_project/vendor/rails/actionmailer/lib/action_mailer/vendor/tmail/address.rb +242 -0
  324. data/sample_rails_project/vendor/rails/actionmailer/lib/action_mailer/vendor/tmail/attachments.rb +39 -0
  325. data/sample_rails_project/vendor/rails/actionmailer/lib/action_mailer/vendor/tmail/base64.rb +71 -0
  326. data/sample_rails_project/vendor/rails/actionmailer/lib/action_mailer/vendor/tmail/config.rb +69 -0
  327. data/sample_rails_project/vendor/rails/actionmailer/lib/action_mailer/vendor/tmail/encode.rb +467 -0
  328. data/sample_rails_project/vendor/rails/actionmailer/lib/action_mailer/vendor/tmail/facade.rb +552 -0
  329. data/sample_rails_project/vendor/rails/actionmailer/lib/action_mailer/vendor/tmail/header.rb +914 -0
  330. data/sample_rails_project/vendor/rails/actionmailer/lib/action_mailer/vendor/tmail/info.rb +35 -0
  331. data/sample_rails_project/vendor/rails/actionmailer/lib/action_mailer/vendor/tmail/loader.rb +1 -0
  332. data/sample_rails_project/vendor/rails/actionmailer/lib/action_mailer/vendor/tmail/mail.rb +447 -0
  333. data/sample_rails_project/vendor/rails/actionmailer/lib/action_mailer/vendor/tmail/mailbox.rb +433 -0
  334. data/sample_rails_project/vendor/rails/actionmailer/lib/action_mailer/vendor/tmail/mbox.rb +1 -0
  335. data/sample_rails_project/vendor/rails/actionmailer/lib/action_mailer/vendor/tmail/net.rb +280 -0
  336. data/sample_rails_project/vendor/rails/actionmailer/lib/action_mailer/vendor/tmail/obsolete.rb +135 -0
  337. data/sample_rails_project/vendor/rails/actionmailer/lib/action_mailer/vendor/tmail/parser.rb +1522 -0
  338. data/sample_rails_project/vendor/rails/actionmailer/lib/action_mailer/vendor/tmail/port.rb +377 -0
  339. data/sample_rails_project/vendor/rails/actionmailer/lib/action_mailer/vendor/tmail/quoting.rb +131 -0
  340. data/sample_rails_project/vendor/rails/actionmailer/lib/action_mailer/vendor/tmail/scanner.rb +41 -0
  341. data/sample_rails_project/vendor/rails/actionmailer/lib/action_mailer/vendor/tmail/scanner_r.rb +263 -0
  342. data/sample_rails_project/vendor/rails/actionmailer/lib/action_mailer/vendor/tmail/stringio.rb +277 -0
  343. data/sample_rails_project/vendor/rails/actionmailer/lib/action_mailer/vendor/tmail/tmail.rb +1 -0
  344. data/sample_rails_project/vendor/rails/actionmailer/lib/action_mailer/vendor/tmail/utils.rb +238 -0
  345. data/sample_rails_project/vendor/rails/actionmailer/lib/action_mailer/vendor/tmail.rb +3 -0
  346. data/sample_rails_project/vendor/rails/actionmailer/lib/action_mailer/version.rb +9 -0
  347. data/sample_rails_project/vendor/rails/actionmailer/lib/action_mailer.rb +50 -0
  348. data/sample_rails_project/vendor/rails/actionmailer/test/abstract_unit.rb +30 -0
  349. data/sample_rails_project/vendor/rails/actionmailer/test/fixtures/first_mailer/share.rhtml +1 -0
  350. data/sample_rails_project/vendor/rails/actionmailer/test/fixtures/helper_mailer/use_helper.rhtml +1 -0
  351. data/sample_rails_project/vendor/rails/actionmailer/test/fixtures/helper_mailer/use_helper_method.rhtml +1 -0
  352. data/sample_rails_project/vendor/rails/actionmailer/test/fixtures/helper_mailer/use_mail_helper.rhtml +5 -0
  353. data/sample_rails_project/vendor/rails/actionmailer/test/fixtures/helper_mailer/use_test_helper.rhtml +1 -0
  354. data/sample_rails_project/vendor/rails/actionmailer/test/fixtures/helpers/test_helper.rb +5 -0
  355. data/sample_rails_project/vendor/rails/actionmailer/test/fixtures/path.with.dots/funky_path_mailer/multipart_with_template_path_with_dots.rhtml +1 -0
  356. data/sample_rails_project/vendor/rails/actionmailer/test/fixtures/path.with.dots/multipart_with_template_path_with_dots.rhtml +0 -0
  357. data/sample_rails_project/vendor/rails/actionmailer/test/fixtures/raw_email +14 -0
  358. data/sample_rails_project/vendor/rails/actionmailer/test/fixtures/raw_email10 +20 -0
  359. data/sample_rails_project/vendor/rails/actionmailer/test/fixtures/raw_email11 +34 -0
  360. data/sample_rails_project/vendor/rails/actionmailer/test/fixtures/raw_email12 +32 -0
  361. data/sample_rails_project/vendor/rails/actionmailer/test/fixtures/raw_email13 +29 -0
  362. data/sample_rails_project/vendor/rails/actionmailer/test/fixtures/raw_email2 +114 -0
  363. data/sample_rails_project/vendor/rails/actionmailer/test/fixtures/raw_email3 +70 -0
  364. data/sample_rails_project/vendor/rails/actionmailer/test/fixtures/raw_email4 +59 -0
  365. data/sample_rails_project/vendor/rails/actionmailer/test/fixtures/raw_email5 +19 -0
  366. data/sample_rails_project/vendor/rails/actionmailer/test/fixtures/raw_email6 +20 -0
  367. data/sample_rails_project/vendor/rails/actionmailer/test/fixtures/raw_email7 +66 -0
  368. data/sample_rails_project/vendor/rails/actionmailer/test/fixtures/raw_email8 +47 -0
  369. data/sample_rails_project/vendor/rails/actionmailer/test/fixtures/raw_email9 +28 -0
  370. data/sample_rails_project/vendor/rails/actionmailer/test/fixtures/raw_email_quoted_with_0d0a +14 -0
  371. data/sample_rails_project/vendor/rails/actionmailer/test/fixtures/raw_email_with_partially_quoted_subject +14 -0
  372. data/sample_rails_project/vendor/rails/actionmailer/test/fixtures/second_mailer/share.rhtml +1 -0
  373. data/sample_rails_project/vendor/rails/actionmailer/test/fixtures/templates/signed_up.rhtml +3 -0
  374. data/sample_rails_project/vendor/rails/actionmailer/test/fixtures/test_mailer/implicitly_multipart_example.ignored.rhtml +1 -0
  375. data/sample_rails_project/vendor/rails/actionmailer/test/fixtures/test_mailer/implicitly_multipart_example.text.html.rhtml +10 -0
  376. data/sample_rails_project/vendor/rails/actionmailer/test/fixtures/test_mailer/implicitly_multipart_example.text.plain.rhtml +2 -0
  377. data/sample_rails_project/vendor/rails/actionmailer/test/fixtures/test_mailer/implicitly_multipart_example.text.yaml.rhtml +1 -0
  378. data/sample_rails_project/vendor/rails/actionmailer/test/fixtures/test_mailer/signed_up.rhtml +3 -0
  379. data/sample_rails_project/vendor/rails/actionmailer/test/fixtures/test_mailer/signed_up_with_url.rhtml +3 -0
  380. data/sample_rails_project/vendor/rails/actionmailer/test/mail_helper_test.rb +91 -0
  381. data/sample_rails_project/vendor/rails/actionmailer/test/mail_render_test.rb +79 -0
  382. data/sample_rails_project/vendor/rails/actionmailer/test/mail_service_test.rb +816 -0
  383. data/sample_rails_project/vendor/rails/actionmailer/test/quoting_test.rb +57 -0
  384. data/sample_rails_project/vendor/rails/actionmailer/test/tmail_test.rb +13 -0
  385. data/sample_rails_project/vendor/rails/actionmailer/test/url_test.rb +68 -0
  386. data/sample_rails_project/vendor/rails/actionpack/CHANGELOG +3138 -0
  387. data/sample_rails_project/vendor/rails/actionpack/MIT-LICENSE +21 -0
  388. data/sample_rails_project/vendor/rails/actionpack/README +469 -0
  389. data/sample_rails_project/vendor/rails/actionpack/RUNNING_UNIT_TESTS +25 -0
  390. data/sample_rails_project/vendor/rails/actionpack/Rakefile +154 -0
  391. data/sample_rails_project/vendor/rails/actionpack/examples/.htaccess +24 -0
  392. data/sample_rails_project/vendor/rails/actionpack/examples/address_book/index.rhtml +33 -0
  393. data/sample_rails_project/vendor/rails/actionpack/examples/address_book/layout.rhtml +8 -0
  394. data/sample_rails_project/vendor/rails/actionpack/examples/address_book_controller.cgi +9 -0
  395. data/sample_rails_project/vendor/rails/actionpack/examples/address_book_controller.fcgi +6 -0
  396. data/sample_rails_project/vendor/rails/actionpack/examples/address_book_controller.rb +52 -0
  397. data/sample_rails_project/vendor/rails/actionpack/examples/address_book_controller.rbx +4 -0
  398. data/sample_rails_project/vendor/rails/actionpack/examples/benchmark.rb +52 -0
  399. data/sample_rails_project/vendor/rails/actionpack/examples/benchmark_with_ar.fcgi +89 -0
  400. data/sample_rails_project/vendor/rails/actionpack/examples/blog_controller.cgi +53 -0
  401. data/sample_rails_project/vendor/rails/actionpack/examples/debate/index.rhtml +14 -0
  402. data/sample_rails_project/vendor/rails/actionpack/examples/debate/new_topic.rhtml +22 -0
  403. data/sample_rails_project/vendor/rails/actionpack/examples/debate/topic.rhtml +32 -0
  404. data/sample_rails_project/vendor/rails/actionpack/examples/debate_controller.cgi +57 -0
  405. data/sample_rails_project/vendor/rails/actionpack/install.rb +30 -0
  406. data/sample_rails_project/vendor/rails/actionpack/lib/action_controller/assertions/deprecated_assertions.rb +228 -0
  407. data/sample_rails_project/vendor/rails/actionpack/lib/action_controller/assertions/dom_assertions.rb +25 -0
  408. data/sample_rails_project/vendor/rails/actionpack/lib/action_controller/assertions/model_assertions.rb +12 -0
  409. data/sample_rails_project/vendor/rails/actionpack/lib/action_controller/assertions/response_assertions.rb +140 -0
  410. data/sample_rails_project/vendor/rails/actionpack/lib/action_controller/assertions/routing_assertions.rb +98 -0
  411. data/sample_rails_project/vendor/rails/actionpack/lib/action_controller/assertions/selector_assertions.rb +571 -0
  412. data/sample_rails_project/vendor/rails/actionpack/lib/action_controller/assertions/tag_assertions.rb +117 -0
  413. data/sample_rails_project/vendor/rails/actionpack/lib/action_controller/assertions.rb +82 -0
  414. data/sample_rails_project/vendor/rails/actionpack/lib/action_controller/base.rb +1231 -0
  415. data/sample_rails_project/vendor/rails/actionpack/lib/action_controller/benchmarking.rb +89 -0
  416. data/sample_rails_project/vendor/rails/actionpack/lib/action_controller/caching.rb +616 -0
  417. data/sample_rails_project/vendor/rails/actionpack/lib/action_controller/cgi_ext/cgi_ext.rb +36 -0
  418. data/sample_rails_project/vendor/rails/actionpack/lib/action_controller/cgi_ext/cgi_methods.rb +211 -0
  419. data/sample_rails_project/vendor/rails/actionpack/lib/action_controller/cgi_ext/cookie_performance_fix.rb +125 -0
  420. data/sample_rails_project/vendor/rails/actionpack/lib/action_controller/cgi_ext/raw_post_data_fix.rb +95 -0
  421. data/sample_rails_project/vendor/rails/actionpack/lib/action_controller/cgi_ext/session_performance_fix.rb +30 -0
  422. data/sample_rails_project/vendor/rails/actionpack/lib/action_controller/cgi_process.rb +231 -0
  423. data/sample_rails_project/vendor/rails/actionpack/lib/action_controller/components.rb +182 -0
  424. data/sample_rails_project/vendor/rails/actionpack/lib/action_controller/cookies.rb +78 -0
  425. data/sample_rails_project/vendor/rails/actionpack/lib/action_controller/deprecated_dependencies.rb +65 -0
  426. data/sample_rails_project/vendor/rails/actionpack/lib/action_controller/deprecated_redirects.rb +17 -0
  427. data/sample_rails_project/vendor/rails/actionpack/lib/action_controller/deprecated_request_methods.rb +34 -0
  428. data/sample_rails_project/vendor/rails/actionpack/lib/action_controller/filters.rb +667 -0
  429. data/sample_rails_project/vendor/rails/actionpack/lib/action_controller/flash.rb +182 -0
  430. data/sample_rails_project/vendor/rails/actionpack/lib/action_controller/helpers.rb +131 -0
  431. data/sample_rails_project/vendor/rails/actionpack/lib/action_controller/integration.rb +552 -0
  432. data/sample_rails_project/vendor/rails/actionpack/lib/action_controller/layout.rb +313 -0
  433. data/sample_rails_project/vendor/rails/actionpack/lib/action_controller/macros/auto_complete.rb +53 -0
  434. data/sample_rails_project/vendor/rails/actionpack/lib/action_controller/macros/in_place_editing.rb +33 -0
  435. data/sample_rails_project/vendor/rails/actionpack/lib/action_controller/mime_responds.rb +181 -0
  436. data/sample_rails_project/vendor/rails/actionpack/lib/action_controller/mime_type.rb +200 -0
  437. data/sample_rails_project/vendor/rails/actionpack/lib/action_controller/pagination.rb +402 -0
  438. data/sample_rails_project/vendor/rails/actionpack/lib/action_controller/request.rb +265 -0
  439. data/sample_rails_project/vendor/rails/actionpack/lib/action_controller/rescue.rb +142 -0
  440. data/sample_rails_project/vendor/rails/actionpack/lib/action_controller/resources.rb +405 -0
  441. data/sample_rails_project/vendor/rails/actionpack/lib/action_controller/response.rb +35 -0
  442. data/sample_rails_project/vendor/rails/actionpack/lib/action_controller/routing.rb +1340 -0
  443. data/sample_rails_project/vendor/rails/actionpack/lib/action_controller/scaffolding.rb +189 -0
  444. data/sample_rails_project/vendor/rails/actionpack/lib/action_controller/session/active_record_store.rb +335 -0
  445. data/sample_rails_project/vendor/rails/actionpack/lib/action_controller/session/drb_server.rb +32 -0
  446. data/sample_rails_project/vendor/rails/actionpack/lib/action_controller/session/drb_store.rb +35 -0
  447. data/sample_rails_project/vendor/rails/actionpack/lib/action_controller/session/mem_cache_store.rb +105 -0
  448. data/sample_rails_project/vendor/rails/actionpack/lib/action_controller/session_management.rb +142 -0
  449. data/sample_rails_project/vendor/rails/actionpack/lib/action_controller/status_codes.rb +88 -0
  450. data/sample_rails_project/vendor/rails/actionpack/lib/action_controller/streaming.rb +138 -0
  451. data/sample_rails_project/vendor/rails/actionpack/lib/action_controller/templates/rescues/_request_and_response.rhtml +44 -0
  452. data/sample_rails_project/vendor/rails/actionpack/lib/action_controller/templates/rescues/_trace.rhtml +26 -0
  453. data/sample_rails_project/vendor/rails/actionpack/lib/action_controller/templates/rescues/diagnostics.rhtml +11 -0
  454. data/sample_rails_project/vendor/rails/actionpack/lib/action_controller/templates/rescues/layout.rhtml +29 -0
  455. data/sample_rails_project/vendor/rails/actionpack/lib/action_controller/templates/rescues/missing_template.rhtml +2 -0
  456. data/sample_rails_project/vendor/rails/actionpack/lib/action_controller/templates/rescues/routing_error.rhtml +10 -0
  457. data/sample_rails_project/vendor/rails/actionpack/lib/action_controller/templates/rescues/template_error.rhtml +21 -0
  458. data/sample_rails_project/vendor/rails/actionpack/lib/action_controller/templates/rescues/unknown_action.rhtml +2 -0
  459. data/sample_rails_project/vendor/rails/actionpack/lib/action_controller/templates/scaffolds/edit.rhtml +7 -0
  460. data/sample_rails_project/vendor/rails/actionpack/lib/action_controller/templates/scaffolds/layout.rhtml +69 -0
  461. data/sample_rails_project/vendor/rails/actionpack/lib/action_controller/templates/scaffolds/list.rhtml +27 -0
  462. data/sample_rails_project/vendor/rails/actionpack/lib/action_controller/templates/scaffolds/new.rhtml +6 -0
  463. data/sample_rails_project/vendor/rails/actionpack/lib/action_controller/templates/scaffolds/show.rhtml +9 -0
  464. data/sample_rails_project/vendor/rails/actionpack/lib/action_controller/test_process.rb +504 -0
  465. data/sample_rails_project/vendor/rails/actionpack/lib/action_controller/url_rewriter.rb +108 -0
  466. data/sample_rails_project/vendor/rails/actionpack/lib/action_controller/vendor/html-scanner/html/document.rb +65 -0
  467. data/sample_rails_project/vendor/rails/actionpack/lib/action_controller/vendor/html-scanner/html/node.rb +530 -0
  468. data/sample_rails_project/vendor/rails/actionpack/lib/action_controller/vendor/html-scanner/html/selector.rb +823 -0
  469. data/sample_rails_project/vendor/rails/actionpack/lib/action_controller/vendor/html-scanner/html/tokenizer.rb +105 -0
  470. data/sample_rails_project/vendor/rails/actionpack/lib/action_controller/vendor/html-scanner/html/version.rb +11 -0
  471. data/sample_rails_project/vendor/rails/actionpack/lib/action_controller/vendor/xml_node.rb +97 -0
  472. data/sample_rails_project/vendor/rails/actionpack/lib/action_controller/verification.rb +107 -0
  473. data/sample_rails_project/vendor/rails/actionpack/lib/action_controller.rb +83 -0
  474. data/sample_rails_project/vendor/rails/actionpack/lib/action_pack/version.rb +9 -0
  475. data/sample_rails_project/vendor/rails/actionpack/lib/action_pack.rb +24 -0
  476. data/sample_rails_project/vendor/rails/actionpack/lib/action_view/base.rb +538 -0
  477. data/sample_rails_project/vendor/rails/actionpack/lib/action_view/compiled_templates.rb +70 -0
  478. data/sample_rails_project/vendor/rails/actionpack/lib/action_view/helpers/active_record_helper.rb +237 -0
  479. data/sample_rails_project/vendor/rails/actionpack/lib/action_view/helpers/asset_tag_helper.rb +218 -0
  480. data/sample_rails_project/vendor/rails/actionpack/lib/action_view/helpers/benchmark_helper.rb +24 -0
  481. data/sample_rails_project/vendor/rails/actionpack/lib/action_view/helpers/cache_helper.rb +10 -0
  482. data/sample_rails_project/vendor/rails/actionpack/lib/action_view/helpers/capture_helper.rb +128 -0
  483. data/sample_rails_project/vendor/rails/actionpack/lib/action_view/helpers/date_helper.rb +429 -0
  484. data/sample_rails_project/vendor/rails/actionpack/lib/action_view/helpers/debug_helper.rb +17 -0
  485. data/sample_rails_project/vendor/rails/actionpack/lib/action_view/helpers/deprecated_helper.rb +34 -0
  486. data/sample_rails_project/vendor/rails/actionpack/lib/action_view/helpers/form_helper.rb +446 -0
  487. data/sample_rails_project/vendor/rails/actionpack/lib/action_view/helpers/form_options_helper.rb +363 -0
  488. data/sample_rails_project/vendor/rails/actionpack/lib/action_view/helpers/form_tag_helper.rb +176 -0
  489. data/sample_rails_project/vendor/rails/actionpack/lib/action_view/helpers/java_script_macros_helper.rb +233 -0
  490. data/sample_rails_project/vendor/rails/actionpack/lib/action_view/helpers/javascript_helper.rb +193 -0
  491. data/sample_rails_project/vendor/rails/actionpack/lib/action_view/helpers/javascripts/controls.js +833 -0
  492. data/sample_rails_project/vendor/rails/actionpack/lib/action_view/helpers/javascripts/dragdrop.js +942 -0
  493. data/sample_rails_project/vendor/rails/actionpack/lib/action_view/helpers/javascripts/effects.js +1088 -0
  494. data/sample_rails_project/vendor/rails/actionpack/lib/action_view/helpers/javascripts/prototype.js +2515 -0
  495. data/sample_rails_project/vendor/rails/actionpack/lib/action_view/helpers/number_helper.rb +155 -0
  496. data/sample_rails_project/vendor/rails/actionpack/lib/action_view/helpers/pagination_helper.rb +86 -0
  497. data/sample_rails_project/vendor/rails/actionpack/lib/action_view/helpers/prototype_helper.rb +876 -0
  498. data/sample_rails_project/vendor/rails/actionpack/lib/action_view/helpers/scriptaculous_helper.rb +140 -0
  499. data/sample_rails_project/vendor/rails/actionpack/lib/action_view/helpers/tag_helper.rb +103 -0
  500. data/sample_rails_project/vendor/rails/actionpack/lib/action_view/helpers/text_helper.rb +406 -0
  501. data/sample_rails_project/vendor/rails/actionpack/lib/action_view/helpers/url_helper.rb +406 -0
  502. data/sample_rails_project/vendor/rails/actionpack/lib/action_view/partials.rb +128 -0
  503. data/sample_rails_project/vendor/rails/actionpack/lib/action_view/template_error.rb +110 -0
  504. data/sample_rails_project/vendor/rails/actionpack/lib/action_view.rb +32 -0
  505. data/sample_rails_project/vendor/rails/actionpack/test/abstract_unit.rb +16 -0
  506. data/sample_rails_project/vendor/rails/actionpack/test/active_record_unit.rb +116 -0
  507. data/sample_rails_project/vendor/rails/actionpack/test/activerecord/active_record_assertions_test.rb +92 -0
  508. data/sample_rails_project/vendor/rails/actionpack/test/activerecord/active_record_store_test.rb +142 -0
  509. data/sample_rails_project/vendor/rails/actionpack/test/activerecord/pagination_test.rb +156 -0
  510. data/sample_rails_project/vendor/rails/actionpack/test/controller/action_pack_assertions_test.rb +610 -0
  511. data/sample_rails_project/vendor/rails/actionpack/test/controller/addresses_render_test.rb +45 -0
  512. data/sample_rails_project/vendor/rails/actionpack/test/controller/assert_select_test.rb +576 -0
  513. data/sample_rails_project/vendor/rails/actionpack/test/controller/base_test.rb +136 -0
  514. data/sample_rails_project/vendor/rails/actionpack/test/controller/benchmark_test.rb +33 -0
  515. data/sample_rails_project/vendor/rails/actionpack/test/controller/caching_test.rb +228 -0
  516. data/sample_rails_project/vendor/rails/actionpack/test/controller/capture_test.rb +82 -0
  517. data/sample_rails_project/vendor/rails/actionpack/test/controller/cgi_test.rb +440 -0
  518. data/sample_rails_project/vendor/rails/actionpack/test/controller/components_test.rb +151 -0
  519. data/sample_rails_project/vendor/rails/actionpack/test/controller/content_type_test.rb +139 -0
  520. data/sample_rails_project/vendor/rails/actionpack/test/controller/controller_fixtures/app/controllers/admin/user_controller.rb +0 -0
  521. data/sample_rails_project/vendor/rails/actionpack/test/controller/controller_fixtures/app/controllers/user_controller.rb +0 -0
  522. data/sample_rails_project/vendor/rails/actionpack/test/controller/controller_fixtures/vendor/plugins/bad_plugin/lib/plugin_controller.rb +0 -0
  523. data/sample_rails_project/vendor/rails/actionpack/test/controller/cookie_test.rb +88 -0
  524. data/sample_rails_project/vendor/rails/actionpack/test/controller/custom_handler_test.rb +41 -0
  525. data/sample_rails_project/vendor/rails/actionpack/test/controller/deprecated_instance_variables_test.rb +48 -0
  526. data/sample_rails_project/vendor/rails/actionpack/test/controller/deprecation/deprecated_base_methods_test.rb +60 -0
  527. data/sample_rails_project/vendor/rails/actionpack/test/controller/fake_controllers.rb +16 -0
  528. data/sample_rails_project/vendor/rails/actionpack/test/controller/filter_params_test.rb +42 -0
  529. data/sample_rails_project/vendor/rails/actionpack/test/controller/filters_test.rb +695 -0
  530. data/sample_rails_project/vendor/rails/actionpack/test/controller/flash_test.rb +102 -0
  531. data/sample_rails_project/vendor/rails/actionpack/test/controller/fragment_store_setting_test.rb +45 -0
  532. data/sample_rails_project/vendor/rails/actionpack/test/controller/helper_test.rb +187 -0
  533. data/sample_rails_project/vendor/rails/actionpack/test/controller/integration_test.rb +154 -0
  534. data/sample_rails_project/vendor/rails/actionpack/test/controller/layout_test.rb +187 -0
  535. data/sample_rails_project/vendor/rails/actionpack/test/controller/mime_responds_test.rb +351 -0
  536. data/sample_rails_project/vendor/rails/actionpack/test/controller/mime_type_test.rb +33 -0
  537. data/sample_rails_project/vendor/rails/actionpack/test/controller/new_render_test.rb +750 -0
  538. data/sample_rails_project/vendor/rails/actionpack/test/controller/raw_post_test.rb +68 -0
  539. data/sample_rails_project/vendor/rails/actionpack/test/controller/redirect_test.rb +156 -0
  540. data/sample_rails_project/vendor/rails/actionpack/test/controller/render_test.rb +293 -0
  541. data/sample_rails_project/vendor/rails/actionpack/test/controller/request_test.rb +317 -0
  542. data/sample_rails_project/vendor/rails/actionpack/test/controller/resources_test.rb +482 -0
  543. data/sample_rails_project/vendor/rails/actionpack/test/controller/routing_test.rb +1801 -0
  544. data/sample_rails_project/vendor/rails/actionpack/test/controller/selector_test.rb +628 -0
  545. data/sample_rails_project/vendor/rails/actionpack/test/controller/send_file_test.rb +117 -0
  546. data/sample_rails_project/vendor/rails/actionpack/test/controller/session_management_test.rb +156 -0
  547. data/sample_rails_project/vendor/rails/actionpack/test/controller/test_test.rb +495 -0
  548. data/sample_rails_project/vendor/rails/actionpack/test/controller/url_rewriter_test.rb +115 -0
  549. data/sample_rails_project/vendor/rails/actionpack/test/controller/verification_test.rb +227 -0
  550. data/sample_rails_project/vendor/rails/actionpack/test/controller/webservice_test.rb +248 -0
  551. data/sample_rails_project/vendor/rails/actionpack/test/fixtures/addresses/list.rhtml +1 -0
  552. data/sample_rails_project/vendor/rails/actionpack/test/fixtures/companies.yml +24 -0
  553. data/sample_rails_project/vendor/rails/actionpack/test/fixtures/company.rb +9 -0
  554. data/sample_rails_project/vendor/rails/actionpack/test/fixtures/content_type/render_default_content_types_for_respond_to.rhtml +1 -0
  555. data/sample_rails_project/vendor/rails/actionpack/test/fixtures/content_type/render_default_for_rhtml.rhtml +1 -0
  556. data/sample_rails_project/vendor/rails/actionpack/test/fixtures/content_type/render_default_for_rjs.rjs +1 -0
  557. data/sample_rails_project/vendor/rails/actionpack/test/fixtures/content_type/render_default_for_rxml.rxml +1 -0
  558. data/sample_rails_project/vendor/rails/actionpack/test/fixtures/db_definitions/sqlite.sql +42 -0
  559. data/sample_rails_project/vendor/rails/actionpack/test/fixtures/deprecated_instance_variables/_cookies_ivar.rhtml +1 -0
  560. data/sample_rails_project/vendor/rails/actionpack/test/fixtures/deprecated_instance_variables/_cookies_method.rhtml +1 -0
  561. data/sample_rails_project/vendor/rails/actionpack/test/fixtures/deprecated_instance_variables/_flash_ivar.rhtml +1 -0
  562. data/sample_rails_project/vendor/rails/actionpack/test/fixtures/deprecated_instance_variables/_flash_method.rhtml +1 -0
  563. data/sample_rails_project/vendor/rails/actionpack/test/fixtures/deprecated_instance_variables/_headers_ivar.rhtml +1 -0
  564. data/sample_rails_project/vendor/rails/actionpack/test/fixtures/deprecated_instance_variables/_headers_method.rhtml +1 -0
  565. data/sample_rails_project/vendor/rails/actionpack/test/fixtures/deprecated_instance_variables/_params_ivar.rhtml +1 -0
  566. data/sample_rails_project/vendor/rails/actionpack/test/fixtures/deprecated_instance_variables/_params_method.rhtml +1 -0
  567. data/sample_rails_project/vendor/rails/actionpack/test/fixtures/deprecated_instance_variables/_request_ivar.rhtml +1 -0
  568. data/sample_rails_project/vendor/rails/actionpack/test/fixtures/deprecated_instance_variables/_request_method.rhtml +1 -0
  569. data/sample_rails_project/vendor/rails/actionpack/test/fixtures/deprecated_instance_variables/_response_ivar.rhtml +1 -0
  570. data/sample_rails_project/vendor/rails/actionpack/test/fixtures/deprecated_instance_variables/_response_method.rhtml +1 -0
  571. data/sample_rails_project/vendor/rails/actionpack/test/fixtures/deprecated_instance_variables/_session_ivar.rhtml +1 -0
  572. data/sample_rails_project/vendor/rails/actionpack/test/fixtures/deprecated_instance_variables/_session_method.rhtml +1 -0
  573. data/sample_rails_project/vendor/rails/actionpack/test/fixtures/developer.rb +7 -0
  574. data/sample_rails_project/vendor/rails/actionpack/test/fixtures/developers.yml +21 -0
  575. data/sample_rails_project/vendor/rails/actionpack/test/fixtures/developers_projects.yml +13 -0
  576. data/sample_rails_project/vendor/rails/actionpack/test/fixtures/fun/games/hello_world.rhtml +1 -0
  577. data/sample_rails_project/vendor/rails/actionpack/test/fixtures/helpers/abc_helper.rb +5 -0
  578. data/sample_rails_project/vendor/rails/actionpack/test/fixtures/helpers/fun/games_helper.rb +3 -0
  579. data/sample_rails_project/vendor/rails/actionpack/test/fixtures/helpers/fun/pdf_helper.rb +3 -0
  580. data/sample_rails_project/vendor/rails/actionpack/test/fixtures/layout_tests/layouts/controller_name_space/nested.rhtml +1 -0
  581. data/sample_rails_project/vendor/rails/actionpack/test/fixtures/layout_tests/layouts/item.rhtml +1 -0
  582. data/sample_rails_project/vendor/rails/actionpack/test/fixtures/layout_tests/layouts/layout_test.rhtml +1 -0
  583. data/sample_rails_project/vendor/rails/actionpack/test/fixtures/layout_tests/layouts/third_party_template_library.mab +1 -0
  584. data/sample_rails_project/vendor/rails/actionpack/test/fixtures/layout_tests/views/hello.rhtml +1 -0
  585. data/sample_rails_project/vendor/rails/actionpack/test/fixtures/layouts/builder.rxml +3 -0
  586. data/sample_rails_project/vendor/rails/actionpack/test/fixtures/layouts/standard.rhtml +1 -0
  587. data/sample_rails_project/vendor/rails/actionpack/test/fixtures/layouts/talk_from_action.rhtml +2 -0
  588. data/sample_rails_project/vendor/rails/actionpack/test/fixtures/layouts/yield.rhtml +2 -0
  589. data/sample_rails_project/vendor/rails/actionpack/test/fixtures/multipart/binary_file +0 -0
  590. data/sample_rails_project/vendor/rails/actionpack/test/fixtures/multipart/large_text_file +10 -0
  591. data/sample_rails_project/vendor/rails/actionpack/test/fixtures/multipart/mixed_files +0 -0
  592. data/sample_rails_project/vendor/rails/actionpack/test/fixtures/multipart/mona_lisa.jpg +0 -0
  593. data/sample_rails_project/vendor/rails/actionpack/test/fixtures/multipart/single_parameter +5 -0
  594. data/sample_rails_project/vendor/rails/actionpack/test/fixtures/multipart/text_file +10 -0
  595. data/sample_rails_project/vendor/rails/actionpack/test/fixtures/project.rb +3 -0
  596. data/sample_rails_project/vendor/rails/actionpack/test/fixtures/projects.yml +7 -0
  597. data/sample_rails_project/vendor/rails/actionpack/test/fixtures/public/images/rails.png +0 -0
  598. data/sample_rails_project/vendor/rails/actionpack/test/fixtures/public/javascripts/application.js +1 -0
  599. data/sample_rails_project/vendor/rails/actionpack/test/fixtures/replies.yml +13 -0
  600. data/sample_rails_project/vendor/rails/actionpack/test/fixtures/reply.rb +5 -0
  601. data/sample_rails_project/vendor/rails/actionpack/test/fixtures/respond_to/all_types_with_layout.rhtml +1 -0
  602. data/sample_rails_project/vendor/rails/actionpack/test/fixtures/respond_to/all_types_with_layout.rjs +1 -0
  603. data/sample_rails_project/vendor/rails/actionpack/test/fixtures/respond_to/layouts/standard.rhtml +1 -0
  604. data/sample_rails_project/vendor/rails/actionpack/test/fixtures/respond_to/using_defaults.rhtml +1 -0
  605. data/sample_rails_project/vendor/rails/actionpack/test/fixtures/respond_to/using_defaults.rjs +1 -0
  606. data/sample_rails_project/vendor/rails/actionpack/test/fixtures/respond_to/using_defaults.rxml +1 -0
  607. data/sample_rails_project/vendor/rails/actionpack/test/fixtures/respond_to/using_defaults_with_type_list.rhtml +1 -0
  608. data/sample_rails_project/vendor/rails/actionpack/test/fixtures/respond_to/using_defaults_with_type_list.rjs +1 -0
  609. data/sample_rails_project/vendor/rails/actionpack/test/fixtures/respond_to/using_defaults_with_type_list.rxml +1 -0
  610. data/sample_rails_project/vendor/rails/actionpack/test/fixtures/scope/test/modgreet.rhtml +1 -0
  611. data/sample_rails_project/vendor/rails/actionpack/test/fixtures/test/_customer.rhtml +1 -0
  612. data/sample_rails_project/vendor/rails/actionpack/test/fixtures/test/_customer_greeting.rhtml +1 -0
  613. data/sample_rails_project/vendor/rails/actionpack/test/fixtures/test/_hash_object.rhtml +1 -0
  614. data/sample_rails_project/vendor/rails/actionpack/test/fixtures/test/_hello.rxml +1 -0
  615. data/sample_rails_project/vendor/rails/actionpack/test/fixtures/test/_partial_only.rhtml +1 -0
  616. data/sample_rails_project/vendor/rails/actionpack/test/fixtures/test/_person.rhtml +2 -0
  617. data/sample_rails_project/vendor/rails/actionpack/test/fixtures/test/action_talk_to_layout.rhtml +2 -0
  618. data/sample_rails_project/vendor/rails/actionpack/test/fixtures/test/block_content_for.rhtml +2 -0
  619. data/sample_rails_project/vendor/rails/actionpack/test/fixtures/test/capturing.rhtml +4 -0
  620. data/sample_rails_project/vendor/rails/actionpack/test/fixtures/test/content_for.rhtml +2 -0
  621. data/sample_rails_project/vendor/rails/actionpack/test/fixtures/test/delete_with_js.rjs +2 -0
  622. data/sample_rails_project/vendor/rails/actionpack/test/fixtures/test/dot.directory/render_file_with_ivar.rhtml +1 -0
  623. data/sample_rails_project/vendor/rails/actionpack/test/fixtures/test/enum_rjs_test.rjs +6 -0
  624. data/sample_rails_project/vendor/rails/actionpack/test/fixtures/test/erb_content_for.rhtml +2 -0
  625. data/sample_rails_project/vendor/rails/actionpack/test/fixtures/test/greeting.rhtml +1 -0
  626. data/sample_rails_project/vendor/rails/actionpack/test/fixtures/test/hello.rxml +4 -0
  627. data/sample_rails_project/vendor/rails/actionpack/test/fixtures/test/hello_world.rhtml +1 -0
  628. data/sample_rails_project/vendor/rails/actionpack/test/fixtures/test/hello_world.rxml +3 -0
  629. data/sample_rails_project/vendor/rails/actionpack/test/fixtures/test/hello_world_container.rxml +3 -0
  630. data/sample_rails_project/vendor/rails/actionpack/test/fixtures/test/hello_world_with_layout_false.rhtml +1 -0
  631. data/sample_rails_project/vendor/rails/actionpack/test/fixtures/test/hello_xml_world.rxml +11 -0
  632. data/sample_rails_project/vendor/rails/actionpack/test/fixtures/test/list.rhtml +1 -0
  633. data/sample_rails_project/vendor/rails/actionpack/test/fixtures/test/non_erb_block_content_for.rxml +4 -0
  634. data/sample_rails_project/vendor/rails/actionpack/test/fixtures/test/potential_conflicts.rhtml +4 -0
  635. data/sample_rails_project/vendor/rails/actionpack/test/fixtures/test/render_file_with_ivar.rhtml +1 -0
  636. data/sample_rails_project/vendor/rails/actionpack/test/fixtures/test/render_file_with_locals.rhtml +1 -0
  637. data/sample_rails_project/vendor/rails/actionpack/test/fixtures/test/render_to_string_test.rhtml +1 -0
  638. data/sample_rails_project/vendor/rails/actionpack/test/fixtures/test/update_element_with_capture.rhtml +9 -0
  639. data/sample_rails_project/vendor/rails/actionpack/test/fixtures/topic.rb +3 -0
  640. data/sample_rails_project/vendor/rails/actionpack/test/fixtures/topics.yml +22 -0
  641. data/sample_rails_project/vendor/rails/actionpack/test/template/active_record_helper_test.rb +204 -0
  642. data/sample_rails_project/vendor/rails/actionpack/test/template/asset_tag_helper_test.rb +232 -0
  643. data/sample_rails_project/vendor/rails/actionpack/test/template/benchmark_helper_test.rb +72 -0
  644. data/sample_rails_project/vendor/rails/actionpack/test/template/compiled_templates_test.rb +135 -0
  645. data/sample_rails_project/vendor/rails/actionpack/test/template/date_helper_test.rb +1322 -0
  646. data/sample_rails_project/vendor/rails/actionpack/test/template/deprecated_helper_test.rb +36 -0
  647. data/sample_rails_project/vendor/rails/actionpack/test/template/deprecated_instance_variables_test.rb +43 -0
  648. data/sample_rails_project/vendor/rails/actionpack/test/template/form_helper_test.rb +499 -0
  649. data/sample_rails_project/vendor/rails/actionpack/test/template/form_options_helper_test.rb +489 -0
  650. data/sample_rails_project/vendor/rails/actionpack/test/template/form_tag_helper_test.rb +172 -0
  651. data/sample_rails_project/vendor/rails/actionpack/test/template/java_script_macros_helper_test.rb +109 -0
  652. data/sample_rails_project/vendor/rails/actionpack/test/template/javascript_helper_test.rb +67 -0
  653. data/sample_rails_project/vendor/rails/actionpack/test/template/number_helper_test.rb +92 -0
  654. data/sample_rails_project/vendor/rails/actionpack/test/template/prototype_helper_test.rb +466 -0
  655. data/sample_rails_project/vendor/rails/actionpack/test/template/scriptaculous_helper_test.rb +90 -0
  656. data/sample_rails_project/vendor/rails/actionpack/test/template/tag_helper_test.rb +69 -0
  657. data/sample_rails_project/vendor/rails/actionpack/test/template/text_helper_test.rb +349 -0
  658. data/sample_rails_project/vendor/rails/actionpack/test/template/url_helper_test.rb +366 -0
  659. data/sample_rails_project/vendor/rails/actionpack/test/testing_sandbox.rb +11 -0
  660. data/sample_rails_project/vendor/rails/actionwebservice/CHANGELOG +279 -0
  661. data/sample_rails_project/vendor/rails/actionwebservice/MIT-LICENSE +21 -0
  662. data/sample_rails_project/vendor/rails/actionwebservice/README +364 -0
  663. data/sample_rails_project/vendor/rails/actionwebservice/Rakefile +171 -0
  664. data/sample_rails_project/vendor/rails/actionwebservice/TODO +32 -0
  665. data/sample_rails_project/vendor/rails/actionwebservice/examples/googlesearch/README +143 -0
  666. data/sample_rails_project/vendor/rails/actionwebservice/examples/googlesearch/autoloading/google_search_api.rb +50 -0
  667. data/sample_rails_project/vendor/rails/actionwebservice/examples/googlesearch/autoloading/google_search_controller.rb +57 -0
  668. data/sample_rails_project/vendor/rails/actionwebservice/examples/googlesearch/delegated/google_search_service.rb +108 -0
  669. data/sample_rails_project/vendor/rails/actionwebservice/examples/googlesearch/delegated/search_controller.rb +7 -0
  670. data/sample_rails_project/vendor/rails/actionwebservice/examples/googlesearch/direct/google_search_api.rb +50 -0
  671. data/sample_rails_project/vendor/rails/actionwebservice/examples/googlesearch/direct/search_controller.rb +58 -0
  672. data/sample_rails_project/vendor/rails/actionwebservice/examples/metaWeblog/README +17 -0
  673. data/sample_rails_project/vendor/rails/actionwebservice/examples/metaWeblog/apis/blogger_api.rb +60 -0
  674. data/sample_rails_project/vendor/rails/actionwebservice/examples/metaWeblog/apis/blogger_service.rb +34 -0
  675. data/sample_rails_project/vendor/rails/actionwebservice/examples/metaWeblog/apis/meta_weblog_api.rb +67 -0
  676. data/sample_rails_project/vendor/rails/actionwebservice/examples/metaWeblog/apis/meta_weblog_service.rb +48 -0
  677. data/sample_rails_project/vendor/rails/actionwebservice/examples/metaWeblog/controllers/xmlrpc_controller.rb +16 -0
  678. data/sample_rails_project/vendor/rails/actionwebservice/lib/action_web_service/api.rb +249 -0
  679. data/sample_rails_project/vendor/rails/actionwebservice/lib/action_web_service/base.rb +42 -0
  680. data/sample_rails_project/vendor/rails/actionwebservice/lib/action_web_service/casting.rb +136 -0
  681. data/sample_rails_project/vendor/rails/actionwebservice/lib/action_web_service/client/base.rb +28 -0
  682. data/sample_rails_project/vendor/rails/actionwebservice/lib/action_web_service/client/soap_client.rb +113 -0
  683. data/sample_rails_project/vendor/rails/actionwebservice/lib/action_web_service/client/xmlrpc_client.rb +58 -0
  684. data/sample_rails_project/vendor/rails/actionwebservice/lib/action_web_service/client.rb +3 -0
  685. data/sample_rails_project/vendor/rails/actionwebservice/lib/action_web_service/container/action_controller_container.rb +93 -0
  686. data/sample_rails_project/vendor/rails/actionwebservice/lib/action_web_service/container/delegated_container.rb +86 -0
  687. data/sample_rails_project/vendor/rails/actionwebservice/lib/action_web_service/container/direct_container.rb +69 -0
  688. data/sample_rails_project/vendor/rails/actionwebservice/lib/action_web_service/container.rb +3 -0
  689. data/sample_rails_project/vendor/rails/actionwebservice/lib/action_web_service/dispatcher/abstract.rb +203 -0
  690. data/sample_rails_project/vendor/rails/actionwebservice/lib/action_web_service/dispatcher/action_controller_dispatcher.rb +376 -0
  691. data/sample_rails_project/vendor/rails/actionwebservice/lib/action_web_service/dispatcher.rb +2 -0
  692. data/sample_rails_project/vendor/rails/actionwebservice/lib/action_web_service/invocation.rb +202 -0
  693. data/sample_rails_project/vendor/rails/actionwebservice/lib/action_web_service/protocol/abstract.rb +112 -0
  694. data/sample_rails_project/vendor/rails/actionwebservice/lib/action_web_service/protocol/discovery.rb +37 -0
  695. data/sample_rails_project/vendor/rails/actionwebservice/lib/action_web_service/protocol/soap_protocol/marshaler.rb +241 -0
  696. data/sample_rails_project/vendor/rails/actionwebservice/lib/action_web_service/protocol/soap_protocol.rb +176 -0
  697. data/sample_rails_project/vendor/rails/actionwebservice/lib/action_web_service/protocol/xmlrpc_protocol.rb +110 -0
  698. data/sample_rails_project/vendor/rails/actionwebservice/lib/action_web_service/protocol.rb +4 -0
  699. data/sample_rails_project/vendor/rails/actionwebservice/lib/action_web_service/scaffolding.rb +283 -0
  700. data/sample_rails_project/vendor/rails/actionwebservice/lib/action_web_service/struct.rb +68 -0
  701. data/sample_rails_project/vendor/rails/actionwebservice/lib/action_web_service/support/class_inheritable_options.rb +26 -0
  702. data/sample_rails_project/vendor/rails/actionwebservice/lib/action_web_service/support/signature_types.rb +222 -0
  703. data/sample_rails_project/vendor/rails/actionwebservice/lib/action_web_service/templates/scaffolds/layout.rhtml +65 -0
  704. data/sample_rails_project/vendor/rails/actionwebservice/lib/action_web_service/templates/scaffolds/methods.rhtml +6 -0
  705. data/sample_rails_project/vendor/rails/actionwebservice/lib/action_web_service/templates/scaffolds/parameters.rhtml +29 -0
  706. data/sample_rails_project/vendor/rails/actionwebservice/lib/action_web_service/templates/scaffolds/result.rhtml +30 -0
  707. data/sample_rails_project/vendor/rails/actionwebservice/lib/action_web_service/test_invoke.rb +110 -0
  708. data/sample_rails_project/vendor/rails/actionwebservice/lib/action_web_service/version.rb +9 -0
  709. data/sample_rails_project/vendor/rails/actionwebservice/lib/action_web_service.rb +66 -0
  710. data/sample_rails_project/vendor/rails/actionwebservice/setup.rb +1379 -0
  711. data/sample_rails_project/vendor/rails/actionwebservice/test/abstract_client.rb +183 -0
  712. data/sample_rails_project/vendor/rails/actionwebservice/test/abstract_dispatcher.rb +505 -0
  713. data/sample_rails_project/vendor/rails/actionwebservice/test/abstract_unit.rb +45 -0
  714. data/sample_rails_project/vendor/rails/actionwebservice/test/api_test.rb +102 -0
  715. data/sample_rails_project/vendor/rails/actionwebservice/test/apis/auto_load_api.rb +3 -0
  716. data/sample_rails_project/vendor/rails/actionwebservice/test/apis/broken_auto_load_api.rb +2 -0
  717. data/sample_rails_project/vendor/rails/actionwebservice/test/base_test.rb +42 -0
  718. data/sample_rails_project/vendor/rails/actionwebservice/test/casting_test.rb +86 -0
  719. data/sample_rails_project/vendor/rails/actionwebservice/test/client_soap_test.rb +152 -0
  720. data/sample_rails_project/vendor/rails/actionwebservice/test/client_xmlrpc_test.rb +151 -0
  721. data/sample_rails_project/vendor/rails/actionwebservice/test/container_test.rb +73 -0
  722. data/sample_rails_project/vendor/rails/actionwebservice/test/dispatcher_action_controller_soap_test.rb +137 -0
  723. data/sample_rails_project/vendor/rails/actionwebservice/test/dispatcher_action_controller_xmlrpc_test.rb +59 -0
  724. data/sample_rails_project/vendor/rails/actionwebservice/test/fixtures/db_definitions/mysql.sql +7 -0
  725. data/sample_rails_project/vendor/rails/actionwebservice/test/fixtures/users.yml +10 -0
  726. data/sample_rails_project/vendor/rails/actionwebservice/test/gencov +3 -0
  727. data/sample_rails_project/vendor/rails/actionwebservice/test/invocation_test.rb +185 -0
  728. data/sample_rails_project/vendor/rails/actionwebservice/test/run +6 -0
  729. data/sample_rails_project/vendor/rails/actionwebservice/test/scaffolded_controller_test.rb +146 -0
  730. data/sample_rails_project/vendor/rails/actionwebservice/test/struct_test.rb +52 -0
  731. data/sample_rails_project/vendor/rails/actionwebservice/test/test_invoke_test.rb +112 -0
  732. data/sample_rails_project/vendor/rails/activerecord/CHANGELOG +3043 -0
  733. data/sample_rails_project/vendor/rails/activerecord/README +360 -0
  734. data/sample_rails_project/vendor/rails/activerecord/RUNNING_UNIT_TESTS +64 -0
  735. data/sample_rails_project/vendor/rails/activerecord/Rakefile +226 -0
  736. data/sample_rails_project/vendor/rails/activerecord/examples/associations.png +0 -0
  737. data/sample_rails_project/vendor/rails/activerecord/examples/associations.rb +87 -0
  738. data/sample_rails_project/vendor/rails/activerecord/examples/shared_setup.rb +15 -0
  739. data/sample_rails_project/vendor/rails/activerecord/examples/validation.rb +85 -0
  740. data/sample_rails_project/vendor/rails/activerecord/install.rb +30 -0
  741. data/sample_rails_project/vendor/rails/activerecord/lib/active_record/acts/list.rb +244 -0
  742. data/sample_rails_project/vendor/rails/activerecord/lib/active_record/acts/nested_set.rb +211 -0
  743. data/sample_rails_project/vendor/rails/activerecord/lib/active_record/acts/tree.rb +89 -0
  744. data/sample_rails_project/vendor/rails/activerecord/lib/active_record/aggregations.rb +191 -0
  745. data/sample_rails_project/vendor/rails/activerecord/lib/active_record/associations/association_collection.rb +190 -0
  746. data/sample_rails_project/vendor/rails/activerecord/lib/active_record/associations/association_proxy.rb +158 -0
  747. data/sample_rails_project/vendor/rails/activerecord/lib/active_record/associations/belongs_to_association.rb +56 -0
  748. data/sample_rails_project/vendor/rails/activerecord/lib/active_record/associations/belongs_to_polymorphic_association.rb +50 -0
  749. data/sample_rails_project/vendor/rails/activerecord/lib/active_record/associations/has_and_belongs_to_many_association.rb +169 -0
  750. data/sample_rails_project/vendor/rails/activerecord/lib/active_record/associations/has_many_association.rb +210 -0
  751. data/sample_rails_project/vendor/rails/activerecord/lib/active_record/associations/has_many_through_association.rb +247 -0
  752. data/sample_rails_project/vendor/rails/activerecord/lib/active_record/associations/has_one_association.rb +80 -0
  753. data/sample_rails_project/vendor/rails/activerecord/lib/active_record/associations.rb +1627 -0
  754. data/sample_rails_project/vendor/rails/activerecord/lib/active_record/attribute_methods.rb +75 -0
  755. data/sample_rails_project/vendor/rails/activerecord/lib/active_record/base.rb +2164 -0
  756. data/sample_rails_project/vendor/rails/activerecord/lib/active_record/calculations.rb +270 -0
  757. data/sample_rails_project/vendor/rails/activerecord/lib/active_record/callbacks.rb +367 -0
  758. data/sample_rails_project/vendor/rails/activerecord/lib/active_record/connection_adapters/abstract/connection_specification.rb +279 -0
  759. data/sample_rails_project/vendor/rails/activerecord/lib/active_record/connection_adapters/abstract/database_statements.rb +130 -0
  760. data/sample_rails_project/vendor/rails/activerecord/lib/active_record/connection_adapters/abstract/quoting.rb +58 -0
  761. data/sample_rails_project/vendor/rails/activerecord/lib/active_record/connection_adapters/abstract/schema_definitions.rb +343 -0
  762. data/sample_rails_project/vendor/rails/activerecord/lib/active_record/connection_adapters/abstract/schema_statements.rb +303 -0
  763. data/sample_rails_project/vendor/rails/activerecord/lib/active_record/connection_adapters/abstract_adapter.rb +161 -0
  764. data/sample_rails_project/vendor/rails/activerecord/lib/active_record/connection_adapters/db2_adapter.rb +228 -0
  765. data/sample_rails_project/vendor/rails/activerecord/lib/active_record/connection_adapters/firebird_adapter.rb +728 -0
  766. data/sample_rails_project/vendor/rails/activerecord/lib/active_record/connection_adapters/frontbase_adapter.rb +861 -0
  767. data/sample_rails_project/vendor/rails/activerecord/lib/active_record/connection_adapters/mysql_adapter.rb +414 -0
  768. data/sample_rails_project/vendor/rails/activerecord/lib/active_record/connection_adapters/openbase_adapter.rb +350 -0
  769. data/sample_rails_project/vendor/rails/activerecord/lib/active_record/connection_adapters/oracle_adapter.rb +689 -0
  770. data/sample_rails_project/vendor/rails/activerecord/lib/active_record/connection_adapters/postgresql_adapter.rb +584 -0
  771. data/sample_rails_project/vendor/rails/activerecord/lib/active_record/connection_adapters/sqlite_adapter.rb +407 -0
  772. data/sample_rails_project/vendor/rails/activerecord/lib/active_record/connection_adapters/sqlserver_adapter.rb +591 -0
  773. data/sample_rails_project/vendor/rails/activerecord/lib/active_record/connection_adapters/sybase_adapter.rb +662 -0
  774. data/sample_rails_project/vendor/rails/activerecord/lib/active_record/deprecated_associations.rb +104 -0
  775. data/sample_rails_project/vendor/rails/activerecord/lib/active_record/deprecated_finders.rb +44 -0
  776. data/sample_rails_project/vendor/rails/activerecord/lib/active_record/fixtures.rb +628 -0
  777. data/sample_rails_project/vendor/rails/activerecord/lib/active_record/locking/optimistic.rb +106 -0
  778. data/sample_rails_project/vendor/rails/activerecord/lib/active_record/locking/pessimistic.rb +77 -0
  779. data/sample_rails_project/vendor/rails/activerecord/lib/active_record/migration.rb +394 -0
  780. data/sample_rails_project/vendor/rails/activerecord/lib/active_record/observer.rb +178 -0
  781. data/sample_rails_project/vendor/rails/activerecord/lib/active_record/query_cache.rb +64 -0
  782. data/sample_rails_project/vendor/rails/activerecord/lib/active_record/reflection.rb +222 -0
  783. data/sample_rails_project/vendor/rails/activerecord/lib/active_record/schema.rb +58 -0
  784. data/sample_rails_project/vendor/rails/activerecord/lib/active_record/schema_dumper.rb +149 -0
  785. data/sample_rails_project/vendor/rails/activerecord/lib/active_record/timestamp.rb +51 -0
  786. data/sample_rails_project/vendor/rails/activerecord/lib/active_record/transactions.rb +136 -0
  787. data/sample_rails_project/vendor/rails/activerecord/lib/active_record/validations.rb +843 -0
  788. data/sample_rails_project/vendor/rails/activerecord/lib/active_record/vendor/db2.rb +362 -0
  789. data/sample_rails_project/vendor/rails/activerecord/lib/active_record/vendor/mysql.rb +1214 -0
  790. data/sample_rails_project/vendor/rails/activerecord/lib/active_record/vendor/simple.rb +693 -0
  791. data/sample_rails_project/vendor/rails/activerecord/lib/active_record/version.rb +9 -0
  792. data/sample_rails_project/vendor/rails/activerecord/lib/active_record/wrappers/yaml_wrapper.rb +15 -0
  793. data/sample_rails_project/vendor/rails/activerecord/lib/active_record/wrappings.rb +58 -0
  794. data/sample_rails_project/vendor/rails/activerecord/lib/active_record/xml_serialization.rb +308 -0
  795. data/sample_rails_project/vendor/rails/activerecord/lib/active_record.rb +85 -0
  796. data/sample_rails_project/vendor/rails/activerecord/test/aaa_create_tables_test.rb +59 -0
  797. data/sample_rails_project/vendor/rails/activerecord/test/abstract_unit.rb +77 -0
  798. data/sample_rails_project/vendor/rails/activerecord/test/active_schema_test_mysql.rb +31 -0
  799. data/sample_rails_project/vendor/rails/activerecord/test/adapter_test.rb +87 -0
  800. data/sample_rails_project/vendor/rails/activerecord/test/adapter_test_sqlserver.rb +81 -0
  801. data/sample_rails_project/vendor/rails/activerecord/test/aggregations_test.rb +95 -0
  802. data/sample_rails_project/vendor/rails/activerecord/test/all.sh +8 -0
  803. data/sample_rails_project/vendor/rails/activerecord/test/ar_schema_test.rb +33 -0
  804. data/sample_rails_project/vendor/rails/activerecord/test/association_inheritance_reload.rb +14 -0
  805. data/sample_rails_project/vendor/rails/activerecord/test/associations/callbacks_test.rb +126 -0
  806. data/sample_rails_project/vendor/rails/activerecord/test/associations/cascaded_eager_loading_test.rb +138 -0
  807. data/sample_rails_project/vendor/rails/activerecord/test/associations/eager_test.rb +393 -0
  808. data/sample_rails_project/vendor/rails/activerecord/test/associations/extension_test.rb +42 -0
  809. data/sample_rails_project/vendor/rails/activerecord/test/associations/join_model_test.rb +497 -0
  810. data/sample_rails_project/vendor/rails/activerecord/test/associations_test.rb +1809 -0
  811. data/sample_rails_project/vendor/rails/activerecord/test/attribute_methods_test.rb +49 -0
  812. data/sample_rails_project/vendor/rails/activerecord/test/base_test.rb +1586 -0
  813. data/sample_rails_project/vendor/rails/activerecord/test/binary_test.rb +37 -0
  814. data/sample_rails_project/vendor/rails/activerecord/test/calculations_test.rb +219 -0
  815. data/sample_rails_project/vendor/rails/activerecord/test/callbacks_test.rb +377 -0
  816. data/sample_rails_project/vendor/rails/activerecord/test/class_inheritable_attributes_test.rb +32 -0
  817. data/sample_rails_project/vendor/rails/activerecord/test/column_alias_test.rb +17 -0
  818. data/sample_rails_project/vendor/rails/activerecord/test/connection_test_firebird.rb +8 -0
  819. data/sample_rails_project/vendor/rails/activerecord/test/connections/native_db2/connection.rb +25 -0
  820. data/sample_rails_project/vendor/rails/activerecord/test/connections/native_firebird/connection.rb +26 -0
  821. data/sample_rails_project/vendor/rails/activerecord/test/connections/native_frontbase/connection.rb +27 -0
  822. data/sample_rails_project/vendor/rails/activerecord/test/connections/native_mysql/connection.rb +24 -0
  823. data/sample_rails_project/vendor/rails/activerecord/test/connections/native_openbase/connection.rb +21 -0
  824. data/sample_rails_project/vendor/rails/activerecord/test/connections/native_oracle/connection.rb +27 -0
  825. data/sample_rails_project/vendor/rails/activerecord/test/connections/native_postgresql/connection.rb +23 -0
  826. data/sample_rails_project/vendor/rails/activerecord/test/connections/native_sqlite/connection.rb +34 -0
  827. data/sample_rails_project/vendor/rails/activerecord/test/connections/native_sqlite3/connection.rb +34 -0
  828. data/sample_rails_project/vendor/rails/activerecord/test/connections/native_sqlite3/in_memory_connection.rb +18 -0
  829. data/sample_rails_project/vendor/rails/activerecord/test/connections/native_sqlserver/connection.rb +23 -0
  830. data/sample_rails_project/vendor/rails/activerecord/test/connections/native_sqlserver_odbc/connection.rb +25 -0
  831. data/sample_rails_project/vendor/rails/activerecord/test/connections/native_sybase/connection.rb +23 -0
  832. data/sample_rails_project/vendor/rails/activerecord/test/copy_table_sqlite.rb +64 -0
  833. data/sample_rails_project/vendor/rails/activerecord/test/datatype_test_postgresql.rb +52 -0
  834. data/sample_rails_project/vendor/rails/activerecord/test/default_test_firebird.rb +16 -0
  835. data/sample_rails_project/vendor/rails/activerecord/test/defaults_test.rb +60 -0
  836. data/sample_rails_project/vendor/rails/activerecord/test/deprecated_associations_test.rb +396 -0
  837. data/sample_rails_project/vendor/rails/activerecord/test/deprecated_finder_test.rb +151 -0
  838. data/sample_rails_project/vendor/rails/activerecord/test/empty_date_time_test.rb +25 -0
  839. data/sample_rails_project/vendor/rails/activerecord/test/finder_test.rb +504 -0
  840. data/sample_rails_project/vendor/rails/activerecord/test/fixtures/accounts.yml +28 -0
  841. data/sample_rails_project/vendor/rails/activerecord/test/fixtures/author.rb +99 -0
  842. data/sample_rails_project/vendor/rails/activerecord/test/fixtures/author_favorites.yml +4 -0
  843. data/sample_rails_project/vendor/rails/activerecord/test/fixtures/authors.yml +7 -0
  844. data/sample_rails_project/vendor/rails/activerecord/test/fixtures/auto_id.rb +4 -0
  845. data/sample_rails_project/vendor/rails/activerecord/test/fixtures/bad_fixtures/attr_with_numeric_first_char +1 -0
  846. data/sample_rails_project/vendor/rails/activerecord/test/fixtures/bad_fixtures/attr_with_spaces +1 -0
  847. data/sample_rails_project/vendor/rails/activerecord/test/fixtures/bad_fixtures/blank_line +3 -0
  848. data/sample_rails_project/vendor/rails/activerecord/test/fixtures/bad_fixtures/duplicate_attributes +3 -0
  849. data/sample_rails_project/vendor/rails/activerecord/test/fixtures/bad_fixtures/missing_value +1 -0
  850. data/sample_rails_project/vendor/rails/activerecord/test/fixtures/binary.rb +2 -0
  851. data/sample_rails_project/vendor/rails/activerecord/test/fixtures/categories/special_categories.yml +9 -0
  852. data/sample_rails_project/vendor/rails/activerecord/test/fixtures/categories/subsubdir/arbitrary_filename.yml +4 -0
  853. data/sample_rails_project/vendor/rails/activerecord/test/fixtures/categories.yml +14 -0
  854. data/sample_rails_project/vendor/rails/activerecord/test/fixtures/categories_ordered.yml +7 -0
  855. data/sample_rails_project/vendor/rails/activerecord/test/fixtures/categories_posts.yml +23 -0
  856. data/sample_rails_project/vendor/rails/activerecord/test/fixtures/categorization.rb +5 -0
  857. data/sample_rails_project/vendor/rails/activerecord/test/fixtures/categorizations.yml +17 -0
  858. data/sample_rails_project/vendor/rails/activerecord/test/fixtures/category.rb +20 -0
  859. data/sample_rails_project/vendor/rails/activerecord/test/fixtures/column_name.rb +3 -0
  860. data/sample_rails_project/vendor/rails/activerecord/test/fixtures/comment.rb +23 -0
  861. data/sample_rails_project/vendor/rails/activerecord/test/fixtures/comments.yml +59 -0
  862. data/sample_rails_project/vendor/rails/activerecord/test/fixtures/companies.yml +55 -0
  863. data/sample_rails_project/vendor/rails/activerecord/test/fixtures/company.rb +107 -0
  864. data/sample_rails_project/vendor/rails/activerecord/test/fixtures/company_in_module.rb +59 -0
  865. data/sample_rails_project/vendor/rails/activerecord/test/fixtures/computer.rb +3 -0
  866. data/sample_rails_project/vendor/rails/activerecord/test/fixtures/computers.yml +4 -0
  867. data/sample_rails_project/vendor/rails/activerecord/test/fixtures/course.rb +3 -0
  868. data/sample_rails_project/vendor/rails/activerecord/test/fixtures/courses.yml +7 -0
  869. data/sample_rails_project/vendor/rails/activerecord/test/fixtures/customer.rb +55 -0
  870. data/sample_rails_project/vendor/rails/activerecord/test/fixtures/customers.yml +17 -0
  871. data/sample_rails_project/vendor/rails/activerecord/test/fixtures/db_definitions/db2.drop.sql +32 -0
  872. data/sample_rails_project/vendor/rails/activerecord/test/fixtures/db_definitions/db2.sql +231 -0
  873. data/sample_rails_project/vendor/rails/activerecord/test/fixtures/db_definitions/db22.drop.sql +2 -0
  874. data/sample_rails_project/vendor/rails/activerecord/test/fixtures/db_definitions/db22.sql +5 -0
  875. data/sample_rails_project/vendor/rails/activerecord/test/fixtures/db_definitions/firebird.drop.sql +63 -0
  876. data/sample_rails_project/vendor/rails/activerecord/test/fixtures/db_definitions/firebird.sql +304 -0
  877. data/sample_rails_project/vendor/rails/activerecord/test/fixtures/db_definitions/firebird2.drop.sql +2 -0
  878. data/sample_rails_project/vendor/rails/activerecord/test/fixtures/db_definitions/firebird2.sql +6 -0
  879. data/sample_rails_project/vendor/rails/activerecord/test/fixtures/db_definitions/frontbase.drop.sql +32 -0
  880. data/sample_rails_project/vendor/rails/activerecord/test/fixtures/db_definitions/frontbase.sql +268 -0
  881. data/sample_rails_project/vendor/rails/activerecord/test/fixtures/db_definitions/frontbase2.drop.sql +1 -0
  882. data/sample_rails_project/vendor/rails/activerecord/test/fixtures/db_definitions/frontbase2.sql +4 -0
  883. data/sample_rails_project/vendor/rails/activerecord/test/fixtures/db_definitions/mysql.drop.sql +32 -0
  884. data/sample_rails_project/vendor/rails/activerecord/test/fixtures/db_definitions/mysql.sql +234 -0
  885. data/sample_rails_project/vendor/rails/activerecord/test/fixtures/db_definitions/mysql2.drop.sql +2 -0
  886. data/sample_rails_project/vendor/rails/activerecord/test/fixtures/db_definitions/mysql2.sql +5 -0
  887. data/sample_rails_project/vendor/rails/activerecord/test/fixtures/db_definitions/openbase.drop.sql +2 -0
  888. data/sample_rails_project/vendor/rails/activerecord/test/fixtures/db_definitions/openbase.sql +302 -0
  889. data/sample_rails_project/vendor/rails/activerecord/test/fixtures/db_definitions/openbase2.drop.sql +2 -0
  890. data/sample_rails_project/vendor/rails/activerecord/test/fixtures/db_definitions/openbase2.sql +7 -0
  891. data/sample_rails_project/vendor/rails/activerecord/test/fixtures/db_definitions/oracle.drop.sql +65 -0
  892. data/sample_rails_project/vendor/rails/activerecord/test/fixtures/db_definitions/oracle.sql +325 -0
  893. data/sample_rails_project/vendor/rails/activerecord/test/fixtures/db_definitions/oracle2.drop.sql +2 -0
  894. data/sample_rails_project/vendor/rails/activerecord/test/fixtures/db_definitions/oracle2.sql +6 -0
  895. data/sample_rails_project/vendor/rails/activerecord/test/fixtures/db_definitions/postgresql.drop.sql +37 -0
  896. data/sample_rails_project/vendor/rails/activerecord/test/fixtures/db_definitions/postgresql.sql +263 -0
  897. data/sample_rails_project/vendor/rails/activerecord/test/fixtures/db_definitions/postgresql2.drop.sql +2 -0
  898. data/sample_rails_project/vendor/rails/activerecord/test/fixtures/db_definitions/postgresql2.sql +5 -0
  899. data/sample_rails_project/vendor/rails/activerecord/test/fixtures/db_definitions/schema.rb +60 -0
  900. data/sample_rails_project/vendor/rails/activerecord/test/fixtures/db_definitions/sqlite.drop.sql +32 -0
  901. data/sample_rails_project/vendor/rails/activerecord/test/fixtures/db_definitions/sqlite.sql +215 -0
  902. data/sample_rails_project/vendor/rails/activerecord/test/fixtures/db_definitions/sqlite2.drop.sql +2 -0
  903. data/sample_rails_project/vendor/rails/activerecord/test/fixtures/db_definitions/sqlite2.sql +5 -0
  904. data/sample_rails_project/vendor/rails/activerecord/test/fixtures/db_definitions/sqlserver.drop.sql +34 -0
  905. data/sample_rails_project/vendor/rails/activerecord/test/fixtures/db_definitions/sqlserver.sql +243 -0
  906. data/sample_rails_project/vendor/rails/activerecord/test/fixtures/db_definitions/sqlserver2.drop.sql +2 -0
  907. data/sample_rails_project/vendor/rails/activerecord/test/fixtures/db_definitions/sqlserver2.sql +5 -0
  908. data/sample_rails_project/vendor/rails/activerecord/test/fixtures/db_definitions/sybase.drop.sql +34 -0
  909. data/sample_rails_project/vendor/rails/activerecord/test/fixtures/db_definitions/sybase.sql +218 -0
  910. data/sample_rails_project/vendor/rails/activerecord/test/fixtures/db_definitions/sybase2.drop.sql +4 -0
  911. data/sample_rails_project/vendor/rails/activerecord/test/fixtures/db_definitions/sybase2.sql +5 -0
  912. data/sample_rails_project/vendor/rails/activerecord/test/fixtures/default.rb +2 -0
  913. data/sample_rails_project/vendor/rails/activerecord/test/fixtures/developer.rb +52 -0
  914. data/sample_rails_project/vendor/rails/activerecord/test/fixtures/developers.yml +21 -0
  915. data/sample_rails_project/vendor/rails/activerecord/test/fixtures/developers_projects/david_action_controller +3 -0
  916. data/sample_rails_project/vendor/rails/activerecord/test/fixtures/developers_projects/david_active_record +3 -0
  917. data/sample_rails_project/vendor/rails/activerecord/test/fixtures/developers_projects/jamis_active_record +2 -0
  918. data/sample_rails_project/vendor/rails/activerecord/test/fixtures/developers_projects.yml +17 -0
  919. data/sample_rails_project/vendor/rails/activerecord/test/fixtures/edge.rb +5 -0
  920. data/sample_rails_project/vendor/rails/activerecord/test/fixtures/edges.yml +6 -0
  921. data/sample_rails_project/vendor/rails/activerecord/test/fixtures/entrant.rb +3 -0
  922. data/sample_rails_project/vendor/rails/activerecord/test/fixtures/entrants.yml +14 -0
  923. data/sample_rails_project/vendor/rails/activerecord/test/fixtures/fk_test_has_fk.yml +3 -0
  924. data/sample_rails_project/vendor/rails/activerecord/test/fixtures/fk_test_has_pk.yml +2 -0
  925. data/sample_rails_project/vendor/rails/activerecord/test/fixtures/flowers.jpg +0 -0
  926. data/sample_rails_project/vendor/rails/activerecord/test/fixtures/funny_jokes.yml +10 -0
  927. data/sample_rails_project/vendor/rails/activerecord/test/fixtures/joke.rb +6 -0
  928. data/sample_rails_project/vendor/rails/activerecord/test/fixtures/keyboard.rb +3 -0
  929. data/sample_rails_project/vendor/rails/activerecord/test/fixtures/legacy_thing.rb +3 -0
  930. data/sample_rails_project/vendor/rails/activerecord/test/fixtures/legacy_things.yml +3 -0
  931. data/sample_rails_project/vendor/rails/activerecord/test/fixtures/migrations/1_people_have_last_names.rb +9 -0
  932. data/sample_rails_project/vendor/rails/activerecord/test/fixtures/migrations/2_we_need_reminders.rb +12 -0
  933. data/sample_rails_project/vendor/rails/activerecord/test/fixtures/migrations/3_innocent_jointable.rb +12 -0
  934. data/sample_rails_project/vendor/rails/activerecord/test/fixtures/migrations_with_decimal/1_give_me_big_numbers.rb +15 -0
  935. data/sample_rails_project/vendor/rails/activerecord/test/fixtures/migrations_with_duplicate/1_people_have_last_names.rb +9 -0
  936. data/sample_rails_project/vendor/rails/activerecord/test/fixtures/migrations_with_duplicate/2_we_need_reminders.rb +12 -0
  937. data/sample_rails_project/vendor/rails/activerecord/test/fixtures/migrations_with_duplicate/3_foo.rb +7 -0
  938. data/sample_rails_project/vendor/rails/activerecord/test/fixtures/migrations_with_duplicate/3_innocent_jointable.rb +12 -0
  939. data/sample_rails_project/vendor/rails/activerecord/test/fixtures/migrations_with_missing_versions/1000_people_have_middle_names.rb +9 -0
  940. data/sample_rails_project/vendor/rails/activerecord/test/fixtures/migrations_with_missing_versions/1_people_have_last_names.rb +9 -0
  941. data/sample_rails_project/vendor/rails/activerecord/test/fixtures/migrations_with_missing_versions/3_we_need_reminders.rb +12 -0
  942. data/sample_rails_project/vendor/rails/activerecord/test/fixtures/migrations_with_missing_versions/4_innocent_jointable.rb +12 -0
  943. data/sample_rails_project/vendor/rails/activerecord/test/fixtures/mixed_case_monkey.rb +3 -0
  944. data/sample_rails_project/vendor/rails/activerecord/test/fixtures/mixed_case_monkeys.yml +6 -0
  945. data/sample_rails_project/vendor/rails/activerecord/test/fixtures/mixin.rb +63 -0
  946. data/sample_rails_project/vendor/rails/activerecord/test/fixtures/mixins.yml +127 -0
  947. data/sample_rails_project/vendor/rails/activerecord/test/fixtures/movie.rb +5 -0
  948. data/sample_rails_project/vendor/rails/activerecord/test/fixtures/movies.yml +7 -0
  949. data/sample_rails_project/vendor/rails/activerecord/test/fixtures/naked/csv/accounts.csv +1 -0
  950. data/sample_rails_project/vendor/rails/activerecord/test/fixtures/naked/yml/accounts.yml +1 -0
  951. data/sample_rails_project/vendor/rails/activerecord/test/fixtures/naked/yml/companies.yml +1 -0
  952. data/sample_rails_project/vendor/rails/activerecord/test/fixtures/naked/yml/courses.yml +1 -0
  953. data/sample_rails_project/vendor/rails/activerecord/test/fixtures/order.rb +4 -0
  954. data/sample_rails_project/vendor/rails/activerecord/test/fixtures/people.yml +3 -0
  955. data/sample_rails_project/vendor/rails/activerecord/test/fixtures/person.rb +4 -0
  956. data/sample_rails_project/vendor/rails/activerecord/test/fixtures/post.rb +58 -0
  957. data/sample_rails_project/vendor/rails/activerecord/test/fixtures/posts.yml +48 -0
  958. data/sample_rails_project/vendor/rails/activerecord/test/fixtures/project.rb +27 -0
  959. data/sample_rails_project/vendor/rails/activerecord/test/fixtures/projects.yml +7 -0
  960. data/sample_rails_project/vendor/rails/activerecord/test/fixtures/reader.rb +4 -0
  961. data/sample_rails_project/vendor/rails/activerecord/test/fixtures/readers.yml +4 -0
  962. data/sample_rails_project/vendor/rails/activerecord/test/fixtures/reply.rb +37 -0
  963. data/sample_rails_project/vendor/rails/activerecord/test/fixtures/subject.rb +4 -0
  964. data/sample_rails_project/vendor/rails/activerecord/test/fixtures/subscriber.rb +6 -0
  965. data/sample_rails_project/vendor/rails/activerecord/test/fixtures/subscribers/first +2 -0
  966. data/sample_rails_project/vendor/rails/activerecord/test/fixtures/subscribers/second +2 -0
  967. data/sample_rails_project/vendor/rails/activerecord/test/fixtures/tag.rb +7 -0
  968. data/sample_rails_project/vendor/rails/activerecord/test/fixtures/tagging.rb +6 -0
  969. data/sample_rails_project/vendor/rails/activerecord/test/fixtures/taggings.yml +18 -0
  970. data/sample_rails_project/vendor/rails/activerecord/test/fixtures/tags.yml +7 -0
  971. data/sample_rails_project/vendor/rails/activerecord/test/fixtures/task.rb +3 -0
  972. data/sample_rails_project/vendor/rails/activerecord/test/fixtures/tasks.yml +7 -0
  973. data/sample_rails_project/vendor/rails/activerecord/test/fixtures/topic.rb +25 -0
  974. data/sample_rails_project/vendor/rails/activerecord/test/fixtures/topics.yml +22 -0
  975. data/sample_rails_project/vendor/rails/activerecord/test/fixtures/vertex.rb +9 -0
  976. data/sample_rails_project/vendor/rails/activerecord/test/fixtures/vertices.yml +4 -0
  977. data/sample_rails_project/vendor/rails/activerecord/test/fixtures_test.rb +401 -0
  978. data/sample_rails_project/vendor/rails/activerecord/test/inheritance_test.rb +205 -0
  979. data/sample_rails_project/vendor/rails/activerecord/test/lifecycle_test.rb +137 -0
  980. data/sample_rails_project/vendor/rails/activerecord/test/locking_test.rb +190 -0
  981. data/sample_rails_project/vendor/rails/activerecord/test/method_scoping_test.rb +416 -0
  982. data/sample_rails_project/vendor/rails/activerecord/test/migration_test.rb +768 -0
  983. data/sample_rails_project/vendor/rails/activerecord/test/migration_test_firebird.rb +124 -0
  984. data/sample_rails_project/vendor/rails/activerecord/test/mixin_nested_set_test.rb +196 -0
  985. data/sample_rails_project/vendor/rails/activerecord/test/mixin_test.rb +550 -0
  986. data/sample_rails_project/vendor/rails/activerecord/test/modules_test.rb +34 -0
  987. data/sample_rails_project/vendor/rails/activerecord/test/multiple_db_test.rb +60 -0
  988. data/sample_rails_project/vendor/rails/activerecord/test/pk_test.rb +104 -0
  989. data/sample_rails_project/vendor/rails/activerecord/test/readonly_test.rb +107 -0
  990. data/sample_rails_project/vendor/rails/activerecord/test/reflection_test.rb +159 -0
  991. data/sample_rails_project/vendor/rails/activerecord/test/schema_authorization_test_postgresql.rb +75 -0
  992. data/sample_rails_project/vendor/rails/activerecord/test/schema_dumper_test.rb +96 -0
  993. data/sample_rails_project/vendor/rails/activerecord/test/schema_test_postgresql.rb +64 -0
  994. data/sample_rails_project/vendor/rails/activerecord/test/synonym_test_oracle.rb +17 -0
  995. data/sample_rails_project/vendor/rails/activerecord/test/table_name_test_sqlserver.rb +23 -0
  996. data/sample_rails_project/vendor/rails/activerecord/test/threaded_connections_test.rb +48 -0
  997. data/sample_rails_project/vendor/rails/activerecord/test/transactions_test.rb +230 -0
  998. data/sample_rails_project/vendor/rails/activerecord/test/unconnected_test.rb +32 -0
  999. data/sample_rails_project/vendor/rails/activerecord/test/validations_test.rb +1097 -0
  1000. data/sample_rails_project/vendor/rails/activerecord/test/xml_serialization_test.rb +125 -0
  1001. data/sample_rails_project/vendor/rails/activesupport/CHANGELOG +703 -0
  1002. data/sample_rails_project/vendor/rails/activesupport/README +43 -0
  1003. data/sample_rails_project/vendor/rails/activesupport/lib/active_support/binding_of_caller.rb +84 -0
  1004. data/sample_rails_project/vendor/rails/activesupport/lib/active_support/breakpoint.rb +528 -0
  1005. data/sample_rails_project/vendor/rails/activesupport/lib/active_support/caching_tools.rb +62 -0
  1006. data/sample_rails_project/vendor/rails/activesupport/lib/active_support/clean_logger.rb +38 -0
  1007. data/sample_rails_project/vendor/rails/activesupport/lib/active_support/core_ext/array/conversions.rb +72 -0
  1008. data/sample_rails_project/vendor/rails/activesupport/lib/active_support/core_ext/array/grouping.rb +55 -0
  1009. data/sample_rails_project/vendor/rails/activesupport/lib/active_support/core_ext/array.rb +7 -0
  1010. data/sample_rails_project/vendor/rails/activesupport/lib/active_support/core_ext/bigdecimal/formatting.rb +7 -0
  1011. data/sample_rails_project/vendor/rails/activesupport/lib/active_support/core_ext/bigdecimal.rb +3 -0
  1012. data/sample_rails_project/vendor/rails/activesupport/lib/active_support/core_ext/blank.rb +50 -0
  1013. data/sample_rails_project/vendor/rails/activesupport/lib/active_support/core_ext/cgi/escape_skipping_slashes.rb +14 -0
  1014. data/sample_rails_project/vendor/rails/activesupport/lib/active_support/core_ext/cgi.rb +5 -0
  1015. data/sample_rails_project/vendor/rails/activesupport/lib/active_support/core_ext/class/attribute_accessors.rb +48 -0
  1016. data/sample_rails_project/vendor/rails/activesupport/lib/active_support/core_ext/class/inheritable_attributes.rb +140 -0
  1017. data/sample_rails_project/vendor/rails/activesupport/lib/active_support/core_ext/class/removal.rb +24 -0
  1018. data/sample_rails_project/vendor/rails/activesupport/lib/active_support/core_ext/class.rb +3 -0
  1019. data/sample_rails_project/vendor/rails/activesupport/lib/active_support/core_ext/date/conversions.rb +39 -0
  1020. data/sample_rails_project/vendor/rails/activesupport/lib/active_support/core_ext/date.rb +6 -0
  1021. data/sample_rails_project/vendor/rails/activesupport/lib/active_support/core_ext/enumerable.rb +62 -0
  1022. data/sample_rails_project/vendor/rails/activesupport/lib/active_support/core_ext/exception.rb +33 -0
  1023. data/sample_rails_project/vendor/rails/activesupport/lib/active_support/core_ext/hash/conversions.rb +155 -0
  1024. data/sample_rails_project/vendor/rails/activesupport/lib/active_support/core_ext/hash/diff.rb +11 -0
  1025. data/sample_rails_project/vendor/rails/activesupport/lib/active_support/core_ext/hash/indifferent_access.rb +88 -0
  1026. data/sample_rails_project/vendor/rails/activesupport/lib/active_support/core_ext/hash/keys.rb +53 -0
  1027. data/sample_rails_project/vendor/rails/activesupport/lib/active_support/core_ext/hash/reverse_merge.rb +25 -0
  1028. data/sample_rails_project/vendor/rails/activesupport/lib/active_support/core_ext/hash.rb +13 -0
  1029. data/sample_rails_project/vendor/rails/activesupport/lib/active_support/core_ext/integer/even_odd.rb +24 -0
  1030. data/sample_rails_project/vendor/rails/activesupport/lib/active_support/core_ext/integer/inflections.rb +21 -0
  1031. data/sample_rails_project/vendor/rails/activesupport/lib/active_support/core_ext/integer.rb +7 -0
  1032. data/sample_rails_project/vendor/rails/activesupport/lib/active_support/core_ext/kernel/agnostics.rb +11 -0
  1033. data/sample_rails_project/vendor/rails/activesupport/lib/active_support/core_ext/kernel/daemonizing.rb +15 -0
  1034. data/sample_rails_project/vendor/rails/activesupport/lib/active_support/core_ext/kernel/reporting.rb +51 -0
  1035. data/sample_rails_project/vendor/rails/activesupport/lib/active_support/core_ext/kernel/requires.rb +24 -0
  1036. data/sample_rails_project/vendor/rails/activesupport/lib/active_support/core_ext/kernel.rb +4 -0
  1037. data/sample_rails_project/vendor/rails/activesupport/lib/active_support/core_ext/load_error.rb +38 -0
  1038. data/sample_rails_project/vendor/rails/activesupport/lib/active_support/core_ext/logger.rb +16 -0
  1039. data/sample_rails_project/vendor/rails/activesupport/lib/active_support/core_ext/module/aliasing.rb +58 -0
  1040. data/sample_rails_project/vendor/rails/activesupport/lib/active_support/core_ext/module/attr_internal.rb +31 -0
  1041. data/sample_rails_project/vendor/rails/activesupport/lib/active_support/core_ext/module/attribute_accessors.rb +48 -0
  1042. data/sample_rails_project/vendor/rails/activesupport/lib/active_support/core_ext/module/delegation.rb +41 -0
  1043. data/sample_rails_project/vendor/rails/activesupport/lib/active_support/core_ext/module/inclusion.rb +11 -0
  1044. data/sample_rails_project/vendor/rails/activesupport/lib/active_support/core_ext/module/introspection.rb +21 -0
  1045. data/sample_rails_project/vendor/rails/activesupport/lib/active_support/core_ext/module/loading.rb +13 -0
  1046. data/sample_rails_project/vendor/rails/activesupport/lib/active_support/core_ext/module.rb +7 -0
  1047. data/sample_rails_project/vendor/rails/activesupport/lib/active_support/core_ext/name_error.rb +17 -0
  1048. data/sample_rails_project/vendor/rails/activesupport/lib/active_support/core_ext/numeric/bytes.rb +44 -0
  1049. data/sample_rails_project/vendor/rails/activesupport/lib/active_support/core_ext/numeric/time.rb +72 -0
  1050. data/sample_rails_project/vendor/rails/activesupport/lib/active_support/core_ext/numeric.rb +7 -0
  1051. data/sample_rails_project/vendor/rails/activesupport/lib/active_support/core_ext/object/extending.rb +47 -0
  1052. data/sample_rails_project/vendor/rails/activesupport/lib/active_support/core_ext/object/misc.rb +34 -0
  1053. data/sample_rails_project/vendor/rails/activesupport/lib/active_support/core_ext/object.rb +2 -0
  1054. data/sample_rails_project/vendor/rails/activesupport/lib/active_support/core_ext/pathname/clean_within.rb +14 -0
  1055. data/sample_rails_project/vendor/rails/activesupport/lib/active_support/core_ext/pathname.rb +7 -0
  1056. data/sample_rails_project/vendor/rails/activesupport/lib/active_support/core_ext/proc.rb +12 -0
  1057. data/sample_rails_project/vendor/rails/activesupport/lib/active_support/core_ext/range/conversions.rb +21 -0
  1058. data/sample_rails_project/vendor/rails/activesupport/lib/active_support/core_ext/range.rb +5 -0
  1059. data/sample_rails_project/vendor/rails/activesupport/lib/active_support/core_ext/string/access.rb +58 -0
  1060. data/sample_rails_project/vendor/rails/activesupport/lib/active_support/core_ext/string/conversions.rb +19 -0
  1061. data/sample_rails_project/vendor/rails/activesupport/lib/active_support/core_ext/string/inflections.rb +153 -0
  1062. data/sample_rails_project/vendor/rails/activesupport/lib/active_support/core_ext/string/iterators.rb +17 -0
  1063. data/sample_rails_project/vendor/rails/activesupport/lib/active_support/core_ext/string/starts_ends_with.rb +20 -0
  1064. data/sample_rails_project/vendor/rails/activesupport/lib/active_support/core_ext/string/unicode.rb +42 -0
  1065. data/sample_rails_project/vendor/rails/activesupport/lib/active_support/core_ext/string.rb +15 -0
  1066. data/sample_rails_project/vendor/rails/activesupport/lib/active_support/core_ext/symbol.rb +12 -0
  1067. data/sample_rails_project/vendor/rails/activesupport/lib/active_support/core_ext/time/calculations.rb +191 -0
  1068. data/sample_rails_project/vendor/rails/activesupport/lib/active_support/core_ext/time/conversions.rb +33 -0
  1069. data/sample_rails_project/vendor/rails/activesupport/lib/active_support/core_ext/time.rb +17 -0
  1070. data/sample_rails_project/vendor/rails/activesupport/lib/active_support/core_ext.rb +1 -0
  1071. data/sample_rails_project/vendor/rails/activesupport/lib/active_support/dependencies.rb +539 -0
  1072. data/sample_rails_project/vendor/rails/activesupport/lib/active_support/deprecation.rb +202 -0
  1073. data/sample_rails_project/vendor/rails/activesupport/lib/active_support/inflections.rb +52 -0
  1074. data/sample_rails_project/vendor/rails/activesupport/lib/active_support/inflector.rb +275 -0
  1075. data/sample_rails_project/vendor/rails/activesupport/lib/active_support/json/encoders/core.rb +68 -0
  1076. data/sample_rails_project/vendor/rails/activesupport/lib/active_support/json/encoders.rb +25 -0
  1077. data/sample_rails_project/vendor/rails/activesupport/lib/active_support/json.rb +48 -0
  1078. data/sample_rails_project/vendor/rails/activesupport/lib/active_support/multibyte/chars.rb +129 -0
  1079. data/sample_rails_project/vendor/rails/activesupport/lib/active_support/multibyte/generators/generate_tables.rb +149 -0
  1080. data/sample_rails_project/vendor/rails/activesupport/lib/active_support/multibyte/handlers/passthru_handler.rb +9 -0
  1081. data/sample_rails_project/vendor/rails/activesupport/lib/active_support/multibyte/handlers/utf8_handler.rb +454 -0
  1082. data/sample_rails_project/vendor/rails/activesupport/lib/active_support/multibyte/handlers/utf8_handler_proc.rb +43 -0
  1083. data/sample_rails_project/vendor/rails/activesupport/lib/active_support/multibyte.rb +7 -0
  1084. data/sample_rails_project/vendor/rails/activesupport/lib/active_support/option_merger.rb +25 -0
  1085. data/sample_rails_project/vendor/rails/activesupport/lib/active_support/ordered_options.rb +44 -0
  1086. data/sample_rails_project/vendor/rails/activesupport/lib/active_support/reloadable.rb +60 -0
  1087. data/sample_rails_project/vendor/rails/activesupport/lib/active_support/values/time_zone.rb +180 -0
  1088. data/sample_rails_project/vendor/rails/activesupport/lib/active_support/values/unicode_tables.dat +0 -0
  1089. data/sample_rails_project/vendor/rails/activesupport/lib/active_support/vendor/builder/blankslate.rb +63 -0
  1090. data/sample_rails_project/vendor/rails/activesupport/lib/active_support/vendor/builder/xchar.rb +112 -0
  1091. data/sample_rails_project/vendor/rails/activesupport/lib/active_support/vendor/builder/xmlbase.rb +145 -0
  1092. data/sample_rails_project/vendor/rails/activesupport/lib/active_support/vendor/builder/xmlevents.rb +63 -0
  1093. data/sample_rails_project/vendor/rails/activesupport/lib/active_support/vendor/builder/xmlmarkup.rb +327 -0
  1094. data/sample_rails_project/vendor/rails/activesupport/lib/active_support/vendor/builder.rb +13 -0
  1095. data/sample_rails_project/vendor/rails/activesupport/lib/active_support/vendor/xml_simple.rb +1021 -0
  1096. data/sample_rails_project/vendor/rails/activesupport/lib/active_support/version.rb +9 -0
  1097. data/sample_rails_project/vendor/rails/activesupport/lib/active_support/whiny_nil.rb +38 -0
  1098. data/sample_rails_project/vendor/rails/activesupport/lib/active_support.rb +44 -0
  1099. data/sample_rails_project/vendor/rails/railties/CHANGELOG +1366 -0
  1100. data/sample_rails_project/vendor/rails/railties/MIT-LICENSE +20 -0
  1101. data/sample_rails_project/vendor/rails/railties/README +182 -0
  1102. data/sample_rails_project/vendor/rails/railties/Rakefile +334 -0
  1103. data/sample_rails_project/vendor/rails/railties/bin/about +3 -0
  1104. data/sample_rails_project/vendor/rails/railties/bin/breakpointer +3 -0
  1105. data/sample_rails_project/vendor/rails/railties/bin/console +3 -0
  1106. data/sample_rails_project/vendor/rails/railties/bin/destroy +3 -0
  1107. data/sample_rails_project/vendor/rails/railties/bin/generate +3 -0
  1108. data/sample_rails_project/vendor/rails/railties/bin/performance/benchmarker +3 -0
  1109. data/sample_rails_project/vendor/rails/railties/bin/performance/profiler +3 -0
  1110. data/sample_rails_project/vendor/rails/railties/bin/plugin +3 -0
  1111. data/sample_rails_project/vendor/rails/railties/bin/process/inspector +3 -0
  1112. data/sample_rails_project/vendor/rails/railties/bin/process/reaper +3 -0
  1113. data/sample_rails_project/vendor/rails/railties/bin/process/spawner +3 -0
  1114. data/sample_rails_project/vendor/rails/railties/bin/rails +19 -0
  1115. data/sample_rails_project/vendor/rails/railties/bin/runner +3 -0
  1116. data/sample_rails_project/vendor/rails/railties/bin/server +3 -0
  1117. data/sample_rails_project/vendor/rails/railties/builtin/rails_info/rails/info.rb +123 -0
  1118. data/sample_rails_project/vendor/rails/railties/builtin/rails_info/rails/info_controller.rb +9 -0
  1119. data/sample_rails_project/vendor/rails/railties/builtin/rails_info/rails/info_helper.rb +2 -0
  1120. data/sample_rails_project/vendor/rails/railties/builtin/rails_info/rails_info_controller.rb +2 -0
  1121. data/sample_rails_project/vendor/rails/railties/configs/apache.conf +40 -0
  1122. data/sample_rails_project/vendor/rails/railties/configs/databases/frontbase.yml +28 -0
  1123. data/sample_rails_project/vendor/rails/railties/configs/databases/mysql.yml +48 -0
  1124. data/sample_rails_project/vendor/rails/railties/configs/databases/oracle.yml +39 -0
  1125. data/sample_rails_project/vendor/rails/railties/configs/databases/postgresql.yml +44 -0
  1126. data/sample_rails_project/vendor/rails/railties/configs/databases/sqlite2.yml +16 -0
  1127. data/sample_rails_project/vendor/rails/railties/configs/databases/sqlite3.yml +19 -0
  1128. data/sample_rails_project/vendor/rails/railties/configs/empty.log +0 -0
  1129. data/sample_rails_project/vendor/rails/railties/configs/lighttpd.conf +54 -0
  1130. data/sample_rails_project/vendor/rails/railties/configs/routes.rb +23 -0
  1131. data/sample_rails_project/vendor/rails/railties/dispatches/dispatch.fcgi +24 -0
  1132. data/sample_rails_project/vendor/rails/railties/dispatches/dispatch.rb +10 -0
  1133. data/sample_rails_project/vendor/rails/railties/dispatches/gateway.cgi +97 -0
  1134. data/sample_rails_project/vendor/rails/railties/doc/README_FOR_APP +2 -0
  1135. data/sample_rails_project/vendor/rails/railties/environments/boot.rb +45 -0
  1136. data/sample_rails_project/vendor/rails/railties/environments/development.rb +21 -0
  1137. data/sample_rails_project/vendor/rails/railties/environments/environment.rb +60 -0
  1138. data/sample_rails_project/vendor/rails/railties/environments/production.rb +18 -0
  1139. data/sample_rails_project/vendor/rails/railties/environments/test.rb +19 -0
  1140. data/sample_rails_project/vendor/rails/railties/fresh_rakefile +10 -0
  1141. data/sample_rails_project/vendor/rails/railties/helpers/application.rb +7 -0
  1142. data/sample_rails_project/vendor/rails/railties/helpers/application_helper.rb +3 -0
  1143. data/sample_rails_project/vendor/rails/railties/helpers/test_helper.rb +28 -0
  1144. data/sample_rails_project/vendor/rails/railties/html/404.html +30 -0
  1145. data/sample_rails_project/vendor/rails/railties/html/500.html +30 -0
  1146. data/sample_rails_project/vendor/rails/railties/html/favicon.ico +0 -0
  1147. data/sample_rails_project/vendor/rails/railties/html/images/rails.png +0 -0
  1148. data/sample_rails_project/vendor/rails/railties/html/index.html +277 -0
  1149. data/sample_rails_project/vendor/rails/railties/html/javascripts/application.js +2 -0
  1150. data/sample_rails_project/vendor/rails/railties/html/javascripts/controls.js +833 -0
  1151. data/sample_rails_project/vendor/rails/railties/html/javascripts/dragdrop.js +942 -0
  1152. data/sample_rails_project/vendor/rails/railties/html/javascripts/effects.js +1088 -0
  1153. data/sample_rails_project/vendor/rails/railties/html/javascripts/prototype.js +2515 -0
  1154. data/sample_rails_project/vendor/rails/railties/html/robots.txt +1 -0
  1155. data/sample_rails_project/vendor/rails/railties/lib/binding_of_caller.rb +85 -0
  1156. data/sample_rails_project/vendor/rails/railties/lib/breakpoint.rb +553 -0
  1157. data/sample_rails_project/vendor/rails/railties/lib/breakpoint_client.rb +196 -0
  1158. data/sample_rails_project/vendor/rails/railties/lib/code_statistics.rb +107 -0
  1159. data/sample_rails_project/vendor/rails/railties/lib/commands/about.rb +2 -0
  1160. data/sample_rails_project/vendor/rails/railties/lib/commands/breakpointer.rb +1 -0
  1161. data/sample_rails_project/vendor/rails/railties/lib/commands/console.rb +25 -0
  1162. data/sample_rails_project/vendor/rails/railties/lib/commands/destroy.rb +6 -0
  1163. data/sample_rails_project/vendor/rails/railties/lib/commands/generate.rb +6 -0
  1164. data/sample_rails_project/vendor/rails/railties/lib/commands/ncgi/listener +86 -0
  1165. data/sample_rails_project/vendor/rails/railties/lib/commands/ncgi/tracker +69 -0
  1166. data/sample_rails_project/vendor/rails/railties/lib/commands/performance/benchmarker.rb +24 -0
  1167. data/sample_rails_project/vendor/rails/railties/lib/commands/performance/profiler.rb +50 -0
  1168. data/sample_rails_project/vendor/rails/railties/lib/commands/plugin.rb +918 -0
  1169. data/sample_rails_project/vendor/rails/railties/lib/commands/process/inspector.rb +68 -0
  1170. data/sample_rails_project/vendor/rails/railties/lib/commands/process/reaper.rb +149 -0
  1171. data/sample_rails_project/vendor/rails/railties/lib/commands/process/spawner.rb +209 -0
  1172. data/sample_rails_project/vendor/rails/railties/lib/commands/process/spinner.rb +57 -0
  1173. data/sample_rails_project/vendor/rails/railties/lib/commands/runner.rb +48 -0
  1174. data/sample_rails_project/vendor/rails/railties/lib/commands/server.rb +39 -0
  1175. data/sample_rails_project/vendor/rails/railties/lib/commands/servers/base.rb +19 -0
  1176. data/sample_rails_project/vendor/rails/railties/lib/commands/servers/lighttpd.rb +94 -0
  1177. data/sample_rails_project/vendor/rails/railties/lib/commands/servers/mongrel.rb +65 -0
  1178. data/sample_rails_project/vendor/rails/railties/lib/commands/servers/webrick.rb +59 -0
  1179. data/sample_rails_project/vendor/rails/railties/lib/commands/update.rb +4 -0
  1180. data/sample_rails_project/vendor/rails/railties/lib/commands.rb +17 -0
  1181. data/sample_rails_project/vendor/rails/railties/lib/console_app.rb +27 -0
  1182. data/sample_rails_project/vendor/rails/railties/lib/console_sandbox.rb +6 -0
  1183. data/sample_rails_project/vendor/rails/railties/lib/console_with_helpers.rb +23 -0
  1184. data/sample_rails_project/vendor/rails/railties/lib/dispatcher.rb +173 -0
  1185. data/sample_rails_project/vendor/rails/railties/lib/fcgi_handler.rb +225 -0
  1186. data/sample_rails_project/vendor/rails/railties/lib/initializer.rb +702 -0
  1187. data/sample_rails_project/vendor/rails/railties/lib/rails/version.rb +9 -0
  1188. data/sample_rails_project/vendor/rails/railties/lib/rails_generator/base.rb +261 -0
  1189. data/sample_rails_project/vendor/rails/railties/lib/rails_generator/commands.rb +581 -0
  1190. data/sample_rails_project/vendor/rails/railties/lib/rails_generator/generated_attribute.rb +42 -0
  1191. data/sample_rails_project/vendor/rails/railties/lib/rails_generator/generators/applications/app/USAGE +16 -0
  1192. data/sample_rails_project/vendor/rails/railties/lib/rails_generator/generators/applications/app/app_generator.rb +160 -0
  1193. data/sample_rails_project/vendor/rails/railties/lib/rails_generator/generators/components/controller/USAGE +30 -0
  1194. data/sample_rails_project/vendor/rails/railties/lib/rails_generator/generators/components/controller/controller_generator.rb +37 -0
  1195. data/sample_rails_project/vendor/rails/railties/lib/rails_generator/generators/components/controller/templates/controller.rb +10 -0
  1196. data/sample_rails_project/vendor/rails/railties/lib/rails_generator/generators/components/controller/templates/functional_test.rb +18 -0
  1197. data/sample_rails_project/vendor/rails/railties/lib/rails_generator/generators/components/controller/templates/helper.rb +2 -0
  1198. data/sample_rails_project/vendor/rails/railties/lib/rails_generator/generators/components/controller/templates/view.rhtml +2 -0
  1199. data/sample_rails_project/vendor/rails/railties/lib/rails_generator/generators/components/integration_test/USAGE +14 -0
  1200. data/sample_rails_project/vendor/rails/railties/lib/rails_generator/generators/components/integration_test/integration_test_generator.rb +16 -0
  1201. data/sample_rails_project/vendor/rails/railties/lib/rails_generator/generators/components/integration_test/templates/integration_test.rb +10 -0
  1202. data/sample_rails_project/vendor/rails/railties/lib/rails_generator/generators/components/mailer/USAGE +18 -0
  1203. data/sample_rails_project/vendor/rails/railties/lib/rails_generator/generators/components/mailer/mailer_generator.rb +34 -0
  1204. data/sample_rails_project/vendor/rails/railties/lib/rails_generator/generators/components/mailer/templates/fixture.rhtml +3 -0
  1205. data/sample_rails_project/vendor/rails/railties/lib/rails_generator/generators/components/mailer/templates/mailer.rb +13 -0
  1206. data/sample_rails_project/vendor/rails/railties/lib/rails_generator/generators/components/mailer/templates/unit_test.rb +37 -0
  1207. data/sample_rails_project/vendor/rails/railties/lib/rails_generator/generators/components/mailer/templates/view.rhtml +3 -0
  1208. data/sample_rails_project/vendor/rails/railties/lib/rails_generator/generators/components/migration/USAGE +14 -0
  1209. data/sample_rails_project/vendor/rails/railties/lib/rails_generator/generators/components/migration/migration_generator.rb +7 -0
  1210. data/sample_rails_project/vendor/rails/railties/lib/rails_generator/generators/components/migration/templates/migration.rb +7 -0
  1211. data/sample_rails_project/vendor/rails/railties/lib/rails_generator/generators/components/model/USAGE +26 -0
  1212. data/sample_rails_project/vendor/rails/railties/lib/rails_generator/generators/components/model/model_generator.rb +38 -0
  1213. data/sample_rails_project/vendor/rails/railties/lib/rails_generator/generators/components/model/templates/fixtures.yml +11 -0
  1214. data/sample_rails_project/vendor/rails/railties/lib/rails_generator/generators/components/model/templates/migration.rb +13 -0
  1215. data/sample_rails_project/vendor/rails/railties/lib/rails_generator/generators/components/model/templates/model.rb +2 -0
  1216. data/sample_rails_project/vendor/rails/railties/lib/rails_generator/generators/components/model/templates/unit_test.rb +10 -0
  1217. data/sample_rails_project/vendor/rails/railties/lib/rails_generator/generators/components/observer/USAGE +15 -0
  1218. data/sample_rails_project/vendor/rails/railties/lib/rails_generator/generators/components/observer/observer_generator.rb +16 -0
  1219. data/sample_rails_project/vendor/rails/railties/lib/rails_generator/generators/components/observer/templates/observer.rb +2 -0
  1220. data/sample_rails_project/vendor/rails/railties/lib/rails_generator/generators/components/observer/templates/unit_test.rb +10 -0
  1221. data/sample_rails_project/vendor/rails/railties/lib/rails_generator/generators/components/plugin/USAGE +35 -0
  1222. data/sample_rails_project/vendor/rails/railties/lib/rails_generator/generators/components/plugin/plugin_generator.rb +38 -0
  1223. data/sample_rails_project/vendor/rails/railties/lib/rails_generator/generators/components/plugin/templates/README +4 -0
  1224. data/sample_rails_project/vendor/rails/railties/lib/rails_generator/generators/components/plugin/templates/Rakefile +22 -0
  1225. data/sample_rails_project/vendor/rails/railties/lib/rails_generator/generators/components/plugin/templates/USAGE +8 -0
  1226. data/sample_rails_project/vendor/rails/railties/lib/rails_generator/generators/components/plugin/templates/generator.rb +8 -0
  1227. data/sample_rails_project/vendor/rails/railties/lib/rails_generator/generators/components/plugin/templates/init.rb +1 -0
  1228. data/sample_rails_project/vendor/rails/railties/lib/rails_generator/generators/components/plugin/templates/install.rb +1 -0
  1229. data/sample_rails_project/vendor/rails/railties/lib/rails_generator/generators/components/plugin/templates/plugin.rb +1 -0
  1230. data/sample_rails_project/vendor/rails/railties/lib/rails_generator/generators/components/plugin/templates/tasks.rake +4 -0
  1231. data/sample_rails_project/vendor/rails/railties/lib/rails_generator/generators/components/plugin/templates/uninstall.rb +1 -0
  1232. data/sample_rails_project/vendor/rails/railties/lib/rails_generator/generators/components/plugin/templates/unit_test.rb +8 -0
  1233. data/sample_rails_project/vendor/rails/railties/lib/rails_generator/generators/components/resource/resource_generator.rb +76 -0
  1234. data/sample_rails_project/vendor/rails/railties/lib/rails_generator/generators/components/resource/templates/USAGE +18 -0
  1235. data/sample_rails_project/vendor/rails/railties/lib/rails_generator/generators/components/resource/templates/controller.rb +2 -0
  1236. data/sample_rails_project/vendor/rails/railties/lib/rails_generator/generators/components/resource/templates/fixtures.yml +11 -0
  1237. data/sample_rails_project/vendor/rails/railties/lib/rails_generator/generators/components/resource/templates/functional_test.rb +20 -0
  1238. data/sample_rails_project/vendor/rails/railties/lib/rails_generator/generators/components/resource/templates/helper.rb +2 -0
  1239. data/sample_rails_project/vendor/rails/railties/lib/rails_generator/generators/components/resource/templates/migration.rb +13 -0
  1240. data/sample_rails_project/vendor/rails/railties/lib/rails_generator/generators/components/resource/templates/model.rb +2 -0
  1241. data/sample_rails_project/vendor/rails/railties/lib/rails_generator/generators/components/resource/templates/unit_test.rb +10 -0
  1242. data/sample_rails_project/vendor/rails/railties/lib/rails_generator/generators/components/scaffold/USAGE +32 -0
  1243. data/sample_rails_project/vendor/rails/railties/lib/rails_generator/generators/components/scaffold/scaffold_generator.rb +193 -0
  1244. data/sample_rails_project/vendor/rails/railties/lib/rails_generator/generators/components/scaffold/templates/controller.rb +58 -0
  1245. data/sample_rails_project/vendor/rails/railties/lib/rails_generator/generators/components/scaffold/templates/form.rhtml +3 -0
  1246. data/sample_rails_project/vendor/rails/railties/lib/rails_generator/generators/components/scaffold/templates/form_scaffolding.rhtml +1 -0
  1247. data/sample_rails_project/vendor/rails/railties/lib/rails_generator/generators/components/scaffold/templates/functional_test.rb +102 -0
  1248. data/sample_rails_project/vendor/rails/railties/lib/rails_generator/generators/components/scaffold/templates/helper.rb +2 -0
  1249. data/sample_rails_project/vendor/rails/railties/lib/rails_generator/generators/components/scaffold/templates/layout.rhtml +17 -0
  1250. data/sample_rails_project/vendor/rails/railties/lib/rails_generator/generators/components/scaffold/templates/style.css +74 -0
  1251. data/sample_rails_project/vendor/rails/railties/lib/rails_generator/generators/components/scaffold/templates/view_edit.rhtml +9 -0
  1252. data/sample_rails_project/vendor/rails/railties/lib/rails_generator/generators/components/scaffold/templates/view_list.rhtml +27 -0
  1253. data/sample_rails_project/vendor/rails/railties/lib/rails_generator/generators/components/scaffold/templates/view_new.rhtml +8 -0
  1254. data/sample_rails_project/vendor/rails/railties/lib/rails_generator/generators/components/scaffold/templates/view_show.rhtml +8 -0
  1255. data/sample_rails_project/vendor/rails/railties/lib/rails_generator/generators/components/scaffold_resource/USAGE +29 -0
  1256. data/sample_rails_project/vendor/rails/railties/lib/rails_generator/generators/components/scaffold_resource/scaffold_resource_generator.rb +92 -0
  1257. data/sample_rails_project/vendor/rails/railties/lib/rails_generator/generators/components/scaffold_resource/templates/controller.rb +79 -0
  1258. data/sample_rails_project/vendor/rails/railties/lib/rails_generator/generators/components/scaffold_resource/templates/fixtures.yml +11 -0
  1259. data/sample_rails_project/vendor/rails/railties/lib/rails_generator/generators/components/scaffold_resource/templates/functional_test.rb +57 -0
  1260. data/sample_rails_project/vendor/rails/railties/lib/rails_generator/generators/components/scaffold_resource/templates/helper.rb +2 -0
  1261. data/sample_rails_project/vendor/rails/railties/lib/rails_generator/generators/components/scaffold_resource/templates/layout.rhtml +17 -0
  1262. data/sample_rails_project/vendor/rails/railties/lib/rails_generator/generators/components/scaffold_resource/templates/migration.rb +13 -0
  1263. data/sample_rails_project/vendor/rails/railties/lib/rails_generator/generators/components/scaffold_resource/templates/model.rb +2 -0
  1264. data/sample_rails_project/vendor/rails/railties/lib/rails_generator/generators/components/scaffold_resource/templates/style.css +74 -0
  1265. data/sample_rails_project/vendor/rails/railties/lib/rails_generator/generators/components/scaffold_resource/templates/unit_test.rb +10 -0
  1266. data/sample_rails_project/vendor/rails/railties/lib/rails_generator/generators/components/scaffold_resource/templates/view_edit.rhtml +19 -0
  1267. data/sample_rails_project/vendor/rails/railties/lib/rails_generator/generators/components/scaffold_resource/templates/view_index.rhtml +24 -0
  1268. data/sample_rails_project/vendor/rails/railties/lib/rails_generator/generators/components/scaffold_resource/templates/view_new.rhtml +18 -0
  1269. data/sample_rails_project/vendor/rails/railties/lib/rails_generator/generators/components/scaffold_resource/templates/view_show.rhtml +10 -0
  1270. data/sample_rails_project/vendor/rails/railties/lib/rails_generator/generators/components/session_migration/USAGE +15 -0
  1271. data/sample_rails_project/vendor/rails/railties/lib/rails_generator/generators/components/session_migration/session_migration_generator.rb +18 -0
  1272. data/sample_rails_project/vendor/rails/railties/lib/rails_generator/generators/components/session_migration/templates/migration.rb +16 -0
  1273. data/sample_rails_project/vendor/rails/railties/lib/rails_generator/generators/components/web_service/USAGE +28 -0
  1274. data/sample_rails_project/vendor/rails/railties/lib/rails_generator/generators/components/web_service/templates/api_definition.rb +5 -0
  1275. data/sample_rails_project/vendor/rails/railties/lib/rails_generator/generators/components/web_service/templates/controller.rb +8 -0
  1276. data/sample_rails_project/vendor/rails/railties/lib/rails_generator/generators/components/web_service/templates/functional_test.rb +19 -0
  1277. data/sample_rails_project/vendor/rails/railties/lib/rails_generator/generators/components/web_service/web_service_generator.rb +29 -0
  1278. data/sample_rails_project/vendor/rails/railties/lib/rails_generator/lookup.rb +209 -0
  1279. data/sample_rails_project/vendor/rails/railties/lib/rails_generator/manifest.rb +53 -0
  1280. data/sample_rails_project/vendor/rails/railties/lib/rails_generator/options.rb +143 -0
  1281. data/sample_rails_project/vendor/rails/railties/lib/rails_generator/scripts/destroy.rb +7 -0
  1282. data/sample_rails_project/vendor/rails/railties/lib/rails_generator/scripts/generate.rb +7 -0
  1283. data/sample_rails_project/vendor/rails/railties/lib/rails_generator/scripts/update.rb +12 -0
  1284. data/sample_rails_project/vendor/rails/railties/lib/rails_generator/scripts.rb +83 -0
  1285. data/sample_rails_project/vendor/rails/railties/lib/rails_generator/simple_logger.rb +46 -0
  1286. data/sample_rails_project/vendor/rails/railties/lib/rails_generator/spec.rb +44 -0
  1287. data/sample_rails_project/vendor/rails/railties/lib/rails_generator.rb +43 -0
  1288. data/sample_rails_project/vendor/rails/railties/lib/railties_path.rb +1 -0
  1289. data/sample_rails_project/vendor/rails/railties/lib/ruby_version_check.rb +17 -0
  1290. data/sample_rails_project/vendor/rails/railties/lib/rubyprof_ext.rb +35 -0
  1291. data/sample_rails_project/vendor/rails/railties/lib/tasks/databases.rake +187 -0
  1292. data/sample_rails_project/vendor/rails/railties/lib/tasks/documentation.rake +82 -0
  1293. data/sample_rails_project/vendor/rails/railties/lib/tasks/framework.rake +112 -0
  1294. data/sample_rails_project/vendor/rails/railties/lib/tasks/log.rake +9 -0
  1295. data/sample_rails_project/vendor/rails/railties/lib/tasks/misc.rake +4 -0
  1296. data/sample_rails_project/vendor/rails/railties/lib/tasks/pre_namespace_aliases.rake +53 -0
  1297. data/sample_rails_project/vendor/rails/railties/lib/tasks/rails.rb +8 -0
  1298. data/sample_rails_project/vendor/rails/railties/lib/tasks/statistics.rake +18 -0
  1299. data/sample_rails_project/vendor/rails/railties/lib/tasks/testing.rake +120 -0
  1300. data/sample_rails_project/vendor/rails/railties/lib/tasks/tmp.rake +37 -0
  1301. data/sample_rails_project/vendor/rails/railties/lib/test_help.rb +19 -0
  1302. data/sample_rails_project/vendor/rails/railties/lib/webrick_server.rb +166 -0
  1303. data/spec/deep_test/options_spec.rb +204 -0
  1304. data/spec/deep_test/spec/extensions/example_group_methods_spec.rb +48 -0
  1305. data/spec/deep_test/spec/extensions/example_methods_spec.rb +62 -0
  1306. data/spec/deep_test/spec/extensions/options_spec.rb +23 -0
  1307. data/spec/deep_test/spec/extensions/reporter_spec.rb +28 -0
  1308. data/spec/deep_test/spec/extensions/spec_task_spec.rb +34 -0
  1309. data/spec/deep_test/spec/runner_spec.rb +133 -0
  1310. data/spec/deep_test/spec/work_result_spec.rb +14 -0
  1311. data/spec/deep_test/spec/work_unit_spec.rb +78 -0
  1312. data/spec/spec.opts +1 -0
  1313. data/spec/spec_helper.rb +67 -0
  1314. data/test/deep_test/agent_test.rb +175 -0
  1315. data/test/deep_test/central_command_test.rb +147 -0
  1316. data/test/deep_test/cpu_info_test.rb +33 -0
  1317. data/test/deep_test/database/mysql_setup_listener_test.rb +18 -0
  1318. data/test/deep_test/demon_test.rb +23 -0
  1319. data/test/deep_test/distributed/beachhead_test.rb +67 -0
  1320. data/test/deep_test/distributed/dispatch_controller_test.rb +162 -0
  1321. data/test/deep_test/distributed/filename_resolver_test.rb +56 -0
  1322. data/test/deep_test/distributed/landing_fleet_test.rb +55 -0
  1323. data/test/deep_test/distributed/landing_ship_test.rb +48 -0
  1324. data/test/deep_test/distributed/remote_deployment_test.rb +134 -0
  1325. data/test/deep_test/distributed/rsync_test.rb +47 -0
  1326. data/test/deep_test/distributed/shell_environment_fixtures/set_bar_to_foo +1 -0
  1327. data/test/deep_test/distributed/shell_environment_fixtures/set_foo_to_bar +1 -0
  1328. data/test/deep_test/distributed/shell_environment_fixtures/set_foo_to_baz +1 -0
  1329. data/test/deep_test/distributed/shell_environment_test.rb +108 -0
  1330. data/test/deep_test/distributed/ssh_client_connection_info_test.rb +34 -0
  1331. data/test/deep_test/extensions/object_extension_test.rb +37 -0
  1332. data/test/deep_test/listener_list_test.rb +22 -0
  1333. data/test/deep_test/local_deployment_test.rb +19 -0
  1334. data/test/deep_test/logger_test.rb +38 -0
  1335. data/test/deep_test/main_test.rb +12 -0
  1336. data/test/deep_test/marshallable_exception_wrapper_test.rb +46 -0
  1337. data/test/deep_test/metrics/data_test.rb +22 -0
  1338. data/test/deep_test/metrics/measurement_test.rb +18 -0
  1339. data/test/deep_test/proxy_io_test.rb +104 -0
  1340. data/test/deep_test/result_reader_test.rb +128 -0
  1341. data/test/deep_test/test/extensions/error_test.rb +42 -0
  1342. data/test/deep_test/test/runner_test.rb +11 -0
  1343. data/test/deep_test/test/supervised_test_suite_test.rb +107 -0
  1344. data/test/deep_test/test/work_result_test.rb +85 -0
  1345. data/test/deep_test/test/work_unit_test.rb +63 -0
  1346. data/test/deep_test/test_task_test.rb +15 -0
  1347. data/test/deep_test/ui/console_test.rb +13 -0
  1348. data/test/deep_test/warlock_test.rb +40 -0
  1349. data/test/test_helper.rb +30 -0
  1350. data/test/test_task_test.rb +75 -0
  1351. metadata +1447 -0
@@ -0,0 +1,3043 @@
1
+ *1.15.3* (March 12th, 2007)
2
+
3
+ * Allow a polymorphic :source for has_many :through associations. Closes #7143 [protocool]
4
+
5
+ * Consistently quote primary key column names. #7763 [toolmantim]
6
+
7
+ * Fixtures: fix YAML ordered map support. #2665 [Manuel Holtgrewe, nfbuckley]
8
+
9
+ * Fix has_many :through << with custom foreign keys. #6466, #7153 [naffis, Rich Collins]
10
+
11
+
12
+ *1.15.2* (February 5th, 2007)
13
+
14
+ * Pass a range in :conditions to use the SQL BETWEEN operator. #6974 [dcmanges]
15
+ Student.find(:all, :conditions => { :grade => 9..12 })
16
+
17
+ * Don't create instance writer methods for class attributes. [Rick]
18
+
19
+ * When dealing with SQLite3, use the table_info pragma helper, so that the bindings can do some translation for when sqlite3 breaks incompatibly between point releases. [Jamis Buck]
20
+
21
+ * SQLServer: don't choke on strings containing 'null'. #7083 [Jakob S]
22
+
23
+ * Consistently use LOWER() for uniqueness validations (rather than mixing with UPPER()) so the database can always use a functional index on the lowercased column. #6495 [Si]
24
+
25
+ * MySQL: SET SQL_AUTO_IS_NULL=0 so 'where id is null' doesn't select the last inserted id. #6778 [Jonathan Viney, timc]
26
+
27
+ * Fixtures use the table name and connection from set_fixture_class. #7330 [Anthony Eden]
28
+
29
+ * SQLServer: quote table name in indexes query. #2928 [keithm@infused.org]
30
+
31
+
32
+ *1.15.1* (January 17th, 2007)
33
+
34
+ * Fix nodoc breaking of adapters
35
+
36
+
37
+ *1.15.0* (January 16th, 2007)
38
+
39
+ * [DOC] clear up some ambiguity with the way has_and_belongs_to_many creates the default join table name. #7072 [jeremymcanally]
40
+
41
+ * change_column accepts :default => nil. Skip column options for primary keys. #6956, #7048 [dcmanges, Jeremy Kemper]
42
+
43
+ * MySQL, PostgreSQL: change_column_default quotes the default value and doesn't lose column type information. #3987, #6664 [Jonathan Viney, manfred, altano@bigfoot.com]
44
+
45
+ * Oracle: create_table takes a :sequence_name option to override the 'tablename_seq' default. #7000 [Michael Schoen]
46
+
47
+ * MySQL: retain SSL settings on reconnect. #6976 [randyv2]
48
+
49
+ * SQLServer: handle [quoted] table names. #6635 [rrich]
50
+
51
+ * acts_as_nested_set works with single-table inheritance. #6030 [Josh Susser]
52
+
53
+ * PostgreSQL, Oracle: correctly perform eager finds with :limit and :order. #4668, #7021 [eventualbuddha, Michael Schoen]
54
+
55
+ * Fix the Oracle adapter for serialized attributes stored in CLOBs. Closes #6825 [mschoen, tdfowler]
56
+
57
+ * [DOCS] Apply more documentation for ActiveRecord Reflection. Closes #4055 [Robby Russell]
58
+
59
+ * [DOCS] Document :allow_nil option of #validate_uniqueness_of. Closes #3143 [Caio Chassot]
60
+
61
+ * Bring the sybase adapter up to scratch for 1.2 release. [jsheets]
62
+
63
+ * Oracle: fix connection reset failure. #6846 [leonlleslie]
64
+
65
+ * Subclass instantiation doesn't try to explicitly require the corresponding subclass. #6840 [leei, Jeremy Kemper]
66
+
67
+ * fix faulty inheritance tests and that eager loading grabs the wrong inheritance column when the class of your association is an STI subclass. Closes #6859 [protocool]
68
+
69
+ * find supports :lock with :include. Check whether your database allows SELECT ... FOR UPDATE with outer joins before using. #6764 [vitaly, Jeremy Kemper]
70
+
71
+ * Support nil and Array in :conditions => { attr => value } hashes. #6548 [Assaf, Jeremy Kemper]
72
+ find(:all, :conditions => { :topic_id => [1, 2, 3], :last_read => nil }
73
+
74
+ * Quote ActiveSupport::Multibyte::Chars. #6653 [Julian Tarkhanov]
75
+
76
+ * MySQL: detect when a NOT NULL column without a default value is misreported as default ''. Can't detect for string, text, and binary columns since '' is a legitimate default. #6156 [simon@redhillconsulting.com.au, obrie, Jonathan Viney, Jeremy Kemper]
77
+
78
+ * validates_numericality_of uses \A \Z to ensure the entire string matches rather than ^ $ which may match one valid line of a multiline string. #5716 [Andreas Schwarz]
79
+
80
+ * Oracle: automatically detect the primary key. #6594 [vesaria, Michael Schoen]
81
+
82
+ * Oracle: to increase performance, prefetch 100 rows and enable similar cursor sharing. Both are configurable in database.yml. #6607 [philbogle@gmail.com, ray.fortna@jobster.com, Michael Schoen]
83
+
84
+ * Firebird: decimal/numeric support. #6408 [macrnic]
85
+
86
+ * Find with :include respects scoped :order. #5850
87
+
88
+ * Dynamically generate reader methods for serialized attributes. #6362 [Stefan Kaes]
89
+
90
+ * Deprecation: object transactions warning. [Jeremy Kemper]
91
+
92
+ * has_one :dependent => :nullify ignores nil associates. #6528 [janovetz, Jeremy Kemper]
93
+
94
+ * Oracle: resolve test failures, use prefetched primary key for inserts, check for null defaults, fix limited id selection for eager loading. Factor out some common methods from all adapters. #6515 [Michael Schoen]
95
+
96
+ * Make add_column use the options hash with the Sqlite Adapter. Closes #6464 [obrie]
97
+
98
+ * Document other options available to migration's add_column. #6419 [grg]
99
+
100
+ * MySQL: all_hashes compatibility with old MysqlRes class. #6429, #6601 [Jeremy Kemper]
101
+
102
+ * Fix has_many :through to add the appropriate conditions when going through an association using STI. Closes #5783. [Jonathan Viney]
103
+
104
+ * fix select_limited_ids_list issues in postgresql, retain current behavior in other adapters [Rick]
105
+
106
+ * Restore eager condition interpolation, document it's differences [Rick]
107
+
108
+ * Don't rollback in teardown unless a transaction was started. Don't start a transaction in create_fixtures if a transaction is started. #6282 [Jacob Fugal, Jeremy Kemper]
109
+
110
+ * Add #delete support to has_many :through associations. Closes #6049 [Martin Landers]
111
+
112
+ * Reverted old select_limited_ids_list postgresql fix that caused issues in mysql. Closes #5851 [Rick]
113
+
114
+ * Removes the ability for eager loaded conditions to be interpolated, since there is no model instance to use as a context for interpolation. #5553 [turnip@turnipspatch.com]
115
+
116
+ * Added timeout option to SQLite3 configurations to deal more gracefully with SQLite3::BusyException, now the connection can instead retry for x seconds to see if the db clears up before throwing that exception #6126 [wreese@gmail.com]
117
+
118
+ * Added update_attributes! which uses save! to raise an exception if a validation error prevents saving #6192 [jonathan]
119
+
120
+ * Deprecated add_on_boundary_breaking (use validates_length_of instead) #6292 [BobSilva]
121
+
122
+ * The has_many create method works with polymorphic associations. #6361 [Dan Peterson]
123
+
124
+ * MySQL: introduce Mysql::Result#all_hashes to support further optimization. #5581 [Stefan Kaes]
125
+
126
+ * save! shouldn't validate twice. #6324 [maiha, Bob Silva]
127
+
128
+ * Association collections have an _ids reader method to match the existing writer for collection_select convenience (e.g. employee.task_ids). The writer method skips blank ids so you can safely do @employee.task_ids = params[:tasks] without checking every time for an empty list or blank values. #1887, #5780 [Michael Schuerig]
129
+
130
+ * Add an attribute reader method for ActiveRecord::Base.observers [Rick Olson]
131
+
132
+ * Deprecation: count class method should be called with an options hash rather than two args for conditions and joins. #6287 [Bob Silva]
133
+
134
+ * has_one associations with a nil target may be safely marshaled. #6279 [norbauer, Jeremy Kemper]
135
+
136
+ * Duplicate the hash provided to AR::Base#to_xml to prevent unexpected side effects [Koz]
137
+
138
+ * Add a :namespace option to AR::Base#to_xml [Koz]
139
+
140
+ * Deprecation tests. Remove warnings for dynamic finders and for the foo_count method if it's also an attribute. [Jeremy Kemper]
141
+
142
+ * Mock Time.now for more accurate Touch mixin tests. #6213 [Dan Peterson]
143
+
144
+ * Improve yaml fixtures error reporting. #6205 [Bruce Williams]
145
+
146
+ * Rename AR::Base#quote so people can use that name in their models. #3628 [Koz]
147
+
148
+ * Add deprecation warning for inferred foreign key. #6029 [Josh Susser]
149
+
150
+ * Fixed the Ruby/MySQL adapter we ship with Active Record to work with the new authentication handshake that was introduced in MySQL 4.1, along with the other protocol changes made at that time #5723 [jimw@mysql.com]
151
+
152
+ * Deprecation: use :dependent => :delete_all rather than :exclusively_dependent => true. #6024 [Josh Susser]
153
+
154
+ * Optimistic locking: gracefully handle nil versions, treat as zero. #5908 [Tom Ward]
155
+
156
+ * to_xml: the :methods option works on arrays of records. #5845 [Josh Starcher]
157
+
158
+ * has_many :through conditions are sanitized by the associating class. #5971 [martin.emde@gmail.com]
159
+
160
+ * Fix spurious newlines and spaces in AR::Base#to_xml output [Jamis Buck]
161
+
162
+ * has_one supports the :dependent => :delete option which skips the typical callback chain and deletes the associated object directly from the database. #5927 [Chris Mear, Jonathan Viney]
163
+
164
+ * Nested subclasses are not prefixed with the parent class' table_name since they should always use the base class' table_name. #5911 [Jonathan Viney]
165
+
166
+ * SQLServer: work around bug where some unambiguous date formats are not correctly identified if the session language is set to german. #5894 [Tom Ward, kruth@bfpi]
167
+
168
+ * Clashing type columns due to a sloppy join shouldn't wreck single-table inheritance. #5838 [Kevin Clark]
169
+
170
+ * Fixtures: correct escaping of \n and \r. #5859 [evgeny.zislis@gmail.com]
171
+
172
+ * Migrations: gracefully handle missing migration files. #5857 [eli.gordon@gmail.com]
173
+
174
+ * MySQL: update test schema for MySQL 5 strict mode. #5861 [Tom Ward]
175
+
176
+ * to_xml: correct naming of included associations. #5831 [josh.starcher@gmail.com]
177
+
178
+ * Pushing a record onto a has_many :through sets the association's foreign key to the associate's primary key and adds it to the correct association. #5815, #5829 [josh@hasmanythrough.com]
179
+
180
+ * Add records to has_many :through using <<, push, and concat by creating the association record. Raise if base or associate are new records since both ids are required to create the association. #build raises since you can't associate an unsaved record. #create! takes an attributes hash and creates the associated record and its association in a transaction. [Jeremy Kemper]
181
+
182
+ # Create a tagging to associate the post and tag.
183
+ post.tags << Tag.find_by_name('old')
184
+ post.tags.create! :name => 'general'
185
+
186
+ # Would have been:
187
+ post.taggings.create!(:tag => Tag.find_by_name('finally')
188
+ transaction do
189
+ post.taggings.create!(:tag => Tag.create!(:name => 'general'))
190
+ end
191
+
192
+ * Cache nil results for :included has_one associations also. #5787 [Michael Schoen]
193
+
194
+ * Fixed a bug which would cause .save to fail after trying to access a empty has_one association on a unsaved record. [Tobias Luetke]
195
+
196
+ * Nested classes are given table names prefixed by the singular form of the parent's table name. [Jeremy Kemper]
197
+ Example: Invoice::Lineitem is given table name invoice_lineitems
198
+
199
+ * Migrations: uniquely name multicolumn indexes so you don't have to. [Jeremy Kemper]
200
+ # people_active_last_name_index, people_active_deactivated_at_index
201
+ add_index :people, [:active, :last_name]
202
+ add_index :people, [:active, :deactivated_at]
203
+ remove_index :people, [:active, :last_name]
204
+ remove_index :people, [:active, :deactivated_at]
205
+
206
+ WARNING: backward-incompatibility. Multicolumn indexes created before this
207
+ revision were named using the first column name only. Now they're uniquely
208
+ named using all indexed columns.
209
+
210
+ To remove an old multicolumn index, remove_index :table_name, :first_column
211
+
212
+ * Fix for deep includes on the same association. [richcollins@gmail.com]
213
+
214
+ * Tweak fixtures so they don't try to use a non-ActiveRecord class. [Kevin Clark]
215
+
216
+ * Remove ActiveRecord::Base.reset since Dispatcher doesn't use it anymore. [Rick Olson]
217
+
218
+ * PostgreSQL: autodetected sequences work correctly with multiple schemas. Rely on the schema search_path instead of explicitly qualifying the sequence name with its schema. #5280 [guy.naor@famundo.com]
219
+
220
+ * Replace Reloadable with Reloadable::Deprecated. [Nicholas Seckar]
221
+
222
+ * Cache nil results for has_one associations so multiple calls don't call the database. Closes #5757. [Michael A. Schoen]
223
+
224
+ * Don't save has_one associations unnecessarily. #5735 [Jonathan Viney]
225
+
226
+ * Refactor ActiveRecord::Base.reset_subclasses to #reset, and add global observer resetting. [Rick Olson]
227
+
228
+ * Formally deprecate the deprecated finders. [Koz]
229
+
230
+ * Formally deprecate rich associations. [Koz]
231
+
232
+ * Fixed that default timezones for new / initialize should uphold utc setting #5709 [daniluk@yahoo.com]
233
+
234
+ * Fix announcement of very long migration names. #5722 [blake@near-time.com]
235
+
236
+ * The exists? class method should treat a string argument as an id rather than as conditions. #5698 [jeremy@planetargon.com]
237
+
238
+ * Fixed to_xml with :include misbehaviors when invoked on array of model instances #5690 [alexkwolfe@gmail.com]
239
+
240
+ * Added support for conditions on Base.exists? #5689 [josh@joshpeek.com]. Examples:
241
+
242
+ assert (Topic.exists?(:author_name => "David"))
243
+ assert (Topic.exists?(:author_name => "Mary", :approved => true))
244
+ assert (Topic.exists?(["parent_id = ?", 1]))
245
+
246
+ * Schema dumper quotes date :default values. [Dave Thomas]
247
+
248
+ * Calculate sum with SQL, not Enumerable on HasManyThrough Associations. [Dan Peterson]
249
+
250
+ * Factor the attribute#{suffix} methods out of method_missing for easier extension. [Jeremy Kemper]
251
+
252
+ * Patch sql injection vulnerability when using integer or float columns. [Jamis Buck]
253
+
254
+ * Allow #count through a has_many association to accept :include. [Dan Peterson]
255
+
256
+ * create_table rdoc: suggest :id => false for habtm join tables. [Zed Shaw]
257
+
258
+ * PostgreSQL: return array fields as strings. #4664 [Robby Russell]
259
+
260
+ * SQLServer: added tests to ensure all database statements are closed, refactored identity_insert management code to use blocks, removed update/delete rowcount code out of execute and into update/delete, changed insert to go through execute method, removed unused quoting methods, disabled pessimistic locking tests as feature is currently unsupported, fixed RakeFile to load sqlserver specific tests whether running in ado or odbc mode, fixed support for recently added decimal types, added support for limits on integer types. #5670 [Tom Ward]
261
+
262
+ * SQLServer: fix db:schema:dump case-sensitivity. #4684 [Will Rogers]
263
+
264
+ * Oracle: BigDecimal support. #5667 [schoenm@earthlink.net]
265
+
266
+ * Numeric and decimal columns map to BigDecimal instead of Float. Those with scale 0 map to Integer. #5454 [robbat2@gentoo.org, work@ashleymoran.me.uk]
267
+
268
+ * Firebird migrations support. #5337 [Ken Kunz <kennethkunz@gmail.com>]
269
+
270
+ * PostgreSQL: create/drop as postgres user. #4790 [mail@matthewpainter.co.uk, mlaster@metavillage.com]
271
+
272
+ * PostgreSQL: correctly quote the ' in pk_and_sequence_for. #5462 [tietew@tietew.net]
273
+
274
+ * PostgreSQL: correctly quote microseconds in timestamps. #5641 [rick@rickbradley.com]
275
+
276
+ * Clearer has_one/belongs_to model names (account has_one :user). #5632 [matt@mattmargolis.net]
277
+
278
+ * Oracle: use nonblocking queries if allow_concurrency is set, fix pessimistic locking, don't guess date vs. time by default (set OracleAdapter.emulate_dates = true for the old behavior), adapter cleanup. #5635 [schoenm@earthlink.net]
279
+
280
+ * Fixed a few Oracle issues: Allows Oracle's odd date handling to still work consistently within #to_xml, Passes test that hardcode insert statement by dropping the :id column, Updated RUNNING_UNIT_TESTS with Oracle instructions, Corrects method signature for #exec #5294 [schoenm@earthlink.net]
281
+
282
+ * Added :group to available options for finds done on associations #5516 [mike@michaeldewey.org]
283
+
284
+ * Observers also watch subclasses created after they are declared. #5535 [daniels@pronto.com.au]
285
+
286
+ * Removed deprecated timestamps_gmt class methods. [Jeremy Kemper]
287
+
288
+ * rake build_mysql_database grants permissions to rails@localhost. #5501 [brianegge@yahoo.com]
289
+
290
+ * PostgreSQL: support microsecond time resolution. #5492 [alex@msgpad.com]
291
+
292
+ * Add AssociationCollection#sum since the method_missing invokation has been shadowed by Enumerable#sum.
293
+
294
+ * Added find_or_initialize_by_X which works like find_or_create_by_X but doesn't save the newly instantiated record. [Sam Stephenson]
295
+
296
+ * Row locking. Provide a locking clause with the :lock finder option or true for the default "FOR UPDATE". Use the #lock! method to obtain a row lock on a single record (reloads the record with :lock => true). [Shugo Maeda]
297
+ # Obtain an exclusive lock on person 1 so we can safely increment visits.
298
+ Person.transaction do
299
+ # select * from people where id=1 for update
300
+ person = Person.find(1, :lock => true)
301
+ person.visits += 1
302
+ person.save!
303
+ end
304
+
305
+ * PostgreSQL: introduce allow_concurrency option which determines whether to use blocking or asynchronous #execute. Adapters with blocking #execute will deadlock Ruby threads. The default value is ActiveRecord::Base.allow_concurrency. [Jeremy Kemper]
306
+
307
+ * Use a per-thread (rather than global) transaction mutex so you may execute concurrent transactions on separate connections. [Jeremy Kemper]
308
+
309
+ * Change AR::Base#to_param to return a String instead of a Fixnum. Closes #5320. [Nicholas Seckar]
310
+
311
+ * Use explicit delegation instead of method aliasing for AR::Base.to_param -> AR::Base.id. #5299 (skaes@web.de)
312
+
313
+ * Refactored ActiveRecord::Base.to_xml to become a delegate for XmlSerializer, which restores sanity to the mega method. This refactoring also reinstates the opinions that type="string" is redundant and ugly and nil-differentiation is not a concern of serialization [DHH]
314
+
315
+ * Added simple hash conditions to find that'll just convert hash to an AND-based condition string #5143 [hcatlin@gmail.com]. Example:
316
+
317
+ Person.find(:all, :conditions => { :last_name => "Catlin", :status => 1 }, :limit => 2)
318
+
319
+ ...is the same as:
320
+
321
+ Person.find(:all, :conditions => [ "last_name = ? and status = ?", "Catlin", 1 ], :limit => 2)
322
+
323
+ This makes it easier to pass in the options from a form or otherwise outside.
324
+
325
+
326
+ * Fixed issues with BLOB limits, charsets, and booleans for Firebird #5194, #5191, #5189 [kennethkunz@gmail.com]
327
+
328
+ * Fixed usage of :limit and with_scope when the association in scope is a 1:m #5208 [alex@purefiction.net]
329
+
330
+ * Fixed migration trouble with SQLite when NOT NULL is used in the new definition #5215 [greg@lapcominc.com]
331
+
332
+ * Fixed problems with eager loading and counting on SQL Server #5212 [kajism@yahoo.com]
333
+
334
+ * Fixed that count distinct should use the selected column even when using :include #5251 [anna@wota.jp]
335
+
336
+ * Fixed that :includes merged from with_scope won't cause the same association to be loaded more than once if repetition occurs in the clauses #5253 [alex@purefiction.net]
337
+
338
+ * Allow models to override to_xml. #4989 [Blair Zajac <blair@orcaware.com>]
339
+
340
+ * PostgreSQL: don't ignore port when host is nil since it's often used to label the domain socket. #5247 [shimbo@is.naist.jp]
341
+
342
+ * Records and arrays of records are bound as quoted ids. [Jeremy Kemper]
343
+ Foo.find(:all, :conditions => ['bar_id IN (?)', bars])
344
+ Foo.find(:first, :conditions => ['bar_id = ?', bar])
345
+
346
+ * Fixed that Base.find :all, :conditions => [ "id IN (?)", collection ] would fail if collection was empty [DHH]
347
+
348
+ * Add a list of regexes assert_queries skips in the ActiveRecord test suite. [Rick]
349
+
350
+ * Fix the has_and_belongs_to_many #create doesn't populate the join for new records. Closes #3692 [josh@hasmanythrough.com]
351
+
352
+ * Provide Association Extensions access to the instance that the association is being accessed from.
353
+ Closes #4433 [josh@hasmanythrough.com]
354
+
355
+ * Update OpenBase adaterp's maintainer's email address. Closes #5176. [Derrick Spell]
356
+
357
+ * Add a quick note about :select and eagerly included associations. [Rick]
358
+
359
+ * Add docs for the :as option in has_one associations. Closes #5144 [cdcarter@gmail.com]
360
+
361
+ * Fixed that has_many collections shouldn't load the entire association to do build or create [DHH]
362
+
363
+ * Added :allow_nil option for aggregations #5091 [ian.w.white@gmail.com]
364
+
365
+ * Fix Oracle boolean support and tests. Closes #5139. [schoenm@earthlink.net]
366
+
367
+ * create! no longer blows up when no attributes are passed and a :create scope is in effect (e.g. foo.bars.create! failed whereas foo.bars.create!({}) didn't.) [Jeremy Kemper]
368
+
369
+ * Call Inflector#demodulize on the class name when eagerly including an STI model. Closes #5077 [info@loobmedia.com]
370
+
371
+ * Preserve MySQL boolean column defaults when changing a column in a migration. Closes #5015. [pdcawley@bofh.org.uk]
372
+
373
+ * PostgreSQL: migrations support :limit with :integer columns by mapping limit < 4 to smallint, > 4 to bigint, and anything else to integer. #2900 [keegan@thebasement.org]
374
+
375
+ * Dates and times interpret empty strings as nil rather than 2000-01-01. #4830 [kajism@yahoo.com]
376
+
377
+ * Allow :uniq => true with has_many :through associations. [Jeremy Kemper]
378
+
379
+ * Ensure that StringIO is always available for the Schema dumper. [Marcel Molina Jr.]
380
+
381
+ * Allow AR::Base#to_xml to include methods too. Closes #4921. [johan@textdrive.com]
382
+
383
+ * Remove duplicate fixture entry in comments.yml. Closes #4923. [Blair Zajac <blair@orcaware.com>]
384
+
385
+ * When grouping, use the appropriate option key. [Marcel Molina Jr.]
386
+
387
+ * Add support for FrontBase (http://www.frontbase.com/) with a new adapter thanks to the hard work of one Mike Laster. Closes #4093. [mlaster@metavillage.com]
388
+
389
+ * Add warning about the proper way to validate the presence of a foreign key. Closes #4147. [Francois Beausoleil <francois.beausoleil@gmail.com>]
390
+
391
+ * Fix syntax error in documentation. Closes #4679. [mislav@nippur.irb.hr]
392
+
393
+ * Add Oracle support for CLOB inserts. Closes #4748. [schoenm@earthlink.net sandra.metz@duke.edu]
394
+
395
+ * Various fixes for sqlserver_adapter (odbc statement finishing, ado schema dumper, drop index). Closes #4831. [kajism@yahoo.com]
396
+
397
+ * Add support for :order option to with_scope. Closes #3887. [eric.daspet@survol.net]
398
+
399
+ * Prettify output of schema_dumper by making things line up. Closes #4241 [Caio Chassot <caio@v2studio.com>]
400
+
401
+ * Make build_postgresql_databases task make databases owned by the postgres user. Closes #4790. [mlaster@metavillage.com]
402
+
403
+ * Sybase Adapter type conversion cleanup. Closes #4736. [dev@metacasa.net]
404
+
405
+ * Fix bug where calculations with long alias names return null. [Rick]
406
+
407
+ * Raise error when trying to add to a has_many :through association. Use the Join Model instead. [Rick]
408
+
409
+ @post.tags << @tag # BAD
410
+ @post.taggings.create(:tag => @tag) # GOOD
411
+
412
+ * Allow all calculations to take the :include option, not just COUNT (closes #4840) [Rick]
413
+
414
+ * Add ActiveRecord::Errors#to_xml [Jamis Buck]
415
+
416
+ * Properly quote index names in migrations (closes #4764) [John Long]
417
+
418
+ * Fix the HasManyAssociation#count method so it uses the new ActiveRecord::Base#count syntax, while maintaining backwards compatibility. [Rick]
419
+
420
+ * Ensure that Associations#include_eager_conditions? checks both scoped and explicit conditions [Rick]
421
+
422
+ * Associations#select_limited_ids_list adds the ORDER BY columns to the SELECT DISTINCT List for postgresql. [Rick]
423
+
424
+ * Add :case_sensitive option to validates_uniqueness_of (closes #3090) [Rick]
425
+
426
+ class Account < ActiveRecord::Base
427
+ validates_uniqueness_of :email, :case_sensitive => false
428
+ end
429
+
430
+ * Allow multiple association extensions with :extend option (closes #4666) [Josh Susser]
431
+
432
+ class Account < ActiveRecord::Base
433
+ has_many :people, :extend => [FindOrCreateByNameExtension, FindRecentExtension]
434
+ end
435
+
436
+
437
+ *1.14.4* (August 8th, 2006)
438
+
439
+ * Add warning about the proper way to validate the presence of a foreign key. #4147 [Francois Beausoleil <francois.beausoleil@gmail.com>]
440
+
441
+ * Fix syntax error in documentation. #4679 [mislav@nippur.irb.hr]
442
+
443
+ * Update inconsistent migrations documentation. #4683 [machomagna@gmail.com]
444
+
445
+
446
+ *1.14.3* (June 27th, 2006)
447
+
448
+ * Fix announcement of very long migration names. #5722 [blake@near-time.com]
449
+
450
+ * Update callbacks documentation. #3970 [Robby Russell <robby@planetargon.com>]
451
+
452
+ * Properly quote index names in migrations (closes #4764) [John Long]
453
+
454
+ * Ensure that Associations#include_eager_conditions? checks both scoped and explicit conditions [Rick]
455
+
456
+ * Associations#select_limited_ids_list adds the ORDER BY columns to the SELECT DISTINCT List for postgresql. [Rick]
457
+
458
+
459
+ *1.14.2* (April 9th, 2006)
460
+
461
+ * Fixed calculations for the Oracle Adapter (closes #4626) [Michael Schoen]
462
+
463
+
464
+ *1.14.1* (April 6th, 2006)
465
+
466
+ * Fix type_name_with_module to handle type names that begin with '::'. Closes #4614. [Nicholas Seckar]
467
+
468
+ * Fixed that that multiparameter assignment doesn't work with aggregations (closes #4620) [Lars Pind]
469
+
470
+ * Enable Limit/Offset in Calculations (closes #4558) [lmarlow@yahoo.com]
471
+
472
+ * Fixed that loading including associations returns all results if Load IDs For Limited Eager Loading returns none (closes #4528) [Rick]
473
+
474
+ * Fixed HasManyAssociation#find bugs when :finder_sql is set #4600 [lagroue@free.fr]
475
+
476
+ * Allow AR::Base#respond_to? to behave when @attributes is nil [zenspider]
477
+
478
+ * Support eager includes when going through a polymorphic has_many association. [Rick]
479
+
480
+ * Added support for eagerly including polymorphic has_one associations. (closes #4525) [Rick]
481
+
482
+ class Post < ActiveRecord::Base
483
+ has_one :tagging, :as => :taggable
484
+ end
485
+
486
+ Post.find :all, :include => :tagging
487
+
488
+ * Added descriptive error messages for invalid has_many :through associations: going through :has_one or :has_and_belongs_to_many [Rick]
489
+
490
+ * Added support for going through a polymorphic has_many association: (closes #4401) [Rick]
491
+
492
+ class PhotoCollection < ActiveRecord::Base
493
+ has_many :photos, :as => :photographic
494
+ belongs_to :firm
495
+ end
496
+
497
+ class Firm < ActiveRecord::Base
498
+ has_many :photo_collections
499
+ has_many :photos, :through => :photo_collections
500
+ end
501
+
502
+ * Multiple fixes and optimizations in PostgreSQL adapter, allowing ruby-postgres gem to work properly. [ruben.nine@gmail.com]
503
+
504
+ * Fixed that AssociationCollection#delete_all should work even if the records of the association are not loaded yet. [Florian Weber]
505
+
506
+ * Changed those private ActiveRecord methods to take optional third argument :auto instead of nil for performance optimizations. (closes #4456) [Stefan]
507
+
508
+ * Private ActiveRecord methods add_limit!, add_joins!, and add_conditions! take an OPTIONAL third argument 'scope' (closes #4456) [Rick]
509
+
510
+ * DEPRECATED: Using additional attributes on has_and_belongs_to_many associations. Instead upgrade your association to be a real join model [DHH]
511
+
512
+ * Fixed that records returned from has_and_belongs_to_many associations with additional attributes should be marked as read only (fixes #4512) [DHH]
513
+
514
+ * Do not implicitly mark recordss of has_many :through as readonly but do mark habtm records as readonly (eventually only on join tables without rich attributes). [Marcel Mollina Jr.]
515
+
516
+ * Fixed broken OCIAdapter #4457 [schoenm@earthlink.net]
517
+
518
+
519
+ *1.14.0* (March 27th, 2006)
520
+
521
+ * Replace 'rescue Object' with a finer grained rescue. Closes #4431. [Nicholas Seckar]
522
+
523
+ * Fixed eager loading so that an aliased table cannot clash with a has_and_belongs_to_many join table [Rick]
524
+
525
+ * Add support for :include to with_scope [andrew@redlinesoftware.com]
526
+
527
+ * Support the use of public synonyms with the Oracle adapter; required ruby-oci8 v0.1.14 #4390 [schoenm@earthlink.net]
528
+
529
+ * Change periods (.) in table aliases to _'s. Closes #4251 [jeff@ministrycentered.com]
530
+
531
+ * Changed has_and_belongs_to_many join to INNER JOIN for Mysql 3.23.x. Closes #4348 [Rick]
532
+
533
+ * Fixed issue that kept :select options from being scoped [Rick]
534
+
535
+ * Fixed db_schema_import when binary types are present #3101 [DHH]
536
+
537
+ * Fixed that MySQL enums should always be returned as strings #3501 [DHH]
538
+
539
+ * Change has_many :through to use the :source option to specify the source association. :class_name is now ignored. [Rick Olson]
540
+
541
+ class Connection < ActiveRecord::Base
542
+ belongs_to :user
543
+ belongs_to :channel
544
+ end
545
+
546
+ class Channel < ActiveRecord::Base
547
+ has_many :connections
548
+ has_many :contacts, :through => :connections, :class_name => 'User' # OLD
549
+ has_many :contacts, :through => :connections, :source => :user # NEW
550
+ end
551
+
552
+ * Fixed DB2 adapter so nullable columns will be determines correctly now and quotes from column default values will be removed #4350 [contact@maik-schmidt.de]
553
+
554
+ * Allow overriding of find parameters in scoped has_many :through calls [Rick Olson]
555
+
556
+ In this example, :include => false disables the default eager association from loading. :select changes the standard
557
+ select clause. :joins specifies a join that is added to the end of the has_many :through query.
558
+
559
+ class Post < ActiveRecord::Base
560
+ has_many :tags, :through => :taggings, :include => :tagging do
561
+ def add_joins_and_select
562
+ find :all, :select => 'tags.*, authors.id as author_id', :include => false,
563
+ :joins => 'left outer join posts on taggings.taggable_id = posts.id left outer join authors on posts.author_id = authors.id'
564
+ end
565
+ end
566
+ end
567
+
568
+ * Fixed that schema changes while the database was open would break any connections to a SQLite database (now we reconnect if that error is throw) [DHH]
569
+
570
+ * Don't classify the has_one class when eager loading, it is already singular. Add tests. (closes #4117) [jonathan@bluewire.net.nz]
571
+
572
+ * Quit ignoring default :include options in has_many :through calls [Mark James]
573
+
574
+ * Allow has_many :through associations to find the source association by setting a custom class (closes #4307) [jonathan@bluewire.net.nz]
575
+
576
+ * Eager Loading support added for has_many :through => :has_many associations (see below). [Rick Olson]
577
+
578
+ * Allow has_many :through to work on has_many associations (closes #3864) [sco@scottraymond.net] Example:
579
+
580
+ class Firm < ActiveRecord::Base
581
+ has_many :clients
582
+ has_many :invoices, :through => :clients
583
+ end
584
+
585
+ class Client < ActiveRecord::Base
586
+ belongs_to :firm
587
+ has_many :invoices
588
+ end
589
+
590
+ class Invoice < ActiveRecord::Base
591
+ belongs_to :client
592
+ end
593
+
594
+ * Raise error when trying to select many polymorphic objects with has_many :through or :include (closes #4226) [josh@hasmanythrough.com]
595
+
596
+ * Fixed has_many :through to include :conditions set on the :through association. closes #4020 [jonathan@bluewire.net.nz]
597
+
598
+ * Fix that has_many :through honors the foreign key set by the belongs_to association in the join model (closes #4259) [andylien@gmail.com / Rick]
599
+
600
+ * SQL Server adapter gets some love #4298 [rtomayko@gmail.com]
601
+
602
+ * Added OpenBase database adapter that builds on top of the http://www.spice-of-life.net/ruby-openbase/ driver. All functionality except LIMIT/OFFSET is supported #3528 [derrickspell@cdmplus.com]
603
+
604
+ * Rework table aliasing to account for truncated table aliases. Add smarter table aliasing when doing eager loading of STI associations. This allows you to use the association name in the order/where clause. [Jonathan Viney / Rick Olson] #4108 Example (SpecialComment is using STI):
605
+
606
+ Author.find(:all, :include => { :posts => :special_comments }, :order => 'special_comments.body')
607
+
608
+ * Add AbstractAdapter#table_alias_for to create table aliases according to the rules of the current adapter. [Rick]
609
+
610
+ * Provide access to the underlying database connection through Adapter#raw_connection. Enables the use of db-specific methods without complicating the adapters. #2090 [Koz]
611
+
612
+ * Remove broken attempts at handling columns with a default of 'now()' in the postgresql adapter. #2257 [Koz]
613
+
614
+ * Added connection#current_database that'll return of the current database (only works in MySQL, SQL Server, and Oracle so far -- please help implement for the rest of the adapters) #3663 [Tom ward]
615
+
616
+ * Fixed that Migration#execute would have the table name prefix appended to its query #4110 [mark.imbriaco@pobox.com]
617
+
618
+ * Make all tinyint(1) variants act like boolean in mysql (tinyint(1) unsigned, etc.) [Jamis Buck]
619
+
620
+ * Use association's :conditions when eager loading. [jeremyevans0@gmail.com] #4144
621
+
622
+ * Alias the has_and_belongs_to_many join table on eager includes. #4106 [jeremyevans0@gmail.com]
623
+
624
+ This statement would normally error because the projects_developers table is joined twice, and therefore joined_on would be ambiguous.
625
+
626
+ Developer.find(:all, :include => {:projects => :developers}, :conditions => 'join_project_developers.joined_on IS NOT NULL')
627
+
628
+ * Oracle adapter gets some love #4230 [schoenm@earthlink.net]
629
+
630
+ * Changes :text to CLOB rather than BLOB [Moses Hohman]
631
+ * Fixes an issue with nil numeric length/scales (several)
632
+ * Implements support for XMLTYPE columns [wilig / Kubo Takehiro]
633
+ * Tweaks a unit test to get it all green again
634
+ * Adds support for #current_database
635
+
636
+ * Added Base.abstract_class? that marks which classes are not part of the Active Record hierarchy #3704 [Rick Olson]
637
+
638
+ class CachedModel < ActiveRecord::Base
639
+ self.abstract_class = true
640
+ end
641
+
642
+ class Post < CachedModel
643
+ end
644
+
645
+ CachedModel.abstract_class?
646
+ => true
647
+
648
+ Post.abstract_class?
649
+ => false
650
+
651
+ Post.base_class
652
+ => Post
653
+
654
+ Post.table_name
655
+ => 'posts'
656
+
657
+ * Allow :dependent options to be used with polymorphic joins. #3820 [Rick Olson]
658
+
659
+ class Foo < ActiveRecord::Base
660
+ has_many :attachments, :as => :attachable, :dependent => :delete_all
661
+ end
662
+
663
+ * Nicer error message on has_many :through when :through reflection can not be found. #4042 [court3nay@gmail.com]
664
+
665
+ * Upgrade to Transaction::Simple 1.3 [Jamis Buck]
666
+
667
+ * Catch FixtureClassNotFound when using instantiated fixtures on a fixture that has no ActiveRecord model [Rick Olson]
668
+
669
+ * Allow ordering of calculated results and/or grouped fields in calculations [solo@gatelys.com]
670
+
671
+ * Make ActiveRecord::Base#save! return true instead of nil on success. #4173 [johan@johansorensen.com]
672
+
673
+ * Dynamically set allow_concurrency. #4044 [Stefan Kaes]
674
+
675
+ * Added Base#to_xml that'll turn the current record into a XML representation [DHH]. Example:
676
+
677
+ topic.to_xml
678
+
679
+ ...returns:
680
+
681
+ <?xml version="1.0" encoding="UTF-8"?>
682
+ <topic>
683
+ <title>The First Topic</title>
684
+ <author-name>David</author-name>
685
+ <id type="integer">1</id>
686
+ <approved type="boolean">false</approved>
687
+ <replies-count type="integer">0</replies-count>
688
+ <bonus-time type="datetime">2000-01-01 08:28:00</bonus-time>
689
+ <written-on type="datetime">2003-07-16 09:28:00</written-on>
690
+ <content>Have a nice day</content>
691
+ <author-email-address>david@loudthinking.com</author-email-address>
692
+ <parent-id></parent-id>
693
+ <last-read type="date">2004-04-15</last-read>
694
+ </topic>
695
+
696
+ ...and you can configure with:
697
+
698
+ topic.to_xml(:skip_instruct => true, :except => [ :id, bonus_time, :written_on, replies_count ])
699
+
700
+ ...that'll return:
701
+
702
+ <topic>
703
+ <title>The First Topic</title>
704
+ <author-name>David</author-name>
705
+ <approved type="boolean">false</approved>
706
+ <content>Have a nice day</content>
707
+ <author-email-address>david@loudthinking.com</author-email-address>
708
+ <parent-id></parent-id>
709
+ <last-read type="date">2004-04-15</last-read>
710
+ </topic>
711
+
712
+ You can even do load first-level associations as part of the document:
713
+
714
+ firm.to_xml :include => [ :account, :clients ]
715
+
716
+ ...that'll return something like:
717
+
718
+ <?xml version="1.0" encoding="UTF-8"?>
719
+ <firm>
720
+ <id type="integer">1</id>
721
+ <rating type="integer">1</rating>
722
+ <name>37signals</name>
723
+ <clients>
724
+ <client>
725
+ <rating type="integer">1</rating>
726
+ <name>Summit</name>
727
+ </client>
728
+ <client>
729
+ <rating type="integer">1</rating>
730
+ <name>Microsoft</name>
731
+ </client>
732
+ </clients>
733
+ <account>
734
+ <id type="integer">1</id>
735
+ <credit-limit type="integer">50</credit-limit>
736
+ </account>
737
+ </firm>
738
+
739
+ * Allow :counter_cache to take a column name for custom counter cache columns [Jamis Buck]
740
+
741
+ * Documentation fixes for :dependent [robby@planetargon.com]
742
+
743
+ * Stop the MySQL adapter crashing when views are present. #3782 [Jonathan Viney]
744
+
745
+ * Don't classify the belongs_to class, it is already singular #4117 [keithm@infused.org]
746
+
747
+ * Allow set_fixture_class to take Classes instead of strings for a class in a module. Raise FixtureClassNotFound if a fixture can't load. [Rick Olson]
748
+
749
+ * Fix quoting of inheritance column for STI eager loading #4098 [Jonathan Viney <jonathan@bluewire.net.nz>]
750
+
751
+ * Added smarter table aliasing for eager associations for multiple self joins #3580 [Rick Olson]
752
+
753
+ * The first time a table is referenced in a join, no alias is used.
754
+ * After that, the parent class name and the reflection name are used.
755
+
756
+ Tree.find(:all, :include => :children) # LEFT OUTER JOIN trees AS tree_children ...
757
+
758
+ * Any additional join references get a numerical suffix like '_2', '_3', etc.
759
+
760
+ * Fixed eager loading problems with single-table inheritance #3580 [Rick Olson]. Post.find(:all, :include => :special_comments) now returns all posts, and any special comments that the posts may have. And made STI work with has_many :through and polymorphic belongs_to.
761
+
762
+ * Added cascading eager loading that allows for queries like Author.find(:all, :include=> { :posts=> :comments }), which will fetch all authors, their posts, and the comments belonging to those posts in a single query (using LEFT OUTER JOIN) #3913 [anna@wota.jp]. Examples:
763
+
764
+ # cascaded in two levels
765
+ >> Author.find(:all, :include=>{:posts=>:comments})
766
+ => authors
767
+ +- posts
768
+ +- comments
769
+
770
+ # cascaded in two levels and normal association
771
+ >> Author.find(:all, :include=>[{:posts=>:comments}, :categorizations])
772
+ => authors
773
+ +- posts
774
+ +- comments
775
+ +- categorizations
776
+
777
+ # cascaded in two levels with two has_many associations
778
+ >> Author.find(:all, :include=>{:posts=>[:comments, :categorizations]})
779
+ => authors
780
+ +- posts
781
+ +- comments
782
+ +- categorizations
783
+
784
+ # cascaded in three levels
785
+ >> Company.find(:all, :include=>{:groups=>{:members=>{:favorites}}})
786
+ => companies
787
+ +- groups
788
+ +- members
789
+ +- favorites
790
+
791
+ * Make counter cache work when replacing an association #3245 [eugenol@gmail.com]
792
+
793
+ * Make migrations verbose [Jamis Buck]
794
+
795
+ * Make counter_cache work with polymorphic belongs_to [Jamis Buck]
796
+
797
+ * Fixed that calling HasOneProxy#build_model repeatedly would cause saving to happen #4058 [anna@wota.jp]
798
+
799
+ * Added Sybase database adapter that relies on the Sybase Open Client bindings (see http://raa.ruby-lang.org/project/sybase-ctlib) #3765 [John Sheets]. It's almost completely Active Record compliant (including migrations), but has the following caveats:
800
+
801
+ * Does not support DATE SQL column types; use DATETIME instead.
802
+ * Date columns on HABTM join tables are returned as String, not Time.
803
+ * Insertions are potentially broken for :polymorphic join tables
804
+ * BLOB column access not yet fully supported
805
+
806
+ * Clear stale, cached connections left behind by defunct threads. [Jeremy Kemper]
807
+
808
+ * CHANGED DEFAULT: set ActiveRecord::Base.allow_concurrency to false. Most AR usage is in single-threaded applications. [Jeremy Kemper]
809
+
810
+ * Renamed the "oci" adapter to "oracle", but kept the old name as an alias #4017 [schoenm@earthlink.net]
811
+
812
+ * Fixed that Base.save should always return false if the save didn't succeed, including if it has halted by before_save's #1861, #2477 [DHH]
813
+
814
+ * Speed up class -> connection caching and stale connection verification. #3979 [Stefan Kaes]
815
+
816
+ * Add set_fixture_class to allow the use of table name accessors with models which use set_table_name. [Kevin Clark]
817
+
818
+ * Added that fixtures to placed in subdirectories of the main fixture files are also loaded #3937 [dblack@wobblini.net]
819
+
820
+ * Define attribute query methods to avoid method_missing calls. #3677 [jonathan@bluewire.net.nz]
821
+
822
+ * ActiveRecord::Base.remove_connection explicitly closes database connections and doesn't corrupt the connection cache. Introducing the disconnect! instance method for the PostgreSQL, MySQL, and SQL Server adapters; implementations for the others are welcome. #3591 [Simon Stapleton, Tom Ward]
823
+
824
+ * Added support for nested scopes #3407 [anna@wota.jp]. Examples:
825
+
826
+ Developer.with_scope(:find => { :conditions => "salary > 10000", :limit => 10 }) do
827
+ Developer.find(:all) # => SELECT * FROM developers WHERE (salary > 10000) LIMIT 10
828
+
829
+ # inner rule is used. (all previous parameters are ignored)
830
+ Developer.with_exclusive_scope(:find => { :conditions => "name = 'Jamis'" }) do
831
+ Developer.find(:all) # => SELECT * FROM developers WHERE (name = 'Jamis')
832
+ end
833
+
834
+ # parameters are merged
835
+ Developer.with_scope(:find => { :conditions => "name = 'Jamis'" }) do
836
+ Developer.find(:all) # => SELECT * FROM developers WHERE (( salary > 10000 ) AND ( name = 'Jamis' )) LIMIT 10
837
+ end
838
+ end
839
+
840
+ * Fixed db2 connection with empty user_name and auth options #3622 [phurley@gmail.com]
841
+
842
+ * Fixed validates_length_of to work on UTF-8 strings by using characters instead of bytes #3699 [Masao Mutoh]
843
+
844
+ * Fixed that reflections would bleed across class boundaries in single-table inheritance setups #3796 [lars@pind.com]
845
+
846
+ * Added calculations: Base.count, Base.average, Base.sum, Base.minimum, Base.maxmium, and the generic Base.calculate. All can be used with :group and :having. Calculations and statitics need no longer require custom SQL. #3958 [Rick Olson]. Examples:
847
+
848
+ Person.average :age
849
+ Person.minimum :age
850
+ Person.maximum :age
851
+ Person.sum :salary, :group => :last_name
852
+
853
+ * Renamed Errors#count to Errors#size but kept an alias for the old name (and included an alias for length too) #3920 [contact@lukeredpath.co.uk]
854
+
855
+ * Reflections don't attempt to resolve module nesting of association classes. Simplify type computation. [Jeremy Kemper]
856
+
857
+ * Improved the Oracle OCI Adapter with better performance for column reflection (from #3210), fixes to migrations (from #3476 and #3742), tweaks to unit tests (from #3610), and improved documentation (from #2446) #3879 [Aggregated by schoenm@earthlink.net]
858
+
859
+ * Fixed that the schema_info table used by ActiveRecord::Schema.define should respect table pre- and suffixes #3834 [rubyonrails@atyp.de]
860
+
861
+ * Added :select option to Base.count that'll allow you to select something else than * to be counted on. Especially important for count queries using DISTINCT #3839 [skaes]
862
+
863
+ * Correct syntax error in mysql DDL, and make AAACreateTablesTest run first [Bob Silva]
864
+
865
+ * Allow :include to be used with has_many :through associations #3611 [Michael Schoen]
866
+
867
+ * PostgreSQL: smarter schema dumps using pk_and_sequence_for(table). #2920 [Blair Zajac]
868
+
869
+ * SQLServer: more compatible limit/offset emulation. #3779 [Tom Ward]
870
+
871
+ * Polymorphic join support for has_one associations (has_one :foo, :as => :bar) #3785 [Rick Olson]
872
+
873
+ * PostgreSQL: correctly parse negative integer column defaults. #3776 [bellis@deepthought.org]
874
+
875
+ * Fix problems with count when used with :include [Jeremy Hopple and Kevin Clark]
876
+
877
+ * ActiveRecord::RecordInvalid now states which validations failed in its default error message [Tobias Luetke]
878
+
879
+ * Using AssociationCollection#build with arrays of hashes should call build, not create [DHH]
880
+
881
+ * Remove definition of reloadable? from ActiveRecord::Base to make way for new Reloadable code. [Nicholas Seckar]
882
+
883
+ * Fixed schema handling for DB2 adapter that didn't work: an initial schema could be set, but it wasn't used when getting tables and indexes #3678 [Maik Schmidt]
884
+
885
+ * Support the :column option for remove_index with the PostgreSQL adapter. #3661 [shugo@ruby-lang.org]
886
+
887
+ * Add documentation for add_index and remove_index. #3600 [Manfred Stienstra <m.stienstra@fngtps.com>]
888
+
889
+ * If the OCI library is not available, raise an exception indicating as much. #3593 [schoenm@earthlink.net]
890
+
891
+ * Add explicit :order in finder tests as postgresql orders results differently by default. #3577. [Rick Olson]
892
+
893
+ * Make dynamic finders honor additional passed in :conditions. #3569 [Oleg Pudeyev <pudeyo@rpi.edu>, Marcel Molina Jr.]
894
+
895
+ * Show a meaningful error when the DB2 adapter cannot be loaded due to missing dependencies. [Nicholas Seckar]
896
+
897
+ * Make .count work for has_many associations with multi line finder sql [schoenm@earthlink.net]
898
+
899
+ * Add AR::Base.base_class for querying the ancestor AR::Base subclass [Jamis Buck]
900
+
901
+ * Allow configuration of the column used for optimistic locking [wilsonb@gmail.com]
902
+
903
+ * Don't hardcode 'id' in acts as list. [ror@philippeapril.com]
904
+
905
+ * Fix date errors for SQLServer in association tests. #3406 [kevin.clark@gmal.com]
906
+
907
+ * Escape database name in MySQL adapter when creating and dropping databases. #3409 [anna@wota.jp]
908
+
909
+ * Disambiguate table names for columns in validates_uniquness_of's WHERE clause. #3423 [alex.borovsky@gmail.com]
910
+
911
+ * .with_scope imposed create parameters now bypass attr_protected [Tobias Luetke]
912
+
913
+ * Don't raise an exception when there are more keys than there are named bind variables when sanitizing conditions. [Marcel Molina Jr.]
914
+
915
+ * Multiple enhancements and adjustments to DB2 adaptor. #3377 [contact@maik-schmidt.de]
916
+
917
+ * Sanitize scoped conditions. [Marcel Molina Jr.]
918
+
919
+ * Added option to Base.reflection_of_all_associations to specify a specific association to scope the call. For example Base.reflection_of_all_associations(:has_many) [DHH]
920
+
921
+ * Added ActiveRecord::SchemaDumper.ignore_tables which tells SchemaDumper which tables to ignore. Useful for tables with funky column like the ones required for tsearch2. [TobiasLuetke]
922
+
923
+ * SchemaDumper now doesn't fail anymore when there are unknown column types in the schema. Instead the table is ignored and a Comment is left in the schema.rb. [TobiasLuetke]
924
+
925
+ * Fixed that saving a model with multiple habtm associations would only save the first one. #3244 [yanowitz-rubyonrails@quantumfoam.org, Florian Weber]
926
+
927
+ * Fix change_column to work with PostgreSQL 7.x and 8.x. #3141 [wejn@box.cz, Rick Olson, Scott Barron]
928
+
929
+ * removed :piggyback in favor of just allowing :select on :through associations. [Tobias Luetke]
930
+
931
+ * made method missing delegation to class methods on relation target work on :through associations. [Tobias Luetke]
932
+
933
+ * made .find() work on :through relations. [Tobias Luetke]
934
+
935
+ * Fix typo in association docs. #3296. [Blair Zajac]
936
+
937
+ * Fixed :through relations when using STI inherited classes would use the inherited class's name as foreign key on the join model [Tobias Luetke]
938
+
939
+ *1.13.2* (December 13th, 2005)
940
+
941
+ * Become part of Rails 1.0
942
+
943
+ * MySQL: allow encoding option for mysql.rb driver. [Jeremy Kemper]
944
+
945
+ * Added option inheritance for find calls on has_and_belongs_to_many and has_many assosociations [DHH]. Example:
946
+
947
+ class Post
948
+ has_many :recent_comments, :class_name => "Comment", :limit => 10, :include => :author
949
+ end
950
+
951
+ post.recent_comments.find(:all) # Uses LIMIT 10 and includes authors
952
+ post.recent_comments.find(:all, :limit => nil) # Uses no limit but include authors
953
+ post.recent_comments.find(:all, :limit => nil, :include => nil) # Uses no limit and doesn't include authors
954
+
955
+ * Added option to specify :group, :limit, :offset, and :select options from find on has_and_belongs_to_many and has_many assosociations [DHH]
956
+
957
+ * MySQL: fixes for the bundled mysql.rb driver. #3160 [Justin Forder]
958
+
959
+ * SQLServer: fix obscure optimistic locking bug. #3068 [kajism@yahoo.com]
960
+
961
+ * SQLServer: support uniqueidentifier columns. #2930 [keithm@infused.org]
962
+
963
+ * SQLServer: cope with tables names qualified by owner. #3067 [jeff@ministrycentered.com]
964
+
965
+ * SQLServer: cope with columns with "desc" in the name. #1950 [Ron Lusk, Ryan Tomayko]
966
+
967
+ * SQLServer: cope with primary keys with "select" in the name. #3057 [rdifrango@captechventures.com]
968
+
969
+ * Oracle: active? performs a select instead of a commit. #3133 [Michael Schoen]
970
+
971
+ * MySQL: more robust test for nullified result hashes. #3124 [Stefan Kaes]
972
+
973
+ * Reloading an instance refreshes its aggregations as well as its associations. #3024 [François Beausolei]
974
+
975
+ * Fixed that using :include together with :conditions array in Base.find would cause NoMethodError #2887 [Paul Hammmond]
976
+
977
+ * PostgreSQL: more robust sequence name discovery. #3087 [Rick Olson]
978
+
979
+ * Oracle: use syntax compatible with Oracle 8. #3131 [Michael Schoen]
980
+
981
+ * MySQL: work around ruby-mysql/mysql-ruby inconsistency with mysql.stat. Eliminate usage of mysql.ping because it doesn't guarantee reconnect. Explicitly close and reopen the connection instead. [Jeremy Kemper]
982
+
983
+ * Added preliminary support for polymorphic associations [DHH]
984
+
985
+ * Added preliminary support for join models [DHH]
986
+
987
+ * Allow validate_uniqueness_of to be scoped by more than just one column. #1559. [jeremy@jthopple.com, Marcel Molina Jr.]
988
+
989
+ * Firebird: active? and reconnect! methods for handling stale connections. #428 [Ken Kunz <kennethkunz@gmail.com>]
990
+
991
+ * Firebird: updated for FireRuby 0.4.0. #3009 [Ken Kunz <kennethkunz@gmail.com>]
992
+
993
+ * MySQL and PostgreSQL: active? compatibility with the pure-Ruby driver. #428 [Jeremy Kemper]
994
+
995
+ * Oracle: active? check pings the database rather than testing the last command status. #428 [Michael Schoen]
996
+
997
+ * SQLServer: resolve column aliasing/quoting collision when using limit or offset in an eager find. #2974 [kajism@yahoo.com]
998
+
999
+ * Reloading a model doesn't lose track of its connection. #2996 [junk@miriamtech.com, Jeremy Kemper]
1000
+
1001
+ * Fixed bug where using update_attribute after pushing a record to a habtm association of the object caused duplicate rows in the join table. #2888 [colman@rominato.com, Florian Weber, Michael Schoen]
1002
+
1003
+ * MySQL, PostgreSQL: reconnect! also reconfigures the connection. Otherwise, the connection 'loses' its settings if it times out and is reconnected. #2978 [Shugo Maeda]
1004
+
1005
+ * has_and_belongs_to_many: use JOIN instead of LEFT JOIN. [Jeremy Kemper]
1006
+
1007
+ * MySQL: introduce :encoding option to specify the character set for client, connection, and results. Only available for MySQL 4.1 and later with the mysql-ruby driver. Do SHOW CHARACTER SET in mysql client to see available encodings. #2975 [Shugo Maeda]
1008
+
1009
+ * Add tasks to create, drop and rebuild the MySQL and PostgreSQL test databases. [Marcel Molina Jr.]
1010
+
1011
+ * Correct boolean handling in generated reader methods. #2945 [don.park@gmail.com, Stefan Kaes]
1012
+
1013
+ * Don't generate read methods for columns whose names are not valid ruby method names. #2946 [Stefan Kaes]
1014
+
1015
+ * Document :force option to create_table. #2921 [Blair Zajac <blair@orcaware.com>]
1016
+
1017
+ * Don't add the same conditions twice in has_one finder sql. #2916 [Jeremy Evans]
1018
+
1019
+ * Rename Version constant to VERSION. #2802 [Marcel Molina Jr.]
1020
+
1021
+ * Introducing the Firebird adapter. Quote columns and use attribute_condition more consistently. Setup guide: http://wiki.rubyonrails.com/rails/pages/Firebird+Adapter #1874 [Ken Kunz <kennethkunz@gmail.com>]
1022
+
1023
+ * SQLServer: active? and reconnect! methods for handling stale connections. #428 [kajism@yahoo.com, Tom Ward <tom@popdog.net>]
1024
+
1025
+ * Associations handle case-equality more consistently: item.parts.is_a?(Array) and item.parts === Array. #1345 [MarkusQ@reality.com]
1026
+
1027
+ * SQLServer: insert uses given primary key value if not nil rather than SELECT @@IDENTITY. #2866 [kajism@yahoo.com, Tom Ward <tom@popdog.net>]
1028
+
1029
+ * Oracle: active? and reconnect! methods for handling stale connections. Optionally retry queries after reconnect. #428 [Michael Schoen <schoenm@earthlink.net>]
1030
+
1031
+ * Correct documentation for Base.delete_all. #1568 [Newhydra]
1032
+
1033
+ * Oracle: test case for column default parsing. #2788 [Michael Schoen <schoenm@earthlink.net>]
1034
+
1035
+ * Update documentation for Migrations. #2861 [Tom Werner <tom@cube6media.com>]
1036
+
1037
+ * When AbstractAdapter#log rescues an exception, attempt to detect and reconnect to an inactive database connection. Connection adapter must respond to the active? and reconnect! instance methods. Initial support for PostgreSQL, MySQL, and SQLite. Make certain that all statements which may need reconnection are performed within a logged block: for example, this means no avoiding log(sql, name) { } if @logger.nil? #428 [Jeremy Kemper]
1038
+
1039
+ * Oracle: Much faster column reflection. #2848 [Michael Schoen <schoenm@earthlink.net>]
1040
+
1041
+ * Base.reset_sequence_name analogous to reset_table_name (mostly useful for testing). Base.define_attr_method allows nil values. [Jeremy Kemper]
1042
+
1043
+ * PostgreSQL: smarter sequence name defaults, stricter last_insert_id, warn on pk without sequence. [Jeremy Kemper]
1044
+
1045
+ * PostgreSQL: correctly discover custom primary key sequences. #2594 [Blair Zajac <blair@orcaware.com>, meadow.nnick@gmail.com, Jeremy Kemper]
1046
+
1047
+ * SQLServer: don't report limits for unsupported field types. #2835 [Ryan Tomayko]
1048
+
1049
+ * Include the Enumerable module in ActiveRecord::Errors. [Rick Bradley <rick@rickbradley.com>]
1050
+
1051
+ * Add :group option, correspond to GROUP BY, to the find method and to the has_many association. #2818 [rubyonrails@atyp.de]
1052
+
1053
+ * Don't cast nil or empty strings to a dummy date. #2789 [Rick Bradley <rick@rickbradley.com>]
1054
+
1055
+ * acts_as_list plays nicely with inheritance by remembering the class which declared it. #2811 [rephorm@rephorm.com]
1056
+
1057
+ * Fix sqlite adaptor's detection of missing dbfile or database declaration. [Nicholas Seckar]
1058
+
1059
+ * Fixed acts_as_list for definitions without an explicit :order #2803 [jonathan@bluewire.net.nz]
1060
+
1061
+ * Upgrade bundled ruby-mysql 0.2.4 with mysql411 shim (see #440) to ruby-mysql 0.2.6 with a patchset for 4.1 protocol support. Local change [301] is now a part of the main driver; reapplied local change [2182]. Removed GC.start from Result.free. [tommy@tmtm.org, akuroda@gmail.com, Doug Fales <doug.fales@gmail.com>, Jeremy Kemper]
1062
+
1063
+ * Correct handling of complex order clauses with SQL Server limit emulation. #2770 [Tom Ward <tom@popdog.net>, Matt B.]
1064
+
1065
+ * Correct whitespace problem in Oracle default column value parsing. #2788 [rick@rickbradley.com]
1066
+
1067
+ * Destroy associated has_and_belongs_to_many records after all before_destroy callbacks but before destroy. This allows you to act on the habtm association as you please while preserving referential integrity. #2065 [larrywilliams1@gmail.com, sam.kirchmeier@gmail.com, elliot@townx.org, Jeremy Kemper]
1068
+
1069
+ * Deprecate the old, confusing :exclusively_dependent option in favor of :dependent => :delete_all. [Jeremy Kemper]
1070
+
1071
+ * More compatible Oracle column reflection. #2771 [Ryan Davis <ryand-ruby@zenspider.com>, Michael Schoen <schoenm@earthlink.net>]
1072
+
1073
+
1074
+ *1.13.0* (November 7th, 2005)
1075
+
1076
+ * Fixed faulty regex in get_table_name method (SQLServerAdapter) #2639 [Ryan Tomayko]
1077
+
1078
+ * Added :include as an option for association declarations [DHH]. Example:
1079
+
1080
+ has_many :posts, :include => [ :author, :comments ]
1081
+
1082
+ * Rename Base.constrain to Base.with_scope so it doesn't conflict with existing concept of database constraints. Make scoping more robust: uniform method => parameters, validated method names and supported finder parameters, raise exception on nested scopes. [Jeremy Kemper] Example:
1083
+
1084
+ Comment.with_scope(:find => { :conditions => 'active=true' }, :create => { :post_id => 5 }) do
1085
+ # Find where name = ? and active=true
1086
+ Comment.find :all, :conditions => ['name = ?', name]
1087
+ # Create comment associated with :post_id
1088
+ Comment.create :body => "Hello world"
1089
+ end
1090
+
1091
+ * Fixed that SQL Server should ignore :size declarations on anything but integer and string in the agnostic schema representation #2756 [Ryan Tomayko]
1092
+
1093
+ * Added constrain scoping for creates using a hash of attributes bound to the :creation key [DHH]. Example:
1094
+
1095
+ Comment.constrain(:creation => { :post_id => 5 }) do
1096
+ # Associated with :post_id
1097
+ Comment.create :body => "Hello world"
1098
+ end
1099
+
1100
+ This is rarely used directly, but allows for find_or_create on associations. So you can do:
1101
+
1102
+ # If the tag doesn't exist, a new one is created that's associated with the person
1103
+ person.tags.find_or_create_by_name("Summer")
1104
+
1105
+ * Added find_or_create_by_X as a second type of dynamic finder that'll create the record if it doesn't already exist [DHH]. Example:
1106
+
1107
+ # No 'Summer' tag exists
1108
+ Tag.find_or_create_by_name("Summer") # equal to Tag.create(:name => "Summer")
1109
+
1110
+ # Now the 'Summer' tag does exist
1111
+ Tag.find_or_create_by_name("Summer") # equal to Tag.find_by_name("Summer")
1112
+
1113
+ * Added extension capabilities to has_many and has_and_belongs_to_many proxies [DHH]. Example:
1114
+
1115
+ class Account < ActiveRecord::Base
1116
+ has_many :people do
1117
+ def find_or_create_by_name(name)
1118
+ first_name, *last_name = name.split
1119
+ last_name = last_name.join " "
1120
+
1121
+ find_or_create_by_first_name_and_last_name(first_name, last_name)
1122
+ end
1123
+ end
1124
+ end
1125
+
1126
+ person = Account.find(:first).people.find_or_create_by_name("David Heinemeier Hansson")
1127
+ person.first_name # => "David"
1128
+ person.last_name # => "Heinemeier Hansson"
1129
+
1130
+ Note that the anoymous module must be declared using brackets, not do/end (due to order of evaluation).
1131
+
1132
+ * Omit internal dtproperties table from SQLServer table list. #2729 [rtomayko@gmail.com]
1133
+
1134
+ * Quote column names in generated SQL. #2728 [rtomayko@gmail.com]
1135
+
1136
+ * Correct the pure-Ruby MySQL 4.1.1 shim's version test. #2718 [Jeremy Kemper]
1137
+
1138
+ * Add Model.create! to match existing model.save! method. When save! raises RecordInvalid, you can catch the exception, retrieve the invalid record (invalid_exception.record), and see its errors (invalid_exception.record.errors). [Jeremy Kemper]
1139
+
1140
+ * Correct fixture behavior when table name pluralization is off. #2719 [Rick Bradley <rick@rickbradley.com>]
1141
+
1142
+ * Changed :dbfile to :database for SQLite adapter for consistency (old key still works as an alias) #2644 [Dan Peterson]
1143
+
1144
+ * Added migration support for Oracle #2647 [Michael Schoen]
1145
+
1146
+ * Worked around that connection can't be reset if allow_concurrency is off. #2648 [Michael Schoen <schoenm@earthlink.net>]
1147
+
1148
+ * Fixed SQL Server adapter to pass even more tests and do even better #2634 [rtomayko@gmail.com]
1149
+
1150
+ * Fixed SQL Server adapter so it honors options[:conditions] when applying :limits #1978 [Tom Ward]
1151
+
1152
+ * Added migration support to SQL Server adapter (please someone do the same for Oracle and DB2) #2625 [Tom Ward]
1153
+
1154
+ * Use AR::Base.silence rather than AR::Base.logger.silence in fixtures to preserve Log4r compatibility. #2618 [dansketcher@gmail.com]
1155
+
1156
+ * Constraints are cloned so they can't be inadvertently modified while they're
1157
+ in effect. Added :readonly finder constraint. Calling an association collection's class method (Part.foobar via item.parts.foobar) constrains :readonly => false since the collection's :joins constraint would otherwise force it to true. [Jeremy Kemper <rails@bitsweat.net>]
1158
+
1159
+ * Added :offset and :limit to the kinds of options that Base.constrain can use #2466 [duane.johnson@gmail.com]
1160
+
1161
+ * Fixed handling of nil number columns on Oracle and cleaned up tests for Oracle in general #2555 [schoenm@earthlink.net]
1162
+
1163
+ * Added quoted_true and quoted_false methods and tables to db2_adapter and cleaned up tests for DB2 #2493, #2624 [maik schmidt]
1164
+
1165
+
1166
+ *1.12.2* (October 26th, 2005)
1167
+
1168
+ * Allow symbols to rename columns when using SQLite adapter. #2531 [kevin.clark@gmail.com]
1169
+
1170
+ * Map Active Record time to SQL TIME. #2575, #2576 [Robby Russell <robby@planetargon.com>]
1171
+
1172
+ * Clarify semantics of ActiveRecord::Base#respond_to? #2560 [skaes@web.de]
1173
+
1174
+ * Fixed Association#clear for associations which have not yet been accessed. #2524 [Patrick Lenz <patrick@lenz.sh>]
1175
+
1176
+ * HABTM finders shouldn't return readonly records. #2525 [Patrick Lenz <patrick@lenz.sh>]
1177
+
1178
+ * Make all tests runnable on their own. #2521. [Blair Zajac <blair@orcaware.com>]
1179
+
1180
+
1181
+ *1.12.1* (October 19th, 2005)
1182
+
1183
+ * Always parenthesize :conditions options so they may be safely combined with STI and constraints.
1184
+
1185
+ * Correct PostgreSQL primary key sequence detection. #2507 [tmornini@infomania.com]
1186
+
1187
+ * Added support for using limits in eager loads that involve has_many and has_and_belongs_to_many associations
1188
+
1189
+
1190
+ *1.12.0* (October 16th, 2005)
1191
+
1192
+ * Update/clean up documentation (rdoc)
1193
+
1194
+ * PostgreSQL sequence support. Use set_sequence_name in your model class to specify its primary key sequence. #2292 [Rick Olson <technoweenie@gmail.com>, Robby Russell <robby@planetargon.com>]
1195
+
1196
+ * Change default logging colors to work on both white and black backgrounds. [Sam Stephenson]
1197
+
1198
+ * YAML fixtures support ordered hashes for fixtures with foreign key dependencies in the same table. #1896 [purestorm@ggnore.net]
1199
+
1200
+ * :dependent now accepts :nullify option. Sets the foreign key of the related objects to NULL instead of deleting them. #2015 [Robby Russell <robby@planetargon.com>]
1201
+
1202
+ * Introduce read-only records. If you call object.readonly! then it will mark the object as read-only and raise ReadOnlyRecord if you call object.save. object.readonly? reports whether the object is read-only. Passing :readonly => true to any finder method will mark returned records as read-only. The :joins option now implies :readonly, so if you use this option, saving the same record will now fail. Use find_by_sql to work around.
1203
+
1204
+ * Avoid memleak in dev mode when using fcgi
1205
+
1206
+ * Simplified .clear on active record associations by using the existing delete_records method. #1906 [Caleb <me@cpb.ca>]
1207
+
1208
+ * Delegate access to a customized primary key to the conventional id method. #2444. [Blair Zajac <blair@orcaware.com>]
1209
+
1210
+ * Fix errors caused by assigning a has-one or belongs-to property to itself
1211
+
1212
+ * Add ActiveRecord::Base.schema_format setting which specifies how databases should be dumped [Sam Stephenson]
1213
+
1214
+ * Update DB2 adapter. #2206. [contact@maik-schmidt.de]
1215
+
1216
+ * Corrections to SQLServer native data types. #2267. [rails.20.clarry@spamgourmet.com]
1217
+
1218
+ * Deprecated ActiveRecord::Base.threaded_connection in favor of ActiveRecord::Base.allow_concurrency.
1219
+
1220
+ * Protect id attribute from mass assigment even when the primary key is set to something else. #2438. [Blair Zajac <blair@orcaware.com>]
1221
+
1222
+ * Misc doc fixes (typos/grammar/etc.). #2430. [coffee2code]
1223
+
1224
+ * Add test coverage for content_columns. #2432. [coffee2code]
1225
+
1226
+ * Speed up for unthreaded environments. #2431. [skaes@web.de]
1227
+
1228
+ * Optimization for Mysql selects using mysql-ruby extension greater than 2.6.3. #2426. [skaes@web.de]
1229
+
1230
+ * Speed up the setting of table_name. #2428. [skaes@web.de]
1231
+
1232
+ * Optimize instantiation of STI subclass records. In partial fullfilment of #1236. [skaes@web.de]
1233
+
1234
+ * Fix typo of 'constrains' to 'contraints'. #2069. [Michael Schuerig <michael@schuerig.de>]
1235
+
1236
+ * Optimization refactoring for add_limit_offset!. In partial fullfilment of #1236. [skaes@web.de]
1237
+
1238
+ * Add ability to get all siblings, including the current child, with acts_as_tree. Recloses #2140. [Michael Schuerig <michael@schuerig.de>]
1239
+
1240
+ * Add geometric type for postgresql adapter. #2233 [akaspick@gmail.com]
1241
+
1242
+ * Add option (true by default) to generate reader methods for each attribute of a record to avoid the overhead of calling method missing. In partial fullfilment of #1236. [skaes@web.de]
1243
+
1244
+ * Add convenience predicate methods on Column class. In partial fullfilment of #1236. [skaes@web.de]
1245
+
1246
+ * Raise errors when invalid hash keys are passed to ActiveRecord::Base.find. #2363 [Chad Fowler <chad@chadfowler.com>, Nicholas Seckar]
1247
+
1248
+ * Added :force option to create_table that'll try to drop the table if it already exists before creating
1249
+
1250
+ * Fix transactions so that calling return while inside a transaction will not leave an open transaction on the connection. [Nicholas Seckar]
1251
+
1252
+ * Use foreign_key inflection uniformly. #2156 [Blair Zajac <blair@orcaware.com>]
1253
+
1254
+ * model.association.clear should destroy associated objects if :dependent => true instead of nullifying their foreign keys. #2221 [joergd@pobox.com, ObieFernandez <obiefernandez@gmail.com>]
1255
+
1256
+ * Returning false from before_destroy should cancel the action. #1829 [Jeremy Huffman]
1257
+
1258
+ * Recognize PostgreSQL NOW() default as equivalent to CURRENT_TIMESTAMP or CURRENT_DATE, depending on the column's type. #2256 [mat <mat@absolight.fr>]
1259
+
1260
+ * Extensive documentation for the abstract database adapter. #2250 [François Beausoleil <fbeausoleil@ftml.net>]
1261
+
1262
+ * Clean up Fixtures.reset_sequences for PostgreSQL. Handle tables with no rows and models with custom primary keys. #2174, #2183 [jay@jay.fm, Blair Zajac <blair@orcaware.com>]
1263
+
1264
+ * Improve error message when nil is assigned to an attr which validates_size_of within a range. #2022 [Manuel Holtgrewe <purestorm@ggnore.net>]
1265
+
1266
+ * Make update_attribute use the same writer method that update_attributes uses.
1267
+ #2237 [trevor@protocool.com]
1268
+
1269
+ * Make migrations honor table name prefixes and suffixes. #2298 [Jakob S, Marcel Molina]
1270
+
1271
+ * Correct and optimize PostgreSQL bytea escaping. #1745, #1837 [dave@cherryville.org, ken@miriamtech.com, bellis@deepthought.org]
1272
+
1273
+ * Fixtures should only reset a PostgreSQL sequence if it corresponds to an integer primary key named id. #1749 [chris@chrisbrinker.com]
1274
+
1275
+ * Standardize the interpretation of boolean columns in the Mysql and Sqlite adapters. (Use MysqlAdapter.emulate_booleans = false to disable this behavior)
1276
+
1277
+ * Added new symbol-driven approach to activating observers with Base#observers= [DHH]. Example:
1278
+
1279
+ ActiveRecord::Base.observers = :cacher, :garbage_collector
1280
+
1281
+ * Added AbstractAdapter#select_value and AbstractAdapter#select_values as convenience methods for selecting single values, instead of hashes, of the first column in a SELECT #2283 [solo@gatelys.com]
1282
+
1283
+ * Wrap :conditions in parentheses to prevent problems with OR's #1871 [Jamis Buck]
1284
+
1285
+ * Allow the postgresql adapter to work with the SchemaDumper. [Jamis Buck]
1286
+
1287
+ * Add ActiveRecord::SchemaDumper for dumping a DB schema to a pure-ruby file, making it easier to consolidate large migration lists and port database schemas between databases. [Jamis Buck]
1288
+
1289
+ * Fixed migrations for Windows when using more than 10 [David Naseby]
1290
+
1291
+ * Fixed that the create_x method from belongs_to wouldn't save the association properly #2042 [Florian Weber]
1292
+
1293
+ * Fixed saving a record with two unsaved belongs_to associations pointing to the same object #2023 [Tobias Luetke]
1294
+
1295
+ * Improved migrations' behavior when the schema_info table is empty. [Nicholas Seckar]
1296
+
1297
+ * Fixed that Observers didn't observe sub-classes #627 [Florian Weber]
1298
+
1299
+ * Fix eager loading error messages, allow :include to specify tables using strings or symbols. Closes #2222 [Marcel Molina]
1300
+
1301
+ * Added check for RAILS_CONNECTION_ADAPTERS on startup and only load the connection adapters specified within if its present (available in Rails through config.connection_adapters using the new config) #1958 [skae]
1302
+
1303
+ * Fixed various problems with has_and_belongs_to_many when using customer finder_sql #2094 [Florian Weber]
1304
+
1305
+ * Added better exception error when unknown column types are used with migrations #1814 [fbeausoleil@ftml.net]
1306
+
1307
+ * Fixed "connection lost" issue with the bundled Ruby/MySQL driver (would kill the app after 8 hours of inactivity) #2163, #428 [kajism@yahoo.com]
1308
+
1309
+ * Fixed comparison of Active Record objects so two new objects are not equal #2099 [deberg]
1310
+
1311
+ * Fixed that the SQL Server adapter would sometimes return DBI::Timestamp objects instead of Time #2127 [Tom Ward]
1312
+
1313
+ * Added the instance methods #root and #ancestors on acts_as_tree and fixed siblings to not include the current node #2142, #2140 [coffee2code]
1314
+
1315
+ * Fixed that Active Record would call SHOW FIELDS twice (or more) for the same model when the cached results were available #1947 [sd@notso.net]
1316
+
1317
+ * Added log_level and use_silence parameter to ActiveRecord::Base.benchmark. The first controls at what level the benchmark statement will be logged (now as debug, instead of info) and the second that can be passed false to include all logging statements during the benchmark block/
1318
+
1319
+ * Make sure the schema_info table is created before querying the current version #1903
1320
+
1321
+ * Fixtures ignore table name prefix and suffix #1987 [Jakob S]
1322
+
1323
+ * Add documentation for index_type argument to add_index method for migrations #2005 [blaine@odeo.com]
1324
+
1325
+ * Modify read_attribute to allow a symbol argument #2024 [Ken Kunz]
1326
+
1327
+ * Make destroy return self #1913 [sebastian.kanthak@muehlheim.de]
1328
+
1329
+ * Fix typo in validations documentation #1938 [court3nay]
1330
+
1331
+ * Make acts_as_list work for insert_at(1) #1966 [hensleyl@papermountain.org]
1332
+
1333
+ * Fix typo in count_by_sql documentation #1969 [Alexey Verkhovsky]
1334
+
1335
+ * Allow add_column and create_table to specify NOT NULL #1712 [emptysands@gmail.com]
1336
+
1337
+ * Fix create_table so that id column is implicitly added [Rick Olson]
1338
+
1339
+ * Default sequence names for Oracle changed to #{table_name}_seq, which is the most commonly used standard. In addition, a new method ActiveRecord::Base#set_sequence_name allows the developer to set the sequence name per model. This is a non-backwards-compatible change -- anyone using the old-style "rails_sequence" will need to either create new sequences, or set: ActiveRecord::Base.set_sequence_name = "rails_sequence" #1798
1340
+
1341
+ * OCIAdapter now properly handles synonyms, which are commonly used to separate out the schema owner from the application user #1798
1342
+
1343
+ * Fixed the handling of camelCase columns names in Oracle #1798
1344
+
1345
+ * Implemented for OCI the Rakefile tasks of :clone_structure_to_test, :db_structure_dump, and :purge_test_database, which enable Oracle folks to enjoy all the agile goodness of Rails for testing. Note that the current implementation is fairly limited -- only tables and sequences are cloned, not constraints or indexes. A full clone in Oracle generally requires some manual effort, and is version-specific. Post 9i, Oracle recommends the use of the DBMS_METADATA package, though that approach requires editing of the physical characteristics generated #1798
1346
+
1347
+ * Fixed the handling of multiple blob columns in Oracle if one or more of them are null #1798
1348
+
1349
+ * Added support for calling constrained class methods on has_many and has_and_belongs_to_many collections #1764 [Tobias Luetke]
1350
+
1351
+ class Comment < AR:B
1352
+ def self.search(q)
1353
+ find(:all, :conditions => ["body = ?", q])
1354
+ end
1355
+ end
1356
+
1357
+ class Post < AR:B
1358
+ has_many :comments
1359
+ end
1360
+
1361
+ Post.find(1).comments.search('hi') # => SELECT * from comments WHERE post_id = 1 AND body = 'hi'
1362
+
1363
+ NOTICE: This patch changes the underlying SQL generated by has_and_belongs_to_many queries. If your relying on that, such as
1364
+ by explicitly referencing the old t and j aliases, you'll need to update your code. Of course, you _shouldn't_ be relying on
1365
+ details like that no less than you should be diving in to touch private variables. But just in case you do, consider yourself
1366
+ noticed :)
1367
+
1368
+ * Added migration support for SQLite (using temporary tables to simulate ALTER TABLE) #1771 [Sam Stephenson]
1369
+
1370
+ * Remove extra definition of supports_migrations? from abstract_adaptor.rb [Nicholas Seckar]
1371
+
1372
+ * Fix acts_as_list so that moving next-to-last item to the bottom does not result in duplicate item positions
1373
+
1374
+ * Fixed incompatibility in DB2 adapter with the new limit/offset approach #1718 [Maik Schmidt]
1375
+
1376
+ * Added :select option to find which can specify a different value than the default *, like find(:all, :select => "first_name, last_name"), if you either only want to select part of the columns or exclude columns otherwise included from a join #1338 [Stefan Kaes]
1377
+
1378
+
1379
+ *1.11.1* (11 July, 2005)
1380
+
1381
+ * Added support for limit and offset with eager loading of has_one and belongs_to associations. Using the options with has_many and has_and_belongs_to_many associations will now raise an ActiveRecord::ConfigurationError #1692 [Rick Olsen]
1382
+
1383
+ * Fixed that assume_bottom_position (in acts_as_list) could be called on items already last in the list and they would move one position away from the list #1648 [tyler@kianta.com]
1384
+
1385
+ * Added ActiveRecord::Base.threaded_connections flag to turn off 1-connection per thread (required for thread safety). By default it's on, but WEBrick in Rails need it off #1685 [Sam Stephenson]
1386
+
1387
+ * Correct reflected table name for singular associations. #1688 [court3nay@gmail.com]
1388
+
1389
+ * Fixed optimistic locking with SQL Server #1660 [tom@popdog.net]
1390
+
1391
+ * Added ActiveRecord::Migrator.migrate that can figure out whether to go up or down based on the target version and the current
1392
+
1393
+ * Added better error message for "packets out of order" #1630 [courtenay]
1394
+
1395
+ * Fixed first run of "rake migrate" on PostgreSQL by not expecting a return value on the id #1640
1396
+
1397
+
1398
+ *1.11.0* (6 July, 2005)
1399
+
1400
+ * Fixed that Yaml error message in fixtures hid the real error #1623 [Nicholas Seckar]
1401
+
1402
+ * Changed logging of SQL statements to use the DEBUG level instead of INFO
1403
+
1404
+ * Added new Migrations framework for describing schema transformations in a way that can be easily applied across multiple databases #1604 [Tobias Luetke] See documentation under ActiveRecord::Migration and the additional support in the Rails rakefile/generator.
1405
+
1406
+ * Added callback hooks to association collections #1549 [Florian Weber]. Example:
1407
+
1408
+ class Project
1409
+ has_and_belongs_to_many :developers, :before_add => :evaluate_velocity
1410
+
1411
+ def evaluate_velocity(developer)
1412
+ ...
1413
+ end
1414
+ end
1415
+
1416
+ ..raising an exception will cause the object not to be added (or removed, with before_remove).
1417
+
1418
+
1419
+ * Fixed Base.content_columns call for SQL Server adapter #1450 [DeLynn Berry]
1420
+
1421
+ * Fixed Base#write_attribute to work with both symbols and strings #1190 [Paul Legato]
1422
+
1423
+ * Fixed that has_and_belongs_to_many didn't respect single table inheritance types #1081 [Florian Weber]
1424
+
1425
+ * Speed up ActiveRecord#method_missing for the common case (read_attribute).
1426
+
1427
+ * Only notify observers on after_find and after_initialize if these methods are defined on the model. #1235 [skaes@web.de]
1428
+
1429
+ * Fixed that single-table inheritance sub-classes couldn't be used to limit the result set with eager loading #1215 [Chris McGrath]
1430
+
1431
+ * Fixed validates_numericality_of to work with overrided getter-method when :allow_nil is on #1316 [raidel@onemail.at]
1432
+
1433
+ * Added roots, root, and siblings to the batch of methods added by acts_as_tree #1541 [michael@schuerig.de]
1434
+
1435
+ * Added support for limit/offset with the MS SQL Server driver so that pagination will now work #1569 [DeLynn Berry]
1436
+
1437
+ * Added support for ODBC connections to MS SQL Server so you can connect from a non-Windows machine #1569 [Mark Imbriaco/DeLynn Berry]
1438
+
1439
+ * Fixed that multiparameter posts ignored attr_protected #1532 [alec+rails@veryclever.net]
1440
+
1441
+ * Fixed problem with eager loading when using a has_and_belongs_to_many association using :association_foreign_key #1504 [flash@vanklinkenbergsoftware.nl]
1442
+
1443
+ * Fixed Base#find to honor the documentation on how :joins work and make them consistent with Base#count #1405 [pritchie@gmail.com]. What used to be:
1444
+
1445
+ Developer.find :all, :joins => 'developers_projects', :conditions => 'id=developer_id AND project_id=1'
1446
+
1447
+ ...should instead be:
1448
+
1449
+ Developer.find(
1450
+ :all,
1451
+ :joins => 'LEFT JOIN developers_projects ON developers.id = developers_projects.developer_id',
1452
+ :conditions => 'project_id=1'
1453
+ )
1454
+
1455
+ * Fixed that validations didn't respecting custom setting for too_short, too_long messages #1437 [Marcel Molina]
1456
+
1457
+ * Fixed that clear_association_cache doesn't delete new associations on new records (so you can safely place new records in the session with Action Pack without having new associations wiped) #1494 [cluon]
1458
+
1459
+ * Fixed that calling Model.find([]) returns [] and doesn't throw an exception #1379
1460
+
1461
+ * Fixed that adding a record to a has_and_belongs_to collection would always save it -- now it only saves if its a new record #1203 [Alisdair McDiarmid]
1462
+
1463
+ * Fixed saving of in-memory association structures to happen as a after_create/after_update callback instead of after_save -- that way you can add new associations in after_create/after_update callbacks without getting them saved twice
1464
+
1465
+ * Allow any Enumerable, not just Array, to work as bind variables #1344 [Jeremy Kemper]
1466
+
1467
+ * Added actual database-changing behavior to collection assigment for has_many and has_and_belongs_to_many #1425 [Sebastian Kanthak].
1468
+ Example:
1469
+
1470
+ david.projects = [Project.find(1), Project.new("name" => "ActionWebSearch")]
1471
+ david.save
1472
+
1473
+ If david.projects already contain the project with ID 1, this is left unchanged. Any other projects are dropped. And the new
1474
+ project is saved when david.save is called.
1475
+
1476
+ Also included is a way to do assignments through IDs, which is perfect for checkbox updating, so you get to do:
1477
+
1478
+ david.project_ids = [1, 5, 7]
1479
+
1480
+ * Corrected typo in find SQL for has_and_belongs_to_many. #1312 [ben@bensinclair.com]
1481
+
1482
+ * Fixed sanitized conditions for has_many finder method. #1281 [jackc@hylesanderson.com, pragdave, Tobias Luetke]
1483
+
1484
+ * Comprehensive PostgreSQL schema support. Use the optional schema_search_path directive in database.yml to give a comma-separated list of schemas to search for your tables. This allows you, for example, to have tables in a shared schema without having to use a custom table name. See http://www.postgresql.org/docs/8.0/interactive/ddl-schemas.html to learn more. #827 [dave@cherryville.org]
1485
+
1486
+ * Corrected @@configurations typo #1410 [david@ruppconsulting.com]
1487
+
1488
+ * Return PostgreSQL columns in the order they were declared #1374 [perlguy@gmail.com]
1489
+
1490
+ * Allow before/after update hooks to work on models using optimistic locking
1491
+
1492
+ * Eager loading of dependent has_one associations won't delete the association #1212
1493
+
1494
+ * Added a second parameter to the build and create method for has_one that controls whether the existing association should be replaced (which means nullifying its foreign key as well). By default this is true, but false can be passed to prevent it.
1495
+
1496
+ * Using transactional fixtures now causes the data to be loaded only once.
1497
+
1498
+ * Added fixture accessor methods that can be used when instantiated fixtures are disabled.
1499
+
1500
+ fixtures :web_sites
1501
+
1502
+ def test_something
1503
+ assert_equal "Ruby on Rails", web_sites(:rubyonrails).name
1504
+ end
1505
+
1506
+ * Added DoubleRenderError exception that'll be raised if render* is called twice #518 [Nicholas Seckar]
1507
+
1508
+ * Fixed exceptions occuring after render has been called #1096 [Nicholas Seckar]
1509
+
1510
+ * CHANGED: validates_presence_of now uses Errors#add_on_blank, which will make " " fail the validation where it didn't before #1309
1511
+
1512
+ * Added Errors#add_on_blank which works like Errors#add_on_empty, but uses Object#blank? instead
1513
+
1514
+ * Added the :if option to all validations that can either use a block or a method pointer to determine whether the validation should be run or not. #1324 [Duane Johnson/jhosteny]. Examples:
1515
+
1516
+ Conditional validations such as the following are made possible:
1517
+ validates_numericality_of :income, :if => :employed?
1518
+
1519
+ Conditional validations can also solve the salted login generator problem:
1520
+ validates_confirmation_of :password, :if => :new_password?
1521
+
1522
+ Using blocks:
1523
+ validates_presence_of :username, :if => Proc.new { |user| user.signup_step > 1 }
1524
+
1525
+ * Fixed use of construct_finder_sql when using :join #1288 [dwlt@dwlt.net]
1526
+
1527
+ * Fixed that :delete_sql in has_and_belongs_to_many associations couldn't access record properties #1299 [Rick Olson]
1528
+
1529
+ * Fixed that clone would break when an aggregate had the same name as one of its attributes #1307 [Jeremy Kemper]
1530
+
1531
+ * Changed that destroying an object will only freeze the attributes hash, which keeps the object from having attributes changed (as that wouldn't make sense), but allows for the querying of associations after it has been destroyed.
1532
+
1533
+ * Changed the callbacks such that observers are notified before the in-object callbacks are triggered. Without this change, it wasn't possible to act on the whole object in something like a before_destroy observer without having the objects own callbacks (like deleting associations) called first.
1534
+
1535
+ * Added option for passing an array to the find_all version of the dynamic finders and have it evaluated as an IN fragment. Example:
1536
+
1537
+ # SELECT * FROM topics WHERE title IN ('First', 'Second')
1538
+ Topic.find_all_by_title(["First", "Second"])
1539
+
1540
+ * Added compatibility with camelCase column names for dynamic finders #533 [Dee.Zsombor]
1541
+
1542
+ * Fixed extraneous comma in count() function that made it not work with joins #1156 [jarkko/Dee.Zsombor]
1543
+
1544
+ * Fixed incompatibility with Base#find with an array of ids that would fail when using eager loading #1186 [Alisdair McDiarmid]
1545
+
1546
+ * Fixed that validate_length_of lost :on option when :within was specified #1195 [jhosteny@mac.com]
1547
+
1548
+ * Added encoding and min_messages options for PostgreSQL #1205 [shugo]. Configuration example:
1549
+
1550
+ development:
1551
+ adapter: postgresql
1552
+ database: rails_development
1553
+ host: localhost
1554
+ username: postgres
1555
+ password:
1556
+ encoding: UTF8
1557
+ min_messages: ERROR
1558
+
1559
+ * Fixed acts_as_list where deleting an item that was removed from the list would ruin the positioning of other list items #1197 [Jamis Buck]
1560
+
1561
+ * Added validates_exclusion_of as a negative of validates_inclusion_of
1562
+
1563
+ * Optimized counting of has_many associations by setting the association to empty if the count is 0 so repeated calls doesn't trigger database calls
1564
+
1565
+
1566
+ *1.10.1* (20th April, 2005)
1567
+
1568
+ * Fixed frivilous database queries being triggered with eager loading on empty associations and other things
1569
+
1570
+ * Fixed order of loading in eager associations
1571
+
1572
+ * Fixed stray comma when using eager loading and ordering together from has_many associations #1143
1573
+
1574
+
1575
+ *1.10.0* (19th April, 2005)
1576
+
1577
+ * Added eager loading of associations as a way to solve the N+1 problem more gracefully without piggy-back queries. Example:
1578
+
1579
+ for post in Post.find(:all, :limit => 100)
1580
+ puts "Post: " + post.title
1581
+ puts "Written by: " + post.author.name
1582
+ puts "Last comment on: " + post.comments.first.created_on
1583
+ end
1584
+
1585
+ This used to generate 301 database queries if all 100 posts had both author and comments. It can now be written as:
1586
+
1587
+ for post in Post.find(:all, :limit => 100, :include => [ :author, :comments ])
1588
+
1589
+ ...and the number of database queries needed is now 1.
1590
+
1591
+ * Added new unified Base.find API and deprecated the use of find_first and find_all. See the documentation for Base.find. Examples:
1592
+
1593
+ Person.find(1, :conditions => "administrator = 1", :order => "created_on DESC")
1594
+ Person.find(1, 5, 6, :conditions => "administrator = 1", :order => "created_on DESC")
1595
+ Person.find(:first, :order => "created_on DESC", :offset => 5)
1596
+ Person.find(:all, :conditions => [ "category IN (?)", categories], :limit => 50)
1597
+ Person.find(:all, :offset => 10, :limit => 10)
1598
+
1599
+ * Added acts_as_nested_set #1000 [wschenk]. Introduction:
1600
+
1601
+ This acts provides Nested Set functionality. Nested Set is similiar to Tree, but with
1602
+ the added feature that you can select the children and all of it's descendants with
1603
+ a single query. A good use case for this is a threaded post system, where you want
1604
+ to display every reply to a comment without multiple selects.
1605
+
1606
+ * Added Base.save! that attempts to save the record just like Base.save but will raise a RecordInvalid exception instead of returning false if the record is not valid [After much pestering from Dave Thomas]
1607
+
1608
+ * Fixed PostgreSQL usage of fixtures with regards to public schemas and table names with dots #962 [gnuman1@gmail.com]
1609
+
1610
+ * Fixed that fixtures were being deleted in the same order as inserts causing FK errors #890 [andrew.john.peters@gmail.com]
1611
+
1612
+ * Fixed loading of fixtures in to be in the right order (or PostgreSQL would bark) #1047 [stephenh@chase3000.com]
1613
+
1614
+ * Fixed page caching for non-vhost applications living underneath the root #1004 [Ben Schumacher]
1615
+
1616
+ * Fixes a problem with the SQL Adapter which was resulting in IDENTITY_INSERT not being set to ON when it should be #1104 [adelle]
1617
+
1618
+ * Added the option to specify the acceptance string in validates_acceptance_of #1106 [caleb@aei-tech.com]
1619
+
1620
+ * Added insert_at(position) to acts_as_list #1083 [DeLynnB]
1621
+
1622
+ * Removed the default order by id on has_and_belongs_to_many queries as it could kill performance on large sets (you can still specify by hand with :order)
1623
+
1624
+ * Fixed that Base.silence should restore the old logger level when done, not just set it to DEBUG #1084 [yon@milliped.com]
1625
+
1626
+ * Fixed boolean saving on Oracle #1093 [mparrish@pearware.org]
1627
+
1628
+ * Moved build_association and create_association for has_one and belongs_to out of deprecation as they work when the association is nil unlike association.build and association.create, which require the association to be already in place #864
1629
+
1630
+ * Added rollbacks of transactions if they're active as the dispatcher is killed gracefully (TERM signal) #1054 [Leon Bredt]
1631
+
1632
+ * Added quoting of column names for fixtures #997 [jcfischer@gmail.com]
1633
+
1634
+ * Fixed counter_sql when no records exist in database for PostgreSQL (would give error, not 0) #1039 [Caleb Tennis]
1635
+
1636
+ * Fixed that benchmarking times for rendering included db runtimes #987 [skaes@web.de]
1637
+
1638
+ * Fixed boolean queries for t/f fields in PostgreSQL #995 [dave@cherryville.org]
1639
+
1640
+ * Added that model.items.delete(child) will delete the child, not just set the foreign key to nil, if the child is dependent on the model #978 [Jeremy Kemper]
1641
+
1642
+ * Fixed auto-stamping of dates (created_on/updated_on) for PostgreSQL #985 [dave@cherryville.org]
1643
+
1644
+ * Fixed Base.silence/benchmark to only log if a logger has been configured #986 [skaes@web.de]
1645
+
1646
+ * Added a join parameter as the third argument to Base.find_first and as the second to Base.count #426, #988 [skaes@web.de]
1647
+
1648
+ * Fixed bug in Base#hash method that would treat records with the same string-based id as different [Dave Thomas]
1649
+
1650
+ * Renamed DateHelper#distance_of_time_in_words_to_now to DateHelper#time_ago_in_words (old method name is still available as a deprecated alias)
1651
+
1652
+
1653
+ *1.9.1* (27th March, 2005)
1654
+
1655
+ * Fixed that Active Record objects with float attribute could not be cloned #808
1656
+
1657
+ * Fixed that MissingSourceFile's wasn't properly detected in production mode #925 [Nicholas Seckar]
1658
+
1659
+ * Fixed that :counter_cache option would look for a line_items_count column for a LineItem object instead of lineitems_count
1660
+
1661
+ * Fixed that AR exists?() would explode on postgresql if the passed id did not match the PK type #900 [Scott Barron]
1662
+
1663
+ * Fixed the MS SQL adapter to work with the new limit/offset approach and with binary data (still suffering from 7KB limit, though) #901 [delynnb]
1664
+
1665
+
1666
+ *1.9.0* (22th March, 2005)
1667
+
1668
+ * Added adapter independent limit clause as a two-element array with the first being the limit, the second being the offset #795 [Sam Stephenson]. Example:
1669
+
1670
+ Developer.find_all nil, 'id ASC', 5 # return the first five developers
1671
+ Developer.find_all nil, 'id ASC', [3, 8] # return three developers, starting from #8 and forward
1672
+
1673
+ This doesn't yet work with the DB2 or MS SQL adapters. Patches to make that happen are encouraged.
1674
+
1675
+ * Added alias_method :to_param, :id to Base, such that Active Record objects to be used as URL parameters in Action Pack automatically #812 [Nicholas Seckar/Sam Stephenson]
1676
+
1677
+ * Improved the performance of the OCI8 adapter for Oracle #723 [pilx/gjenkins]
1678
+
1679
+ * Added type conversion before saving a record, so string-based values like "10.0" aren't left for the database to convert #820 [dave@cherryville.org]
1680
+
1681
+ * Added with additional settings for working with transactional fixtures and pre-loaded test databases #865 [mindel]
1682
+
1683
+ * Fixed acts_as_list to trigger remove_from_list on destroy after the fact, not before, so a unique position can be maintained #871 [Alisdair McDiarmid]
1684
+
1685
+ * Added the possibility of specifying fixtures in multiple calls #816 [kim@tinker.com]
1686
+
1687
+ * Added Base.exists?(id) that'll return true if an object of the class with the given id exists #854 [stian@grytoyr.net]
1688
+
1689
+ * Added optionally allow for nil or empty strings with validates_numericality_of #801 [Sebastian Kanthak]
1690
+
1691
+ * Fixed problem with using slashes in validates_format_of regular expressions #801 [Sebastian Kanthak]
1692
+
1693
+ * Fixed that SQLite3 exceptions are caught and reported properly #823 [yerejm]
1694
+
1695
+ * Added that all types of after_find/after_initialized callbacks are triggered if the explicit implementation is present, not only the explicit implementation itself
1696
+
1697
+ * Fixed that symbols can be used on attribute assignment, like page.emails.create(:subject => data.subject, :body => data.body)
1698
+
1699
+
1700
+ *1.8.0* (7th March, 2005)
1701
+
1702
+ * Added ActiveRecord::Base.colorize_logging to control whether to use colors in logs or not (on by default)
1703
+
1704
+ * Added support for timestamp with time zone in PostgreSQL #560 [Scott Barron]
1705
+
1706
+ * Added MultiparameterAssignmentErrors and AttributeAssignmentError exceptions #777 [demetrius]. Documentation:
1707
+
1708
+ * +MultiparameterAssignmentErrors+ -- collection of errors that occurred during a mass assignment using the
1709
+ +attributes=+ method. The +errors+ property of this exception contains an array of +AttributeAssignmentError+
1710
+ objects that should be inspected to determine which attributes triggered the errors.
1711
+ * +AttributeAssignmentError+ -- an error occurred while doing a mass assignment through the +attributes=+ method.
1712
+ You can inspect the +attribute+ property of the exception object to determine which attribute triggered the error.
1713
+
1714
+ * Fixed that postgresql adapter would fails when reading bytea fields with null value #771 [rodrigo k]
1715
+
1716
+ * Added transactional fixtures that uses rollback to undo changes to fixtures instead of DELETE/INSERT -- it's much faster. See documentation under Fixtures #760 [Jeremy Kemper]
1717
+
1718
+ * Added destruction of dependent objects in has_one associations when a new assignment happens #742 [mindel]. Example:
1719
+
1720
+ class Account < ActiveRecord::Base
1721
+ has_one :credit_card, :dependent => true
1722
+ end
1723
+ class CreditCard < ActiveRecord::Base
1724
+ belongs_to :account
1725
+ end
1726
+
1727
+ account.credit_card # => returns existing credit card, lets say id = 12
1728
+ account.credit_card = CreditCard.create("number" => "123")
1729
+ account.save # => CC with id = 12 is destroyed
1730
+
1731
+
1732
+ * Added validates_numericality_of #716 [skanthak/c.r.mcgrath]. Docuemntation:
1733
+
1734
+ Validates whether the value of the specified attribute is numeric by trying to convert it to
1735
+ a float with Kernel.Float (if <tt>integer</tt> is false) or applying it to the regular expression
1736
+ <tt>/^[\+\-]?\d+$/</tt> (if <tt>integer</tt> is set to true).
1737
+
1738
+ class Person < ActiveRecord::Base
1739
+ validates_numericality_of :value, :on => :create
1740
+ end
1741
+
1742
+ Configuration options:
1743
+ * <tt>message</tt> - A custom error message (default is: "is not a number")
1744
+ * <tt>on</tt> Specifies when this validation is active (default is :save, other options :create, :update)
1745
+ * <tt>only_integer</tt> Specifies whether the value has to be an integer, e.g. an integral value (default is false)
1746
+
1747
+
1748
+ * Fixed that HasManyAssociation#count was using :finder_sql rather than :counter_sql if it was available #445 [Scott Barron]
1749
+
1750
+ * Added better defaults for composed_of, so statements like composed_of :time_zone, :mapping => %w( time_zone time_zone ) can be written without the mapping part (it's now assumed)
1751
+
1752
+ * Added MacroReflection#macro which will return a symbol describing the macro used (like :composed_of or :has_many) #718, #248 [james@slashetc.com]
1753
+
1754
+
1755
+ *1.7.0* (24th February, 2005)
1756
+
1757
+ * Changed the auto-timestamping feature to use ActiveRecord::Base.default_timezone instead of entertaining the parallel ActiveRecord::Base.timestamps_gmt method. The latter is now deprecated and will throw a warning on use (but still work) #710 [Jamis Buck]
1758
+
1759
+ * Added a OCI8-based Oracle adapter that has been verified to work with Oracle 8 and 9 #629 [Graham Jenkins]. Usage notes:
1760
+
1761
+ 1. Key generation uses a sequence "rails_sequence" for all tables. (I couldn't find a simple
1762
+ and safe way of passing table-specific sequence information to the adapter.)
1763
+ 2. Oracle uses DATE or TIMESTAMP datatypes for both dates and times. Consequently I have had to
1764
+ resort to some hacks to get data converted to Date or Time in Ruby.
1765
+ If the column_name ends in _at (like created_at, updated_at) it's created as a Ruby Time. Else if the
1766
+ hours/minutes/seconds are 0, I make it a Ruby Date. Else it's a Ruby Time.
1767
+ This is nasty - but if you use Duck Typing you'll probably not care very much.
1768
+ In 9i it's tempting to map DATE to Date and TIMESTAMP to Time but I don't think that is
1769
+ valid - too many databases use DATE for both.
1770
+ Timezones and sub-second precision on timestamps are not supported.
1771
+ 3. Default values that are functions (such as "SYSDATE") are not supported. This is a
1772
+ restriction of the way active record supports default values.
1773
+ 4. Referential integrity constraints are not fully supported. Under at least
1774
+ some circumstances, active record appears to delete parent and child records out of
1775
+ sequence and out of transaction scope. (Or this may just be a problem of test setup.)
1776
+
1777
+ The OCI8 driver can be retrieved from http://rubyforge.org/projects/ruby-oci8/
1778
+
1779
+ * Added option :schema_order to the PostgreSQL adapter to support the use of multiple schemas per database #697 [YuriSchimke]
1780
+
1781
+ * Optimized the SQL used to generate has_and_belongs_to_many queries by listing the join table first #693 [yerejm]
1782
+
1783
+ * Fixed that when using validation macros with a custom message, if you happened to use single quotes in the message string you would get a parsing error #657 [tonka]
1784
+
1785
+ * Fixed that Active Record would throw Broken Pipe errors with FCGI when the MySQL connection timed out instead of reconnecting #428 [Nicholas Seckar]
1786
+
1787
+ * Added options to specify an SSL connection for MySQL. Define the following attributes in the connection config (config/database.yml in Rails) to use it: sslkey, sslcert, sslca, sslcapath, sslcipher. To use SSL with no client certs, just set :sslca = '/dev/null'. http://dev.mysql.com/doc/mysql/en/secure-connections.html #604 [daniel@nightrunner.com]
1788
+
1789
+ * Added automatic dropping/creating of test tables for running the unit tests on all databases #587 [adelle@bullet.net.au]
1790
+
1791
+ * Fixed that find_by_* would fail when column names had numbers #670 [demetrius]
1792
+
1793
+ * Fixed the SQL Server adapter on a bunch of issues #667 [DeLynn]
1794
+
1795
+ 1. Created a new columns method that is much cleaner.
1796
+ 2. Corrected a problem with the select and select_all methods
1797
+ that didn't account for the LIMIT clause being passed into raw SQL statements.
1798
+ 3. Implemented the string_to_time method in order to create proper instances of the time class.
1799
+ 4. Added logic to the simplified_type method that allows the database to specify the scale of float data.
1800
+ 5. Adjusted the quote_column_name to account for the fact that MS SQL is bothered by a forward slash in the data string.
1801
+
1802
+ * Fixed that the dynamic finder like find_all_by_something_boolean(false) didn't work #649 [lmarlow@yahoo.com]
1803
+
1804
+ * Added validates_each that validates each specified attribute against a block #610 [Jeremy Kemper]. Example:
1805
+
1806
+ class Person < ActiveRecord::Base
1807
+ validates_each :first_name, :last_name do |record, attr|
1808
+ record.errors.add attr, 'starts with z.' if attr[0] == ?z
1809
+ end
1810
+ end
1811
+
1812
+ * Added :allow_nil as an explicit option for validates_length_of, so unless that's set to true having the attribute as nil will also return an error if a range is specified as :within #610 [Jeremy Kemper]
1813
+
1814
+ * Added that validates_* now accept blocks to perform validations #618 [Tim Bates]. Example:
1815
+
1816
+ class Person < ActiveRecord::Base
1817
+ validate { |person| person.errors.add("title", "will never be valid") if SHOULD_NEVER_BE_VALID }
1818
+ end
1819
+
1820
+ * Addded validation for validate all the associated objects before declaring failure with validates_associated #618 [Tim Bates]
1821
+
1822
+ * Added keyword-style approach to defining the custom relational bindings #545 [Jamis Buck]. Example:
1823
+
1824
+ class Project < ActiveRecord::Base
1825
+ primary_key "sysid"
1826
+ table_name "XYZ_PROJECT"
1827
+ inheritance_column { original_inheritance_column + "_id" }
1828
+ end
1829
+
1830
+ * Fixed Base#clone for use with PostgreSQL #565 [hanson@surgery.wisc.edu]
1831
+
1832
+
1833
+ *1.6.0* (January 25th, 2005)
1834
+
1835
+ * Added that has_many association build and create methods can take arrays of record data like Base#create and Base#build to build/create multiple records at once.
1836
+
1837
+ * Added that Base#delete and Base#destroy both can take an array of ids to delete/destroy #336
1838
+
1839
+ * Added the option of supplying an array of attributes to Base#create, so that multiple records can be created at once.
1840
+
1841
+ * Added the option of supplying an array of ids and attributes to Base#update, so that multiple records can be updated at once (inspired by #526/Duane Johnson). Example
1842
+
1843
+ people = { 1 => { "first_name" => "David" }, 2 => { "first_name" => "Jeremy"} }
1844
+ Person.update(people.keys, people.values)
1845
+
1846
+ * Added ActiveRecord::Base.timestamps_gmt that can be set to true to make the automated timestamping use GMT instead of local time #520 [Scott Baron]
1847
+
1848
+ * Added that update_all calls sanitize_sql on its updates argument, so stuff like MyRecord.update_all(['time = ?', Time.now]) works #519 [notahat]
1849
+
1850
+ * Fixed that the dynamic finders didn't treat nil as a "IS NULL" but rather "= NULL" case #515 [Demetrius]
1851
+
1852
+ * Added bind-named arrays for interpolating a group of ids or strings in conditions #528 [Jeremy Kemper]
1853
+
1854
+ * Added that has_and_belongs_to_many associations with additional attributes also can be created between unsaved objects and only committed to the database when Base#save is called on the associator #524 [Eric Anderson]
1855
+
1856
+ * Fixed that records fetched with piggy-back attributes or through rich has_and_belongs_to_many associations couldn't be saved due to the extra attributes not part of the table #522 [Eric Anderson]
1857
+
1858
+ * Added mass-assignment protection for the inheritance column -- regardless of a custom column is used or not
1859
+
1860
+ * Fixed that association proxies would fail === tests like PremiumSubscription === @account.subscription
1861
+
1862
+ * Fixed that column aliases didn't work as expected with the new MySql411 driver #507 [Demetrius]
1863
+
1864
+ * Fixed that find_all would produce invalid sql when called sequentialy #490 [Scott Baron]
1865
+
1866
+
1867
+ *1.5.1* (January 18th, 2005)
1868
+
1869
+ * Fixed that the belongs_to and has_one proxy would fail a test like 'if project.manager' -- this unfortunately also means that you can't call methods like project.manager.build unless there already is a manager on the project #492 [Tim Bates]
1870
+
1871
+ * Fixed that the Ruby/MySQL adapter wouldn't connect if the password was empty #503 [Pelle]
1872
+
1873
+
1874
+ *1.5.0* (January 17th, 2005)
1875
+
1876
+ * Fixed that unit tests for MySQL are now run as the "rails" user instead of root #455 [Eric Hodel]
1877
+
1878
+ * Added validates_associated that enables validation of objects in an unsaved association #398 [Tim Bates]. Example:
1879
+
1880
+ class Book < ActiveRecord::Base
1881
+ has_many :pages
1882
+ belongs_to :library
1883
+
1884
+ validates_associated :pages, :library
1885
+ end
1886
+
1887
+ * Added support for associating unsaved objects #402 [Tim Bates]. Rules that govern this addition:
1888
+
1889
+ == Unsaved objects and associations
1890
+
1891
+ You can manipulate objects and associations before they are saved to the database, but there is some special behaviour you should be
1892
+ aware of, mostly involving the saving of associated objects.
1893
+
1894
+ === One-to-one associations
1895
+
1896
+ * Assigning an object to a has_one association automatically saves that object, and the object being replaced (if there is one), in
1897
+ order to update their primary keys - except if the parent object is unsaved (new_record? == true).
1898
+ * If either of these saves fail (due to one of the objects being invalid) the assignment statement returns false and the assignment
1899
+ is cancelled.
1900
+ * If you wish to assign an object to a has_one association without saving it, use the #association.build method (documented below).
1901
+ * Assigning an object to a belongs_to association does not save the object, since the foreign key field belongs on the parent. It does
1902
+ not save the parent either.
1903
+
1904
+ === Collections
1905
+
1906
+ * Adding an object to a collection (has_many or has_and_belongs_to_many) automatically saves that object, except if the parent object
1907
+ (the owner of the collection) is not yet stored in the database.
1908
+ * If saving any of the objects being added to a collection (via #push or similar) fails, then #push returns false.
1909
+ * You can add an object to a collection without automatically saving it by using the #collection.build method (documented below).
1910
+ * All unsaved (new_record? == true) members of the collection are automatically saved when the parent is saved.
1911
+
1912
+ * Added replace to associations, so you can do project.manager.replace(new_manager) or project.milestones.replace(new_milestones) #402 [Tim Bates]
1913
+
1914
+ * Added build and create methods to has_one and belongs_to associations, so you can now do project.manager.build(attributes) #402 [Tim Bates]
1915
+
1916
+ * Added that if a before_* callback returns false, all the later callbacks and the associated action are cancelled. If an after_* callback returns false, all the later callbacks are cancelled. Callbacks are generally run in the order they are defined, with the exception of callbacks defined as methods on the model, which are called last. #402 [Tim Bates]
1917
+
1918
+ * Fixed that Base#== wouldn't work for multiple references to the same unsaved object #402 [Tim Bates]
1919
+
1920
+ * Fixed binary support for PostgreSQL #444 [alex@byzantine.no]
1921
+
1922
+ * Added a differenciation between AssociationCollection#size and -length. Now AssociationCollection#size returns the size of the
1923
+ collection by executing a SELECT COUNT(*) query if the collection hasn't been loaded and calling collection.size if it has. If
1924
+ it's more likely than not that the collection does have a size larger than zero and you need to fetch that collection afterwards,
1925
+ it'll take one less SELECT query if you use length.
1926
+
1927
+ * Added Base#attributes that returns a hash of all the attributes with their names as keys and clones of their objects as values #433 [atyp.de]
1928
+
1929
+ * Fixed that foreign keys named the same as the association would cause stack overflow #437 [Eric Anderson]
1930
+
1931
+ * Fixed default scope of acts_as_list from "1" to "1 = 1", so it'll work in PostgreSQL (among other places) #427 [Alexey]
1932
+
1933
+ * Added Base#reload that reloads the attributes of an object from the database #422 [Andreas Schwarz]
1934
+
1935
+ * Added SQLite3 compatibility through the sqlite3-ruby adapter by Jamis Buck #381 [Jeremy Kemper]
1936
+
1937
+ * Added support for the new protocol spoken by MySQL 4.1.1+ servers for the Ruby/MySQL adapter that ships with Rails #440 [Matt Mower]
1938
+
1939
+ * Added that Observers can use the observes class method instead of overwriting self.observed_class().
1940
+
1941
+ Before:
1942
+ class ListSweeper < ActiveRecord::Base
1943
+ def self.observed_class() [ List, Item ]
1944
+ end
1945
+
1946
+ After:
1947
+ class ListSweeper < ActiveRecord::Base
1948
+ observes List, Item
1949
+ end
1950
+
1951
+ * Fixed that conditions in has_many and has_and_belongs_to_many should be interpolated just like the finder_sql is
1952
+
1953
+ * Fixed Base#update_attribute to be indifferent to whether a string or symbol is used to describe the name
1954
+
1955
+ * Added Base#toggle(attribute) and Base#toggle!(attribute) that makes it easier to flip a switch or flag.
1956
+
1957
+ Before: topic.update_attribute(:approved, !approved?)
1958
+ After : topic.toggle!(:approved)
1959
+
1960
+ * Added Base#increment!(attribute) and Base#decrement!(attribute) that also saves the records. Example:
1961
+
1962
+ page.views # => 1
1963
+ page.increment!(:views) # executes an UPDATE statement
1964
+ page.views # => 2
1965
+
1966
+ page.increment(:views).increment!(:views)
1967
+ page.views # => 4
1968
+
1969
+ * Added Base#increment(attribute) and Base#decrement(attribute) that encapsulates the += 1 and -= 1 patterns.
1970
+
1971
+
1972
+ *1.4.0* (January 4th, 2005)
1973
+
1974
+ * Added automated optimistic locking if the field <tt>lock_version</tt> is present. Each update to the
1975
+ record increments the lock_version column and the locking facilities ensure that records instantiated twice
1976
+ will let the last one saved raise a StaleObjectError if the first was also updated. Example:
1977
+
1978
+ p1 = Person.find(1)
1979
+ p2 = Person.find(1)
1980
+
1981
+ p1.first_name = "Michael"
1982
+ p1.save
1983
+
1984
+ p2.first_name = "should fail"
1985
+ p2.save # Raises a ActiveRecord::StaleObjectError
1986
+
1987
+ You're then responsible for dealing with the conflict by rescuing the exception and either rolling back, merging,
1988
+ or otherwise apply the business logic needed to resolve the conflict.
1989
+
1990
+ #384 [Michael Koziarski]
1991
+
1992
+ * Added dynamic attribute-based finders as a cleaner way of getting objects by simple queries without turning to SQL.
1993
+ They work by appending the name of an attribute to <tt>find_by_</tt>, so you get finders like <tt>Person.find_by_user_name,
1994
+ Payment.find_by_transaction_id</tt>. So instead of writing <tt>Person.find_first(["user_name = ?", user_name])</tt>, you just do
1995
+ <tt>Person.find_by_user_name(user_name)</tt>.
1996
+
1997
+ It's also possible to use multiple attributes in the same find by separating them with "_and_", so you get finders like
1998
+ <tt>Person.find_by_user_name_and_password</tt> or even <tt>Payment.find_by_purchaser_and_state_and_country</tt>. So instead of writing
1999
+ <tt>Person.find_first(["user_name = ? AND password = ?", user_name, password])</tt>, you just do
2000
+ <tt>Person.find_by_user_name_and_password(user_name, password)</tt>.
2001
+
2002
+ While primarily a construct for easier find_firsts, it can also be used as a construct for find_all by using calls like
2003
+ <tt>Payment.find_all_by_amount(50)</tt> that is turned into <tt>Payment.find_all(["amount = ?", 50])</tt>. This is something not as equally useful,
2004
+ though, as it's not possible to specify the order in which the objects are returned.
2005
+
2006
+ * Added block-style for callbacks #332 [Jeremy Kemper].
2007
+
2008
+ Before:
2009
+ before_destroy(Proc.new{ |record| Person.destroy_all "firm_id = #{record.id}" })
2010
+
2011
+ After:
2012
+ before_destroy { |record| Person.destroy_all "firm_id = #{record.id}" }
2013
+
2014
+ * Added :counter_cache option to acts_as_tree that works just like the one you can define on belongs_to #371 [Josh]
2015
+
2016
+ * Added Base.default_timezone accessor that determines whether to use Time.local (using :local) or Time.utc (using :utc) when pulling dates
2017
+ and times from the database. This is set to :local by default.
2018
+
2019
+ * Added the possibility for adapters to overwrite add_limit! to implement a different limiting scheme than "LIMIT X" used by MySQL, PostgreSQL, and SQLite.
2020
+
2021
+ * Added the possibility of having objects with acts_as_list created before their scope is available or...
2022
+
2023
+ * Added a db2 adapter that only depends on the Ruby/DB2 bindings (http://raa.ruby-lang.org/project/ruby-db2/) #386 [Maik Schmidt]
2024
+
2025
+ * Added the final touches to the Microsoft SQL Server adapter by Joey Gibson that makes it suitable for actual use #394 [DeLynn Barry]
2026
+
2027
+ * Added that Base#find takes an optional options hash, including :conditions. Base#find_on_conditions deprecated in favor of #find with :conditions #407 [Jeremy Kemper]
2028
+
2029
+ * Added HasManyAssociation#count that works like Base#count #413 [intinig]
2030
+
2031
+ * Fixed handling of binary content in blobs and similar fields for Ruby/MySQL and SQLite #409 [xal]
2032
+
2033
+ * Fixed a bug in the Ruby/MySQL that caused binary content to be escaped badly and come back mangled #405 [Tobias Luetke]
2034
+
2035
+ * Fixed that the const_missing autoload assumes the requested constant is set by require_association and calls const_get to retrieve it.
2036
+ If require_association did not set the constant then const_get will call const_missing, resulting in an infinite loop #380 [Jeremy Kemper]
2037
+
2038
+ * Fixed broken transactions that were actually only running object-level and not db level transactions [andreas]
2039
+
2040
+ * Fixed that validates_uniqueness_of used 'id' instead of defined primary key #406
2041
+
2042
+ * Fixed that the overwritten respond_to? method didn't take two parameters like the original #391
2043
+
2044
+ * Fixed quoting in validates_format_of that would allow some rules to pass regardless of input #390 [Dmitry V. Sabanin]
2045
+
2046
+
2047
+ *1.3.0* (December 23, 2004)
2048
+
2049
+ * Added a require_association hook on const_missing that makes it possible to use any model class without requiring it first. This makes STI look like:
2050
+
2051
+ before:
2052
+ require_association 'person'
2053
+ class Employee < Person
2054
+ end
2055
+
2056
+ after:
2057
+ class Employee < Person
2058
+ end
2059
+
2060
+ This also reduces the usefulness of Controller.model in Action Pack to currently only being for documentation purposes.
2061
+
2062
+ * Added that Base.update_all and Base.delete_all return an integer of the number of affected rows #341
2063
+
2064
+ * Added scope option to validation_uniqueness #349 [Kent Sibilev]
2065
+
2066
+ * Added respondence to *_before_type_cast for all attributes to return their string-state before they were type casted by the column type.
2067
+ This is helpful for getting "100,000" back on a integer-based validation where the value would normally be "100".
2068
+
2069
+ * Added allow_nil options to validates_inclusion_of so that validation is only triggered if the attribute is not nil [what-a-day]
2070
+
2071
+ * Added work-around for PostgreSQL and the problem of getting fixtures to be created from id 1 on each test case.
2072
+ This only works for auto-incrementing primary keys called "id" for now #359 [Scott Baron]
2073
+
2074
+ * Added Base#clear_association_cache to empty all the cached associations #347 [Tobias Luetke]
2075
+
2076
+ * Added more informative exceptions in establish_connection #356 [Jeremy Kemper]
2077
+
2078
+ * Added Base#update_attributes that'll accept a hash of attributes and save the record (returning true if it passed validation, false otherwise).
2079
+
2080
+ Before:
2081
+ person.attributes = @params["person"]
2082
+ person.save
2083
+
2084
+ Now:
2085
+ person.update_attributes(@params["person"])
2086
+
2087
+ * Added Base.destroy and Base.delete to remove records without holding a reference to them first.
2088
+
2089
+ * Added that query benchmarking will only happen if its going to be logged anyway #344
2090
+
2091
+ * Added higher_item and lower_item as public methods for acts_as_list #342 [Tobias Luetke]
2092
+
2093
+ * Fixed that options[:counter_sql] was overwritten with interpolated sql rather than original sql #355 [Jeremy Kemper]
2094
+
2095
+ * Fixed that overriding an attribute's accessor would be disregarded by add_on_empty and add_on_boundary_breaking because they simply used
2096
+ the attributes[] hash instead of checking for @base.respond_to?(attr.to_s). [Marten]
2097
+
2098
+ * Fixed that Base.table_name would expect a parameter when used in has_and_belongs_to_many joins [Anna Lissa Cruz]
2099
+
2100
+ * Fixed that nested transactions now work by letting the outer most transaction have the responsibilty of starting and rolling back the transaction.
2101
+ If any of the inner transactions swallow the exception raised, though, the transaction will not be rolled back. So always let the transaction
2102
+ bubble up even when you've dealt with local issues. Closes #231 and #340.
2103
+
2104
+ * Fixed validates_{confirmation,acceptance}_of to only happen when the virtual attributes are not nil #348 [dpiddy@gmail.com]
2105
+
2106
+ * Changed the interface on AbstractAdapter to require that adapters return the number of affected rows on delete and update operations.
2107
+
2108
+ * Fixed the automated timestamping feature when running under Rails' development environment that resets the inheritable attributes on each request.
2109
+
2110
+
2111
+
2112
+ *1.2.0*
2113
+
2114
+ * Added Base.validates_inclusion_of that validates whether the value of the specified attribute is available in a particular enumerable
2115
+ object. [what-a-day]
2116
+
2117
+ class Person < ActiveRecord::Base
2118
+ validates_inclusion_of :gender, :in=>%w( m f ), :message=>"woah! what are you then!??!!"
2119
+ validates_inclusion_of :age, :in=>0..99
2120
+ end
2121
+
2122
+ * Added acts_as_list that can decorates an existing class with methods like move_higher/lower, move_to_top/bottom. [Tobias Luetke] Example:
2123
+
2124
+ class TodoItem < ActiveRecord::Base
2125
+ acts_as_list :scope => :todo_list_id
2126
+ belongs_to :todo_list
2127
+ end
2128
+
2129
+ * Added acts_as_tree that can decorates an existing class with a many to many relationship with itself. Perfect for categories in
2130
+ categories and the likes. [Tobias Luetke]
2131
+
2132
+ * Added that Active Records will automatically record creation and/or update timestamps of database objects if fields of the names
2133
+ created_at/created_on or updated_at/updated_on are present. [Tobias Luetke]
2134
+
2135
+ * Added Base.default_error_messages as a hash of all the error messages used in the validates_*_of so they can be changed in one place [Tobias Luetke]
2136
+
2137
+ * Added automatic transaction block around AssociationCollection.<<, AssociationCollection.delete, and AssociationCollection.destroy_all
2138
+
2139
+ * Fixed that Base#find will return an array if given an array -- regardless of the number of elements #270 [Marten]
2140
+
2141
+ * Fixed that has_and_belongs_to_many would generate bad sql when naming conventions differed from using vanilla "id" everywhere [RedTerror]
2142
+
2143
+ * Added a better exception for when a type column is used in a table without the intention of triggering single-table inheritance. Example:
2144
+
2145
+ ActiveRecord::SubclassNotFound: The single-table inheritance mechanism failed to locate the subclass: 'bad_class!'.
2146
+ This error is raised because the column 'type' is reserved for storing the class in case of inheritance.
2147
+ Please rename this column if you didn't intend it to be used for storing the inheritance class or
2148
+ overwrite Company.inheritance_column to use another column for that information.
2149
+
2150
+ * Added that single-table inheritance will only kick in if the inheritance_column (by default "type") is present. Otherwise, inheritance won't
2151
+ have any magic side effects.
2152
+
2153
+ * Added the possibility of marking fields as being in error without adding a message (using nil) to it that'll get displayed wth full_messages #208 [mjobin]
2154
+
2155
+ * Fixed Base.errors to be indifferent as to whether strings or symbols are used. Examples:
2156
+
2157
+ Before:
2158
+ errors.add(:name, "must be shorter") if name.size > 10
2159
+ errors.on(:name) # => "must be shorter"
2160
+ errors.on("name") # => nil
2161
+
2162
+ After:
2163
+ errors.add(:name, "must be shorter") if name.size > 10
2164
+ errors.on(:name) # => "must be shorter"
2165
+ errors.on("name") # => "must be shorter"
2166
+
2167
+ * Added Base.validates_format_of that Validates whether the value of the specified attribute is of the correct form by matching
2168
+ it against the regular expression provided. [Marcel]
2169
+
2170
+ class Person < ActiveRecord::Base
2171
+ validates_format_of :email, :with => /^([^@\s]+)@((?:[-a-z0-9]+\.)+[a-z]{2,})$/, :on => :create
2172
+ end
2173
+
2174
+ * Added Base.validates_length_of that delegates to add_on_boundary_breaking #312 [Tobias Luetke]. Example:
2175
+
2176
+ Validates that the specified attribute matches the length restrictions supplied in either:
2177
+
2178
+ - configuration[:minimum]
2179
+ - configuration[:maximum]
2180
+ - configuration[:is]
2181
+ - configuration[:within] (aka. configuration[:in])
2182
+
2183
+ Only one option can be used at a time.
2184
+
2185
+ class Person < ActiveRecord::Base
2186
+ validates_length_of :first_name, :maximum=>30
2187
+ validates_length_of :last_name, :maximum=>30, :message=>"less than %d if you don't mind"
2188
+ validates_length_of :user_name, :within => 6..20, :too_long => "pick a shorter name", :too_short => "pick a longer name"
2189
+ validates_length_of :fav_bra_size, :minimum=>1, :too_short=>"please enter at least %d character"
2190
+ validates_length_of :smurf_leader, :is=>4, :message=>"papa is spelled with %d characters... don't play me."
2191
+ end
2192
+
2193
+ * Added Base.validate_presence as an alternative to implementing validate and doing errors.add_on_empty yourself.
2194
+
2195
+ * Added Base.validates_uniqueness_of that alidates whether the value of the specified attributes are unique across the system.
2196
+ Useful for making sure that only one user can be named "davidhh".
2197
+
2198
+ class Person < ActiveRecord::Base
2199
+ validates_uniqueness_of :user_name
2200
+ end
2201
+
2202
+ When the record is created, a check is performed to make sure that no record exist in the database with the given value for the specified
2203
+ attribute (that maps to a column). When the record is updated, the same check is made but disregarding the record itself.
2204
+
2205
+
2206
+ * Added Base.validates_confirmation_of that encapsulates the pattern of wanting to validate a password or email address field with a confirmation. Example:
2207
+
2208
+ Model:
2209
+ class Person < ActiveRecord::Base
2210
+ validates_confirmation_of :password
2211
+ end
2212
+
2213
+ View:
2214
+ <%= password_field "person", "password" %>
2215
+ <%= password_field "person", "password_confirmation" %>
2216
+
2217
+ The person has to already have a password attribute (a column in the people table), but the password_confirmation is virtual.
2218
+ It exists only as an in-memory variable for validating the password. This check is performed both on create and update.
2219
+
2220
+
2221
+ * Added Base.validates_acceptance_of that encapsulates the pattern of wanting to validate the acceptance of a terms of service check box (or similar agreement). Example:
2222
+
2223
+ class Person < ActiveRecord::Base
2224
+ validates_acceptance_of :terms_of_service
2225
+ end
2226
+
2227
+ The terms_of_service attribute is entirely virtual. No database column is needed. This check is performed both on create and update.
2228
+
2229
+ NOTE: The agreement is considered valid if it's set to the string "1". This makes it easy to relate it to an HTML checkbox.
2230
+
2231
+
2232
+ * Added validation macros to make the stackable just like the lifecycle callbacks. Examples:
2233
+
2234
+ class Person < ActiveRecord::Base
2235
+ validate { |record| record.errors.add("name", "too short") unless name.size > 10 }
2236
+ validate { |record| record.errors.add("name", "too long") unless name.size < 20 }
2237
+ validate_on_create :validate_password
2238
+
2239
+ private
2240
+ def validate_password
2241
+ errors.add("password", "too short") unless password.size > 6
2242
+ end
2243
+ end
2244
+
2245
+ * Added the option for sanitizing find_by_sql and the offset parts in regular finds [Sam Stephenson]. Examples:
2246
+
2247
+ Project.find_all ["category = ?", category_name], "created ASC", ["? OFFSET ?", 15, 20]
2248
+ Post.find_by_sql ["SELECT * FROM posts WHERE author = ? AND created > ?", author_id, start_date]
2249
+
2250
+ * Fixed value quoting in all generated SQL statements, so that integers are not surrounded in quotes and that all sanitation are happening
2251
+ through the database's own quoting routine. This should hopefully make it lots easier for new adapters that doesn't accept '1' for integer
2252
+ columns.
2253
+
2254
+ * Fixed has_and_belongs_to_many guessing of foreign key so that keys are generated correctly for models like SomeVerySpecialClient
2255
+ [Florian Weber]
2256
+
2257
+ * Added counter_sql option for has_many associations [Jeremy Kemper]. Documentation:
2258
+
2259
+ <tt>:counter_sql</tt> - specify a complete SQL statement to fetch the size of the association. If +:finder_sql+ is
2260
+ specified but +:counter_sql+, +:counter_sql+ will be generated by replacing SELECT ... FROM with SELECT COUNT(*) FROM.
2261
+
2262
+ * Fixed that methods wrapped in callbacks still return their original result #260 [Jeremy Kemper]
2263
+
2264
+ * Fixed the Inflector to handle the movie/movies pair correctly #261 [Scott Baron]
2265
+
2266
+ * Added named bind-style variable interpolation #281 [Michael Koziarski]. Example:
2267
+
2268
+ Person.find(["id = :id and first_name = :first_name", { :id => 5, :first_name = "bob' or 1=1" }])
2269
+
2270
+ * Added bind-style variable interpolation for the condition arrays that uses the adapter's quote method [Michael Koziarski]
2271
+
2272
+ Before:
2273
+ find_first([ "user_name = '%s' AND password = '%s'", user_name, password ])]
2274
+ find_first([ "firm_id = %s", firm_id ])] # unsafe!
2275
+
2276
+ After:
2277
+ find_first([ "user_name = ? AND password = ?", user_name, password ])]
2278
+ find_first([ "firm_id = ?", firm_id ])]
2279
+
2280
+ * Added CSV format for fixtures #272 [what-a-day]. (See the new and expanded documentation on fixtures for more information)
2281
+
2282
+ * Fixed fixtures using primary key fields called something else than "id" [dave]
2283
+
2284
+ * Added proper handling of time fields that are turned into Time objects with the dummy date of 2000/1/1 [HariSeldon]
2285
+
2286
+ * Added reverse order of deleting fixtures, so referential keys can be maintained #247 [Tim Bates]
2287
+
2288
+ * Added relative path search for sqlite dbfiles in database.yml (if RAILS_ROOT is defined) #233 [Jeremy Kemper]
2289
+
2290
+ * Added option to establish_connection where you'll be able to leave out the parameter to have it use the RAILS_ENV environment variable
2291
+
2292
+ * Fixed problems with primary keys and postgresql sequences (#230) [Tim Bates]
2293
+
2294
+ * Added reloading for associations under cached environments like FastCGI and mod_ruby. This makes it possible to use those environments for development.
2295
+ This is turned on by default, but can be turned off with ActiveRecord::Base.reload_dependencies = false in production environments.
2296
+
2297
+ NOTE: This will only have an effect if you let the associations manage the requiring of model classes. All libraries loaded through
2298
+ require will be "forever" cached. You can, however, use ActiveRecord::Base.load_or_require("library") to get this behavior outside of the
2299
+ auto-loading associations.
2300
+
2301
+ * Added ERB capabilities to the fixture files for dynamic fixture generation. You don't need to do anything, just include ERB blocks like:
2302
+
2303
+ david:
2304
+ id: 1
2305
+ name: David
2306
+
2307
+ jamis:
2308
+ id: 2
2309
+ name: Jamis
2310
+
2311
+ <% for digit in 3..10 %>
2312
+ dev_<%= digit %>:
2313
+ id: <%= digit %>
2314
+ name: fixture_<%= digit %>
2315
+ <% end %>
2316
+
2317
+ * Changed the yaml fixture searcher to look in the root of the fixtures directory, so when you before could have something like:
2318
+
2319
+ fixtures/developers/fixtures.yaml
2320
+ fixtures/accounts/fixtures.yaml
2321
+
2322
+ ...you now need to do:
2323
+
2324
+ fixtures/developers.yaml
2325
+ fixtures/accounts.yaml
2326
+
2327
+ * Changed the fixture format from:
2328
+
2329
+ name: david
2330
+ data:
2331
+ id: 1
2332
+ name: David Heinemeier Hansson
2333
+ birthday: 1979-10-15
2334
+ profession: Systems development
2335
+ ---
2336
+ name: steve
2337
+ data:
2338
+ id: 2
2339
+ name: Steve Ross Kellock
2340
+ birthday: 1974-09-27
2341
+ profession: guy with keyboard
2342
+
2343
+ ...to:
2344
+
2345
+ david:
2346
+ id: 1
2347
+ name: David Heinemeier Hansson
2348
+ birthday: 1979-10-15
2349
+ profession: Systems development
2350
+
2351
+ steve:
2352
+ id: 2
2353
+ name: Steve Ross Kellock
2354
+ birthday: 1974-09-27
2355
+ profession: guy with keyboard
2356
+
2357
+ The change is NOT backwards compatible. Fixtures written in the old YAML style needs to be rewritten!
2358
+
2359
+ * All associations will now attempt to require the classes that they associate to. Relieving the need for most explicit 'require' statements.
2360
+
2361
+
2362
+ *1.1.0* (34)
2363
+
2364
+ * Added automatic fixture setup and instance variable availability. Fixtures can also be automatically
2365
+ instantiated in instance variables relating to their names using the following style:
2366
+
2367
+ class FixturesTest < Test::Unit::TestCase
2368
+ fixtures :developers # you can add more with comma separation
2369
+
2370
+ def test_developers
2371
+ assert_equal 3, @developers.size # the container for all the fixtures is automatically set
2372
+ assert_kind_of Developer, @david # works like @developers["david"].find
2373
+ assert_equal "David Heinemeier Hansson", @david.name
2374
+ end
2375
+ end
2376
+
2377
+ * Added HasAndBelongsToManyAssociation#push_with_attributes(object, join_attributes) that can create associations in the join table with additional
2378
+ attributes. This is really useful when you have information that's only relevant to the join itself, such as a "added_on" column for an association
2379
+ between post and category. The added attributes will automatically be injected into objects retrieved through the association similar to the piggy-back
2380
+ approach:
2381
+
2382
+ post.categories.push_with_attributes(category, :added_on => Date.today)
2383
+ post.categories.first.added_on # => Date.today
2384
+
2385
+ NOTE: The categories table doesn't have a added_on column, it's the categories_post join table that does!
2386
+
2387
+ * Fixed that :exclusively_dependent and :dependent can't be activated at the same time on has_many associations [Jeremy Kemper]
2388
+
2389
+ * Fixed that database passwords couldn't be all numeric [Jeremy Kemper]
2390
+
2391
+ * Fixed that calling id would create the instance variable for new_records preventing them from being saved correctly [Jeremy Kemper]
2392
+
2393
+ * Added sanitization feature to HasManyAssociation#find_all so it works just like Base.find_all [Sam Stephenson/bitsweat]
2394
+
2395
+ * Added that you can pass overlapping ids to find without getting duplicated records back [Jeremy Kemper]
2396
+
2397
+ * Added that Base.benchmark returns the result of the block [Jeremy Kemper]
2398
+
2399
+ * Fixed problem with unit tests on Windows with SQLite [paterno]
2400
+
2401
+ * Fixed that quotes would break regular non-yaml fixtures [Dmitry Sabanin/daft]
2402
+
2403
+ * Fixed fixtures on windows with line endings cause problems under unix / mac [Tobias Luetke]
2404
+
2405
+ * Added HasAndBelongsToManyAssociation#find(id) that'll search inside the collection and find the object or record with that id
2406
+
2407
+ * Added :conditions option to has_and_belongs_to_many that works just like the one on all the other associations
2408
+
2409
+ * Added AssociationCollection#clear to remove all associations from has_many and has_and_belongs_to_many associations without destroying the records [geech]
2410
+
2411
+ * Added type-checking and remove in 1-instead-of-N sql statements to AssociationCollection#delete [geech]
2412
+
2413
+ * Added a return of self to AssociationCollection#<< so appending can be chained, like project << Milestone.create << Milestone.create [geech]
2414
+
2415
+ * Added Base#hash and Base#eql? which means that all of the equality using features of array and other containers now works:
2416
+
2417
+ [ Person.find(1), Person.find(2), Person.find(3) ] & [ Person.find(1), Person.find(4) ] # => [ Person.find(1) ]
2418
+
2419
+ * Added :uniq as an option to has_and_belongs_to_many which will automatically ensure that AssociateCollection#uniq is called
2420
+ before pulling records out of the association. This is especially useful for three-way (and above) has_and_belongs_to_many associations.
2421
+
2422
+ * Added AssociateCollection#uniq which is especially useful for has_and_belongs_to_many associations that can include duplicates,
2423
+ which is common on associations that also use metadata. Usage: post.categories.uniq
2424
+
2425
+ * Fixed respond_to? to use a subclass specific hash instead of an Active Record-wide one
2426
+
2427
+ * Fixed has_and_belongs_to_many to treat associations between classes in modules properly [Florian Weber]
2428
+
2429
+ * Added a NoMethod exception to be raised when query and writer methods are called for attributes that doesn't exist [geech]
2430
+
2431
+ * Added a more robust version of Fixtures that throws meaningful errors when on formatting issues [geech]
2432
+
2433
+ * Added Base#transaction as a compliment to Base.transaction for prettier use in instance methods [geech]
2434
+
2435
+ * Improved the speed of respond_to? by placing the dynamic methods lookup table in a hash [geech]
2436
+
2437
+ * Added that any additional fields added to the join table in a has_and_belongs_to_many association
2438
+ will be placed as attributes when pulling records out through has_and_belongs_to_many associations.
2439
+ This is helpful when have information about the association itself that you want available on retrival.
2440
+
2441
+ * Added better loading exception catching and RubyGems retries to the database adapters [alexeyv]
2442
+
2443
+ * Fixed bug with per-model transactions [daniel]
2444
+
2445
+ * Fixed Base#transaction so that it returns the result of the last expression in the transaction block [alexeyv]
2446
+
2447
+ * Added Fixture#find to find the record corresponding to the fixture id. The record
2448
+ class name is guessed by using Inflector#classify (also new) on the fixture directory name.
2449
+
2450
+ Before: Document.find(@documents["first"]["id"])
2451
+ After : @documents["first"].find
2452
+
2453
+ * Fixed that the table name part of column names ("TABLE.COLUMN") wasn't removed properly [Andreas Schwarz]
2454
+
2455
+ * Fixed a bug with Base#size when a finder_sql was used that didn't capitalize SELECT and FROM [geech]
2456
+
2457
+ * Fixed quoting problems on SQLite by adding quote_string to the AbstractAdapter that can be overwritten by the concrete
2458
+ adapters for a call to the dbm. [Andreas Schwarz]
2459
+
2460
+ * Removed RubyGems backup strategy for requiring SQLite-adapter -- if people want to use gems, they're already doing it with AR.
2461
+
2462
+
2463
+ *1.0.0 (35)*
2464
+
2465
+ * Added OO-style associations methods [Florian Weber]. Examples:
2466
+
2467
+ Project#milestones_count => Project#milestones.size
2468
+ Project#build_to_milestones => Project#milestones.build
2469
+ Project#create_for_milestones => Project#milestones.create
2470
+ Project#find_in_milestones => Project#milestones.find
2471
+ Project#find_all_in_milestones => Project#milestones.find_all
2472
+
2473
+ * Added serialize as a new class method to control when text attributes should be YAMLized or not. This means that automated
2474
+ serialization of hashes, arrays, and so on WILL NO LONGER HAPPEN (#10). You need to do something like this:
2475
+
2476
+ class User < ActiveRecord::Base
2477
+ serialize :settings
2478
+ end
2479
+
2480
+ This will assume that settings is a text column and will now YAMLize any object put in that attribute. You can also specify
2481
+ an optional :class_name option that'll raise an exception if a serialized object is retrieved as a descendent of a class not in
2482
+ the hierarchy. Example:
2483
+
2484
+ class User < ActiveRecord::Base
2485
+ serialize :settings, :class_name => "Hash"
2486
+ end
2487
+
2488
+ user = User.create("settings" => %w( one two three ))
2489
+ User.find(user.id).settings # => raises SerializationTypeMismatch
2490
+
2491
+ * Added the option to connect to a different database for one model at a time. Just call establish_connection on the class
2492
+ you want to have connected to another database than Base. This will automatically also connect decendents of that class
2493
+ to the different database [Renald Buter].
2494
+
2495
+ * Added transactional protection for Base#save. Validations can now check for values knowing that it happens in a transaction and callbacks
2496
+ can raise exceptions knowing that the save will be rolled back. [Suggested by Alexey Verkhovsky]
2497
+
2498
+ * Added column name quoting so reserved words, such as "references", can be used as column names [Ryan Platte]
2499
+
2500
+ * Added the possibility to chain the return of what happened inside a logged block [geech]:
2501
+
2502
+ This now works:
2503
+ log { ... }.map { ... }
2504
+
2505
+ Instead of doing:
2506
+ result = []
2507
+ log { result = ... }
2508
+ result.map { ... }
2509
+
2510
+ * Added "socket" option for the MySQL adapter, so you can change it to something else than "/tmp/mysql.sock" [Anna Lissa Cruz]
2511
+
2512
+ * Added respond_to? answers for all the attribute methods. So if Person has a name attribute retrieved from the table schema,
2513
+ person.respond_to? "name" will return true.
2514
+
2515
+ * Added Base.benchmark which can be used to aggregate logging and benchmark, so you can measure and represent multiple statements in a single block.
2516
+ Usage (hides all the SQL calls for the individual actions and calculates total runtime for them all):
2517
+
2518
+ Project.benchmark("Creating project") do
2519
+ project = Project.create("name" => "stuff")
2520
+ project.create_manager("name" => "David")
2521
+ project.milestones << Milestone.find_all
2522
+ end
2523
+
2524
+ * Added logging of invalid SQL statements [Suggested by Daniel Von Fange]
2525
+
2526
+ * Added alias Errors#[] for Errors#on, so you can now say person.errors["name"] to retrieve the errors for name [Andreas Schwarz]
2527
+
2528
+ * Added RubyGems require attempt if sqlite-ruby is not available through regular methods.
2529
+
2530
+ * Added compatibility with 2.x series of sqlite-ruby drivers. [Jamis Buck]
2531
+
2532
+ * Added type safety for association assignments, so a ActiveRecord::AssociationTypeMismatch will be raised if you attempt to
2533
+ assign an object that's not of the associated class. This cures the problem with nil giving id = 4 and fixnums giving id = 1 on
2534
+ mistaken association assignments. [Reported by Andreas Schwarz]
2535
+
2536
+ * Added the option to keep many fixtures in one single YAML document [what-a-day]
2537
+
2538
+ * Added the class method "inheritance_column" that can be overwritten to return the name of an alternative column than "type" for storing
2539
+ the type for inheritance hierarchies. [Dave Steinberg]
2540
+
2541
+ * Added [] and []= as an alternative way to access attributes when the regular methods have been overwritten [Dave Steinberg]
2542
+
2543
+ * Added the option to observer more than one class at the time by specifying observed_class as an array
2544
+
2545
+ * Added auto-id propagation support for tables with arbitrary primary keys that have autogenerated sequences associated with them
2546
+ on PostgreSQL. [Dave Steinberg]
2547
+
2548
+ * Changed that integer and floats set to "" through attributes= remain as NULL. This was especially a problem for scaffolding and postgresql. (#49)
2549
+
2550
+ * Changed the MySQL Adapter to rely on MySQL for its defaults for socket, host, and port [Andreas Schwarz]
2551
+
2552
+ * Changed ActionControllerError to decent from StandardError instead of Exception. It can now be caught by a generic rescue.
2553
+
2554
+ * Changed class inheritable attributes to not use eval [Caio Chassot]
2555
+
2556
+ * Changed Errors#add to now use "invalid" as the default message instead of true, which means full_messages work with those [Marcel Molina Jr]
2557
+
2558
+ * Fixed spelling on Base#add_on_boundry_breaking to Base#add_on_boundary_breaking (old naming still works) [Marcel Molina Jr.]
2559
+
2560
+ * Fixed that entries in the has_and_belongs_to_many join table didn't get removed when an associated object was destroyed.
2561
+
2562
+ * Fixed unnecessary calls to SET AUTOCOMMIT=0/1 for MySQL adapter [Andreas Schwarz]
2563
+
2564
+ * Fixed PostgreSQL defaults are now handled gracefully [Dave Steinberg]
2565
+
2566
+ * Fixed increment/decrement_counter are now atomic updates [Andreas Schwarz]
2567
+
2568
+ * Fixed the problems the Inflector had turning Attachment into attuchments and Cases into Casis [radsaq/Florian Gross]
2569
+
2570
+ * Fixed that cloned records would point attribute references on the parent object [Andreas Schwarz]
2571
+
2572
+ * Fixed SQL for type call on inheritance hierarchies [Caio Chassot]
2573
+
2574
+ * Fixed bug with typed inheritance [Florian Weber]
2575
+
2576
+ * Fixed a bug where has_many collection_count wouldn't use the conditions specified for that association
2577
+
2578
+
2579
+ *0.9.5*
2580
+
2581
+ * Expanded the table_name guessing rules immensely [Florian Green]. Documentation:
2582
+
2583
+ Guesses the table name (in forced lower-case) based on the name of the class in the inheritance hierarchy descending
2584
+ directly from ActiveRecord. So if the hierarchy looks like: Reply < Message < ActiveRecord, then Message is used
2585
+ to guess the table name from even when called on Reply. The guessing rules are as follows:
2586
+ * Class name ends in "x", "ch" or "ss": "es" is appended, so a Search class becomes a searches table.
2587
+ * Class name ends in "y" preceded by a consonant or "qu": The "y" is replaced with "ies",
2588
+ so a Category class becomes a categories table.
2589
+ * Class name ends in "fe": The "fe" is replaced with "ves", so a Wife class becomes a wives table.
2590
+ * Class name ends in "lf" or "rf": The "f" is replaced with "ves", so a Half class becomes a halves table.
2591
+ * Class name ends in "person": The "person" is replaced with "people", so a Salesperson class becomes a salespeople table.
2592
+ * Class name ends in "man": The "man" is replaced with "men", so a Spokesman class becomes a spokesmen table.
2593
+ * Class name ends in "sis": The "i" is replaced with an "e", so a Basis class becomes a bases table.
2594
+ * Class name ends in "tum" or "ium": The "um" is replaced with an "a", so a Datum class becomes a data table.
2595
+ * Class name ends in "child": The "child" is replaced with "children", so a NodeChild class becomes a node_children table.
2596
+ * Class name ends in an "s": No additional characters are added or removed.
2597
+ * Class name doesn't end in "s": An "s" is appended, so a Comment class becomes a comments table.
2598
+ * Class name with word compositions: Compositions are underscored, so CreditCard class becomes a credit_cards table.
2599
+ Additionally, the class-level table_name_prefix is prepended to the table_name and the table_name_suffix is appended.
2600
+ So if you have "myapp_" as a prefix, the table name guess for an Account class becomes "myapp_accounts".
2601
+
2602
+ You can also overwrite this class method to allow for unguessable links, such as a Mouse class with a link to a
2603
+ "mice" table. Example:
2604
+
2605
+ class Mouse < ActiveRecord::Base
2606
+ def self.table_name() "mice" end
2607
+ end
2608
+
2609
+ This conversion is now done through an external class called Inflector residing in lib/active_record/support/inflector.rb.
2610
+
2611
+ * Added find_all_in_collection to has_many defined collections. Works like this:
2612
+
2613
+ class Firm < ActiveRecord::Base
2614
+ has_many :clients
2615
+ end
2616
+
2617
+ firm.id # => 1
2618
+ firm.find_all_in_clients "revenue > 1000" # SELECT * FROM clients WHERE firm_id = 1 AND revenue > 1000
2619
+
2620
+ [Requested by Dave Thomas]
2621
+
2622
+ * Fixed finders for inheritance hierarchies deeper than one level [Florian Weber]
2623
+
2624
+ * Added add_on_boundry_breaking to errors to accompany add_on_empty as a default validation method. It's used like this:
2625
+
2626
+ class Person < ActiveRecord::Base
2627
+ protected
2628
+ def validation
2629
+ errors.add_on_boundry_breaking "password", 3..20
2630
+ end
2631
+ end
2632
+
2633
+ This will add an error to the tune of "is too short (minimum is 3 characters)" or "is too long (minimum is 20 characters)" if
2634
+ the password is outside the boundry. The messages can be changed by passing a third and forth parameter as message strings.
2635
+
2636
+ * Implemented a clone method that works properly with AR. It returns a clone of the record that
2637
+ hasn't been assigned an id yet and is treated as a new record.
2638
+
2639
+ * Allow for domain sockets in PostgreSQL by not assuming localhost when no host is specified [Scott Barron]
2640
+
2641
+ * Fixed that bignums are saved properly instead of attempted to be YAMLized [Andreas Schwartz]
2642
+
2643
+ * Fixed a bug in the GEM where the rdoc options weren't being passed according to spec [Chad Fowler]
2644
+
2645
+ * Fixed a bug with the exclusively_dependent option for has_many
2646
+
2647
+
2648
+ *0.9.4*
2649
+
2650
+ * Correctly guesses the primary key when the class is inside a module [Dave Steinberg].
2651
+
2652
+ * Added [] and []= as alternatives to read_attribute and write_attribute [Dave Steinberg]
2653
+
2654
+ * has_and_belongs_to_many now accepts an :order key to determine in which order the collection is returned [radsaq].
2655
+
2656
+ * The ids passed to find and find_on_conditions are now automatically sanitized.
2657
+
2658
+ * Added escaping of plings in YAML content.
2659
+
2660
+ * Multi-parameter assigns where all the parameters are empty will now be set to nil instead of a new instance of their class.
2661
+
2662
+ * Proper type within an inheritance hierarchy is now ensured already at object initialization (instead of first at create)
2663
+
2664
+
2665
+ *0.9.3*
2666
+
2667
+ * Fixed bug with using a different primary key name together with has_and_belongs_to_many [Investigation by Scott]
2668
+
2669
+ * Added :exclusively_dependent option to the has_many association macro. The doc reads:
2670
+
2671
+ If set to true all the associated object are deleted in one SQL statement without having their
2672
+ before_destroy callback run. This should only be used on associations that depend solely on
2673
+ this class and don't need to do any clean-up in before_destroy. The upside is that it's much
2674
+ faster, especially if there's a counter_cache involved.
2675
+
2676
+ * Added :port key to connection options, so the PostgreSQL and MySQL adapters can connect to a database server
2677
+ running on another port than the default.
2678
+
2679
+ * Converted the new natural singleton methods that prevented AR objects from being saved by PStore
2680
+ (and hence be placed in a Rails session) to a module. [Florian Weber]
2681
+
2682
+ * Fixed the use of floats (was broken since 0.9.0+)
2683
+
2684
+ * Fixed PostgreSQL adapter so default values are displayed properly when used in conjunction with
2685
+ Action Pack scaffolding.
2686
+
2687
+ * Fixed booleans support for PostgreSQL (use real true/false on boolean fields instead of 0/1 on tinyints) [radsaq]
2688
+
2689
+
2690
+ *0.9.2*
2691
+
2692
+ * Added static method for instantly updating a record
2693
+
2694
+ * Treat decimal and numeric as Ruby floats [Andreas Schwartz]
2695
+
2696
+ * Treat chars as Ruby strings (fixes problem for Action Pack form helpers too)
2697
+
2698
+ * Removed debugging output accidently left in (which would screw web applications)
2699
+
2700
+
2701
+ *0.9.1*
2702
+
2703
+ * Added MIT license
2704
+
2705
+ * Added natural object-style assignment for has_and_belongs_to_many associations. Consider the following model:
2706
+
2707
+ class Event < ActiveRecord::Base
2708
+ has_one_and_belongs_to_many :sponsors
2709
+ end
2710
+
2711
+ class Sponsor < ActiveRecord::Base
2712
+ has_one_and_belongs_to_many :sponsors
2713
+ end
2714
+
2715
+ Earlier, you'd have to use synthetic methods for creating associations between two objects of the above class:
2716
+
2717
+ roskilde_festival.add_to_sponsors(carlsberg)
2718
+ roskilde_festival.remove_from_sponsors(carlsberg)
2719
+
2720
+ nike.add_to_events(world_cup)
2721
+ nike.remove_from_events(world_cup)
2722
+
2723
+ Now you can use regular array-styled methods:
2724
+
2725
+ roskilde_festival.sponsors << carlsberg
2726
+ roskilde_festival.sponsors.delete(carlsberg)
2727
+
2728
+ nike.events << world_cup
2729
+ nike.events.delete(world_cup)
2730
+
2731
+ * Added delete method for has_many associations. Using this will nullify an association between the has_many and the belonging
2732
+ object by setting the foreign key to null. Consider this model:
2733
+
2734
+ class Post < ActiveRecord::Base
2735
+ has_many :comments
2736
+ end
2737
+
2738
+ class Comment < ActiveRecord::Base
2739
+ belongs_to :post
2740
+ end
2741
+
2742
+ You could do something like:
2743
+
2744
+ funny_comment.has_post? # => true
2745
+ announcement.comments.delete(funny_comment)
2746
+ funny_comment.has_post? # => false
2747
+
2748
+
2749
+ *0.9.0*
2750
+
2751
+ * Active Record is now thread safe! (So you can use it with Cerise and WEBrick applications)
2752
+ [Implementation idea by Michael Neumann, debugging assistance by Jamis Buck]
2753
+
2754
+ * Improved performance by roughly 400% on a basic test case of pulling 100 records and querying one attribute.
2755
+ This brings the tax for using Active Record instead of "riding on the metal" (using MySQL-ruby C-driver directly) down to ~50%.
2756
+ Done by doing lazy type conversions and caching column information on the class-level.
2757
+
2758
+ * Added callback objects and procs as options for implementing the target for callback macros.
2759
+
2760
+ * Added "counter_cache" option to belongs_to that automates the usage of increment_counter and decrement_counter. Consider:
2761
+
2762
+ class Post < ActiveRecord::Base
2763
+ has_many :comments
2764
+ end
2765
+
2766
+ class Comment < ActiveRecord::Base
2767
+ belongs_to :post
2768
+ end
2769
+
2770
+ Iterating over 100 posts like this:
2771
+
2772
+ <% for post in @posts %>
2773
+ <%= post.title %> has <%= post.comments_count %> comments
2774
+ <% end %>
2775
+
2776
+ Will generate 100 SQL count queries -- one for each call to post.comments_count. If you instead add a "comments_count" int column
2777
+ to the posts table and rewrite the comments association macro with:
2778
+
2779
+ class Comment < ActiveRecord::Base
2780
+ belongs_to :post, :counter_cache => true
2781
+ end
2782
+
2783
+ Those 100 SQL count queries will be reduced to zero. Beware that counter caching is only appropriate for objects that begin life
2784
+ with the object it's specified to belong with and is destroyed like that as well. Typically objects where you would also specify
2785
+ :dependent => true. If your objects switch from one belonging to another (like a post that can be move from one category to another),
2786
+ you'll have to manage the counter yourself.
2787
+
2788
+ * Added natural object-style assignment for has_one and belongs_to associations. Consider the following model:
2789
+
2790
+ class Project < ActiveRecord::Base
2791
+ has_one :manager
2792
+ end
2793
+
2794
+ class Manager < ActiveRecord::Base
2795
+ belongs_to :project
2796
+ end
2797
+
2798
+ Earlier, assignments would work like following regardless of which way the assignment told the best story:
2799
+
2800
+ active_record.manager_id = david.id
2801
+
2802
+ Now you can do it either from the belonging side:
2803
+
2804
+ david.project = active_record
2805
+
2806
+ ...or from the having side:
2807
+
2808
+ active_record.manager = david
2809
+
2810
+ If the assignment happens from the having side, the assigned object is automatically saved. So in the example above, the
2811
+ project_id attribute on david would be set to the id of active_record, then david would be saved.
2812
+
2813
+ * Added natural object-style assignment for has_many associations [Florian Weber]. Consider the following model:
2814
+
2815
+ class Project < ActiveRecord::Base
2816
+ has_many :milestones
2817
+ end
2818
+
2819
+ class Milestone < ActiveRecord::Base
2820
+ belongs_to :project
2821
+ end
2822
+
2823
+ Earlier, assignments would work like following regardless of which way the assignment told the best story:
2824
+
2825
+ deadline.project_id = active_record.id
2826
+
2827
+ Now you can do it either from the belonging side:
2828
+
2829
+ deadline.project = active_record
2830
+
2831
+ ...or from the having side:
2832
+
2833
+ active_record.milestones << deadline
2834
+
2835
+ The milestone is automatically saved with the new foreign key.
2836
+
2837
+ * API CHANGE: Attributes for text (or blob or similar) columns will now have unknown classes stored using YAML instead of using
2838
+ to_s. (Known classes that won't be yamelized are: String, NilClass, TrueClass, FalseClass, Fixnum, Date, and Time).
2839
+ Likewise, data pulled out of text-based attributes will be attempted converged using Yaml if they have the "--- " header.
2840
+ This was primarily done to be enable the storage of hashes and arrays without wrapping them in aggregations, so now you can do:
2841
+
2842
+ user = User.find(1)
2843
+ user.preferences = { "background" => "black", "display" => large }
2844
+ user.save
2845
+
2846
+ User.find(1).preferences # => { "background" => "black", "display" => large }
2847
+
2848
+ Please note that this method should only be used when you don't care about representing the object in proper columns in
2849
+ the database. A money object consisting of an amount and a currency is still a much better fit for a value object done through
2850
+ aggregations than this new option.
2851
+
2852
+ * POSSIBLE CODE BREAKAGE: As a consequence of the lazy type conversions, it's a bad idea to reference the @attributes hash
2853
+ directly (it always was, but now it's paramount that you don't). If you do, you won't get the type conversion. So to implement
2854
+ new accessors for existing attributes, use read_attribute(attr_name) and write_attribute(attr_name, value) instead. Like this:
2855
+
2856
+ class Song < ActiveRecord::Base
2857
+ # Uses an integer of seconds to hold the length of the song
2858
+
2859
+ def length=(minutes)
2860
+ write_attribute("length", minutes * 60)
2861
+ end
2862
+
2863
+ def length
2864
+ read_attribute("length") / 60
2865
+ end
2866
+ end
2867
+
2868
+ The clever kid will notice that this opens a door to sidestep the automated type conversion by using @attributes directly.
2869
+ This is not recommended as read/write_attribute may be granted additional responsibilities in the future, but if you think
2870
+ you know what you're doing and aren't afraid of future consequences, this is an option.
2871
+
2872
+ * Applied a few minor bug fixes reported by Daniel Von Fange.
2873
+
2874
+
2875
+ *0.8.4*
2876
+
2877
+ _Reflection_
2878
+
2879
+ * Added ActiveRecord::Reflection with a bunch of methods and classes for reflecting in aggregations and associations.
2880
+
2881
+ * Added Base.columns and Base.content_columns which returns arrays of column description (type, default, etc) objects.
2882
+
2883
+ * Added Base#attribute_names which returns an array of names for the attributes available on the object.
2884
+
2885
+ * Added Base#column_for_attribute(name) which returns the column description object for the named attribute.
2886
+
2887
+
2888
+ _Misc_
2889
+
2890
+ * Added multi-parameter assignment:
2891
+
2892
+ # Instantiate objects for all attribute classes that needs more than one constructor parameter. This is done
2893
+ # by calling new on the column type or aggregation type (through composed_of) object with these parameters.
2894
+ # So having the pairs written_on(1) = "2004", written_on(2) = "6", written_on(3) = "24", will instantiate
2895
+ # written_on (a date type) with Date.new("2004", "6", "24"). You can also specify a typecast character in the
2896
+ # parenteses to have the parameters typecasted before they're used in the constructor. Use i for Fixnum, f for Float,
2897
+ # s for String, and a for Array.
2898
+
2899
+ This is incredibly useful for assigning dates from HTML drop-downs of month, year, and day.
2900
+
2901
+ * Fixed bug with custom primary key column name and Base.find on multiple parameters.
2902
+
2903
+ * Fixed bug with dependent option on has_one associations if there was no associated object.
2904
+
2905
+
2906
+ *0.8.3*
2907
+
2908
+ _Transactions_
2909
+
2910
+ * Added transactional protection for destroy (important for the new :dependent option) [Suggested by Carl Youngblood]
2911
+
2912
+ * Fixed so transactions are ignored on MyISAM tables for MySQL (use InnoDB to get transactions)
2913
+
2914
+ * Changed transactions so only exceptions will cause a rollback, not returned false.
2915
+
2916
+
2917
+ _Mapping_
2918
+
2919
+ * Added support for non-integer primary keys [Aredridel/earlier work by Michael Neumann]
2920
+
2921
+ User.find "jdoe"
2922
+ Product.find "PDKEY-INT-12"
2923
+
2924
+ * Added option to specify naming method for primary key column. ActiveRecord::Base.primary_key_prefix_type can either
2925
+ be set to nil, :table_name, or :table_name_with_underscore. :table_name will assume that Product class has a primary key
2926
+ of "productid" and :table_name_with_underscore will assume "product_id". The default nil will just give "id".
2927
+
2928
+ * Added an overwriteable primary_key method that'll instruct AR to the name of the
2929
+ id column [Aredridele/earlier work by Guan Yang]
2930
+
2931
+ class Project < ActiveRecord::Base
2932
+ def self.primary_key() "project_id" end
2933
+ end
2934
+
2935
+ * Fixed that Active Records can safely associate inside and out of modules.
2936
+
2937
+ class MyApplication::Account < ActiveRecord::Base
2938
+ has_many :clients # will look for MyApplication::Client
2939
+ has_many :interests, :class_name => "Business::Interest" # will look for Business::Interest
2940
+ end
2941
+
2942
+ * Fixed that Active Records can safely live inside modules [Aredridel]
2943
+
2944
+ class MyApplication::Account < ActiveRecord::Base
2945
+ end
2946
+
2947
+
2948
+ _Misc_
2949
+
2950
+ * Added freeze call to value object assignments to ensure they remain immutable [Spotted by Gavin Sinclair]
2951
+
2952
+ * Changed interface for specifying observed class in observers. Was OBSERVED_CLASS constant, now is
2953
+ observed_class() class method. This is more consistant with things like self.table_name(). Works like this:
2954
+
2955
+ class AuditObserver < ActiveRecord::Observer
2956
+ def self.observed_class() Account end
2957
+ def after_update(account)
2958
+ AuditTrail.new(account, "UPDATED")
2959
+ end
2960
+ end
2961
+
2962
+ [Suggested by Gavin Sinclair]
2963
+
2964
+ * Create new Active Record objects by setting the attributes through a block. Like this:
2965
+
2966
+ person = Person.new do |p|
2967
+ p.name = 'Freddy'
2968
+ p.age = 19
2969
+ end
2970
+
2971
+ [Suggested by Gavin Sinclair]
2972
+
2973
+
2974
+ *0.8.2*
2975
+
2976
+ * Added inheritable callback queues that can ensure that certain callback methods or inline fragments are
2977
+ run throughout the entire inheritance hierarchy. Regardless of whether a descendent overwrites the callback
2978
+ method:
2979
+
2980
+ class Topic < ActiveRecord::Base
2981
+ before_destroy :destroy_author, 'puts "I'm an inline fragment"'
2982
+ end
2983
+
2984
+ Learn more in link:classes/ActiveRecord/Callbacks.html
2985
+
2986
+ * Added :dependent option to has_many and has_one, which will automatically destroy associated objects when
2987
+ the holder is destroyed:
2988
+
2989
+ class Album < ActiveRecord::Base
2990
+ has_many :tracks, :dependent => true
2991
+ end
2992
+
2993
+ All the associated tracks are destroyed when the album is.
2994
+
2995
+ * Added Base.create as a factory that'll create, save, and return a new object in one step.
2996
+
2997
+ * Automatically convert strings in config hashes to symbols for the _connection methods. This allows you
2998
+ to pass the argument hashes directly from yaml. (Luke)
2999
+
3000
+ * Fixed the install.rb to include simple.rb [Spotted by Kevin Bullock]
3001
+
3002
+ * Modified block syntax to better follow our code standards outlined in
3003
+ http://www.rubyonrails.org/CodingStandards
3004
+
3005
+
3006
+ *0.8.1*
3007
+
3008
+ * Added object-level transactions [Thanks to Austin Ziegler for Transaction::Simple]
3009
+
3010
+ * Changed adapter-specific connection methods to use centralized ActiveRecord::Base.establish_connection,
3011
+ which is parametized through a config hash with symbol keys instead of a regular parameter list.
3012
+ This will allow for database connections to be opened in a more generic fashion. (Luke)
3013
+
3014
+ NOTE: This requires all *_connections to be updated! Read more in:
3015
+ http://ar.rubyonrails.org/classes/ActiveRecord/Base.html#M000081
3016
+
3017
+ * Fixed SQLite adapter so objects fetched from has_and_belongs_to_many have proper attributes
3018
+ (t.name is now name). [Spotted by Garrett Rooney]
3019
+
3020
+ * Fixed SQLite adapter so dates are returned as Date objects, not Time objects [Spotted by Gavin Sinclair]
3021
+
3022
+ * Fixed requirement of date class, so date conversions are succesful regardless of whether you
3023
+ manually require date or not.
3024
+
3025
+
3026
+ *0.8.0*
3027
+
3028
+ * Added transactions
3029
+
3030
+ * Changed Base.find to also accept either a list (1, 5, 6) or an array of ids ([5, 7])
3031
+ as parameter and then return an array of objects instead of just an object
3032
+
3033
+ * Fixed method has_collection? for has_and_belongs_to_many macro to behave as a
3034
+ collection, not an association
3035
+
3036
+ * Fixed SQLite adapter so empty or nil values in columns of datetime, date, or time type
3037
+ aren't treated as current time [Spotted by Gavin Sinclair]
3038
+
3039
+
3040
+ *0.7.6*
3041
+
3042
+ * Fixed the install.rb to create the lib/active_record/support directory [Spotted by Gavin Sinclair]
3043
+ * Fixed that has_association? would always return true [Spotted by Daniel Von Fange]