spree 0.0.5

Sign up to get free protection for your applications and to get access to all the features.

Potentially problematic release.


This version of spree might be problematic. Click here for more details.

Files changed (534) hide show
  1. data/History.txt +24 -0
  2. data/License.txt +26 -0
  3. data/Manifest.txt +534 -0
  4. data/README.txt +1 -0
  5. data/Rakefile +4 -0
  6. data/bin/spree +157 -0
  7. data/config/hoe.rb +78 -0
  8. data/config/requirements.rb +15 -0
  9. data/lib/spree/version.rb +9 -0
  10. data/script/destroy +14 -0
  11. data/script/generate +14 -0
  12. data/script/txt2html +74 -0
  13. data/setup.rb +1585 -0
  14. data/starter-app/README +182 -0
  15. data/starter-app/Rakefile +10 -0
  16. data/starter-app/app/controllers/application.rb +14 -0
  17. data/starter-app/app/helpers/application_helper.rb +3 -0
  18. data/starter-app/app/models/role.rb +3 -0
  19. data/starter-app/app/models/tag.rb +37 -0
  20. data/starter-app/app/models/tagging.rb +16 -0
  21. data/starter-app/app/models/user.rb +102 -0
  22. data/starter-app/app/views/layouts/application.rhtml +46 -0
  23. data/starter-app/app/views/shared/_store_menu.rhtml +6 -0
  24. data/starter-app/config/boot.rb +45 -0
  25. data/starter-app/config/database.yml +23 -0
  26. data/starter-app/config/environment.rb +140 -0
  27. data/starter-app/config/environments/development.rb +21 -0
  28. data/starter-app/config/environments/production.rb +21 -0
  29. data/starter-app/config/environments/test.rb +19 -0
  30. data/starter-app/config/routes.rb +28 -0
  31. data/starter-app/db/migrate/001_create_users.rb +17 -0
  32. data/starter-app/db/migrate/002_create_roles.rb +20 -0
  33. data/starter-app/db/migrate/003_create_tags_and_taggings.rb +28 -0
  34. data/starter-app/db/migrate/004_spree_to_version_21.rb +9 -0
  35. data/starter-app/db/sample/addresses.yml +24 -0
  36. data/starter-app/db/sample/categories.yml +35 -0
  37. data/starter-app/db/sample/countries.yml +3 -0
  38. data/starter-app/db/sample/credit_cards.yml +12 -0
  39. data/starter-app/db/sample/images.yml +252 -0
  40. data/starter-app/db/sample/line_items.yml +23 -0
  41. data/starter-app/db/sample/option_types.yml +6 -0
  42. data/starter-app/db/sample/option_values.yml +35 -0
  43. data/starter-app/db/sample/orders.yml +15 -0
  44. data/starter-app/db/sample/product_option_types.yml +8 -0
  45. data/starter-app/db/sample/products.yml +35 -0
  46. data/starter-app/db/sample/roles.yml +3 -0
  47. data/starter-app/db/sample/skus.yml +28 -0
  48. data/starter-app/db/sample/states.yml +154 -0
  49. data/starter-app/db/sample/taggings.yml +16 -0
  50. data/starter-app/db/sample/tags.yml +6 -0
  51. data/starter-app/db/sample/txns.yml +7 -0
  52. data/starter-app/db/sample/users.yml +6 -0
  53. data/starter-app/db/sample/variations.yml +31 -0
  54. data/starter-app/doc/README_FOR_APP +2 -0
  55. data/starter-app/lib/authenticated_system.rb +116 -0
  56. data/starter-app/lib/authenticated_test_helper.rb +10 -0
  57. data/starter-app/lib/custom_fixtures.rb +7 -0
  58. data/starter-app/lib/hijacker.rb +78 -0
  59. data/starter-app/lib/role_requirement_system.rb +142 -0
  60. data/starter-app/lib/role_requirement_test_helper.rb +86 -0
  61. data/starter-app/lib/tagging_extensions.rb +104 -0
  62. data/starter-app/lib/tasks/sample/products/0000/0001/ror_tote.jpeg +0 -0
  63. data/starter-app/lib/tasks/sample/products/0000/0001/ror_tote_mini.jpeg +0 -0
  64. data/starter-app/lib/tasks/sample/products/0000/0001/ror_tote_product.jpeg +0 -0
  65. data/starter-app/lib/tasks/sample/products/0000/0001/ror_tote_small.jpeg +0 -0
  66. data/starter-app/lib/tasks/sample/products/0000/0002/ror_tote_back.jpeg +0 -0
  67. data/starter-app/lib/tasks/sample/products/0000/0002/ror_tote_back_mini.jpeg +0 -0
  68. data/starter-app/lib/tasks/sample/products/0000/0002/ror_tote_back_product.jpeg +0 -0
  69. data/starter-app/lib/tasks/sample/products/0000/0002/ror_tote_back_small.jpeg +0 -0
  70. data/starter-app/lib/tasks/sample/products/0000/0003/ror_bag.jpeg +0 -0
  71. data/starter-app/lib/tasks/sample/products/0000/0003/ror_bag_mini.jpeg +0 -0
  72. data/starter-app/lib/tasks/sample/products/0000/0003/ror_bag_product.jpeg +0 -0
  73. data/starter-app/lib/tasks/sample/products/0000/0003/ror_bag_small.jpeg +0 -0
  74. data/starter-app/lib/tasks/sample/products/0000/0004/ror_baseball.jpeg +0 -0
  75. data/starter-app/lib/tasks/sample/products/0000/0004/ror_baseball_mini.jpeg +0 -0
  76. data/starter-app/lib/tasks/sample/products/0000/0004/ror_baseball_product.jpeg +0 -0
  77. data/starter-app/lib/tasks/sample/products/0000/0004/ror_baseball_small.jpeg +0 -0
  78. data/starter-app/lib/tasks/sample/products/0000/0005/ror_baseball_back.jpeg +0 -0
  79. data/starter-app/lib/tasks/sample/products/0000/0005/ror_baseball_back_mini.jpeg +0 -0
  80. data/starter-app/lib/tasks/sample/products/0000/0005/ror_baseball_back_product.jpeg +0 -0
  81. data/starter-app/lib/tasks/sample/products/0000/0005/ror_baseball_back_small.jpeg +0 -0
  82. data/starter-app/lib/tasks/sample/products/0000/0006/ror_jr_spaghetti.jpeg +0 -0
  83. data/starter-app/lib/tasks/sample/products/0000/0006/ror_jr_spaghetti_mini.jpeg +0 -0
  84. data/starter-app/lib/tasks/sample/products/0000/0006/ror_jr_spaghetti_product.jpeg +0 -0
  85. data/starter-app/lib/tasks/sample/products/0000/0006/ror_jr_spaghetti_small.jpeg +0 -0
  86. data/starter-app/lib/tasks/sample/products/0000/0007/ror_mug.jpeg +0 -0
  87. data/starter-app/lib/tasks/sample/products/0000/0007/ror_mug_mini.jpeg +0 -0
  88. data/starter-app/lib/tasks/sample/products/0000/0007/ror_mug_product.jpeg +0 -0
  89. data/starter-app/lib/tasks/sample/products/0000/0007/ror_mug_small.jpeg +0 -0
  90. data/starter-app/lib/tasks/sample/products/0000/0008/ror_mug_back.jpeg +0 -0
  91. data/starter-app/lib/tasks/sample/products/0000/0008/ror_mug_back_mini.jpeg +0 -0
  92. data/starter-app/lib/tasks/sample/products/0000/0008/ror_mug_back_product.jpeg +0 -0
  93. data/starter-app/lib/tasks/sample/products/0000/0008/ror_mug_back_small.jpeg +0 -0
  94. data/starter-app/lib/tasks/sample/products/0000/0009/ror_ringer.jpeg +0 -0
  95. data/starter-app/lib/tasks/sample/products/0000/0009/ror_ringer_mini.jpeg +0 -0
  96. data/starter-app/lib/tasks/sample/products/0000/0009/ror_ringer_product.jpeg +0 -0
  97. data/starter-app/lib/tasks/sample/products/0000/0009/ror_ringer_small.jpeg +0 -0
  98. data/starter-app/lib/tasks/sample/products/0000/0010/ror_ringer_back.jpeg +0 -0
  99. data/starter-app/lib/tasks/sample/products/0000/0010/ror_ringer_back_mini.jpeg +0 -0
  100. data/starter-app/lib/tasks/sample/products/0000/0010/ror_ringer_back_product.jpeg +0 -0
  101. data/starter-app/lib/tasks/sample/products/0000/0010/ror_ringer_back_small.jpeg +0 -0
  102. data/starter-app/lib/tasks/sample/products/0000/0011/ror_stein.jpeg +0 -0
  103. data/starter-app/lib/tasks/sample/products/0000/0011/ror_stein_mini.jpeg +0 -0
  104. data/starter-app/lib/tasks/sample/products/0000/0011/ror_stein_product.jpeg +0 -0
  105. data/starter-app/lib/tasks/sample/products/0000/0011/ror_stein_small.jpeg +0 -0
  106. data/starter-app/lib/tasks/sample/products/0000/0012/ror_stein_back.jpeg +0 -0
  107. data/starter-app/lib/tasks/sample/products/0000/0012/ror_stein_back_mini.jpeg +0 -0
  108. data/starter-app/lib/tasks/sample/products/0000/0012/ror_stein_back_product.jpeg +0 -0
  109. data/starter-app/lib/tasks/sample/products/0000/0012/ror_stein_back_small.jpeg +0 -0
  110. data/starter-app/lib/tasks/spree_sample_data.rake +38 -0
  111. data/starter-app/public/.htaccess +40 -0
  112. data/starter-app/public/404.html +30 -0
  113. data/starter-app/public/500.html +30 -0
  114. data/starter-app/public/dispatch.cgi +10 -0
  115. data/starter-app/public/dispatch.fcgi +24 -0
  116. data/starter-app/public/dispatch.rb +10 -0
  117. data/starter-app/public/favicon.ico +0 -0
  118. data/starter-app/public/images/rails.png +0 -0
  119. data/starter-app/public/index.html +277 -0
  120. data/starter-app/public/javascripts/application.js +2 -0
  121. data/starter-app/public/javascripts/controls.js +833 -0
  122. data/starter-app/public/javascripts/dragdrop.js +942 -0
  123. data/starter-app/public/javascripts/effects.js +1088 -0
  124. data/starter-app/public/javascripts/prototype.js +4184 -0
  125. data/starter-app/public/robots.txt +1 -0
  126. data/starter-app/public/stylesheets/application.css +209 -0
  127. data/starter-app/public/stylesheets/cart/_controller.css +4 -0
  128. data/starter-app/public/stylesheets/checkout/_controller.css +13 -0
  129. data/starter-app/script/about +3 -0
  130. data/starter-app/script/breakpointer +3 -0
  131. data/starter-app/script/console +3 -0
  132. data/starter-app/script/destroy +3 -0
  133. data/starter-app/script/generate +3 -0
  134. data/starter-app/script/performance/benchmarker +3 -0
  135. data/starter-app/script/performance/profiler +3 -0
  136. data/starter-app/script/plugin +3 -0
  137. data/starter-app/script/process/inspector +3 -0
  138. data/starter-app/script/process/reaper +3 -0
  139. data/starter-app/script/process/spawner +3 -0
  140. data/starter-app/script/runner +3 -0
  141. data/starter-app/script/server +3 -0
  142. data/starter-app/test/fixtures/users.yml +7 -0
  143. data/starter-app/test/test_helper.rb +28 -0
  144. data/starter-app/test/unit/user_test.rb +8 -0
  145. data/starter-app/vendor/plugins/acts_as_list/README +23 -0
  146. data/starter-app/vendor/plugins/acts_as_list/init.rb +3 -0
  147. data/starter-app/vendor/plugins/acts_as_list/lib/active_record/acts/list.rb +256 -0
  148. data/starter-app/vendor/plugins/acts_as_list/test/list_test.rb +332 -0
  149. data/starter-app/vendor/plugins/acts_as_tree/README +26 -0
  150. data/starter-app/vendor/plugins/acts_as_tree/Rakefile +22 -0
  151. data/starter-app/vendor/plugins/acts_as_tree/init.rb +1 -0
  152. data/starter-app/vendor/plugins/acts_as_tree/lib/active_record/acts/tree.rb +96 -0
  153. data/starter-app/vendor/plugins/acts_as_tree/test/abstract_unit.rb +0 -0
  154. data/starter-app/vendor/plugins/acts_as_tree/test/acts_as_tree_test.rb +219 -0
  155. data/starter-app/vendor/plugins/acts_as_tree/test/database.yml +0 -0
  156. data/starter-app/vendor/plugins/acts_as_tree/test/fixtures/mixin.rb +0 -0
  157. data/starter-app/vendor/plugins/acts_as_tree/test/fixtures/mixins.yml +0 -0
  158. data/starter-app/vendor/plugins/acts_as_tree/test/schema.rb +0 -0
  159. data/starter-app/vendor/plugins/attachment_fu/CHANGELOG +24 -0
  160. data/starter-app/vendor/plugins/attachment_fu/README +162 -0
  161. data/starter-app/vendor/plugins/attachment_fu/Rakefile +22 -0
  162. data/starter-app/vendor/plugins/attachment_fu/amazon_s3.yml.tpl +14 -0
  163. data/starter-app/vendor/plugins/attachment_fu/init.rb +14 -0
  164. data/starter-app/vendor/plugins/attachment_fu/install.rb +5 -0
  165. data/starter-app/vendor/plugins/attachment_fu/lib/geometry.rb +93 -0
  166. data/starter-app/vendor/plugins/attachment_fu/lib/technoweenie/attachment_fu.rb +410 -0
  167. data/starter-app/vendor/plugins/attachment_fu/lib/technoweenie/attachment_fu/backends/db_file_backend.rb +39 -0
  168. data/starter-app/vendor/plugins/attachment_fu/lib/technoweenie/attachment_fu/backends/file_system_backend.rb +97 -0
  169. data/starter-app/vendor/plugins/attachment_fu/lib/technoweenie/attachment_fu/backends/s3_backend.rb +309 -0
  170. data/starter-app/vendor/plugins/attachment_fu/lib/technoweenie/attachment_fu/processors/image_science_processor.rb +61 -0
  171. data/starter-app/vendor/plugins/attachment_fu/lib/technoweenie/attachment_fu/processors/mini_magick_processor.rb +56 -0
  172. data/starter-app/vendor/plugins/attachment_fu/lib/technoweenie/attachment_fu/processors/rmagick_processor.rb +53 -0
  173. data/starter-app/vendor/plugins/attachment_fu/test/amazon_s3.yml +6 -0
  174. data/starter-app/vendor/plugins/attachment_fu/test/backends/db_file_test.rb +16 -0
  175. data/starter-app/vendor/plugins/attachment_fu/test/backends/file_system_test.rb +80 -0
  176. data/starter-app/vendor/plugins/attachment_fu/test/backends/remote/s3_test.rb +103 -0
  177. data/starter-app/vendor/plugins/attachment_fu/test/base_attachment_tests.rb +57 -0
  178. data/starter-app/vendor/plugins/attachment_fu/test/basic_test.rb +64 -0
  179. data/starter-app/vendor/plugins/attachment_fu/test/database.yml +18 -0
  180. data/starter-app/vendor/plugins/attachment_fu/test/extra_attachment_test.rb +57 -0
  181. data/starter-app/vendor/plugins/attachment_fu/test/fixtures/attachment.rb +127 -0
  182. data/starter-app/vendor/plugins/attachment_fu/test/fixtures/files/fake/rails.png +0 -0
  183. data/starter-app/vendor/plugins/attachment_fu/test/fixtures/files/foo.txt +1 -0
  184. data/starter-app/vendor/plugins/attachment_fu/test/fixtures/files/rails.png +0 -0
  185. data/starter-app/vendor/plugins/attachment_fu/test/geometry_test.rb +101 -0
  186. data/starter-app/vendor/plugins/attachment_fu/test/processors/image_science_test.rb +31 -0
  187. data/starter-app/vendor/plugins/attachment_fu/test/processors/mini_magick_test.rb +31 -0
  188. data/starter-app/vendor/plugins/attachment_fu/test/processors/rmagick_test.rb +241 -0
  189. data/starter-app/vendor/plugins/attachment_fu/test/schema.rb +86 -0
  190. data/starter-app/vendor/plugins/attachment_fu/test/test_helper.rb +142 -0
  191. data/starter-app/vendor/plugins/attachment_fu/test/validation_test.rb +55 -0
  192. data/starter-app/vendor/plugins/calendar_date_select/CHANGELOG +170 -0
  193. data/starter-app/vendor/plugins/calendar_date_select/MIT-LICENSE +20 -0
  194. data/starter-app/vendor/plugins/calendar_date_select/README +10 -0
  195. data/starter-app/vendor/plugins/calendar_date_select/init.rb +15 -0
  196. data/starter-app/vendor/plugins/calendar_date_select/js_test/functional/cds_test.html +324 -0
  197. data/starter-app/vendor/plugins/calendar_date_select/js_test/prototype.js +4184 -0
  198. data/starter-app/vendor/plugins/calendar_date_select/js_test/test.css +40 -0
  199. data/starter-app/vendor/plugins/calendar_date_select/js_test/unit/cds_helper_methods.html +46 -0
  200. data/starter-app/vendor/plugins/calendar_date_select/js_test/unittest.js +564 -0
  201. data/starter-app/vendor/plugins/calendar_date_select/lib/calendar_date_select.rb +192 -0
  202. data/starter-app/vendor/plugins/calendar_date_select/lib/includes_helper.rb +22 -0
  203. data/starter-app/vendor/plugins/calendar_date_select/public/images/calendar_date_select/calendar.gif +0 -0
  204. data/starter-app/vendor/plugins/calendar_date_select/public/javascripts/calendar_date_select/calendar_date_select.js +439 -0
  205. data/starter-app/vendor/plugins/calendar_date_select/public/javascripts/calendar_date_select/format_american.js +34 -0
  206. data/starter-app/vendor/plugins/calendar_date_select/public/javascripts/calendar_date_select/format_euro_24hr.js +7 -0
  207. data/starter-app/vendor/plugins/calendar_date_select/public/javascripts/calendar_date_select/format_finnish.js +24 -0
  208. data/starter-app/vendor/plugins/calendar_date_select/public/javascripts/calendar_date_select/format_hyphen_ampm.js +36 -0
  209. data/starter-app/vendor/plugins/calendar_date_select/public/javascripts/calendar_date_select/format_italian.js +24 -0
  210. data/starter-app/vendor/plugins/calendar_date_select/public/javascripts/calendar_date_select/locale/fi.js +10 -0
  211. data/starter-app/vendor/plugins/calendar_date_select/public/stylesheets/calendar_date_select/blue.css +130 -0
  212. data/starter-app/vendor/plugins/calendar_date_select/public/stylesheets/calendar_date_select/default.css +135 -0
  213. data/starter-app/vendor/plugins/calendar_date_select/public/stylesheets/calendar_date_select/plain.css +128 -0
  214. data/starter-app/vendor/plugins/calendar_date_select/public/stylesheets/calendar_date_select/red.css +135 -0
  215. data/starter-app/vendor/plugins/calendar_date_select/public/stylesheets/calendar_date_select/silver.css +133 -0
  216. data/starter-app/vendor/plugins/calendar_date_select/test/functional/calendar_date_select_test.rb +95 -0
  217. data/starter-app/vendor/plugins/calendar_date_select/test/functional/helper_methods_test.rb +15 -0
  218. data/starter-app/vendor/plugins/calendar_date_select/test/test_helper.rb +26 -0
  219. data/starter-app/vendor/plugins/engines/CHANGELOG +258 -0
  220. data/starter-app/vendor/plugins/engines/MIT-LICENSE +21 -0
  221. data/starter-app/vendor/plugins/engines/README +63 -0
  222. data/starter-app/vendor/plugins/engines/Rakefile +32 -0
  223. data/starter-app/vendor/plugins/engines/about.yml +7 -0
  224. data/starter-app/vendor/plugins/engines/boot.rb +18 -0
  225. data/starter-app/vendor/plugins/engines/generators/plugin_migration/USAGE +45 -0
  226. data/starter-app/vendor/plugins/engines/generators/plugin_migration/plugin_migration_generator.rb +79 -0
  227. data/starter-app/vendor/plugins/engines/generators/plugin_migration/templates/plugin_migration.erb +13 -0
  228. data/starter-app/vendor/plugins/engines/init.rb +2 -0
  229. data/starter-app/vendor/plugins/engines/lib/engines.rb +169 -0
  230. data/starter-app/vendor/plugins/engines/lib/engines/assets.rb +38 -0
  231. data/starter-app/vendor/plugins/engines/lib/engines/plugin.rb +125 -0
  232. data/starter-app/vendor/plugins/engines/lib/engines/plugin/list.rb +30 -0
  233. data/starter-app/vendor/plugins/engines/lib/engines/plugin/loader.rb +18 -0
  234. data/starter-app/vendor/plugins/engines/lib/engines/plugin/locator.rb +11 -0
  235. data/starter-app/vendor/plugins/engines/lib/engines/plugin/migrator.rb +60 -0
  236. data/starter-app/vendor/plugins/engines/lib/engines/rails_extensions/action_mailer.rb +85 -0
  237. data/starter-app/vendor/plugins/engines/lib/engines/rails_extensions/active_record.rb +24 -0
  238. data/starter-app/vendor/plugins/engines/lib/engines/rails_extensions/asset_helpers.rb +119 -0
  239. data/starter-app/vendor/plugins/engines/lib/engines/rails_extensions/dependencies.rb +145 -0
  240. data/starter-app/vendor/plugins/engines/lib/engines/rails_extensions/migrations.rb +161 -0
  241. data/starter-app/vendor/plugins/engines/lib/engines/rails_extensions/rails.rb +11 -0
  242. data/starter-app/vendor/plugins/engines/lib/engines/rails_extensions/routing.rb +84 -0
  243. data/starter-app/vendor/plugins/engines/lib/engines/testing.rb +87 -0
  244. data/starter-app/vendor/plugins/engines/tasks/engines.rake +176 -0
  245. data/starter-app/vendor/plugins/in_place_editing/README +14 -0
  246. data/starter-app/vendor/plugins/in_place_editing/Rakefile +22 -0
  247. data/starter-app/vendor/plugins/in_place_editing/init.rb +2 -0
  248. data/starter-app/vendor/plugins/in_place_editing/lib/in_place_editing.rb +25 -0
  249. data/starter-app/vendor/plugins/in_place_editing/lib/in_place_macros_helper.rb +71 -0
  250. data/starter-app/vendor/plugins/in_place_editing/test/in_place_editing_test.rb +69 -0
  251. data/starter-app/vendor/plugins/paginating_find/CHANGELOG +120 -0
  252. data/starter-app/vendor/plugins/paginating_find/README +89 -0
  253. data/starter-app/vendor/plugins/paginating_find/init.rb +2 -0
  254. data/starter-app/vendor/plugins/paginating_find/lib/paginating_find.rb +138 -0
  255. data/starter-app/vendor/plugins/paginating_find/lib/paging_enumerator.rb +158 -0
  256. data/starter-app/vendor/plugins/paginating_find/lib/paging_helper.rb +47 -0
  257. data/starter-app/vendor/plugins/paginating_find/test_app/Rakefile +10 -0
  258. data/starter-app/vendor/plugins/paginating_find/test_app/app/controllers/application.rb +2 -0
  259. data/starter-app/vendor/plugins/paginating_find/test_app/config/boot.rb +44 -0
  260. data/starter-app/vendor/plugins/paginating_find/test_app/config/database.yml +6 -0
  261. data/starter-app/vendor/plugins/paginating_find/test_app/config/environment.rb +53 -0
  262. data/starter-app/vendor/plugins/paginating_find/test_app/config/environments/test.rb +19 -0
  263. data/starter-app/vendor/plugins/paginating_find/test_app/config/routes.rb +22 -0
  264. data/starter-app/vendor/plugins/paginating_find/test_app/db/schema.rb +16 -0
  265. data/starter-app/vendor/plugins/paginating_find/test_app/script/breakpointer +3 -0
  266. data/starter-app/vendor/plugins/paginating_find/test_app/script/console +3 -0
  267. data/starter-app/vendor/plugins/paginating_find/test_app/test/fixtures/articles.yml +19 -0
  268. data/starter-app/vendor/plugins/paginating_find/test_app/test/fixtures/authors.yml +7 -0
  269. data/starter-app/vendor/plugins/paginating_find/test_app/test/fixtures/edits.yml +11 -0
  270. data/starter-app/vendor/plugins/paginating_find/test_app/test/fixtures/models.rb +18 -0
  271. data/starter-app/vendor/plugins/paginating_find/test_app/test/test_helper.rb +33 -0
  272. data/starter-app/vendor/plugins/paginating_find/test_app/test/unit/abstract_test.rb +7 -0
  273. data/starter-app/vendor/plugins/paginating_find/test_app/test/unit/group_test.rb +40 -0
  274. data/starter-app/vendor/plugins/paginating_find/test_app/test/unit/paginating_find_test.rb +194 -0
  275. data/starter-app/vendor/plugins/paginating_find/test_app/test/unit/paging_enumerator_test.rb +143 -0
  276. data/starter-app/vendor/plugins/spree/.rakeTasks +7 -0
  277. data/starter-app/vendor/plugins/spree/CHANGELOG +1 -0
  278. data/starter-app/vendor/plugins/spree/LICENSE +26 -0
  279. data/starter-app/vendor/plugins/spree/README +1 -0
  280. data/starter-app/vendor/plugins/spree/Rakefile +10 -0
  281. data/starter-app/vendor/plugins/spree/VERSION +1 -0
  282. data/starter-app/vendor/plugins/spree/app/controllers/account_controller.rb +48 -0
  283. data/starter-app/vendor/plugins/spree/app/controllers/admin/base_controller.rb +7 -0
  284. data/starter-app/vendor/plugins/spree/app/controllers/admin/categories_controller.rb +107 -0
  285. data/starter-app/vendor/plugins/spree/app/controllers/admin/images_controller.rb +15 -0
  286. data/starter-app/vendor/plugins/spree/app/controllers/admin/option_types_controller.rb +70 -0
  287. data/starter-app/vendor/plugins/spree/app/controllers/admin/orders_controller.rb +247 -0
  288. data/starter-app/vendor/plugins/spree/app/controllers/admin/overview_controller.rb +14 -0
  289. data/starter-app/vendor/plugins/spree/app/controllers/admin/products_controller.rb +207 -0
  290. data/starter-app/vendor/plugins/spree/app/controllers/admin/reports_controller.rb +53 -0
  291. data/starter-app/vendor/plugins/spree/app/controllers/admin/users_controller.rb +45 -0
  292. data/starter-app/vendor/plugins/spree/app/controllers/admin/variations_controller.rb +73 -0
  293. data/starter-app/vendor/plugins/spree/app/controllers/cart_controller.rb +45 -0
  294. data/starter-app/vendor/plugins/spree/app/controllers/checkout_controller.rb +184 -0
  295. data/starter-app/vendor/plugins/spree/app/controllers/rails_cart/base_controller.rb +47 -0
  296. data/starter-app/vendor/plugins/spree/app/controllers/store_controller.rb +27 -0
  297. data/starter-app/vendor/plugins/spree/app/helpers/account_helper.rb +2 -0
  298. data/starter-app/vendor/plugins/spree/app/helpers/admin/base_helper.rb +14 -0
  299. data/starter-app/vendor/plugins/spree/app/helpers/admin/categories_helper.rb +3 -0
  300. data/starter-app/vendor/plugins/spree/app/helpers/admin/option_values_helper.rb +2 -0
  301. data/starter-app/vendor/plugins/spree/app/helpers/admin/orders_helper.rb +11 -0
  302. data/starter-app/vendor/plugins/spree/app/helpers/admin/overview_helper.rb +12 -0
  303. data/starter-app/vendor/plugins/spree/app/helpers/admin/products_helper.rb +7 -0
  304. data/starter-app/vendor/plugins/spree/app/helpers/admin/users_helper.rb +2 -0
  305. data/starter-app/vendor/plugins/spree/app/helpers/admin/variations_helper.rb +2 -0
  306. data/starter-app/vendor/plugins/spree/app/helpers/cart_helper.rb +6 -0
  307. data/starter-app/vendor/plugins/spree/app/helpers/checkout_helper.rb +17 -0
  308. data/starter-app/vendor/plugins/spree/app/helpers/rails_cart/base_helper.rb +101 -0
  309. data/starter-app/vendor/plugins/spree/app/helpers/search_helper.rb +10 -0
  310. data/starter-app/vendor/plugins/spree/app/helpers/store_helper.rb +3 -0
  311. data/starter-app/vendor/plugins/spree/app/models/address.rb +17 -0
  312. data/starter-app/vendor/plugins/spree/app/models/cart.rb +37 -0
  313. data/starter-app/vendor/plugins/spree/app/models/cart_item.rb +29 -0
  314. data/starter-app/vendor/plugins/spree/app/models/category.rb +66 -0
  315. data/starter-app/vendor/plugins/spree/app/models/country.rb +3 -0
  316. data/starter-app/vendor/plugins/spree/app/models/credit_card.rb +24 -0
  317. data/starter-app/vendor/plugins/spree/app/models/image.rb +12 -0
  318. data/starter-app/vendor/plugins/spree/app/models/line_item.rb +24 -0
  319. data/starter-app/vendor/plugins/spree/app/models/option_type.rb +4 -0
  320. data/starter-app/vendor/plugins/spree/app/models/option_value.rb +5 -0
  321. data/starter-app/vendor/plugins/spree/app/models/order.rb +87 -0
  322. data/starter-app/vendor/plugins/spree/app/models/order_mailer.rb +22 -0
  323. data/starter-app/vendor/plugins/spree/app/models/order_operation.rb +7 -0
  324. data/starter-app/vendor/plugins/spree/app/models/payment.rb +49 -0
  325. data/starter-app/vendor/plugins/spree/app/models/product.rb +42 -0
  326. data/starter-app/vendor/plugins/spree/app/models/product_option_type.rb +5 -0
  327. data/starter-app/vendor/plugins/spree/app/models/search_criteria.rb +27 -0
  328. data/starter-app/vendor/plugins/spree/app/models/sku.rb +7 -0
  329. data/starter-app/vendor/plugins/spree/app/models/state.rb +3 -0
  330. data/starter-app/vendor/plugins/spree/app/models/tax_treatment.rb +2 -0
  331. data/starter-app/vendor/plugins/spree/app/models/txn.rb +7 -0
  332. data/starter-app/vendor/plugins/spree/app/models/variation.rb +8 -0
  333. data/starter-app/vendor/plugins/spree/app/views/account/index.rhtml +3 -0
  334. data/starter-app/vendor/plugins/spree/app/views/account/login.rhtml +12 -0
  335. data/starter-app/vendor/plugins/spree/app/views/account/signup.rhtml +16 -0
  336. data/starter-app/vendor/plugins/spree/app/views/admin/categories/_form.rhtml +24 -0
  337. data/starter-app/vendor/plugins/spree/app/views/admin/categories/edit.rhtml +9 -0
  338. data/starter-app/vendor/plugins/spree/app/views/admin/categories/list.rhtml +47 -0
  339. data/starter-app/vendor/plugins/spree/app/views/admin/categories/new.rhtml +8 -0
  340. data/starter-app/vendor/plugins/spree/app/views/admin/images/new.html.erb +10 -0
  341. data/starter-app/vendor/plugins/spree/app/views/admin/option_types/_form.rhtml +16 -0
  342. data/starter-app/vendor/plugins/spree/app/views/admin/option_types/_new_option_value.rhtml +13 -0
  343. data/starter-app/vendor/plugins/spree/app/views/admin/option_types/_option_values.rhtml +43 -0
  344. data/starter-app/vendor/plugins/spree/app/views/admin/option_types/edit.rhtml +8 -0
  345. data/starter-app/vendor/plugins/spree/app/views/admin/option_types/index.rhtml +23 -0
  346. data/starter-app/vendor/plugins/spree/app/views/admin/option_types/new.rhtml +8 -0
  347. data/starter-app/vendor/plugins/spree/app/views/admin/option_types/select.rhtml +28 -0
  348. data/starter-app/vendor/plugins/spree/app/views/admin/option_types/test.rhtml +8 -0
  349. data/starter-app/vendor/plugins/spree/app/views/admin/orders/_address.rhtml +37 -0
  350. data/starter-app/vendor/plugins/spree/app/views/admin/orders/index.rhtml +99 -0
  351. data/starter-app/vendor/plugins/spree/app/views/admin/orders/show.rhtml +72 -0
  352. data/starter-app/vendor/plugins/spree/app/views/admin/overview/index.rhtml +0 -0
  353. data/starter-app/vendor/plugins/spree/app/views/admin/products/_form.rhtml +65 -0
  354. data/starter-app/vendor/plugins/spree/app/views/admin/products/_menu.rhtml +7 -0
  355. data/starter-app/vendor/plugins/spree/app/views/admin/products/_new_variation.rhtml +11 -0
  356. data/starter-app/vendor/plugins/spree/app/views/admin/products/_option_types.rhtml +42 -0
  357. data/starter-app/vendor/plugins/spree/app/views/admin/products/_variations.rhtml +41 -0
  358. data/starter-app/vendor/plugins/spree/app/views/admin/products/edit.rhtml +8 -0
  359. data/starter-app/vendor/plugins/spree/app/views/admin/products/index.rhtml +66 -0
  360. data/starter-app/vendor/plugins/spree/app/views/admin/products/new.rhtml +9 -0
  361. data/starter-app/vendor/plugins/spree/app/views/admin/reports/index.rhtml +29 -0
  362. data/starter-app/vendor/plugins/spree/app/views/admin/reports/sales_total.rhtml +28 -0
  363. data/starter-app/vendor/plugins/spree/app/views/admin/users/_form.rhtml +29 -0
  364. data/starter-app/vendor/plugins/spree/app/views/admin/users/_menu.rhtml +5 -0
  365. data/starter-app/vendor/plugins/spree/app/views/admin/users/edit.rhtml +8 -0
  366. data/starter-app/vendor/plugins/spree/app/views/admin/users/index.rhtml +26 -0
  367. data/starter-app/vendor/plugins/spree/app/views/admin/users/new.rhtml +6 -0
  368. data/starter-app/vendor/plugins/spree/app/views/admin/users/show.rhtml +9 -0
  369. data/starter-app/vendor/plugins/spree/app/views/admin/variations/_form.rhtml +33 -0
  370. data/starter-app/vendor/plugins/spree/app/views/admin/variations/_option_values.rhtml +5 -0
  371. data/starter-app/vendor/plugins/spree/app/views/admin/variations/list.rhtml +23 -0
  372. data/starter-app/vendor/plugins/spree/app/views/admin/variations/new.rhtml +14 -0
  373. data/starter-app/vendor/plugins/spree/app/views/cart/index.rhtml +49 -0
  374. data/starter-app/vendor/plugins/spree/app/views/checkout/_address.rhtml +51 -0
  375. data/starter-app/vendor/plugins/spree/app/views/checkout/_address_ro.rhtml +18 -0
  376. data/starter-app/vendor/plugins/spree/app/views/checkout/_cart_item.rhtml +5 -0
  377. data/starter-app/vendor/plugins/spree/app/views/checkout/_extra.rhtml +1 -0
  378. data/starter-app/vendor/plugins/spree/app/views/checkout/addresses.rhtml +51 -0
  379. data/starter-app/vendor/plugins/spree/app/views/checkout/cvv.rhtml +15 -0
  380. data/starter-app/vendor/plugins/spree/app/views/checkout/empty_cart.rhtml +4 -0
  381. data/starter-app/vendor/plugins/spree/app/views/checkout/final_confirmation.rhtml +92 -0
  382. data/starter-app/vendor/plugins/spree/app/views/checkout/incomplete.rhtml +7 -0
  383. data/starter-app/vendor/plugins/spree/app/views/checkout/thank_you.rhtml +11 -0
  384. data/starter-app/vendor/plugins/spree/app/views/layouts/admin.rhtml +69 -0
  385. data/starter-app/vendor/plugins/spree/app/views/layouts/products.rhtml +20 -0
  386. data/starter-app/vendor/plugins/spree/app/views/layouts/simple.rhtml +37 -0
  387. data/starter-app/vendor/plugins/spree/app/views/order_mailer/cancel.rhtml +15 -0
  388. data/starter-app/vendor/plugins/spree/app/views/order_mailer/confirm.rhtml +18 -0
  389. data/starter-app/vendor/plugins/spree/app/views/shared/_images.html.erb +43 -0
  390. data/starter-app/vendor/plugins/spree/app/views/shared/_order_details.rhtml +35 -0
  391. data/starter-app/vendor/plugins/spree/app/views/shared/_paginate.rhtml +34 -0
  392. data/starter-app/vendor/plugins/spree/app/views/shared/_report_criteria.rhtml +32 -0
  393. data/starter-app/vendor/plugins/spree/app/views/shared/_tax_treatments.rhtml +12 -0
  394. data/starter-app/vendor/plugins/spree/app/views/store/_image.html.erb +5 -0
  395. data/starter-app/vendor/plugins/spree/app/views/store/_products.rhtml +10 -0
  396. data/starter-app/vendor/plugins/spree/app/views/store/_thumbnails.html.erb +9 -0
  397. data/starter-app/vendor/plugins/spree/app/views/store/list.rhtml +15 -0
  398. data/starter-app/vendor/plugins/spree/app/views/store/show.rhtml +69 -0
  399. data/starter-app/vendor/plugins/spree/assets/.htaccess +40 -0
  400. data/starter-app/vendor/plugins/spree/assets/404.html +30 -0
  401. data/starter-app/vendor/plugins/spree/assets/500.html +30 -0
  402. data/starter-app/vendor/plugins/spree/assets/dispatch.cgi +10 -0
  403. data/starter-app/vendor/plugins/spree/assets/dispatch.fcgi +24 -0
  404. data/starter-app/vendor/plugins/spree/assets/dispatch.rb +10 -0
  405. data/starter-app/vendor/plugins/spree/assets/favicon.ico +0 -0
  406. data/starter-app/vendor/plugins/spree/assets/images/amex_cid.gif +0 -0
  407. data/starter-app/vendor/plugins/spree/assets/images/creditcard.gif +0 -0
  408. data/starter-app/vendor/plugins/spree/assets/images/discover_cid.gif +0 -0
  409. data/starter-app/vendor/plugins/spree/assets/images/master_cid.jpg +0 -0
  410. data/starter-app/vendor/plugins/spree/assets/images/products/ror_bag.jpg +0 -0
  411. data/starter-app/vendor/plugins/spree/assets/images/products/ror_baseball_jersey.jpg +0 -0
  412. data/starter-app/vendor/plugins/spree/assets/images/products/ror_jr_spaghetti.jpg +0 -0
  413. data/starter-app/vendor/plugins/spree/assets/images/products/ror_mug.jpg +0 -0
  414. data/starter-app/vendor/plugins/spree/assets/images/products/ror_ringer_tshirt.jpg +0 -0
  415. data/starter-app/vendor/plugins/spree/assets/images/products/ror_stein.jpg +0 -0
  416. data/starter-app/vendor/plugins/spree/assets/images/products/ror_tote.jpg +0 -0
  417. data/starter-app/vendor/plugins/spree/assets/images/rails.png +0 -0
  418. data/starter-app/vendor/plugins/spree/assets/images/spinner.gif +0 -0
  419. data/starter-app/vendor/plugins/spree/assets/images/spree/progress.gif +0 -0
  420. data/starter-app/vendor/plugins/spree/assets/images/spree/spinner.gif +0 -0
  421. data/starter-app/vendor/plugins/spree/assets/images/spree/spree_logo142x65.gif +0 -0
  422. data/starter-app/vendor/plugins/spree/assets/images/spree/spree_logo245x112.gif +0 -0
  423. data/starter-app/vendor/plugins/spree/assets/images/visa_cid.gif +0 -0
  424. data/starter-app/vendor/plugins/spree/assets/javascripts/application.js +2 -0
  425. data/starter-app/vendor/plugins/spree/assets/javascripts/controls.js +833 -0
  426. data/starter-app/vendor/plugins/spree/assets/javascripts/dragdrop.js +942 -0
  427. data/starter-app/vendor/plugins/spree/assets/javascripts/effects.js +1088 -0
  428. data/starter-app/vendor/plugins/spree/assets/javascripts/lowpro.js +307 -0
  429. data/starter-app/vendor/plugins/spree/assets/javascripts/prototype.js +2515 -0
  430. data/starter-app/vendor/plugins/spree/assets/robots.txt +1 -0
  431. data/starter-app/vendor/plugins/spree/assets/stylesheets/cart/_controller.css +71 -0
  432. data/starter-app/vendor/plugins/spree/assets/stylesheets/checkout/_controller.css +31 -0
  433. data/starter-app/vendor/plugins/spree/assets/stylesheets/fullscreen.css +63 -0
  434. data/starter-app/vendor/plugins/spree/assets/stylesheets/orders/_controller.css +3 -0
  435. data/starter-app/vendor/plugins/spree/assets/stylesheets/products/_controller.css +38 -0
  436. data/starter-app/vendor/plugins/spree/assets/stylesheets/spree-admin.css +348 -0
  437. data/starter-app/vendor/plugins/spree/assets/stylesheets/spree.css +66 -0
  438. data/starter-app/vendor/plugins/spree/assets/stylesheets/store/_controller.css +23 -0
  439. data/starter-app/vendor/plugins/spree/db/migrate/001_create_addresses.rb +20 -0
  440. data/starter-app/vendor/plugins/spree/db/migrate/002_create_cart_items.rb +14 -0
  441. data/starter-app/vendor/plugins/spree/db/migrate/003_create_carts.rb +12 -0
  442. data/starter-app/vendor/plugins/spree/db/migrate/004_create_categories.rb +15 -0
  443. data/starter-app/vendor/plugins/spree/db/migrate/005_create_categories_products.rb +12 -0
  444. data/starter-app/vendor/plugins/spree/db/migrate/006_create_line_items.rb +17 -0
  445. data/starter-app/vendor/plugins/spree/db/migrate/007_create_option_values.rb +15 -0
  446. data/starter-app/vendor/plugins/spree/db/migrate/008_create_orders.rb +24 -0
  447. data/starter-app/vendor/plugins/spree/db/migrate/009_create_products.rb +20 -0
  448. data/starter-app/vendor/plugins/spree/db/migrate/010_create_txns.rb +18 -0
  449. data/starter-app/vendor/plugins/spree/db/migrate/011_create_variations.rb +11 -0
  450. data/starter-app/vendor/plugins/spree/db/migrate/012_create_tax_treatments.rb +23 -0
  451. data/starter-app/vendor/plugins/spree/db/migrate/013_create_skus.rb +13 -0
  452. data/starter-app/vendor/plugins/spree/db/migrate/014_create_countries.rb +11 -0
  453. data/starter-app/vendor/plugins/spree/db/migrate/015_create_states.rb +13 -0
  454. data/starter-app/vendor/plugins/spree/db/migrate/016_create_option_types.rb +13 -0
  455. data/starter-app/vendor/plugins/spree/db/migrate/017_create_product_option_types.rb +14 -0
  456. data/starter-app/vendor/plugins/spree/db/migrate/018_create_option_values_variations.rb +12 -0
  457. data/starter-app/vendor/plugins/spree/db/migrate/019_create_images.rb +19 -0
  458. data/starter-app/vendor/plugins/spree/db/migrate/020_create_credit_cards.rb +20 -0
  459. data/starter-app/vendor/plugins/spree/db/migrate/021_create_order_operations.rb +14 -0
  460. data/starter-app/vendor/plugins/spree/init.rb +11 -0
  461. data/starter-app/vendor/plugins/spree/install.rb +3 -0
  462. data/starter-app/vendor/plugins/spree/lib/constants/enumerable_constants.rb +207 -0
  463. data/starter-app/vendor/plugins/spree/lib/format.rb +12 -0
  464. data/starter-app/vendor/plugins/spree/lib/gateway/bogus_gateway.rb +63 -0
  465. data/starter-app/vendor/plugins/spree/lib/shipping/flat_rate.rb +10 -0
  466. data/starter-app/vendor/plugins/spree/lib/tasks/spree_bootstrap.rake +24 -0
  467. data/starter-app/vendor/plugins/spree/lib/tax/sales_tax.rb +26 -0
  468. data/starter-app/vendor/plugins/spree/routes.rb +3 -0
  469. data/starter-app/vendor/plugins/spree/script/about +3 -0
  470. data/starter-app/vendor/plugins/spree/script/breakpointer +3 -0
  471. data/starter-app/vendor/plugins/spree/script/console +3 -0
  472. data/starter-app/vendor/plugins/spree/script/destroy +3 -0
  473. data/starter-app/vendor/plugins/spree/script/generate +3 -0
  474. data/starter-app/vendor/plugins/spree/script/performance/benchmarker +3 -0
  475. data/starter-app/vendor/plugins/spree/script/performance/profiler +3 -0
  476. data/starter-app/vendor/plugins/spree/script/plugin +3 -0
  477. data/starter-app/vendor/plugins/spree/script/process/inspector +3 -0
  478. data/starter-app/vendor/plugins/spree/script/process/reaper +3 -0
  479. data/starter-app/vendor/plugins/spree/script/process/spawner +3 -0
  480. data/starter-app/vendor/plugins/spree/script/runner +3 -0
  481. data/starter-app/vendor/plugins/spree/script/server +3 -0
  482. data/starter-app/vendor/plugins/spree/test/fixtures/addresses.yml +29 -0
  483. data/starter-app/vendor/plugins/spree/test/fixtures/categories.yml +40 -0
  484. data/starter-app/vendor/plugins/spree/test/fixtures/line_items.yml +32 -0
  485. data/starter-app/vendor/plugins/spree/test/fixtures/orders.yml +17 -0
  486. data/starter-app/vendor/plugins/spree/test/fixtures/products.yml +63 -0
  487. data/starter-app/vendor/plugins/spree/test/fixtures/products_tags.yml +10 -0
  488. data/starter-app/vendor/plugins/spree/test/fixtures/roles.yml +6 -0
  489. data/starter-app/vendor/plugins/spree/test/fixtures/roles_users.yml +3 -0
  490. data/starter-app/vendor/plugins/spree/test/fixtures/skus.yml +5 -0
  491. data/starter-app/vendor/plugins/spree/test/fixtures/tags.yml +7 -0
  492. data/starter-app/vendor/plugins/spree/test/fixtures/tax_treatments.yml +7 -0
  493. data/starter-app/vendor/plugins/spree/test/fixtures/txns.yml +13 -0
  494. data/starter-app/vendor/plugins/spree/test/fixtures/users.yml +40 -0
  495. data/starter-app/vendor/plugins/spree/test/fixtures/variations.yml +16 -0
  496. data/starter-app/vendor/plugins/spree/test/functional/account_controller_test.rb +129 -0
  497. data/starter-app/vendor/plugins/spree/test/functional/admin/base_controller_test.rb +18 -0
  498. data/starter-app/vendor/plugins/spree/test/functional/admin/option_groups_controller_test.rb +18 -0
  499. data/starter-app/vendor/plugins/spree/test/functional/admin/option_values_controller_test.rb +18 -0
  500. data/starter-app/vendor/plugins/spree/test/functional/admin/orders_controller_test.rb +18 -0
  501. data/starter-app/vendor/plugins/spree/test/functional/admin/overview_controller_test.rb +18 -0
  502. data/starter-app/vendor/plugins/spree/test/functional/admin/products_controller_test.rb +125 -0
  503. data/starter-app/vendor/plugins/spree/test/functional/admin/users_controller_test.rb +58 -0
  504. data/starter-app/vendor/plugins/spree/test/functional/admin/variations_controller_test.rb +18 -0
  505. data/starter-app/vendor/plugins/spree/test/functional/application_controller_test.rb +30 -0
  506. data/starter-app/vendor/plugins/spree/test/functional/cart_controller_test.rb +76 -0
  507. data/starter-app/vendor/plugins/spree/test/functional/checkout_controller_test.rb +20 -0
  508. data/starter-app/vendor/plugins/spree/test/integration/authentication_test.rb +53 -0
  509. data/starter-app/vendor/plugins/spree/test/integration/product_admin_test.rb +135 -0
  510. data/starter-app/vendor/plugins/spree/test/integration/user_stories_test.rb +59 -0
  511. data/starter-app/vendor/plugins/spree/test/integration/variations_test.rb +24 -0
  512. data/starter-app/vendor/plugins/spree/test/test_helper.rb +45 -0
  513. data/starter-app/vendor/plugins/spree/test/unit/address_test.rb +10 -0
  514. data/starter-app/vendor/plugins/spree/test/unit/cart_item_test.rb +55 -0
  515. data/starter-app/vendor/plugins/spree/test/unit/cart_test.rb +35 -0
  516. data/starter-app/vendor/plugins/spree/test/unit/category_test.rb +52 -0
  517. data/starter-app/vendor/plugins/spree/test/unit/line_item_test.rb +61 -0
  518. data/starter-app/vendor/plugins/spree/test/unit/option_group_test.rb +12 -0
  519. data/starter-app/vendor/plugins/spree/test/unit/order_test.rb +49 -0
  520. data/starter-app/vendor/plugins/spree/test/unit/product_test.rb +107 -0
  521. data/starter-app/vendor/plugins/spree/test/unit/role_test.rb +10 -0
  522. data/starter-app/vendor/plugins/spree/test/unit/sales_tax_test.rb +46 -0
  523. data/starter-app/vendor/plugins/spree/test/unit/sku_test.rb +10 -0
  524. data/starter-app/vendor/plugins/spree/test/unit/tag_test.rb +9 -0
  525. data/starter-app/vendor/plugins/spree/test/unit/tax_treatment_test.rb +10 -0
  526. data/starter-app/vendor/plugins/spree/test/unit/txn_test.rb +10 -0
  527. data/starter-app/vendor/plugins/spree/test/unit/variation_test.rb +9 -0
  528. data/starter-app/vendor/plugins/spree/uninstall.rb +1 -0
  529. data/tasks/deployment.rake +34 -0
  530. data/tasks/environment.rake +7 -0
  531. data/tasks/website.rake +17 -0
  532. data/test/test_helper.rb +2 -0
  533. data/test/test_railscart.rb +11 -0
  534. metadata +628 -0
@@ -0,0 +1,23 @@
1
+ <% for i in 1..30 do%>
2
+ li_<%= i %>:
3
+ order_id: <%= i %>
4
+ product: ror_tote
5
+ quantity: 1
6
+ price: 8.99
7
+ <% end %>
8
+
9
+ <% for i in 1..30 do%>
10
+ li_<%= i + 30 %>:
11
+ order_id: <%= i %>
12
+ product: ror_bag
13
+ quantity: 1
14
+ price: 8.99
15
+ <% end %>
16
+
17
+ <% for i in 1..30 do%>
18
+ li_<%= i + 60 %>:
19
+ order_id: <%= i %>
20
+ product: ror_baseball_jersey
21
+ quantity: 1
22
+ price: 19.99
23
+ <% end %>
@@ -0,0 +1,6 @@
1
+ size:
2
+ name: tshirt-size
3
+ presentation: Size
4
+ color:
5
+ name: tshirt-color
6
+ presentation: Color
@@ -0,0 +1,35 @@
1
+ s:
2
+ name: Small
3
+ presentation: S
4
+ position: 1
5
+ option_type: size
6
+ m:
7
+ name: Medium
8
+ presentation: M
9
+ position: 2
10
+ option_type: size
11
+ l:
12
+ name: Large
13
+ presentation: L
14
+ position: 3
15
+ option_type: size
16
+ xl:
17
+ name: Extra Large
18
+ presentation: XL
19
+ position: 4
20
+ option_type: size
21
+ red:
22
+ name: Red
23
+ presentation: Red
24
+ position: 1
25
+ option_type: color
26
+ green:
27
+ name: Green
28
+ presentation: Green
29
+ position: 2
30
+ option_type: color
31
+ blue:
32
+ name: Blue
33
+ presentation: Blue
34
+ position: 3
35
+ option_type: color
@@ -0,0 +1,15 @@
1
+ <% 1.upto(30) do |i| %>
2
+ order_<%= i %>:
3
+ id: <%= i %>
4
+ user: frank
5
+ number: <%= Array.new(9){rand(9)}.join %>
6
+ status: <%= Order::Status::AUTHORIZED %>
7
+ ship_method: 1
8
+ ship_amount: 5.00
9
+ tax_amount: 2.78
10
+ item_total: 37.97
11
+ total: 45.75
12
+ ship_address: frank_address
13
+ bill_address: frank_address
14
+ ip_address: 127.0.0.1
15
+ <% end %>
@@ -0,0 +1,8 @@
1
+ baseball_size:
2
+ product: ror_baseball_jersey
3
+ option_type: size
4
+ position: 1
5
+ baseball_color:
6
+ product: ror_baseball_jersey
7
+ option_type: color
8
+ position: 2
@@ -0,0 +1,35 @@
1
+ ror_tote:
2
+ name: Ruby on Rails Tote
3
+ description: Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Nulla nonummy aliquet mi. Proin lacus. Ut placerat. Proin consequat, justo sit amet tempus consequat, elit est adipiscing odio, ut egestas pede eros in diam. Proin varius, lacus vitae suscipit varius, ipsum eros convallis nisi, sit amet sodales lectus pede non est. Duis augue. Suspendisse hendrerit pharetra metus. Pellentesque habitant morbi tristique senectus et netus et malesuada fames ac turpis egestas. Curabitur nec pede. Quisque volutpat, neque ac porttitor sodales, sem lacus rutrum nulla, ullamcorper placerat ante tortor ac odio. Suspendisse vel libero. Nullam volutpat magna vel ligula. Suspendisse sit amet metus. Nunc quis massa. Nulla facilisi. In enim. In venenatis nisi id eros. Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Nunc sit amet felis sed lectus tincidunt egestas. Mauris nibh.
4
+ price: 15.99
5
+ category_id: 4
6
+ ror_bag:
7
+ name: Ruby on Rails Bag
8
+ description: Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Nulla nonummy aliquet mi. Proin lacus. Ut placerat. Proin consequat, justo sit amet tempus consequat, elit est adipiscing odio, ut egestas pede eros in diam. Proin varius, lacus vitae suscipit varius, ipsum eros convallis nisi, sit amet sodales lectus pede non est. Duis augue. Suspendisse hendrerit pharetra metus. Pellentesque habitant morbi tristique senectus et netus et malesuada fames ac turpis egestas. Curabitur nec pede. Quisque volutpat, neque ac porttitor sodales, sem lacus rutrum nulla, ullamcorper placerat ante tortor ac odio. Suspendisse vel libero. Nullam volutpat magna vel ligula. Suspendisse sit amet metus. Nunc quis massa. Nulla facilisi. In enim. In venenatis nisi id eros. Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Nunc sit amet felis sed lectus tincidunt egestas. Mauris nibh.
9
+ price: 22.99
10
+ category_id: 4
11
+ ror_baseball_jersey:
12
+ name: Ruby on Rails Baseball Jersey
13
+ description: Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Nulla nonummy aliquet mi. Proin lacus. Ut placerat. Proin consequat, justo sit amet tempus consequat, elit est adipiscing odio, ut egestas pede eros in diam. Proin varius, lacus vitae suscipit varius, ipsum eros convallis nisi, sit amet sodales lectus pede non est. Duis augue. Suspendisse hendrerit pharetra metus. Pellentesque habitant morbi tristique senectus et netus et malesuada fames ac turpis egestas. Curabitur nec pede. Quisque volutpat, neque ac porttitor sodales, sem lacus rutrum nulla, ullamcorper placerat ante tortor ac odio. Suspendisse vel libero. Nullam volutpat magna vel ligula. Suspendisse sit amet metus. Nunc quis massa. Nulla facilisi. In enim. In venenatis nisi id eros. Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Nunc sit amet felis sed lectus tincidunt egestas. Mauris nibh.
14
+ price: 19.99
15
+ category_id: 2
16
+ ror_jr_spaghetti:
17
+ name: Ruby on Rails Jr. Spaghetti
18
+ description: Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Nulla nonummy aliquet mi. Proin lacus. Ut placerat. Proin consequat, justo sit amet tempus consequat, elit est adipiscing odio, ut egestas pede eros in diam. Proin varius, lacus vitae suscipit varius, ipsum eros convallis nisi, sit amet sodales lectus pede non est. Duis augue. Suspendisse hendrerit pharetra metus. Pellentesque habitant morbi tristique senectus et netus et malesuada fames ac turpis egestas. Curabitur nec pede. Quisque volutpat, neque ac porttitor sodales, sem lacus rutrum nulla, ullamcorper placerat ante tortor ac odio. Suspendisse vel libero. Nullam volutpat magna vel ligula. Suspendisse sit amet metus. Nunc quis massa. Nulla facilisi. In enim. In venenatis nisi id eros. Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Nunc sit amet felis sed lectus tincidunt egestas. Mauris nibh.
19
+ price: 19.99
20
+ category_id: 2
21
+ ror_mug:
22
+ name: Ruby on Rails Mug
23
+ description: Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Nulla nonummy aliquet mi. Proin lacus. Ut placerat. Proin consequat, justo sit amet tempus consequat, elit est adipiscing odio, ut egestas pede eros in diam. Proin varius, lacus vitae suscipit varius, ipsum eros convallis nisi, sit amet sodales lectus pede non est. Duis augue. Suspendisse hendrerit pharetra metus. Pellentesque habitant morbi tristique senectus et netus et malesuada fames ac turpis egestas. Curabitur nec pede. Quisque volutpat, neque ac porttitor sodales, sem lacus rutrum nulla, ullamcorper placerat ante tortor ac odio. Suspendisse vel libero. Nullam volutpat magna vel ligula. Suspendisse sit amet metus. Nunc quis massa. Nulla facilisi. In enim. In venenatis nisi id eros. Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Nunc sit amet felis sed lectus tincidunt egestas. Mauris nibh.
24
+ price: 13.99
25
+ category_id: 3
26
+ ror_ringer:
27
+ name: Ruby on Rails Ringer T-Shirt
28
+ description: Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Nulla nonummy aliquet mi. Proin lacus. Ut placerat. Proin consequat, justo sit amet tempus consequat, elit est adipiscing odio, ut egestas pede eros in diam. Proin varius, lacus vitae suscipit varius, ipsum eros convallis nisi, sit amet sodales lectus pede non est. Duis augue. Suspendisse hendrerit pharetra metus. Pellentesque habitant morbi tristique senectus et netus et malesuada fames ac turpis egestas. Curabitur nec pede. Quisque volutpat, neque ac porttitor sodales, sem lacus rutrum nulla, ullamcorper placerat ante tortor ac odio. Suspendisse vel libero. Nullam volutpat magna vel ligula. Suspendisse sit amet metus. Nunc quis massa. Nulla facilisi. In enim. In venenatis nisi id eros. Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Nunc sit amet felis sed lectus tincidunt egestas. Mauris nibh.
29
+ price: 17.99
30
+ category_id: 2
31
+ ror_stein:
32
+ name: Ruby on Rails Stein
33
+ description: Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Nulla nonummy aliquet mi. Proin lacus. Ut placerat. Proin consequat, justo sit amet tempus consequat, elit est adipiscing odio, ut egestas pede eros in diam. Proin varius, lacus vitae suscipit varius, ipsum eros convallis nisi, sit amet sodales lectus pede non est. Duis augue. Suspendisse hendrerit pharetra metus. Pellentesque habitant morbi tristique senectus et netus et malesuada fames ac turpis egestas. Curabitur nec pede. Quisque volutpat, neque ac porttitor sodales, sem lacus rutrum nulla, ullamcorper placerat ante tortor ac odio. Suspendisse vel libero. Nullam volutpat magna vel ligula. Suspendisse sit amet metus. Nunc quis massa. Nulla facilisi. In enim. In venenatis nisi id eros. Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Nunc sit amet felis sed lectus tincidunt egestas. Mauris nibh.
34
+ price: 16.99
35
+ category_id: 3
@@ -0,0 +1,3 @@
1
+ user_role:
2
+ id: 2
3
+ name: user
@@ -0,0 +1,28 @@
1
+ ror_tote:
2
+ stockable: ror_tote
3
+ stockable_type: Product
4
+ number: RR1001
5
+ ror_bag:
6
+ stockable: ror_bag
7
+ stockable_type: Product
8
+ number: RR1002
9
+ ror_baseball_jersey:
10
+ stockable: ror_baseball_jersey
11
+ stockable_type: Product
12
+ number: RR1003
13
+ ror_jr_spaghetti:
14
+ stockable: ror_jr_spaghetti
15
+ stockable_type: Product
16
+ number: RR1004
17
+ ror_mug:
18
+ stockable: ror_mug
19
+ stockable_type: Product
20
+ number: RR1005
21
+ ror_ringer:
22
+ stockable: ror_ringer
23
+ stockable_type: Product
24
+ number: RR1006
25
+ ror_stein:
26
+ stockable: ror_stein
27
+ stockable_type: Product
28
+ number: RR1007
@@ -0,0 +1,154 @@
1
+ alabama:
2
+ name: Alabama
3
+ abbr: AL
4
+ alaska:
5
+ name: Alaska
6
+ abbr: AK
7
+ arizona:
8
+ name: Arizona
9
+ abbr: AZ
10
+ arkansas:
11
+ name: Arkansas
12
+ abbr: AR
13
+ california:
14
+ name: California
15
+ abbr: CA
16
+ colorado:
17
+ name: Colorado
18
+ abbr: CO
19
+ connecticut:
20
+ name: Connecticut
21
+ abbr: CT
22
+ deleware:
23
+ name: Delaware
24
+ abbr: DE
25
+ dc:
26
+ name: District of Columbia
27
+ abbr: DC
28
+ florida:
29
+ name: Florida
30
+ abbr: FL
31
+ georgia:
32
+ name: Georgia
33
+ abbr: GA
34
+ hawaii:
35
+ name: Hawaii
36
+ abbr: HI
37
+ idaho:
38
+ name: Idaho
39
+ abbr: ID
40
+ illinois:
41
+ name: Illinois
42
+ abbr: IL
43
+ indiana:
44
+ name: Indiana
45
+ abbr: IN
46
+ iowa:
47
+ name: Iowa
48
+ abbr: IA
49
+ kansas:
50
+ name: Kansas
51
+ abbr: KS
52
+ kentucky:
53
+ name: Kentucky
54
+ abbr: KY
55
+ louisiana:
56
+ name: Louisiana
57
+ abbr: LA
58
+ maine:
59
+ name: Maine
60
+ abbr: ME
61
+ maryland:
62
+ name: Maryland
63
+ abbr: MD
64
+ massachusetts:
65
+ name: Massachusetts
66
+ abbr: MA
67
+ michigan:
68
+ name: Michigan
69
+ abbr: MI
70
+ minnesota:
71
+ name: Minnesota
72
+ abbr: MN
73
+ mississippi:
74
+ name: Mississippi
75
+ abbr: MS
76
+ missouri:
77
+ name: Missouri
78
+ abbr: MO
79
+ montana:
80
+ name: Montana
81
+ abbr: MT
82
+ nebraska:
83
+ name: Nebraska
84
+ abbr: NE
85
+ nevada:
86
+ name: Nevada
87
+ abbr: NV
88
+ new_hampshire:
89
+ name: New Hampshire
90
+ abbr: NH
91
+ new_jersey:
92
+ name: New Jersey
93
+ abbr: NJ
94
+ new_mexico:
95
+ name: New Mexico
96
+ abbr: NM
97
+ new_york:
98
+ name: New York
99
+ abbr: NY
100
+ north_carolina:
101
+ name: North Carolina
102
+ abbr: NC
103
+ north_dakota:
104
+ name: North Dakota
105
+ abbr: ND
106
+ ohio:
107
+ name: Ohio
108
+ abbr: OH
109
+ oklahoma:
110
+ name: Oklahoma
111
+ abbr: OK
112
+ oregon:
113
+ name: Oregon
114
+ abbr: OR
115
+ pennsylvania:
116
+ name: Pennsylvania
117
+ abbr: PA
118
+ rhode_island:
119
+ name: Rhode Island
120
+ abbr: RI
121
+ south_carolina:
122
+ name: South Carolina
123
+ abbr: SC
124
+ south_dakota:
125
+ name: South Dakota
126
+ abbr: SD
127
+ tennesse:
128
+ name: Tennesse
129
+ abbr: TN
130
+ texas:
131
+ name: Texas
132
+ abbr: TX
133
+ utah:
134
+ name: Utah
135
+ abbr: UT
136
+ vermont:
137
+ name: Vermont
138
+ abbr: VT
139
+ virginia:
140
+ name: Virginia
141
+ abbr: VA
142
+ washington:
143
+ id: 48
144
+ name: Washington
145
+ abbr: WA
146
+ west_virginia:
147
+ name: West Virginia
148
+ abbr: WV
149
+ wisconsin:
150
+ name: Wisconsin
151
+ abbr: WI
152
+ wyoming:
153
+ name: Wyoming
154
+ abbr: WY
@@ -0,0 +1,16 @@
1
+ taggings_1:
2
+ id: 1
3
+ tag_id: 1 # delicious
4
+ taggable_id: 1
5
+ taggable_type: Product
6
+ taggings_2:
7
+ id: 2
8
+ tag_id: 1 # delicious
9
+ taggable_id: 2
10
+ taggable_type: Product
11
+ taggings_3:
12
+ id: 3
13
+ tag_id: 2 # sexy
14
+ taggable_id: 3
15
+ taggable_type: Product
16
+
@@ -0,0 +1,6 @@
1
+ tags_001:
2
+ name: delicious
3
+ id: "1"
4
+ tags_002:
5
+ name: sexy
6
+ id: "2"
@@ -0,0 +1,7 @@
1
+ <% 1.upto(30) do |i| %>
2
+ txn_<%= i %>:
3
+ amount: 45.75
4
+ txn_type: <%=Txn::TxnType::AUTHORIZE%>
5
+ response_code: 12345
6
+ credit_card: visa_<%=i%>
7
+ <% end %>
@@ -0,0 +1,6 @@
1
+ frank:
2
+ login: frank.foo@example.com
3
+ email: frank.foo@example.com
4
+ salt: 7e3041ebc2fc05a40c60028e2c4901a81035d3cd
5
+ crypted_password: 00742970dc9e6319f8019fd54864d3ea740f04b1
6
+ # test
@@ -0,0 +1,31 @@
1
+ small-red-baseball:
2
+ product: ror_baseball_jersey
3
+ option_values: s, red
4
+ small-blue-baseball:
5
+ product: ror_baseball_jersey
6
+ option_values: s, blue
7
+ small-green-baseball:
8
+ product: ror_baseball_jersey
9
+ option_values: s, green
10
+ med-red-baseball:
11
+ product: ror_baseball_jersey
12
+ option_values: m, red
13
+ med-blue-baseball:
14
+ product: ror_baseball_jersey
15
+ option_values: m, blue
16
+ med-green-baseball:
17
+ product: ror_baseball_jersey
18
+ option_values: m, green
19
+ large-red-baseball:
20
+ product: ror_baseball_jersey
21
+ option_values: l, red
22
+ large-blue-baseball:
23
+ product: ror_baseball_jersey
24
+ option_values: l, blue
25
+ large-green-baseball:
26
+ product: ror_baseball_jersey
27
+ option_values: l, green
28
+ xlarge-green-baseball:
29
+ product: ror_baseball_jersey
30
+ option_values: xl, red
31
+
@@ -0,0 +1,2 @@
1
+ Use this README file to introduce your application and point to useful places in the API for learning more.
2
+ Run "rake appdoc" to generate API documentation for your models and controllers.
@@ -0,0 +1,116 @@
1
+ module AuthenticatedSystem
2
+ protected
3
+ # Returns true or false if the user is logged in.
4
+ # Preloads @current_user with the user model if they're logged in.
5
+ def logged_in?
6
+ current_user != :false
7
+ end
8
+
9
+ # Accesses the current user from the session. Set it to :false if login fails
10
+ # so that future calls do not hit the database.
11
+ def current_user
12
+ @current_user ||= (login_from_session || login_from_basic_auth || login_from_cookie || :false)
13
+ end
14
+
15
+ # Store the given user id in the session.
16
+ def current_user=(new_user)
17
+ session[:user_id] = (new_user.nil? || new_user.is_a?(Symbol)) ? nil : new_user.id
18
+ @current_user = new_user || :false
19
+ end
20
+
21
+ # Check if the user is authorized
22
+ #
23
+ # Override this method in your controllers if you want to restrict access
24
+ # to only a few actions or if you want to check if the user
25
+ # has the correct rights.
26
+ #
27
+ # Example:
28
+ #
29
+ # # only allow nonbobs
30
+ # def authorized?
31
+ # current_user.login != "bob"
32
+ # end
33
+ def authorized?
34
+ logged_in?
35
+ end
36
+
37
+ # Filter method to enforce a login requirement.
38
+ #
39
+ # To require logins for all actions, use this in your controllers:
40
+ #
41
+ # before_filter :login_required
42
+ #
43
+ # To require logins for specific actions, use this in your controllers:
44
+ #
45
+ # before_filter :login_required, :only => [ :edit, :update ]
46
+ #
47
+ # To skip this in a subclassed controller:
48
+ #
49
+ # skip_before_filter :login_required
50
+ #
51
+ def login_required
52
+ authorized? || access_denied
53
+ end
54
+
55
+ # Redirect as appropriate when an access request fails.
56
+ #
57
+ # The default action is to redirect to the login screen.
58
+ #
59
+ # Override this method in your controllers if you want to have special
60
+ # behavior in case the user is not authorized
61
+ # to access the requested action. For example, a popup window might
62
+ # simply close itself.
63
+ def access_denied
64
+ respond_to do |format|
65
+ format.html do
66
+ store_location
67
+ redirect_to :controller => '/session', :action => 'new'
68
+ end
69
+ format.xml do
70
+ request_http_basic_authentication 'Web Password'
71
+ end
72
+ end
73
+ end
74
+
75
+ # Store the URI of the current request in the session.
76
+ #
77
+ # We can return to this location by calling #redirect_back_or_default.
78
+ def store_location
79
+ session[:return_to] = request.request_uri
80
+ end
81
+
82
+ # Redirect to the URI stored by the most recent store_location call or
83
+ # to the passed default.
84
+ def redirect_back_or_default(default)
85
+ redirect_to(session[:return_to] || default)
86
+ session[:return_to] = nil
87
+ end
88
+
89
+ # Inclusion hook to make #current_user and #logged_in?
90
+ # available as ActionView helper methods.
91
+ def self.included(base)
92
+ base.send :helper_method, :current_user, :logged_in?
93
+ end
94
+
95
+ # Called from #current_user. First attempt to login by the user id stored in the session.
96
+ def login_from_session
97
+ self.current_user = User.find(session[:user_id]) if session[:user_id]
98
+ end
99
+
100
+ # Called from #current_user. Now, attempt to login by basic authentication information.
101
+ def login_from_basic_auth
102
+ authenticate_with_http_basic do |username, password|
103
+ self.current_user = User.authenticate(username, password)
104
+ end
105
+ end
106
+
107
+ # Called from #current_user. Finaly, attempt to login by an expiring token in the cookie.
108
+ def login_from_cookie
109
+ user = cookies[:auth_token] && User.find_by_remember_token(cookies[:auth_token])
110
+ if user && user.remember_token?
111
+ user.remember_me
112
+ cookies[:auth_token] = { :value => user.remember_token, :expires => user.remember_token_expires_at }
113
+ self.current_user = user
114
+ end
115
+ end
116
+ end