Permalink
Browse files

added rake db:migrate task, vendored more test gems

  • Loading branch information...
1 parent f5b5cfa commit c4170c357299ec24f9bae2def1de8e761a31f05f @cyx cyx committed Mar 7, 2010
Showing with 20,081 additions and 50 deletions.
  1. +12 −0 README.md
  2. +2 −47 Rakefile
  3. +13 −3 dependencies
  4. +23 −0 install
  5. +42 −0 lib/tasks/database.rake
  6. +78 −0 vendor/database_cleaner-0.5.0/History.txt
  7. +20 −0 vendor/database_cleaner-0.5.0/LICENSE
  8. +118 −0 vendor/database_cleaner-0.5.0/README.textile
  9. +46 −0 vendor/database_cleaner-0.5.0/Rakefile
  10. 0 vendor/database_cleaner-0.5.0/TODO
  11. +5 −0 vendor/database_cleaner-0.5.0/VERSION.yml
  12. +1 −0 vendor/database_cleaner-0.5.0/cucumber.yml
  13. +11 −0 vendor/database_cleaner-0.5.0/examples/features/example.feature
  14. +8 −0 vendor/database_cleaner-0.5.0/examples/features/step_definitions/example_steps.rb
  15. +23 −0 vendor/database_cleaner-0.5.0/examples/features/support/env.rb
  16. +12 −0 vendor/database_cleaner-0.5.0/examples/lib/activerecord_models.rb
  17. +21 −0 vendor/database_cleaner-0.5.0/examples/lib/couchpotato_models.rb
  18. +16 −0 vendor/database_cleaner-0.5.0/examples/lib/datamapper_models.rb
  19. +17 −0 vendor/database_cleaner-0.5.0/examples/lib/mongomapper_models.rb
  20. +20 −0 vendor/database_cleaner-0.5.0/features/cleaning.feature
  21. +25 −0 vendor/database_cleaner-0.5.0/features/step_definitions/database_cleaner_steps.rb
  22. +7 −0 vendor/database_cleaner-0.5.0/features/support/env.rb
  23. +3 −0 vendor/database_cleaner-0.5.0/lib/database_cleaner.rb
  24. +26 −0 vendor/database_cleaner-0.5.0/lib/database_cleaner/active_record/transaction.rb
  25. +79 −0 vendor/database_cleaner-0.5.0/lib/database_cleaner/active_record/truncation.rb
  26. +114 −0 vendor/database_cleaner-0.5.0/lib/database_cleaner/configuration.rb
  27. +26 −0 vendor/database_cleaner-0.5.0/lib/database_cleaner/couch_potato/truncation.rb
  28. +8 −0 vendor/database_cleaner-0.5.0/lib/database_cleaner/cucumber.rb
  29. +23 −0 vendor/database_cleaner-0.5.0/lib/database_cleaner/data_mapper/transaction.rb
  30. +142 −0 vendor/database_cleaner-0.5.0/lib/database_cleaner/data_mapper/truncation.rb
  31. +30 −0 vendor/database_cleaner-0.5.0/lib/database_cleaner/mongo_mapper/truncation.rb
  32. +41 −0 vendor/database_cleaner-0.5.0/lib/database_cleaner/truncation_base.rb
  33. +66 −0 vendor/database_cleaner-0.5.0/spec/database_cleaner/active_record/truncation_spec.rb
  34. +104 −0 vendor/database_cleaner-0.5.0/spec/database_cleaner/configuration_spec.rb
  35. +40 −0 vendor/database_cleaner-0.5.0/spec/database_cleaner/couch_potato/truncation_spec.rb
  36. +81 −0 vendor/database_cleaner-0.5.0/spec/database_cleaner/mongo_mapper/truncation_spec.rb
  37. +6 −0 vendor/database_cleaner-0.5.0/spec/spec.opts
  38. +12 −0 vendor/database_cleaner-0.5.0/spec/spec_helper.rb
  39. +9 −0 vendor/factory_girl-1.2.3/CONTRIBUTION_GUIDELINES.rdoc
  40. +29 −0 vendor/factory_girl-1.2.3/Changelog
  41. +19 −0 vendor/factory_girl-1.2.3/LICENSE
  42. +228 −0 vendor/factory_girl-1.2.3/README.rdoc
  43. +81 −0 vendor/factory_girl-1.2.3/Rakefile
  44. +35 −0 vendor/factory_girl-1.2.3/lib/factory_girl.rb
  45. +50 −0 vendor/factory_girl-1.2.3/lib/factory_girl/aliases.rb
  46. +29 −0 vendor/factory_girl-1.2.3/lib/factory_girl/attribute.rb
  47. +20 −0 vendor/factory_girl-1.2.3/lib/factory_girl/attribute/association.rb
  48. +16 −0 vendor/factory_girl-1.2.3/lib/factory_girl/attribute/callback.rb
  49. +20 −0 vendor/factory_girl-1.2.3/lib/factory_girl/attribute/dynamic.rb
  50. +17 −0 vendor/factory_girl-1.2.3/lib/factory_girl/attribute/static.rb
  51. +395 −0 vendor/factory_girl-1.2.3/lib/factory_girl/factory.rb
  52. +79 −0 vendor/factory_girl-1.2.3/lib/factory_girl/proxy.rb
  53. +21 −0 vendor/factory_girl-1.2.3/lib/factory_girl/proxy/attributes_for.rb
  54. +30 −0 vendor/factory_girl-1.2.3/lib/factory_girl/proxy/build.rb
  55. +12 −0 vendor/factory_girl-1.2.3/lib/factory_girl/proxy/create.rb
  56. +50 −0 vendor/factory_girl-1.2.3/lib/factory_girl/proxy/stub.rb
  57. +63 −0 vendor/factory_girl-1.2.3/lib/factory_girl/sequence.rb
  58. +54 −0 vendor/factory_girl-1.2.3/lib/factory_girl/step_definitions.rb
  59. +12 −0 vendor/factory_girl-1.2.3/lib/factory_girl/syntax.rb
  60. +42 −0 vendor/factory_girl-1.2.3/lib/factory_girl/syntax/blueprint.rb
  61. +68 −0 vendor/factory_girl-1.2.3/lib/factory_girl/syntax/generate.rb
  62. +39 −0 vendor/factory_girl-1.2.3/lib/factory_girl/syntax/make.rb
  63. +42 −0 vendor/factory_girl-1.2.3/lib/factory_girl/syntax/sham.rb
  64. +29 −0 vendor/factory_girl-1.2.3/spec/factory_girl/aliases_spec.rb
  65. +29 −0 vendor/factory_girl-1.2.3/spec/factory_girl/attribute/association_spec.rb
  66. +23 −0 vendor/factory_girl-1.2.3/spec/factory_girl/attribute/callback_spec.rb
  67. +49 −0 vendor/factory_girl-1.2.3/spec/factory_girl/attribute/dynamic_spec.rb
  68. +29 −0 vendor/factory_girl-1.2.3/spec/factory_girl/attribute/static_spec.rb
  69. +30 −0 vendor/factory_girl-1.2.3/spec/factory_girl/attribute_spec.rb
  70. +571 −0 vendor/factory_girl-1.2.3/spec/factory_girl/factory_spec.rb
  71. +52 −0 vendor/factory_girl-1.2.3/spec/factory_girl/proxy/attributes_for_spec.rb
  72. +81 −0 vendor/factory_girl-1.2.3/spec/factory_girl/proxy/build_spec.rb
  73. +94 −0 vendor/factory_girl-1.2.3/spec/factory_girl/proxy/create_spec.rb
  74. +79 −0 vendor/factory_girl-1.2.3/spec/factory_girl/proxy/stub_spec.rb
  75. +84 −0 vendor/factory_girl-1.2.3/spec/factory_girl/proxy_spec.rb
  76. +66 −0 vendor/factory_girl-1.2.3/spec/factory_girl/sequence_spec.rb
  77. +34 −0 vendor/factory_girl-1.2.3/spec/factory_girl/syntax/blueprint_spec.rb
  78. +57 −0 vendor/factory_girl-1.2.3/spec/factory_girl/syntax/generate_spec.rb
  79. +35 −0 vendor/factory_girl-1.2.3/spec/factory_girl/syntax/make_spec.rb
  80. +35 −0 vendor/factory_girl-1.2.3/spec/factory_girl/syntax/sham_spec.rb
  81. +304 −0 vendor/factory_girl-1.2.3/spec/integration_spec.rb
  82. +43 −0 vendor/factory_girl-1.2.3/spec/models.rb
  83. +18 −0 vendor/factory_girl-1.2.3/spec/spec_helper.rb
  84. +7 −0 vendor/fakeweb-1.2.8/.gitignore
  85. +199 −0 vendor/fakeweb-1.2.8/CHANGELOG
  86. +281 −0 vendor/fakeweb-1.2.8/LICENSE.txt
  87. +194 −0 vendor/fakeweb-1.2.8/README.rdoc
  88. +65 −0 vendor/fakeweb-1.2.8/Rakefile
  89. +123 −0 vendor/fakeweb-1.2.8/fakeweb.gemspec
  90. +179 −0 vendor/fakeweb-1.2.8/lib/fake_web.rb
  91. +81 −0 vendor/fakeweb-1.2.8/lib/fake_web/ext/net_http.rb
  92. +114 −0 vendor/fakeweb-1.2.8/lib/fake_web/registry.rb
  93. +116 −0 vendor/fakeweb-1.2.8/lib/fake_web/responder.rb
  94. +10 −0 vendor/fakeweb-1.2.8/lib/fake_web/response.rb
  95. +15 −0 vendor/fakeweb-1.2.8/lib/fake_web/stub_socket.rb
  96. +65 −0 vendor/fakeweb-1.2.8/lib/fake_web/utility.rb
  97. +2 −0 vendor/fakeweb-1.2.8/lib/fakeweb.rb
  98. +12 −0 vendor/fakeweb-1.2.8/test/fixtures/google_response_from_curl
  99. +17 −0 vendor/fakeweb-1.2.8/test/fixtures/google_response_with_transfer_encoding
  100. +11 −0 vendor/fakeweb-1.2.8/test/fixtures/google_response_without_transfer_encoding
  101. +1 −0 vendor/fakeweb-1.2.8/test/fixtures/test_example.txt
  102. +3 −0 vendor/fakeweb-1.2.8/test/fixtures/test_txt_file
  103. +85 −0 vendor/fakeweb-1.2.8/test/test_allow_net_connect.rb
  104. +54 −0 vendor/fakeweb-1.2.8/test/test_deprecations.rb
  105. +92 −0 vendor/fakeweb-1.2.8/test/test_fake_authentication.rb
  106. +553 −0 vendor/fakeweb-1.2.8/test/test_fake_web.rb
  107. +58 −0 vendor/fakeweb-1.2.8/test/test_fake_web_open_uri.rb
  108. +87 −0 vendor/fakeweb-1.2.8/test/test_helper.rb
  109. +25 −0 vendor/fakeweb-1.2.8/test/test_missing_open_uri.rb
  110. +37 −0 vendor/fakeweb-1.2.8/test/test_missing_pathname.rb
  111. +36 −0 vendor/fakeweb-1.2.8/test/test_other_net_http_libraries.rb
  112. +79 −0 vendor/fakeweb-1.2.8/test/test_precedence.rb
  113. +45 −0 vendor/fakeweb-1.2.8/test/test_query_string.rb
  114. +157 −0 vendor/fakeweb-1.2.8/test/test_regexes.rb
  115. +73 −0 vendor/fakeweb-1.2.8/test/test_response_headers.rb
  116. +53 −0 vendor/fakeweb-1.2.8/test/test_trailing_slashes.rb
  117. +76 −0 vendor/fakeweb-1.2.8/test/test_utility.rb
  118. +59 −0 vendor/fakeweb-1.2.8/test/vendor/right_http_connection-1.2.4/History.txt
  119. +7 −0 vendor/fakeweb-1.2.8/test/vendor/right_http_connection-1.2.4/Manifest.txt
  120. +54 −0 vendor/fakeweb-1.2.8/test/vendor/right_http_connection-1.2.4/README.txt
  121. +103 −0 vendor/fakeweb-1.2.8/test/vendor/right_http_connection-1.2.4/Rakefile
  122. +160 −0 vendor/fakeweb-1.2.8/test/vendor/right_http_connection-1.2.4/lib/net_fix.rb
  123. +435 −0 vendor/fakeweb-1.2.8/test/vendor/right_http_connection-1.2.4/lib/right_http_connection.rb
  124. +1,585 −0 vendor/fakeweb-1.2.8/test/vendor/right_http_connection-1.2.4/setup.rb
  125. +5 −0 vendor/fakeweb-1.2.8/test/vendor/samuel-0.2.1/.document
  126. +5 −0 vendor/fakeweb-1.2.8/test/vendor/samuel-0.2.1/.gitignore
  127. +20 −0 vendor/fakeweb-1.2.8/test/vendor/samuel-0.2.1/LICENSE
  128. +70 −0 vendor/fakeweb-1.2.8/test/vendor/samuel-0.2.1/README.rdoc
  129. +62 −0 vendor/fakeweb-1.2.8/test/vendor/samuel-0.2.1/Rakefile
  130. +1 −0 vendor/fakeweb-1.2.8/test/vendor/samuel-0.2.1/VERSION
  131. +52 −0 vendor/fakeweb-1.2.8/test/vendor/samuel-0.2.1/lib/samuel.rb
  132. +10 −0 vendor/fakeweb-1.2.8/test/vendor/samuel-0.2.1/lib/samuel/net_http.rb
  133. +96 −0 vendor/fakeweb-1.2.8/test/vendor/samuel-0.2.1/lib/samuel/request.rb
  134. +69 −0 vendor/fakeweb-1.2.8/test/vendor/samuel-0.2.1/samuel.gemspec
  135. +193 −0 vendor/fakeweb-1.2.8/test/vendor/samuel-0.2.1/test/request_test.rb
  136. +42 −0 vendor/fakeweb-1.2.8/test/vendor/samuel-0.2.1/test/samuel_test.rb
  137. +66 −0 vendor/fakeweb-1.2.8/test/vendor/samuel-0.2.1/test/test_helper.rb
  138. +32 −0 vendor/fakeweb-1.2.8/test/vendor/samuel-0.2.1/test/thread_test.rb
  139. +20 −0 vendor/sinefunc/is_taggable/LICENSE
  140. +63 −0 vendor/sinefunc/is_taggable/README.rdoc
  141. +4 −0 vendor/sinefunc/is_taggable/VERSION.yml
  142. +7 −0 vendor/sinefunc/is_taggable/generators/is_taggable_migration/is_taggable_migration_generator.rb
  143. +24 −0 vendor/sinefunc/is_taggable/generators/is_taggable_migration/templates/migration.rb
  144. +1 −0 vendor/sinefunc/is_taggable/init.rb
  145. +28 −0 vendor/sinefunc/is_taggable/is_taggable.gemspec
  146. +94 −0 vendor/sinefunc/is_taggable/lib/is_taggable.rb
  147. +16 −0 vendor/sinefunc/is_taggable/lib/tag.rb
  148. +4 −0 vendor/sinefunc/is_taggable/lib/tagging.rb
  149. +50 −0 vendor/sinefunc/is_taggable/rakefile
  150. +87 −0 vendor/sinefunc/is_taggable/test/is_taggable_test.rb
  151. +35 −0 vendor/sinefunc/is_taggable/test/tag_test.rb
  152. +38 −0 vendor/sinefunc/is_taggable/test/tagging_test.rb
  153. +40 −0 vendor/sinefunc/is_taggable/test/test_helper.rb
  154. +5 −0 vendor/sinefunc/paperclip-matchers/.document
  155. +20 −0 vendor/sinefunc/paperclip-matchers/LICENSE
  156. +21 −0 vendor/sinefunc/paperclip-matchers/README.md
  157. +53 −0 vendor/sinefunc/paperclip-matchers/Rakefile
  158. +1 −0 vendor/sinefunc/paperclip-matchers/VERSION
  159. +19 −0 vendor/sinefunc/paperclip-matchers/lib/paperclip-matchers.rb
  160. +48 −0 vendor/sinefunc/paperclip-matchers/paperclip-matchers.gemspec
  161. +26 −0 vendor/sinefunc/paperclip/LICENSE
  162. +174 −0 vendor/sinefunc/paperclip/README.rdoc
  163. +103 −0 vendor/sinefunc/paperclip/Rakefile
  164. +6 −0 vendor/sinefunc/paperclip/cucumber/paperclip_steps.rb
  165. +5 −0 vendor/sinefunc/paperclip/generators/paperclip/USAGE
  166. +27 −0 vendor/sinefunc/paperclip/generators/paperclip/paperclip_generator.rb
  167. +19 −0 vendor/sinefunc/paperclip/generators/paperclip/templates/paperclip_migration.rb.erb
  168. +1 −0 vendor/sinefunc/paperclip/init.rb
  169. +357 −0 vendor/sinefunc/paperclip/lib/paperclip.rb
  170. +334 −0 vendor/sinefunc/paperclip/lib/paperclip/attachment.rb
  171. +33 −0 vendor/sinefunc/paperclip/lib/paperclip/callback_compatability.rb
  172. +115 −0 vendor/sinefunc/paperclip/lib/paperclip/geometry.rb
  173. +108 −0 vendor/sinefunc/paperclip/lib/paperclip/interpolations.rb
  174. +59 −0 vendor/sinefunc/paperclip/lib/paperclip/iostream.rb
  175. +4 −0 vendor/sinefunc/paperclip/lib/paperclip/matchers.rb
  176. +49 −0 vendor/sinefunc/paperclip/lib/paperclip/matchers/have_attached_file_matcher.rb
  177. +65 −0 vendor/sinefunc/paperclip/lib/paperclip/matchers/validate_attachment_content_type_matcher.rb
  178. +48 −0 vendor/sinefunc/paperclip/lib/paperclip/matchers/validate_attachment_presence_matcher.rb
  179. +85 −0 vendor/sinefunc/paperclip/lib/paperclip/matchers/validate_attachment_size_matcher.rb
  180. +49 −0 vendor/sinefunc/paperclip/lib/paperclip/processor.rb
  181. +247 −0 vendor/sinefunc/paperclip/lib/paperclip/storage.rb
  182. +90 −0 vendor/sinefunc/paperclip/lib/paperclip/style.rb
  183. +75 −0 vendor/sinefunc/paperclip/lib/paperclip/thumbnail.rb
  184. +49 −0 vendor/sinefunc/paperclip/lib/paperclip/upfile.rb
  185. +48 −0 vendor/sinefunc/paperclip/paperclip.gemspec
  186. +117 −0 vendor/sinefunc/paperclip/shoulda_macros/paperclip.rb
  187. +79 −0 vendor/sinefunc/paperclip/tasks/paperclip_tasks.rake
  188. +764 −0 vendor/sinefunc/paperclip/test/attachment_test.rb
  189. +4 −0 vendor/sinefunc/paperclip/test/database.yml
  190. BIN vendor/sinefunc/paperclip/test/fixtures/12k.png
  191. BIN vendor/sinefunc/paperclip/test/fixtures/50x50.png
  192. BIN vendor/sinefunc/paperclip/test/fixtures/5k.png
  193. +1 −0 vendor/sinefunc/paperclip/test/fixtures/bad.png
  194. +8 −0 vendor/sinefunc/paperclip/test/fixtures/s3.yml
  195. 0 vendor/sinefunc/paperclip/test/fixtures/text.txt
  196. BIN vendor/sinefunc/paperclip/test/fixtures/twopage.pdf
  197. +177 −0 vendor/sinefunc/paperclip/test/geometry_test.rb
  198. +108 −0 vendor/sinefunc/paperclip/test/helper.rb
  199. +483 −0 vendor/sinefunc/paperclip/test/integration_test.rb
  200. +124 −0 vendor/sinefunc/paperclip/test/interpolations_test.rb
  201. +78 −0 vendor/sinefunc/paperclip/test/iostream_test.rb
  202. +21 −0 vendor/sinefunc/paperclip/test/matchers/have_attached_file_matcher_test.rb
  203. +31 −0 vendor/sinefunc/paperclip/test/matchers/validate_attachment_content_type_matcher_test.rb
  204. +23 −0 vendor/sinefunc/paperclip/test/matchers/validate_attachment_presence_matcher_test.rb
  205. +51 −0 vendor/sinefunc/paperclip/test/matchers/validate_attachment_size_matcher_test.rb
  206. +298 −0 vendor/sinefunc/paperclip/test/paperclip_test.rb
  207. +10 −0 vendor/sinefunc/paperclip/test/processor_test.rb
  208. +330 −0 vendor/sinefunc/paperclip/test/storage_test.rb
  209. +141 −0 vendor/sinefunc/paperclip/test/style_test.rb
  210. +227 −0 vendor/sinefunc/paperclip/test/thumbnail_test.rb
  211. +28 −0 vendor/sinefunc/paperclip/test/upfile_test.rb
  212. +105 −0 vendor/sinefunc/will_paginate/CHANGELOG.rdoc
  213. +19 −0 vendor/sinefunc/will_paginate/Gemfile
  214. +18 −0 vendor/sinefunc/will_paginate/LICENSE
  215. +125 −0 vendor/sinefunc/will_paginate/README.rdoc
  216. +32 −0 vendor/sinefunc/will_paginate/Rakefile
  217. +1 −0 vendor/sinefunc/will_paginate/init.rb
  218. +23 −0 vendor/sinefunc/will_paginate/lib/will_paginate.rb
  219. +33 −0 vendor/sinefunc/will_paginate/lib/will_paginate/array.rb
  220. +145 −0 vendor/sinefunc/will_paginate/lib/will_paginate/collection.rb
  221. +69 −0 vendor/sinefunc/will_paginate/lib/will_paginate/core_ext.rb
  222. +50 −0 vendor/sinefunc/will_paginate/lib/will_paginate/deprecation.rb
  223. +9 −0 vendor/sinefunc/will_paginate/lib/will_paginate/finders.rb
  224. +158 −0 vendor/sinefunc/will_paginate/lib/will_paginate/finders/active_record.rb
  225. +51 −0 vendor/sinefunc/will_paginate/lib/will_paginate/finders/active_resource.rb
  226. +112 −0 vendor/sinefunc/will_paginate/lib/will_paginate/finders/base.rb
  227. +30 −0 vendor/sinefunc/will_paginate/lib/will_paginate/finders/data_mapper.rb
  228. +23 −0 vendor/sinefunc/will_paginate/lib/will_paginate/finders/sequel.rb
  229. +26 −0 vendor/sinefunc/will_paginate/lib/will_paginate/railtie.rb
  230. +9 −0 vendor/sinefunc/will_paginate/lib/will_paginate/version.rb
  231. +42 −0 vendor/sinefunc/will_paginate/lib/will_paginate/view_helpers.rb
  232. +142 −0 vendor/sinefunc/will_paginate/lib/will_paginate/view_helpers/action_view.rb
  233. +126 −0 vendor/sinefunc/will_paginate/lib/will_paginate/view_helpers/base.rb
  234. +130 −0 vendor/sinefunc/will_paginate/lib/will_paginate/view_helpers/link_renderer.rb
  235. +83 −0 vendor/sinefunc/will_paginate/lib/will_paginate/view_helpers/link_renderer_base.rb
  236. +13 −0 vendor/sinefunc/will_paginate/lib/will_paginate/view_helpers/merb.rb
  237. +147 −0 vendor/sinefunc/will_paginate/spec/collection_spec.rb
  238. +8 −0 vendor/sinefunc/will_paginate/spec/console
  239. +8 −0 vendor/sinefunc/will_paginate/spec/console_fixtures.rb
  240. +22 −0 vendor/sinefunc/will_paginate/spec/database.yml
  241. +375 −0 vendor/sinefunc/will_paginate/spec/finders/active_record_spec.rb
  242. +52 −0 vendor/sinefunc/will_paginate/spec/finders/active_resource_spec.rb
  243. +114 −0 vendor/sinefunc/will_paginate/spec/finders/activerecord_test_connector.rb
  244. +62 −0 vendor/sinefunc/will_paginate/spec/finders/data_mapper_spec.rb
  245. +20 −0 vendor/sinefunc/will_paginate/spec/finders/data_mapper_test_connector.rb
  246. +53 −0 vendor/sinefunc/will_paginate/spec/finders/sequel_spec.rb
  247. +9 −0 vendor/sinefunc/will_paginate/spec/finders/sequel_test_connector.rb
  248. +76 −0 vendor/sinefunc/will_paginate/spec/finders_spec.rb
  249. +3 −0 vendor/sinefunc/will_paginate/spec/fixtures/admin.rb
  250. +13 −0 vendor/sinefunc/will_paginate/spec/fixtures/developer.rb
  251. +13 −0 vendor/sinefunc/will_paginate/spec/fixtures/developers_projects.yml
  252. +13 −0 vendor/sinefunc/will_paginate/spec/fixtures/project.rb
  253. +6 −0 vendor/sinefunc/will_paginate/spec/fixtures/projects.yml
  254. +29 −0 vendor/sinefunc/will_paginate/spec/fixtures/replies.yml
  255. +7 −0 vendor/sinefunc/will_paginate/spec/fixtures/reply.rb
  256. +38 −0 vendor/sinefunc/will_paginate/spec/fixtures/schema.rb
  257. +7 −0 vendor/sinefunc/will_paginate/spec/fixtures/topic.rb
  258. +30 −0 vendor/sinefunc/will_paginate/spec/fixtures/topics.yml
  259. +2 −0 vendor/sinefunc/will_paginate/spec/fixtures/user.rb
  260. +35 −0 vendor/sinefunc/will_paginate/spec/fixtures/users.yml
  261. +2 −0 vendor/sinefunc/will_paginate/spec/rcov.opts
  262. +2 −0 vendor/sinefunc/will_paginate/spec/spec.opts
  263. +74 −0 vendor/sinefunc/will_paginate/spec/spec_helper.rb
  264. +60 −0 vendor/sinefunc/will_paginate/spec/tasks.rake
  265. +345 −0 vendor/sinefunc/will_paginate/spec/view_helpers/action_view_spec.rb
  266. +64 −0 vendor/sinefunc/will_paginate/spec/view_helpers/base_spec.rb
  267. +84 −0 vendor/sinefunc/will_paginate/spec/view_helpers/link_renderer_base_spec.rb
  268. +103 −0 vendor/sinefunc/will_paginate/spec/view_helpers/view_example_group.rb
  269. +20 −0 vendor/sinefunc/will_paginate/will_paginate.gemspec
View
@@ -0,0 +1,12 @@
+INSTALLING
+==========
+
+Summary
+-------
+
+1. Install Ruby Version Manager
+2. Install Ruby 1.9
+3. Create a gemset for this environment
+4. run ./install
+5. run rake db:create db:migrate db:test:prepare
+6. run rspec spec
View
@@ -1,50 +1,5 @@
-desc 'Default task: run all tests'
-task :default => [:test]
-
-task :test do
- exec "thor monk:test"
+task :environment do
+ require 'init'
end
-namespace :redis do
- task :start do
- envs = ENV['RACK_ENV'] || 'development,test'
-
- envs.split(',').each do |env|
- file = %(#{env}.conf)
- conf = File.join(File.dirname(__FILE__), 'config', 'redis', file)
-
- cmd = "redis-server #{File.expand_path(conf)}"
-
- print "Starting server (#{cmd})... "
-
- begin
- `#{cmd}`
- rescue
- puts "Failed!"
- else
- puts "Done!"
- end
- end
- end
-
- task :stop do
- envs = ENV['RACK_ENV'] || 'development,test'
-
- envs.split(',').each do |env|
- pid = File.join(File.dirname(__FILE__), 'db', 'redis', env, 'redis.pid')
-
- begin
- print "Stopping redis server... "
- `kill -TERM #{File.read(pid)}`
- puts "Done!"
- rescue
- puts "Unable to stop the redis server"
- else
- print "Deleting PID file... "
- File.delete(pid)
- puts "Done!"
- end
- end
- end
-end
View
@@ -4,11 +4,21 @@ haml 2.2.3 git://github.com/nex3/haml.git
monk-glue git://github.com/monkrb/glue.git
twitter-login 0.2.0 git://github.com/mislav/twitter-login.git
rack 1.1.0 git://github.com/rack/rack.git
-rack-test 0.3.0 (test) git://github.com/brynary/rack-test.git
sinatra 0.9.5 git://github.com/sinatra/sinatra.git
spawn 0.1.3 git://github.com/soveran/spawn.git
-webrat 0.5.1 (test) git://github.com/brynary/webrat.git
-timecop 0.3.4 (test)
hoe 2.5.0
chronic 0.2.3
i18n 0.3.5
+ruby-hmac 0.4.0
+oauth 0.3.6
+hashie 0.1.8
+crack 0.1.7
+httparty 0.4.5
+twitter 0.8.4
+
+rack-test 0.3.0 (test) git://github.com/brynary/rack-test.git
+timecop 0.3.4 (test)
+fakeweb 1.2.8 (test)
+webrat 0.5.1 (test) git://github.com/brynary/webrat.git
+database_cleaner 0.5.0 (test)
+factory_girl 1.2.3 (test)
View
23 install
@@ -0,0 +1,23 @@
+#!/usr/bin/env ruby
+
+existing = `gem list`.split("\n").map { |g| g.gsub(/\((.*?)\)/, '').strip }
+
+gems = [
+ 'rake',
+ [ 'rspec', '--pre' ],
+ 'dependencies',
+ [ 'activesupport', '--pre' ],
+ [ 'activerecord', '--pre' ],
+ 'mysql',
+ 'rspec-rails-matchers'
+]
+
+gems.each do |gem, flags|
+ if existing.include?(gem)
+ puts " -> Skipping #{gem}"
+ else
+ print " -> Installing #{gem} #{flags}... "
+ `gem install #{gem} #{flags}`
+ puts "Done!"
+ end
+end
View
@@ -0,0 +1,42 @@
+namespace :db do
+ namespace :test do
+ task :prepare do
+ `mysqldump -u root boughtstuff_development --no-data | mysql -u root boughtstuff_test`
+ end
+ end
+
+ task :drop do
+ `mysql -u root -e "drop database boughtstuff_test; drop database boughtstuff_development"`
+ end
+
+ task :create do
+ `mysql -u root -e "create database boughtstuff_test charset=utf8; create database boughtstuff_development charset=utf8"`
+ end
+
+ namespace :schema do
+ desc "Create a db/schema.rb file that can be portably used against any DB supported by AR"
+ task :dump => :environment do
+ require 'active_record/schema_dumper'
+ File.open(ENV['SCHEMA'] || "#{Rails.root}/db/schema.rb", "w") do |file|
+ ActiveRecord::SchemaDumper.dump(ActiveRecord::Base.connection, file)
+ end
+ Rake::Task["db:schema:dump"].reenable
+ end
+
+ desc "Load a schema.rb file into the database"
+ task :load => :environment do
+ file = ENV['SCHEMA'] || "#{Rails.root}/db/schema.rb"
+ if File.exists?(file)
+ load(file)
+ else
+ abort %{#{file} doesn't exist yet. Run "rake db:migrate" to create it then try again. If you do not intend to use a database, you should instead alter #{Rails.root}/config/boot.rb to limit the frameworks that will be loaded}
+ end
+ end
+ end
+
+ task :migrate => :environment do
+ ActiveRecord::Migration.verbose = ENV["VERBOSE"] ? ENV["VERBOSE"] == "true" : true
+ ActiveRecord::Migrator.migrate("db/migrate/", ENV["VERSION"] ? ENV["VERSION"].to_i : nil)
+ Rake::Task["db:schema:dump"].invoke if ActiveRecord::Base.schema_format == :ruby
+ end
+end
@@ -0,0 +1,78 @@
+0.5.x (In Git)
+
+== 0.5.0 2010-02-22 - The CouchPotato Release
+
+ === New features
+ * Basic truncation support for CouchPotato / CouchDB. (Martin Rehfeld)
+ * SQLite3 on JRuby will fall back to delete if truncate doesn't work. (Darrin Holst)
+ * JDBC is used for ActiveRecord automaticaly when JRuby is detected. (Darrin Holst)
+
+ === Bufixes
+ * MongoMapper truncation strategy now works with :only and :except options. (Ben Mabey)
+
+== 0.4.3 2010-01-17
+
+ === New features
+ * Truncation for ActiveRecord oracle_enhanced adapter. (Edgars Beigarts)
+
+== 0.4.2 2010-01-12
+
+ === Bufixes
+ * Datamapper truncation now uses 'select' instead of deprecated the 'query' method. (Steve Tooke)
+
+== 0.4.1 2010-01-07
+
+ === Bufixes
+ * Postgres tables with FKs now truncate (added TRUNCADE CASCADE) using Datamapper. (Ben Mabey)
+
+== 0.4.0 2009-12-23 (The MongoMapper Edition)
+
+ === New features
+ * MongoMapper support for the truncation strategy. (Aubrey Holland)
+
+== 0.3.0 2009-12-20
+
+ === New features
+ * DataMapper 0.10.0 Compatible. (Martin Gamsjaeger)
+ === Bufixes
+ * Postgres tables with FKs now truncate (added TRUNCADE CASCADE). (Vika - yozhyk on github)
+
+== 0.2.3 2009-05-30
+
+ === New features
+ * Support for SQL Server truncation (Adam Meehan)
+
+== 0.2.2 2009-05-08
+ === Bufixes
+ * Added proper gemspec description and summary. (Ben Mabey, thanks to Martin Gamsjaeger)
+
+ === New features
+
+== 0.2.1 2009-05-08
+ === Bufixes
+ * Removed extraneous TruncationBase class definition. (Ben Mabey)
+
+== 0.2.0 2009-05-08 - The Datamapper Release
+
+ === New features
+ * DataMapper strategies (Martin Gamsjaeger)
+ * Transaction
+ * Truncation - working SQLite3, MySQL adapters. Experimental Postgres adapter (not tested).
+
+== 0.1.3 2009-04-30
+
+ === New features
+ * PostgresSQLAdapter for AR to support the truncation strategy. (Alberto Perdomo)
+ === Bufixes
+ * Added missing quotes around table names in truncation calls. (Michael MacDonald)
+
+== 0.1.2 2009-03-05
+ === New features
+ * JDBC Adapter to enable AR truncation strategy to work. (Kamal Fariz Mahyuddin)
+
+== 0.1.1 2009-03-04 - Initial Release (Ben Mabey)
+ * Basic infrastructure
+ * Features, RSpec code examples
+ * ActiveRecord strategies
+ * Truncation - with MySQL, and SQLite3 adapters.
+ * Transaction - wrap your modifications and roll them back.
@@ -0,0 +1,20 @@
+Copyright (c) 2009 Ben Mabey
+
+Permission is hereby granted, free of charge, to any person obtaining
+a copy of this software and associated documentation files (the
+"Software"), to deal in the Software without restriction, including
+without limitation the rights to use, copy, modify, merge, publish,
+distribute, sublicense, and/or sell copies of the Software, and to
+permit persons to whom the Software is furnished to do so, subject to
+the following conditions:
+
+The above copyright notice and this permission notice shall be
+included in all copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
+EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
+MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
+NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
+LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
+OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
+WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
@@ -0,0 +1,118 @@
+h1. Database Cleaner
+
+Database Cleaner is a set of strategies for cleaning your database in Ruby.
+The original use case was to ensure a clean state during tests. Each strategy
+is a small amount of code but is code that is usually needed in any ruby app
+that is testing with a database.
+
+ActiveRecord, DataMapper, MongoMapper and CouchPotato are supported.
+
+h2. How to use
+
+<pre>
+ require 'database_cleaner'
+ DatabaseCleaner.strategy = :truncation
+
+ # then, whenever you need to clean the DB
+ DatabaseCleaner.clean
+</pre>
+
+With the :truncation strategy you can also pass in options, for example:
+<pre>
+ DatabaseCleaner.strategy = :truncation, {:only => %w[widgets dogs some_other_table]}
+</pre>
+
+<pre>
+ DatabaseCleaner.strategy = :truncation, {:except => %w[widgets]}
+</pre>
+
+(I should point out the truncation strategy will never truncate your schema_migrations table.)
+
+
+Some strategies require that you call DatabaseCleaner.start before calling clean
+(for example the :transaction one needs to know to open up a transaction). So
+you would have:
+
+<pre>
+ require 'database_cleaner'
+ DatabaseCleaner.strategy = :transaction
+
+ DatabaseCleaner.start # usually this is called in setup of a test
+ dirty_the_db
+ DatabaseCleaner.clean # cleanup of the test
+</pre>
+
+At times you may want to do a single clean with one strategy. For example, you may want
+to start the process by truncating all the tables, but then use the faster transaction
+strategy the remaining time. To accomplish this you can say:
+
+<pre>
+ require 'database_cleaner'
+ DatabaseCleaner.clean_with :truncation
+ DatabaseCleaner.strategy = :transaction
+ # then make the DatabaseCleaner.start and DatabaseCleaner.clean calls appropriately
+</pre>
+
+Example usage with RSpec:
+
+<pre>
+Spec::Runner.configure do |config|
+
+ config.before(:suite) do
+ DatabaseCleaner.strategy = :transaction
+ DatabaseCleaner.clean_with(:truncation)
+ end
+
+ config.before(:each) do
+ DatabaseCleaner.start
+ end
+
+ config.after(:each) do
+ DatabaseCleaner.clean
+ end
+
+end
+</pre>
+
+For use in Cucumber please see the section below.
+
+
+
+h2. Why?
+
+One of my motivations for writing this library was to have an easy way to
+turn on what Rails calls "transactional_fixtures" in my non-rails
+ActiveRecord projects. For example, Cucumber ships with a Rails world that
+will wrap each scenario in a transaction. This is great, but what if you are
+using ActiveRecord in a non-rails project? You used to have to copy-and-paste
+the needed code, but with DatabaseCleaner you can now say:
+
+<pre>
+ #env.rb
+ require 'database_cleaner'
+ require 'database_cleaner/cucumber'
+ DatabaseCleaner.strategy = :transaction
+</pre>
+
+Now lets say you are running your features and it requires that another process be
+involved (i.e. Selenium running against your app's server.) You can simply change
+your strategy type:
+
+<pre>
+ #env.rb
+ require 'database_cleaner'
+ require 'database_cleaner/cucumber'
+ DatabaseCleaner.strategy = :truncation
+</pre>
+
+You can have the best of both worlds and use the best one for the job:
+<pre>
+ #env.rb
+ require 'database_cleaner'
+ require 'database_cleaner/cucumber'
+ DatabaseCleaner.strategy = (ENV['SELENIUM'] == 'true') ? :truncation : :transaction
+</pre>
+
+h2. COPYRIGHT
+
+Copyright (c) 2009 Ben Mabey. See LICENSE for details.
Oops, something went wrong.

0 comments on commit c4170c3

Please sign in to comment.