MyCommerceapi 1.0.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (4055) hide show
  1. data/Gemfile +37 -0
  2. data/INSTALL +23 -0
  3. data/README.md +130 -0
  4. data/Rakefile +154 -0
  5. data/api/Gemfile +36 -0
  6. data/api/Gemfile.lock +252 -0
  7. data/api/LICENSE +26 -0
  8. data/api/README.md +16 -0
  9. data/api/Rakefile +53 -0
  10. data/api/app/controllers/admin/users_controller_decorator.rb +19 -0
  11. data/api/app/controllers/api/adjustments_controller.rb +13 -0
  12. data/api/app/controllers/api/base_controller.rb +183 -0
  13. data/api/app/controllers/api/checkout1_controller.rb +89 -0
  14. data/api/app/controllers/api/countries_controller.rb +3 -0
  15. data/api/app/controllers/api/images_controller.rb +15 -0
  16. data/api/app/controllers/api/inventory_units_controller.rb +19 -0
  17. data/api/app/controllers/api/line_items_controller.rb +37 -0
  18. data/api/app/controllers/api/mail_methods_controller.rb +10 -0
  19. data/api/app/controllers/api/option_types_controller.rb +24 -0
  20. data/api/app/controllers/api/orders_controller.rb +51 -0
  21. data/api/app/controllers/api/overview_controller.rb +132 -0
  22. data/api/app/controllers/api/payment_methods_controller.rb +24 -0
  23. data/api/app/controllers/api/payments_controller.rb +3 -0
  24. data/api/app/controllers/api/product_groups_controller.rb +14 -0
  25. data/api/app/controllers/api/products_controller.rb +14 -0
  26. data/api/app/controllers/api/promotions_controller.rb +14 -0
  27. data/api/app/controllers/api/properties_controller.rb +26 -0
  28. data/api/app/controllers/api/prototypes_controller.rb +24 -0
  29. data/api/app/controllers/api/reports_controller.rb +8 -0
  30. data/api/app/controllers/api/shipments_controller.rb +37 -0
  31. data/api/app/controllers/api/shipping_categories_controller.rb +13 -0
  32. data/api/app/controllers/api/shipping_methods_controller.rb +24 -0
  33. data/api/app/controllers/api/states_controller.rb +8 -0
  34. data/api/app/controllers/api/tax_categories_controller.rb +24 -0
  35. data/api/app/controllers/api/tax_rates_controller.rb +24 -0
  36. data/api/app/controllers/api/taxonomies_controller.rb +12 -0
  37. data/api/app/controllers/api/taxons_controller.rb +17 -0
  38. data/api/app/controllers/api/users_controller.rb +3 -0
  39. data/api/app/controllers/api/variants_controller.rb +24 -0
  40. data/api/app/controllers/api/zones_controller.rb +24 -0
  41. data/api/app/models/line_item_decorator.rb +7 -0
  42. data/api/app/models/order_decorator.rb +5 -0
  43. data/api/app/models/shipment_decorator.rb +5 -0
  44. data/api/app/models/user_decorator.rb +22 -0
  45. data/api/app/views/admin/users/_api_fields.html.erb +16 -0
  46. data/api/config/cucumber.yml +10 -0
  47. data/api/config/locales/en.yml +16 -0
  48. data/api/config/routes.rb +143 -0
  49. data/api/db/migrate/20100107141738_add_api_key_to_users.rb +9 -0
  50. data/api/features/countries.feature +16 -0
  51. data/api/features/inventory_units.feature +19 -0
  52. data/api/features/line_items.feature +19 -0
  53. data/api/features/orders.feature +18 -0
  54. data/api/features/orders_description.feature +15 -0
  55. data/api/features/products.feature +29 -0
  56. data/api/features/shipment.feature +18 -0
  57. data/api/features/states.feature +16 -0
  58. data/api/features/step_definitions/api_steps.rb +31 -0
  59. data/api/features/step_definitions/orders_steps.rb +176 -0
  60. data/api/features/support/env.rb +23 -0
  61. data/api/features/support/factories.rb +0 -0
  62. data/api/features/support/hooks.rb +0 -0
  63. data/api/features/support/paths.rb +35 -0
  64. data/api/features/users.feature +19 -0
  65. data/api/lib/spree_api.rb +16 -0
  66. data/api/lib/spree_api_hooks.rb +3 -0
  67. data/api/lib/tasks/install.rake +23 -0
  68. data/api/rfcommerce_api.gemspec +26 -0
  69. data/api/spec/controllers/api/spree_base_controller_spec.rb +53 -0
  70. data/api/spec/models/user_spec.rb +27 -0
  71. data/api/spec/spec_helper.rb +29 -0
  72. data/api/spec/test_app/Gemfile +36 -0
  73. data/api/spec/test_app/Rakefile +7 -0
  74. data/api/spec/test_app/app/controllers/application_controller.rb +3 -0
  75. data/api/spec/test_app/app/helpers/application_helper.rb +2 -0
  76. data/api/spec/test_app/app/views/layouts/application.html.erb +14 -0
  77. data/api/spec/test_app/config.ru +4 -0
  78. data/api/spec/test_app/config/application.rb +42 -0
  79. data/api/spec/test_app/config/boot.rb +6 -0
  80. data/api/spec/test_app/config/database.yml +17 -0
  81. data/api/spec/test_app/config/environment.rb +5 -0
  82. data/api/spec/test_app/config/environments/cucumber.rb +38 -0
  83. data/api/spec/test_app/config/environments/development.rb +26 -0
  84. data/api/spec/test_app/config/environments/production.rb +49 -0
  85. data/api/spec/test_app/config/environments/test.rb +35 -0
  86. data/api/spec/test_app/config/initializers/backtrace_silencers.rb +7 -0
  87. data/api/spec/test_app/config/initializers/inflections.rb +10 -0
  88. data/api/spec/test_app/config/initializers/mime_types.rb +5 -0
  89. data/api/spec/test_app/config/initializers/secret_token.rb +7 -0
  90. data/api/spec/test_app/config/initializers/session_store.rb +8 -0
  91. data/api/spec/test_app/config/locales/en.yml +5 -0
  92. data/api/spec/test_app/config/routes.rb +58 -0
  93. data/api/spec/test_app/db/cucumber.sqlite3 +0 -0
  94. data/api/spec/test_app/db/default/countries.yml +1583 -0
  95. data/api/spec/test_app/db/default/roles.yml +7 -0
  96. data/api/spec/test_app/db/default/states.yml +256 -0
  97. data/api/spec/test_app/db/default/zone_members.yml +169 -0
  98. data/api/spec/test_app/db/default/zones.yml +13 -0
  99. data/api/spec/test_app/db/migrate/20090823005402_spree_zero_nine_zero.rb +442 -0
  100. data/api/spec/test_app/db/migrate/20090904192342_create_indexes_for_inventory_units.rb +12 -0
  101. data/api/spec/test_app/db/migrate/20090923100315_add_count_on_hand_to_variants_and_products.rb +36 -0
  102. data/api/spec/test_app/db/migrate/20091007134354_change_taxons_to_nested_set.rb +40 -0
  103. data/api/spec/test_app/db/migrate/20091008091614_move_to_configurable_gateways.rb +55 -0
  104. data/api/spec/test_app/db/migrate/20091012120519_product_groups_and_scopes.rb +25 -0
  105. data/api/spec/test_app/db/migrate/20091015110842_add_open_id_authentication_tables.rb +20 -0
  106. data/api/spec/test_app/db/migrate/20091015153048_add_openid_field_to_users.rb +19 -0
  107. data/api/spec/test_app/db/migrate/20091016174634_change_preference_value_type.rb +10 -0
  108. data/api/spec/test_app/db/migrate/20091017175558_create_billing_integrations.rb +16 -0
  109. data/api/spec/test_app/db/migrate/20091021133257_charge_refactoring.rb +35 -0
  110. data/api/spec/test_app/db/migrate/20091104151730_add_some_indexes.rb +21 -0
  111. data/api/spec/test_app/db/migrate/20091126190904_checkout_state_machine.rb +13 -0
  112. data/api/spec/test_app/db/migrate/20091209153045_state_for_shipments.rb +9 -0
  113. data/api/spec/test_app/db/migrate/20091209202200_make_state_events_polymorphic.rb +12 -0
  114. data/api/spec/test_app/db/migrate/20091211203813_ship_address_id_for_checkouts.rb +9 -0
  115. data/api/spec/test_app/db/migrate/20091212161118_shipping_method_id_for_checkouts.rb +9 -0
  116. data/api/spec/test_app/db/migrate/20091213222815_creditcard_last_four_digits.rb +19 -0
  117. data/api/spec/test_app/db/migrate/20091214183826_populate_legacy_shipment_state.rb +19 -0
  118. data/api/spec/test_app/db/migrate/20100105090147_add_cost_price.rb +9 -0
  119. data/api/spec/test_app/db/migrate/20100105132138_shipment_id_for_inventory_units.rb +21 -0
  120. data/api/spec/test_app/db/migrate/20100107141738_add_api_key_to_users.rb +9 -0
  121. data/api/spec/test_app/db/migrate/20100111205525_cim_fields_for_creditcards.rb +11 -0
  122. data/api/spec/test_app/db/migrate/20100112151511_create_return_authorizations.rb +16 -0
  123. data/api/spec/test_app/db/migrate/20100113090919_add_return_authorization_to_inventory_units.rb +9 -0
  124. data/api/spec/test_app/db/migrate/20100113203104_create_trackers.rb +14 -0
  125. data/api/spec/test_app/db/migrate/20100121160010_creditcard_id_for_creditcard_txns.rb +9 -0
  126. data/api/spec/test_app/db/migrate/20100121183934_original_creditcard_txn_id_for_creditcard_txns.rb +9 -0
  127. data/api/spec/test_app/db/migrate/20100125145351_add_test_mode_to_billing_integration.rb +11 -0
  128. data/api/spec/test_app/db/migrate/20100126103714_create_products_product_groups.rb +12 -0
  129. data/api/spec/test_app/db/migrate/20100209025806_create_payment_methods.rb +20 -0
  130. data/api/spec/test_app/db/migrate/20100209144531_polymorphic_payments.rb +29 -0
  131. data/api/spec/test_app/db/migrate/20100213103131_change_payments_payment_method_to_belongs_to.rb +11 -0
  132. data/api/spec/test_app/db/migrate/20100214212536_assign_creditcard_txns_to_payment.rb +16 -0
  133. data/api/spec/test_app/db/migrate/20100223170312_sti_for_transactions.rb +14 -0
  134. data/api/spec/test_app/db/migrate/20100223183812_drop_billing_integrations.rb +16 -0
  135. data/api/spec/test_app/db/migrate/20100224153127_deleted_at_for_payment_methods.rb +13 -0
  136. data/api/spec/test_app/db/migrate/20100301163454_add_adjustments_index.rb +10 -0
  137. data/api/spec/test_app/db/migrate/20100306153445_fix_by_popularity.rb +8 -0
  138. data/api/spec/test_app/db/migrate/20100317120946_add_alt_text_to_images.rb +9 -0
  139. data/api/spec/test_app/db/migrate/20100427121301_add_display_to_payment_methods.rb +9 -0
  140. data/api/spec/test_app/db/migrate/20100504142133_add_addresses_checkouts_indexes.rb +16 -0
  141. data/api/spec/test_app/db/migrate/20100506180619_add_icon_to_taxons.rb +18 -0
  142. data/api/spec/test_app/db/migrate/20100506185838_add_description_to_taxons.rb +11 -0
  143. data/api/spec/test_app/db/migrate/20100528155333_index_for_shipments_number.rb +9 -0
  144. data/api/spec/test_app/db/migrate/20100528185820_add_index_on_users_persistence_token.rb +9 -0
  145. data/api/spec/test_app/db/migrate/20100605152042_add_default_to_tax_categories.rb +9 -0
  146. data/api/spec/test_app/db/migrate/20100624110730_add_display_to_shipping_methods.rb +9 -0
  147. data/api/spec/test_app/db/migrate/20100624123336_rename_payment_method_display.rb +9 -0
  148. data/api/spec/test_app/db/migrate/20100624175547_rename_preferences_field.rb +8 -0
  149. data/api/spec/test_app/db/migrate/20100811163637_add_guest_flag.rb +13 -0
  150. data/api/spec/test_app/db/migrate/20100811205836_drop_order_token.rb +11 -0
  151. data/api/spec/test_app/db/migrate/20100812162326_payments_state_and_assigned_to_order_only.rb +11 -0
  152. data/api/spec/test_app/db/migrate/20100813023502_create_address_keys_for_order.rb +15 -0
  153. data/api/spec/test_app/db/migrate/20100813185745_payment_total_for_orders.rb +9 -0
  154. data/api/spec/test_app/db/migrate/20100816212146_shipping_method_id_for_orders.rb +9 -0
  155. data/api/spec/test_app/db/migrate/20100817152723_add_shipment_and_payment_state.rb +15 -0
  156. data/api/spec/test_app/db/migrate/20100819170125_refactor_adjustments.rb +19 -0
  157. data/api/spec/test_app/db/migrate/20100820135707_response_code_and_avs_response_for_payments.rb +11 -0
  158. data/api/spec/test_app/db/migrate/20100901171814_change_guest_flag_to_anonymous.rb +13 -0
  159. data/api/spec/test_app/db/migrate/20100903203949_email_for_orders.rb +9 -0
  160. data/api/spec/test_app/db/migrate/20100923162011_create_mail_methods.rb +12 -0
  161. data/api/spec/test_app/db/migrate/20100929151905_rename_frozen_to_locked.rb +8 -0
  162. data/api/spec/test_app/db/migrate/20101008190536_move_special_instructions_to_orders.rb +11 -0
  163. data/api/spec/test_app/db/migrate/20101026184700_create_log_entries.rb +15 -0
  164. data/api/spec/test_app/db/migrate/20101026184714_migrate_transactions_to_payment_state.rb +94 -0
  165. data/api/spec/test_app/db/migrate/20101026184746_delete_in_progress_orders.rb +18 -0
  166. data/api/spec/test_app/db/migrate/20101026184808_migrate_checkout_to_orders.rb +27 -0
  167. data/api/spec/test_app/db/migrate/20101026184833_migrate_adjustments.rb +9 -0
  168. data/api/spec/test_app/db/migrate/20101026184855_remove_shipped_state.rb +14 -0
  169. data/api/spec/test_app/db/migrate/20101026184916_prevent_nil_payment_total.rb +8 -0
  170. data/api/spec/test_app/db/migrate/20101026184932_prevent_nil_email.rb +9 -0
  171. data/api/spec/test_app/db/migrate/20101026184950_rename_columns_for_devise.rb +39 -0
  172. data/api/spec/test_app/db/migrate/20101026184959_generate_anonymous_users.rb +14 -0
  173. data/api/spec/test_app/db/migrate/20101026185022_update_order_state.rb +8 -0
  174. data/api/spec/test_app/db/migrate/20101026192225_cleanup_legacy_tables.rb +11 -0
  175. data/api/spec/test_app/db/migrate/20101028151745_remove_number_and_cvv_from_credicard.rb +9 -0
  176. data/api/spec/test_app/db/migrate/20101103212716_drop_anonymous_field_for_user.rb +8 -0
  177. data/api/spec/test_app/db/migrate/20101111133551_renamed_rma_cancelled_state.rb +10 -0
  178. data/api/spec/test_app/db/migrate/20101117031806_fix_problematic_index_names.rb +13 -0
  179. data/api/spec/test_app/db/migrate/20101214150824_convert_user_remember_field.rb +11 -0
  180. data/api/spec/test_app/db/migrate/20101217012656_create_tokenized_permissions.rb +18 -0
  181. data/api/spec/test_app/db/migrate/20101219201531_tokens_for_legacy_orders.rb +12 -0
  182. data/api/spec/test_app/db/migrate/20101223215658_add_position_to_variants.rb +9 -0
  183. data/api/spec/test_app/db/migrate/20110110130847_add_next_state_to_state_events.rb +9 -0
  184. data/api/spec/test_app/db/migrate/20110111122537_add_position_to_option_types.rb +9 -0
  185. data/api/spec/test_app/db/migrate/20110314192118_remove_trailing_slashes_in_taxon_permalinks.rb +17 -0
  186. data/api/spec/test_app/db/sample/users.rb +53 -0
  187. data/api/spec/test_app/db/schema.rb +542 -0
  188. data/api/spec/test_app/db/seeds.rb +3 -0
  189. data/api/spec/test_app/db/test.sqlite3 +0 -0
  190. data/api/spec/test_app/log/cucumber.log +1601 -0
  191. data/api/spec/test_app/log/development.log +0 -0
  192. data/api/spec/test_app/log/production.log +0 -0
  193. data/api/spec/test_app/log/server.log +0 -0
  194. data/api/spec/test_app/log/test.log +1601 -0
  195. data/api/spec/test_app/public/404.html +26 -0
  196. data/api/spec/test_app/public/422.html +26 -0
  197. data/api/spec/test_app/public/500.html +26 -0
  198. data/api/spec/test_app/public/favicon.ico +0 -0
  199. data/api/spec/test_app/public/images/add-to-cart.png +0 -0
  200. data/api/spec/test_app/public/images/admin/bg/active-tab.png +0 -0
  201. data/api/spec/test_app/public/images/admin/bg/admin_tab_back.png +0 -0
  202. data/api/spec/test_app/public/images/admin/bg/admin_tab_selected_back.png +0 -0
  203. data/api/spec/test_app/public/images/admin/bg/content-back-blue.png +0 -0
  204. data/api/spec/test_app/public/images/admin/bg/content-back-green.png +0 -0
  205. data/api/spec/test_app/public/images/admin/bg/content-back.png +0 -0
  206. data/api/spec/test_app/public/images/admin/bg/flash-error.png +0 -0
  207. data/api/spec/test_app/public/images/admin/bg/flash-notice.png +0 -0
  208. data/api/spec/test_app/public/images/admin/bg/green-stripes.gif +0 -0
  209. data/api/spec/test_app/public/images/admin/bg/green-stripes.png +0 -0
  210. data/api/spec/test_app/public/images/admin/bg/grid_header_back.png +0 -0
  211. data/api/spec/test_app/public/images/admin/bg/grid_header_back_green.png +0 -0
  212. data/api/spec/test_app/public/images/admin/bg/header-bg.png +0 -0
  213. data/api/spec/test_app/public/images/admin/bg/header.png +0 -0
  214. data/api/spec/test_app/public/images/admin/bg/header_bg.jpg +0 -0
  215. data/api/spec/test_app/public/images/admin/bg/menu-current.png +0 -0
  216. data/api/spec/test_app/public/images/admin/bg/red-stripes.gif +0 -0
  217. data/api/spec/test_app/public/images/admin/bg/red-stripes.png +0 -0
  218. data/api/spec/test_app/public/images/admin/bg/spree_50.png +0 -0
  219. data/api/spec/test_app/public/images/admin/bg/subnav-divider.png +0 -0
  220. data/api/spec/test_app/public/images/admin/bg/subnav.png +0 -0
  221. data/api/spec/test_app/public/images/admin/bg/tab-back.png +0 -0
  222. data/api/spec/test_app/public/images/admin/buttons/blue/left_01.png +0 -0
  223. data/api/spec/test_app/public/images/admin/buttons/blue/right_01.png +0 -0
  224. data/api/spec/test_app/public/images/admin/buttons/drag-handle-green.png +0 -0
  225. data/api/spec/test_app/public/images/admin/buttons/green/left_01.png +0 -0
  226. data/api/spec/test_app/public/images/admin/buttons/green/right_01.png +0 -0
  227. data/api/spec/test_app/public/images/admin/buttons/left_01.png +0 -0
  228. data/api/spec/test_app/public/images/admin/buttons/left_01_small.png +0 -0
  229. data/api/spec/test_app/public/images/admin/buttons/orange/left_03.png +0 -0
  230. data/api/spec/test_app/public/images/admin/buttons/orange/right_03.png +0 -0
  231. data/api/spec/test_app/public/images/admin/buttons/right_01.png +0 -0
  232. data/api/spec/test_app/public/images/admin/buttons/right_01_small.png +0 -0
  233. data/api/spec/test_app/public/images/admin/icons/16x16/1.png +0 -0
  234. data/api/spec/test_app/public/images/admin/icons/16x16/10.png +0 -0
  235. data/api/spec/test_app/public/images/admin/icons/16x16/2.png +0 -0
  236. data/api/spec/test_app/public/images/admin/icons/16x16/3.png +0 -0
  237. data/api/spec/test_app/public/images/admin/icons/16x16/4.png +0 -0
  238. data/api/spec/test_app/public/images/admin/icons/16x16/5.png +0 -0
  239. data/api/spec/test_app/public/images/admin/icons/16x16/6.png +0 -0
  240. data/api/spec/test_app/public/images/admin/icons/16x16/7.png +0 -0
  241. data/api/spec/test_app/public/images/admin/icons/16x16/8.png +0 -0
  242. data/api/spec/test_app/public/images/admin/icons/16x16/9.png +0 -0
  243. data/api/spec/test_app/public/images/admin/icons/32x32/1.png +0 -0
  244. data/api/spec/test_app/public/images/admin/icons/32x32/10.png +0 -0
  245. data/api/spec/test_app/public/images/admin/icons/32x32/11.png +0 -0
  246. data/api/spec/test_app/public/images/admin/icons/32x32/2.png +0 -0
  247. data/api/spec/test_app/public/images/admin/icons/32x32/3.png +0 -0
  248. data/api/spec/test_app/public/images/admin/icons/32x32/4.png +0 -0
  249. data/api/spec/test_app/public/images/admin/icons/32x32/5.png +0 -0
  250. data/api/spec/test_app/public/images/admin/icons/32x32/6.png +0 -0
  251. data/api/spec/test_app/public/images/admin/icons/32x32/7.png +0 -0
  252. data/api/spec/test_app/public/images/admin/icons/32x32/8.png +0 -0
  253. data/api/spec/test_app/public/images/admin/icons/32x32/9.png +0 -0
  254. data/api/spec/test_app/public/images/admin/icons/accept.png +0 -0
  255. data/api/spec/test_app/public/images/admin/icons/add.gif +0 -0
  256. data/api/spec/test_app/public/images/admin/icons/add.png +0 -0
  257. data/api/spec/test_app/public/images/admin/icons/arrow-down.gif +0 -0
  258. data/api/spec/test_app/public/images/admin/icons/cross.png +0 -0
  259. data/api/spec/test_app/public/images/admin/icons/delete.gif +0 -0
  260. data/api/spec/test_app/public/images/admin/icons/delete.png +0 -0
  261. data/api/spec/test_app/public/images/admin/icons/drag.gif +0 -0
  262. data/api/spec/test_app/public/images/admin/icons/edit.gif +0 -0
  263. data/api/spec/test_app/public/images/admin/icons/edit.png +0 -0
  264. data/api/spec/test_app/public/images/admin/icons/email.png +0 -0
  265. data/api/spec/test_app/public/images/admin/icons/error.png +0 -0
  266. data/api/spec/test_app/public/images/admin/icons/exclamation.png +0 -0
  267. data/api/spec/test_app/public/images/admin/icons/feed.png +0 -0
  268. data/api/spec/test_app/public/images/admin/icons/pdf.png +0 -0
  269. data/api/spec/test_app/public/images/admin/icons/reorder.gif +0 -0
  270. data/api/spec/test_app/public/images/admin/icons/search.gif +0 -0
  271. data/api/spec/test_app/public/images/admin/icons/send-email.png +0 -0
  272. data/api/spec/test_app/public/images/admin/icons/stop.png +0 -0
  273. data/api/spec/test_app/public/images/admin/icons/tick.png +0 -0
  274. data/api/spec/test_app/public/images/admin/icons/up.gif +0 -0
  275. data/api/spec/test_app/public/images/admin/icons/xls.png +0 -0
  276. data/api/spec/test_app/public/images/admin/tabs/off-left.png +0 -0
  277. data/api/spec/test_app/public/images/admin/tabs/off-right.png +0 -0
  278. data/api/spec/test_app/public/images/admin/tabs/on-left.png +0 -0
  279. data/api/spec/test_app/public/images/admin/tabs/on-right.png +0 -0
  280. data/api/spec/test_app/public/images/ajax_loader.gif +0 -0
  281. data/api/spec/test_app/public/images/amex_cid.gif +0 -0
  282. data/api/spec/test_app/public/images/bg-button-hover.png +0 -0
  283. data/api/spec/test_app/public/images/bg-button-pressed.png +0 -0
  284. data/api/spec/test_app/public/images/bg-button.gif +0 -0
  285. data/api/spec/test_app/public/images/bg-button.png +0 -0
  286. data/api/spec/test_app/public/images/blue/left_01.png +0 -0
  287. data/api/spec/test_app/public/images/blue/right_01.png +0 -0
  288. data/api/spec/test_app/public/images/body-back.png +0 -0
  289. data/api/spec/test_app/public/images/bottom_shine.png +0 -0
  290. data/api/spec/test_app/public/images/breadcrumb.gif +0 -0
  291. data/api/spec/test_app/public/images/button-dark-hover.png +0 -0
  292. data/api/spec/test_app/public/images/button-dark.png +0 -0
  293. data/api/spec/test_app/public/images/buttons/bg-button-hover.png +0 -0
  294. data/api/spec/test_app/public/images/buttons/bg-button-pressed.png +0 -0
  295. data/api/spec/test_app/public/images/buttons/bg-button.gif +0 -0
  296. data/api/spec/test_app/public/images/buttons/bg-button.png +0 -0
  297. data/api/spec/test_app/public/images/buttons/blue/left_01.png +0 -0
  298. data/api/spec/test_app/public/images/buttons/blue/right_01.png +0 -0
  299. data/api/spec/test_app/public/images/buttons/button-dark-hover.png +0 -0
  300. data/api/spec/test_app/public/images/buttons/button-dark.png +0 -0
  301. data/api/spec/test_app/public/images/buttons/drag-handle-green.png +0 -0
  302. data/api/spec/test_app/public/images/buttons/green/left_01.png +0 -0
  303. data/api/spec/test_app/public/images/buttons/green/right_01.png +0 -0
  304. data/api/spec/test_app/public/images/buttons/left_01.png +0 -0
  305. data/api/spec/test_app/public/images/buttons/left_01_small.png +0 -0
  306. data/api/spec/test_app/public/images/buttons/orange/left_03.png +0 -0
  307. data/api/spec/test_app/public/images/buttons/orange/right_03.png +0 -0
  308. data/api/spec/test_app/public/images/buttons/right_01.png +0 -0
  309. data/api/spec/test_app/public/images/buttons/right_01_small.png +0 -0
  310. data/api/spec/test_app/public/images/buttons/sxsw-ribbon-v1.png +0 -0
  311. data/api/spec/test_app/public/images/buttons/top-shine.png +0 -0
  312. data/api/spec/test_app/public/images/calendar_date_select/calendar.gif +0 -0
  313. data/api/spec/test_app/public/images/cart-empty.png +0 -0
  314. data/api/spec/test_app/public/images/cart-empty_x32.png +0 -0
  315. data/api/spec/test_app/public/images/cart-full.png +0 -0
  316. data/api/spec/test_app/public/images/cart-full_x32.png +0 -0
  317. data/api/spec/test_app/public/images/checkout.png +0 -0
  318. data/api/spec/test_app/public/images/creditcard.gif +0 -0
  319. data/api/spec/test_app/public/images/datepicker/backstripes.gif +0 -0
  320. data/api/spec/test_app/public/images/datepicker/bg_header.jpg +0 -0
  321. data/api/spec/test_app/public/images/datepicker/bullet1.gif +0 -0
  322. data/api/spec/test_app/public/images/datepicker/bullet2.gif +0 -0
  323. data/api/spec/test_app/public/images/datepicker/cal.gif +0 -0
  324. data/api/spec/test_app/public/images/datepicker/gradient-e5e5e5-ffffff.gif +0 -0
  325. data/api/spec/test_app/public/images/discover_cid.gif +0 -0
  326. data/api/spec/test_app/public/images/drag-handle-green.png +0 -0
  327. data/api/spec/test_app/public/images/favicon.ico +0 -0
  328. data/api/spec/test_app/public/images/green/left_01.png +0 -0
  329. data/api/spec/test_app/public/images/green/right_01.png +0 -0
  330. data/api/spec/test_app/public/images/grid.png +0 -0
  331. data/api/spec/test_app/public/images/left_01.png +0 -0
  332. data/api/spec/test_app/public/images/left_01_small.png +0 -0
  333. data/api/spec/test_app/public/images/master_cid.jpg +0 -0
  334. data/api/spec/test_app/public/images/menu-current.png +0 -0
  335. data/api/spec/test_app/public/images/menu-hover.png +0 -0
  336. data/api/spec/test_app/public/images/noimage/mini.jpg +0 -0
  337. data/api/spec/test_app/public/images/noimage/product.jpg +0 -0
  338. data/api/spec/test_app/public/images/noimage/small.jpg +0 -0
  339. data/api/spec/test_app/public/images/openid-inputicon.gif +0 -0
  340. data/api/spec/test_app/public/images/orange/left_03.png +0 -0
  341. data/api/spec/test_app/public/images/orange/right_03.png +0 -0
  342. data/api/spec/test_app/public/images/progress.gif +0 -0
  343. data/api/spec/test_app/public/images/reorder.jpg +0 -0
  344. data/api/spec/test_app/public/images/right_01.png +0 -0
  345. data/api/spec/test_app/public/images/right_01_small.png +0 -0
  346. data/api/spec/test_app/public/images/separator.png +0 -0
  347. data/api/spec/test_app/public/images/shadow-top.png +0 -0
  348. data/api/spec/test_app/public/images/shadow_top.png +0 -0
  349. data/api/spec/test_app/public/images/spinner.gif +0 -0
  350. data/api/spec/test_app/public/images/spree.jpg +0 -0
  351. data/api/spec/test_app/public/images/spree/progress.gif +0 -0
  352. data/api/spec/test_app/public/images/spree/spinner.gif +0 -0
  353. data/api/spec/test_app/public/images/spree/spree.jpg +0 -0
  354. data/api/spec/test_app/public/images/step-progress/completed-completed.gif +0 -0
  355. data/api/spec/test_app/public/images/step-progress/completed-current.gif +0 -0
  356. data/api/spec/test_app/public/images/step-progress/completed-first.gif +0 -0
  357. data/api/spec/test_app/public/images/step-progress/current-first.gif +0 -0
  358. data/api/spec/test_app/public/images/step-progress/current-incomplete.gif +0 -0
  359. data/api/spec/test_app/public/images/step-progress/current-right.gif +0 -0
  360. data/api/spec/test_app/public/images/step-progress/incomplete-incomplete.gif +0 -0
  361. data/api/spec/test_app/public/images/step-progress/incomplete-right.gif +0 -0
  362. data/api/spec/test_app/public/images/steps/1.png +0 -0
  363. data/api/spec/test_app/public/images/steps/1_small.png +0 -0
  364. data/api/spec/test_app/public/images/steps/2.png +0 -0
  365. data/api/spec/test_app/public/images/steps/2_small.png +0 -0
  366. data/api/spec/test_app/public/images/steps/3.png +0 -0
  367. data/api/spec/test_app/public/images/steps/3_small.png +0 -0
  368. data/api/spec/test_app/public/images/steps/4.png +0 -0
  369. data/api/spec/test_app/public/images/steps/4_small.png +0 -0
  370. data/api/spec/test_app/public/images/steps/5.png +0 -0
  371. data/api/spec/test_app/public/images/steps/5_small.png +0 -0
  372. data/api/spec/test_app/public/images/steps/6.png +0 -0
  373. data/api/spec/test_app/public/images/steps/6_small.png +0 -0
  374. data/api/spec/test_app/public/images/sxsw-ribbon-v1.png +0 -0
  375. data/api/spec/test_app/public/images/tab_bottom.gif +0 -0
  376. data/api/spec/test_app/public/images/tile-header.png +0 -0
  377. data/api/spec/test_app/public/images/tile-slider.png +0 -0
  378. data/api/spec/test_app/public/images/top-shine.png +0 -0
  379. data/api/spec/test_app/public/images/tree-nav-icons/bullet.gif +0 -0
  380. data/api/spec/test_app/public/images/tree-nav-icons/minus.gif +0 -0
  381. data/api/spec/test_app/public/images/tree-nav-icons/plus.gif +0 -0
  382. data/api/spec/test_app/public/images/tree-nav-icons/treeview-loading.gif +0 -0
  383. data/api/spec/test_app/public/images/tree-nav-icons/treeview-sprite.gif +0 -0
  384. data/api/spec/test_app/public/images/update.png +0 -0
  385. data/api/spec/test_app/public/images/visa_cid.gif +0 -0
  386. data/api/spec/test_app/public/images/wrapper-back-2.png +0 -0
  387. data/api/spec/test_app/public/images/wrapper-back.png +0 -0
  388. data/api/spec/test_app/public/images/yui-menubaritem_submenuindicator.png +0 -0
  389. data/api/spec/test_app/public/images/yui-menubaritem_submenuindicator_disabled.png +0 -0
  390. data/api/spec/test_app/public/images/yui-menuitem_checkbox.png +0 -0
  391. data/api/spec/test_app/public/images/yui-menuitem_checkbox_disabled.png +0 -0
  392. data/api/spec/test_app/public/images/yui-menuitem_submenuindicator.png +0 -0
  393. data/api/spec/test_app/public/images/yui-menuitem_submenuindicator_disabled.png +0 -0
  394. data/api/spec/test_app/public/images/yui-sprite.png +0 -0
  395. data/api/spec/test_app/public/javascripts/additional-methods.js +236 -0
  396. data/api/spec/test_app/public/javascripts/admin.js +232 -0
  397. data/api/spec/test_app/public/javascripts/admin/address_states.js +25 -0
  398. data/api/spec/test_app/public/javascripts/admin/checkouts/edit.js +130 -0
  399. data/api/spec/test_app/public/javascripts/admin/orders/edit.js +23 -0
  400. data/api/spec/test_app/public/javascripts/admin/orders/edit_form.js +16 -0
  401. data/api/spec/test_app/public/javascripts/admin/payments/new.js +9 -0
  402. data/api/spec/test_app/public/javascripts/admin/unobtrusive_handlers.js +43 -0
  403. data/api/spec/test_app/public/javascripts/application.js +12 -0
  404. data/api/spec/test_app/public/javascripts/calculator.js +15 -0
  405. data/api/spec/test_app/public/javascripts/checkout.js +75 -0
  406. data/api/spec/test_app/public/javascripts/datepicker.js +1445 -0
  407. data/api/spec/test_app/public/javascripts/gateway.js +13 -0
  408. data/api/spec/test_app/public/javascripts/jquery-1.4.2.min.js +154 -0
  409. data/api/spec/test_app/public/javascripts/jquery-ui.js +188 -0
  410. data/api/spec/test_app/public/javascripts/jquery.alerts/images/help.gif +0 -0
  411. data/api/spec/test_app/public/javascripts/jquery.alerts/images/important.gif +0 -0
  412. data/api/spec/test_app/public/javascripts/jquery.alerts/images/info.gif +0 -0
  413. data/api/spec/test_app/public/javascripts/jquery.alerts/images/title.gif +0 -0
  414. data/api/spec/test_app/public/javascripts/jquery.alerts/jquery.alerts.css +57 -0
  415. data/api/spec/test_app/public/javascripts/jquery.alerts/jquery.alerts.js +235 -0
  416. data/api/spec/test_app/public/javascripts/jquery.alerts/jquery.alerts.spree.css +30 -0
  417. data/api/spec/test_app/public/javascripts/jquery.autocomplete.min.js +13 -0
  418. data/api/spec/test_app/public/javascripts/jquery.cookie.js +96 -0
  419. data/api/spec/test_app/public/javascripts/jquery.delayedobserver.js +35 -0
  420. data/api/spec/test_app/public/javascripts/jquery.suggest.js +276 -0
  421. data/api/spec/test_app/public/javascripts/jquery.template.js +255 -0
  422. data/api/spec/test_app/public/javascripts/jquery.tokeninput.js +618 -0
  423. data/api/spec/test_app/public/javascripts/jquery.validate.min.js +16 -0
  424. data/api/spec/test_app/public/javascripts/jsTree/jquery.jstree.js +3510 -0
  425. data/api/spec/test_app/public/javascripts/jsTree/themes/apple/bg.jpg +0 -0
  426. data/api/spec/test_app/public/javascripts/jsTree/themes/apple/d.png +0 -0
  427. data/api/spec/test_app/public/javascripts/jsTree/themes/apple/dot_for_ie.gif +0 -0
  428. data/api/spec/test_app/public/javascripts/jsTree/themes/apple/style.css +60 -0
  429. data/api/spec/test_app/public/javascripts/jsTree/themes/apple/throbber.gif +0 -0
  430. data/api/spec/test_app/public/javascripts/lang/af.js +40 -0
  431. data/api/spec/test_app/public/javascripts/lang/ar.js +50 -0
  432. data/api/spec/test_app/public/javascripts/lang/de.js +40 -0
  433. data/api/spec/test_app/public/javascripts/lang/du.js +40 -0
  434. data/api/spec/test_app/public/javascripts/lang/en.js +42 -0
  435. data/api/spec/test_app/public/javascripts/lang/es.js +41 -0
  436. data/api/spec/test_app/public/javascripts/lang/fi.js +40 -0
  437. data/api/spec/test_app/public/javascripts/lang/fr.js +44 -0
  438. data/api/spec/test_app/public/javascripts/lang/gr.js +40 -0
  439. data/api/spec/test_app/public/javascripts/lang/he.js +49 -0
  440. data/api/spec/test_app/public/javascripts/lang/it.js +13 -0
  441. data/api/spec/test_app/public/javascripts/lang/nl.js +40 -0
  442. data/api/spec/test_app/public/javascripts/lang/no.js +40 -0
  443. data/api/spec/test_app/public/javascripts/lang/pt.js +50 -0
  444. data/api/spec/test_app/public/javascripts/lang/ro.js +40 -0
  445. data/api/spec/test_app/public/javascripts/lang/ru.js +40 -0
  446. data/api/spec/test_app/public/javascripts/lang/sp.js +40 -0
  447. data/api/spec/test_app/public/javascripts/lang/sv.js +41 -0
  448. data/api/spec/test_app/public/javascripts/lang/ua.js +40 -0
  449. data/api/spec/test_app/public/javascripts/localization/messages_cn.js +24 -0
  450. data/api/spec/test_app/public/javascripts/localization/messages_cs.js +23 -0
  451. data/api/spec/test_app/public/javascripts/localization/messages_da.js +21 -0
  452. data/api/spec/test_app/public/javascripts/localization/messages_de.js +21 -0
  453. data/api/spec/test_app/public/javascripts/localization/messages_es.js +24 -0
  454. data/api/spec/test_app/public/javascripts/localization/messages_fr.js +23 -0
  455. data/api/spec/test_app/public/javascripts/localization/messages_hu.js +21 -0
  456. data/api/spec/test_app/public/javascripts/localization/messages_it.js +26 -0
  457. data/api/spec/test_app/public/javascripts/localization/messages_kk.js +23 -0
  458. data/api/spec/test_app/public/javascripts/localization/messages_nl.js +23 -0
  459. data/api/spec/test_app/public/javascripts/localization/messages_no.js +23 -0
  460. data/api/spec/test_app/public/javascripts/localization/messages_pl.js +23 -0
  461. data/api/spec/test_app/public/javascripts/localization/messages_ptbr.js +30 -0
  462. data/api/spec/test_app/public/javascripts/localization/messages_ro.js +24 -0
  463. data/api/spec/test_app/public/javascripts/localization/messages_ru.js +23 -0
  464. data/api/spec/test_app/public/javascripts/localization/messages_se.js +23 -0
  465. data/api/spec/test_app/public/javascripts/localization/messages_sk.js +21 -0
  466. data/api/spec/test_app/public/javascripts/localization/messages_tr.js +24 -0
  467. data/api/spec/test_app/public/javascripts/localization/messages_tw.js +24 -0
  468. data/api/spec/test_app/public/javascripts/localization/messages_ua.js +24 -0
  469. data/api/spec/test_app/public/javascripts/nested-attribute.js +26 -0
  470. data/api/spec/test_app/public/javascripts/open_id.js +15 -0
  471. data/api/spec/test_app/public/javascripts/product.js +49 -0
  472. data/api/spec/test_app/public/javascripts/rails.js +127 -0
  473. data/api/spec/test_app/public/javascripts/taxonomy.js +201 -0
  474. data/api/spec/test_app/public/javascripts/zone.js +39 -0
  475. data/api/spec/test_app/public/robots.txt +5 -0
  476. data/api/spec/test_app/public/stylesheets/admin/admin-forms.css +154 -0
  477. data/api/spec/test_app/public/stylesheets/admin/admin-reset.css +69 -0
  478. data/api/spec/test_app/public/stylesheets/admin/admin-tables.css +39 -0
  479. data/api/spec/test_app/public/stylesheets/admin/admin-typography.css +117 -0
  480. data/api/spec/test_app/public/stylesheets/admin/admin.css +614 -0
  481. data/api/spec/test_app/public/stylesheets/admin/autocomplete.css +73 -0
  482. data/api/spec/test_app/public/stylesheets/admin/dashboard.css +143 -0
  483. data/api/spec/test_app/public/stylesheets/admin/edit_checkouts.css +57 -0
  484. data/api/spec/test_app/public/stylesheets/admin/grids.css +314 -0
  485. data/api/spec/test_app/public/stylesheets/admin/reset-fonts-grids-2-6-0.css +7 -0
  486. data/api/spec/test_app/public/stylesheets/admin/token-input.css +109 -0
  487. data/api/spec/test_app/public/stylesheets/admin/yui-includes.css +14 -0
  488. data/api/spec/test_app/public/stylesheets/datepicker.css +263 -0
  489. data/api/spec/test_app/public/stylesheets/jquery.autocomplete.css +48 -0
  490. data/api/spec/test_app/public/stylesheets/screen.css +916 -0
  491. data/api/spec/test_app/script/rails +6 -0
  492. data/auth/Gemfile +35 -0
  493. data/auth/Gemfile.lock +244 -0
  494. data/auth/LICENSE +26 -0
  495. data/auth/README.md +36 -0
  496. data/auth/Rakefile +54 -0
  497. data/auth/app/controllers/admin_controller_decorator.rb +7 -0
  498. data/auth/app/controllers/admin_orders_controller_decorator.rb +15 -0
  499. data/auth/app/controllers/admin_resource_controller_decorator.rb +3 -0
  500. data/auth/app/controllers/checkout_controller_decorator.rb +42 -0
  501. data/auth/app/controllers/orders_controller_decorator.rb +17 -0
  502. data/auth/app/controllers/resource_controller_decorator.rb +25 -0
  503. data/auth/app/controllers/spree/base_controller_decorator.rb +49 -0
  504. data/auth/app/controllers/user_passwords_controller.rb +20 -0
  505. data/auth/app/controllers/user_registrations_controller.rb +64 -0
  506. data/auth/app/controllers/user_sessions_controller.rb +81 -0
  507. data/auth/app/controllers/users_controller.rb +54 -0
  508. data/auth/app/helpers/users_helper.rb +13 -0
  509. data/auth/app/models/ability.rb +64 -0
  510. data/auth/app/models/order_decorator.rb +12 -0
  511. data/auth/app/models/spree_auth_configuration.rb +4 -0
  512. data/auth/app/models/spree_current_order_decorator.rb +14 -0
  513. data/auth/app/models/tokenized_permission.rb +3 -0
  514. data/auth/app/models/user.rb +85 -0
  515. data/auth/app/models/user_mailer.rb +13 -0
  516. data/auth/app/views/checkout/registration.html.erb +20 -0
  517. data/auth/app/views/layouts/admin/_login_nav.html.erb +8 -0
  518. data/auth/app/views/shared/_flashes.html.erb +9 -0
  519. data/auth/app/views/shared/_login.html.erb +20 -0
  520. data/auth/app/views/shared/_login_bar.html.erb +6 -0
  521. data/auth/app/views/shared/_user_form.html.erb +17 -0
  522. data/auth/app/views/shared/unauthorized.html.erb +0 -0
  523. data/auth/app/views/user_mailer/reset_password_instructions.text.erb +10 -0
  524. data/auth/app/views/user_passwords/edit.html.erb +15 -0
  525. data/auth/app/views/user_passwords/new.html.erb +13 -0
  526. data/auth/app/views/user_registrations/new.html.erb +23 -0
  527. data/auth/app/views/user_sessions/authorization_failure.html.erb +4 -0
  528. data/auth/app/views/user_sessions/new.html.erb +13 -0
  529. data/auth/app/views/users/edit.html.erb +11 -0
  530. data/auth/app/views/users/show.html.erb +50 -0
  531. data/auth/config.ru +4 -0
  532. data/auth/config/cucumber.yml +10 -0
  533. data/auth/config/initializers/devise.rb +136 -0
  534. data/auth/config/locales/en.yml +46 -0
  535. data/auth/config/routes.rb +28 -0
  536. data/auth/db/migrate/20101026184950_rename_columns_for_devise.rb +39 -0
  537. data/auth/db/migrate/20101214150824_convert_user_remember_field.rb +11 -0
  538. data/auth/db/migrate/20101217012656_create_tokenized_permissions.rb +18 -0
  539. data/auth/db/migrate/20101219201531_tokens_for_legacy_orders.rb +12 -0
  540. data/auth/db/sample/users.rb +53 -0
  541. data/auth/features/account.feature +37 -0
  542. data/auth/features/admin_permissions.feature +22 -0
  543. data/auth/features/checkout.feature +171 -0
  544. data/auth/features/order.feature +14 -0
  545. data/auth/features/password_reset.feature +19 -0
  546. data/auth/features/sign_in.feature +34 -0
  547. data/auth/features/sign_out.feature +11 -0
  548. data/auth/features/sign_up.feature +20 -0
  549. data/auth/features/support/env.rb +4 -0
  550. data/auth/features/support/paths.rb +49 -0
  551. data/auth/features/user.feature +33 -0
  552. data/auth/lib/spree/auth/config.rb +22 -0
  553. data/auth/lib/spree/token_resource.rb +23 -0
  554. data/auth/lib/spree_auth.rb +29 -0
  555. data/auth/lib/spree_auth_hooks.rb +6 -0
  556. data/auth/lib/tasks/auth.rake +8 -0
  557. data/auth/lib/tasks/install.rake +23 -0
  558. data/auth/rfcommerce_auth.gemspec +28 -0
  559. data/auth/spec/controllers/admin_base_controller_spec.rb +19 -0
  560. data/auth/spec/controllers/checkout_controller_spec.rb +180 -0
  561. data/auth/spec/controllers/orders_controller_spec.rb +145 -0
  562. data/auth/spec/controllers/user_sessions_controller_spec.rb +32 -0
  563. data/auth/spec/controllers/users_controller_spec.rb +55 -0
  564. data/auth/spec/lib/token_resource_spec.rb +34 -0
  565. data/auth/spec/models/ability_spec.rb +186 -0
  566. data/auth/spec/models/order_spec.rb +45 -0
  567. data/auth/spec/models/user_spec.rb +47 -0
  568. data/auth/spec/spec_helper.rb +29 -0
  569. data/auth/spec/test_app/Gemfile +35 -0
  570. data/auth/spec/test_app/Rakefile +7 -0
  571. data/auth/spec/test_app/app/controllers/application_controller.rb +3 -0
  572. data/auth/spec/test_app/app/helpers/application_helper.rb +2 -0
  573. data/auth/spec/test_app/app/views/layouts/application.html.erb +14 -0
  574. data/auth/spec/test_app/config.ru +4 -0
  575. data/auth/spec/test_app/config/application.rb +42 -0
  576. data/auth/spec/test_app/config/boot.rb +6 -0
  577. data/auth/spec/test_app/config/database.yml +17 -0
  578. data/auth/spec/test_app/config/environment.rb +5 -0
  579. data/auth/spec/test_app/config/environments/cucumber.rb +38 -0
  580. data/auth/spec/test_app/config/environments/development.rb +26 -0
  581. data/auth/spec/test_app/config/environments/production.rb +49 -0
  582. data/auth/spec/test_app/config/environments/test.rb +35 -0
  583. data/auth/spec/test_app/config/initializers/backtrace_silencers.rb +7 -0
  584. data/auth/spec/test_app/config/initializers/inflections.rb +10 -0
  585. data/auth/spec/test_app/config/initializers/mime_types.rb +5 -0
  586. data/auth/spec/test_app/config/initializers/secret_token.rb +7 -0
  587. data/auth/spec/test_app/config/initializers/session_store.rb +8 -0
  588. data/auth/spec/test_app/config/locales/en.yml +5 -0
  589. data/auth/spec/test_app/config/routes.rb +58 -0
  590. data/auth/spec/test_app/db/cucumber.sqlite3 +0 -0
  591. data/auth/spec/test_app/db/default/countries.yml +1583 -0
  592. data/auth/spec/test_app/db/default/roles.yml +7 -0
  593. data/auth/spec/test_app/db/default/states.yml +256 -0
  594. data/auth/spec/test_app/db/default/zone_members.yml +169 -0
  595. data/auth/spec/test_app/db/default/zones.yml +13 -0
  596. data/auth/spec/test_app/db/migrate/20090823005402_spree_zero_nine_zero.rb +442 -0
  597. data/auth/spec/test_app/db/migrate/20090904192342_create_indexes_for_inventory_units.rb +12 -0
  598. data/auth/spec/test_app/db/migrate/20090923100315_add_count_on_hand_to_variants_and_products.rb +36 -0
  599. data/auth/spec/test_app/db/migrate/20091007134354_change_taxons_to_nested_set.rb +40 -0
  600. data/auth/spec/test_app/db/migrate/20091008091614_move_to_configurable_gateways.rb +55 -0
  601. data/auth/spec/test_app/db/migrate/20091012120519_product_groups_and_scopes.rb +25 -0
  602. data/auth/spec/test_app/db/migrate/20091015110842_add_open_id_authentication_tables.rb +20 -0
  603. data/auth/spec/test_app/db/migrate/20091015153048_add_openid_field_to_users.rb +19 -0
  604. data/auth/spec/test_app/db/migrate/20091016174634_change_preference_value_type.rb +10 -0
  605. data/auth/spec/test_app/db/migrate/20091017175558_create_billing_integrations.rb +16 -0
  606. data/auth/spec/test_app/db/migrate/20091021133257_charge_refactoring.rb +35 -0
  607. data/auth/spec/test_app/db/migrate/20091104151730_add_some_indexes.rb +21 -0
  608. data/auth/spec/test_app/db/migrate/20091126190904_checkout_state_machine.rb +13 -0
  609. data/auth/spec/test_app/db/migrate/20091209153045_state_for_shipments.rb +9 -0
  610. data/auth/spec/test_app/db/migrate/20091209202200_make_state_events_polymorphic.rb +12 -0
  611. data/auth/spec/test_app/db/migrate/20091211203813_ship_address_id_for_checkouts.rb +9 -0
  612. data/auth/spec/test_app/db/migrate/20091212161118_shipping_method_id_for_checkouts.rb +9 -0
  613. data/auth/spec/test_app/db/migrate/20091213222815_creditcard_last_four_digits.rb +19 -0
  614. data/auth/spec/test_app/db/migrate/20091214183826_populate_legacy_shipment_state.rb +19 -0
  615. data/auth/spec/test_app/db/migrate/20100105090147_add_cost_price.rb +9 -0
  616. data/auth/spec/test_app/db/migrate/20100105132138_shipment_id_for_inventory_units.rb +21 -0
  617. data/auth/spec/test_app/db/migrate/20100111205525_cim_fields_for_creditcards.rb +11 -0
  618. data/auth/spec/test_app/db/migrate/20100112151511_create_return_authorizations.rb +16 -0
  619. data/auth/spec/test_app/db/migrate/20100113090919_add_return_authorization_to_inventory_units.rb +9 -0
  620. data/auth/spec/test_app/db/migrate/20100113203104_create_trackers.rb +14 -0
  621. data/auth/spec/test_app/db/migrate/20100121160010_creditcard_id_for_creditcard_txns.rb +9 -0
  622. data/auth/spec/test_app/db/migrate/20100121183934_original_creditcard_txn_id_for_creditcard_txns.rb +9 -0
  623. data/auth/spec/test_app/db/migrate/20100125145351_add_test_mode_to_billing_integration.rb +11 -0
  624. data/auth/spec/test_app/db/migrate/20100126103714_create_products_product_groups.rb +12 -0
  625. data/auth/spec/test_app/db/migrate/20100209025806_create_payment_methods.rb +20 -0
  626. data/auth/spec/test_app/db/migrate/20100209144531_polymorphic_payments.rb +29 -0
  627. data/auth/spec/test_app/db/migrate/20100213103131_change_payments_payment_method_to_belongs_to.rb +11 -0
  628. data/auth/spec/test_app/db/migrate/20100214212536_assign_creditcard_txns_to_payment.rb +16 -0
  629. data/auth/spec/test_app/db/migrate/20100223170312_sti_for_transactions.rb +14 -0
  630. data/auth/spec/test_app/db/migrate/20100223183812_drop_billing_integrations.rb +16 -0
  631. data/auth/spec/test_app/db/migrate/20100224153127_deleted_at_for_payment_methods.rb +13 -0
  632. data/auth/spec/test_app/db/migrate/20100301163454_add_adjustments_index.rb +10 -0
  633. data/auth/spec/test_app/db/migrate/20100306153445_fix_by_popularity.rb +8 -0
  634. data/auth/spec/test_app/db/migrate/20100317120946_add_alt_text_to_images.rb +9 -0
  635. data/auth/spec/test_app/db/migrate/20100427121301_add_display_to_payment_methods.rb +9 -0
  636. data/auth/spec/test_app/db/migrate/20100504142133_add_addresses_checkouts_indexes.rb +16 -0
  637. data/auth/spec/test_app/db/migrate/20100506180619_add_icon_to_taxons.rb +18 -0
  638. data/auth/spec/test_app/db/migrate/20100506185838_add_description_to_taxons.rb +11 -0
  639. data/auth/spec/test_app/db/migrate/20100528155333_index_for_shipments_number.rb +9 -0
  640. data/auth/spec/test_app/db/migrate/20100528185820_add_index_on_users_persistence_token.rb +9 -0
  641. data/auth/spec/test_app/db/migrate/20100605152042_add_default_to_tax_categories.rb +9 -0
  642. data/auth/spec/test_app/db/migrate/20100624110730_add_display_to_shipping_methods.rb +9 -0
  643. data/auth/spec/test_app/db/migrate/20100624123336_rename_payment_method_display.rb +9 -0
  644. data/auth/spec/test_app/db/migrate/20100624175547_rename_preferences_field.rb +8 -0
  645. data/auth/spec/test_app/db/migrate/20100811163637_add_guest_flag.rb +13 -0
  646. data/auth/spec/test_app/db/migrate/20100811205836_drop_order_token.rb +11 -0
  647. data/auth/spec/test_app/db/migrate/20100812162326_payments_state_and_assigned_to_order_only.rb +11 -0
  648. data/auth/spec/test_app/db/migrate/20100813023502_create_address_keys_for_order.rb +15 -0
  649. data/auth/spec/test_app/db/migrate/20100813185745_payment_total_for_orders.rb +9 -0
  650. data/auth/spec/test_app/db/migrate/20100816212146_shipping_method_id_for_orders.rb +9 -0
  651. data/auth/spec/test_app/db/migrate/20100817152723_add_shipment_and_payment_state.rb +15 -0
  652. data/auth/spec/test_app/db/migrate/20100819170125_refactor_adjustments.rb +19 -0
  653. data/auth/spec/test_app/db/migrate/20100820135707_response_code_and_avs_response_for_payments.rb +11 -0
  654. data/auth/spec/test_app/db/migrate/20100901171814_change_guest_flag_to_anonymous.rb +13 -0
  655. data/auth/spec/test_app/db/migrate/20100903203949_email_for_orders.rb +9 -0
  656. data/auth/spec/test_app/db/migrate/20100923162011_create_mail_methods.rb +12 -0
  657. data/auth/spec/test_app/db/migrate/20100929151905_rename_frozen_to_locked.rb +8 -0
  658. data/auth/spec/test_app/db/migrate/20101008190536_move_special_instructions_to_orders.rb +11 -0
  659. data/auth/spec/test_app/db/migrate/20101026184700_create_log_entries.rb +15 -0
  660. data/auth/spec/test_app/db/migrate/20101026184714_migrate_transactions_to_payment_state.rb +94 -0
  661. data/auth/spec/test_app/db/migrate/20101026184746_delete_in_progress_orders.rb +18 -0
  662. data/auth/spec/test_app/db/migrate/20101026184808_migrate_checkout_to_orders.rb +27 -0
  663. data/auth/spec/test_app/db/migrate/20101026184833_migrate_adjustments.rb +9 -0
  664. data/auth/spec/test_app/db/migrate/20101026184855_remove_shipped_state.rb +14 -0
  665. data/auth/spec/test_app/db/migrate/20101026184916_prevent_nil_payment_total.rb +8 -0
  666. data/auth/spec/test_app/db/migrate/20101026184932_prevent_nil_email.rb +9 -0
  667. data/auth/spec/test_app/db/migrate/20101026184950_rename_columns_for_devise.rb +39 -0
  668. data/auth/spec/test_app/db/migrate/20101026184959_generate_anonymous_users.rb +14 -0
  669. data/auth/spec/test_app/db/migrate/20101026185022_update_order_state.rb +8 -0
  670. data/auth/spec/test_app/db/migrate/20101026192225_cleanup_legacy_tables.rb +11 -0
  671. data/auth/spec/test_app/db/migrate/20101028151745_remove_number_and_cvv_from_credicard.rb +9 -0
  672. data/auth/spec/test_app/db/migrate/20101103212716_drop_anonymous_field_for_user.rb +8 -0
  673. data/auth/spec/test_app/db/migrate/20101111133551_renamed_rma_cancelled_state.rb +10 -0
  674. data/auth/spec/test_app/db/migrate/20101117031806_fix_problematic_index_names.rb +13 -0
  675. data/auth/spec/test_app/db/migrate/20101214150824_convert_user_remember_field.rb +11 -0
  676. data/auth/spec/test_app/db/migrate/20101217012656_create_tokenized_permissions.rb +18 -0
  677. data/auth/spec/test_app/db/migrate/20101219201531_tokens_for_legacy_orders.rb +12 -0
  678. data/auth/spec/test_app/db/migrate/20101223215658_add_position_to_variants.rb +9 -0
  679. data/auth/spec/test_app/db/migrate/20110110130847_add_next_state_to_state_events.rb +9 -0
  680. data/auth/spec/test_app/db/migrate/20110111122537_add_position_to_option_types.rb +9 -0
  681. data/auth/spec/test_app/db/migrate/20110314192118_remove_trailing_slashes_in_taxon_permalinks.rb +17 -0
  682. data/auth/spec/test_app/db/sample/users.rb +61 -0
  683. data/auth/spec/test_app/db/schema.rb +542 -0
  684. data/auth/spec/test_app/db/seeds.rb +3 -0
  685. data/auth/spec/test_app/db/test.sqlite3 +0 -0
  686. data/auth/spec/test_app/log/cucumber.log +1599 -0
  687. data/auth/spec/test_app/log/development.log +0 -0
  688. data/auth/spec/test_app/log/production.log +0 -0
  689. data/auth/spec/test_app/log/server.log +0 -0
  690. data/auth/spec/test_app/log/test.log +1599 -0
  691. data/auth/spec/test_app/public/404.html +26 -0
  692. data/auth/spec/test_app/public/422.html +26 -0
  693. data/auth/spec/test_app/public/500.html +26 -0
  694. data/auth/spec/test_app/public/favicon.ico +0 -0
  695. data/auth/spec/test_app/public/images/add-to-cart.png +0 -0
  696. data/auth/spec/test_app/public/images/admin/bg/active-tab.png +0 -0
  697. data/auth/spec/test_app/public/images/admin/bg/admin_tab_back.png +0 -0
  698. data/auth/spec/test_app/public/images/admin/bg/admin_tab_selected_back.png +0 -0
  699. data/auth/spec/test_app/public/images/admin/bg/content-back-blue.png +0 -0
  700. data/auth/spec/test_app/public/images/admin/bg/content-back-green.png +0 -0
  701. data/auth/spec/test_app/public/images/admin/bg/content-back.png +0 -0
  702. data/auth/spec/test_app/public/images/admin/bg/flash-error.png +0 -0
  703. data/auth/spec/test_app/public/images/admin/bg/flash-notice.png +0 -0
  704. data/auth/spec/test_app/public/images/admin/bg/green-stripes.gif +0 -0
  705. data/auth/spec/test_app/public/images/admin/bg/green-stripes.png +0 -0
  706. data/auth/spec/test_app/public/images/admin/bg/grid_header_back.png +0 -0
  707. data/auth/spec/test_app/public/images/admin/bg/grid_header_back_green.png +0 -0
  708. data/auth/spec/test_app/public/images/admin/bg/header-bg.png +0 -0
  709. data/auth/spec/test_app/public/images/admin/bg/header.png +0 -0
  710. data/auth/spec/test_app/public/images/admin/bg/header_bg.jpg +0 -0
  711. data/auth/spec/test_app/public/images/admin/bg/menu-current.png +0 -0
  712. data/auth/spec/test_app/public/images/admin/bg/red-stripes.gif +0 -0
  713. data/auth/spec/test_app/public/images/admin/bg/red-stripes.png +0 -0
  714. data/auth/spec/test_app/public/images/admin/bg/spree_50.png +0 -0
  715. data/auth/spec/test_app/public/images/admin/bg/subnav-divider.png +0 -0
  716. data/auth/spec/test_app/public/images/admin/bg/subnav.png +0 -0
  717. data/auth/spec/test_app/public/images/admin/bg/tab-back.png +0 -0
  718. data/auth/spec/test_app/public/images/admin/buttons/blue/left_01.png +0 -0
  719. data/auth/spec/test_app/public/images/admin/buttons/blue/right_01.png +0 -0
  720. data/auth/spec/test_app/public/images/admin/buttons/drag-handle-green.png +0 -0
  721. data/auth/spec/test_app/public/images/admin/buttons/green/left_01.png +0 -0
  722. data/auth/spec/test_app/public/images/admin/buttons/green/right_01.png +0 -0
  723. data/auth/spec/test_app/public/images/admin/buttons/left_01.png +0 -0
  724. data/auth/spec/test_app/public/images/admin/buttons/left_01_small.png +0 -0
  725. data/auth/spec/test_app/public/images/admin/buttons/orange/left_03.png +0 -0
  726. data/auth/spec/test_app/public/images/admin/buttons/orange/right_03.png +0 -0
  727. data/auth/spec/test_app/public/images/admin/buttons/right_01.png +0 -0
  728. data/auth/spec/test_app/public/images/admin/buttons/right_01_small.png +0 -0
  729. data/auth/spec/test_app/public/images/admin/icons/16x16/1.png +0 -0
  730. data/auth/spec/test_app/public/images/admin/icons/16x16/10.png +0 -0
  731. data/auth/spec/test_app/public/images/admin/icons/16x16/2.png +0 -0
  732. data/auth/spec/test_app/public/images/admin/icons/16x16/3.png +0 -0
  733. data/auth/spec/test_app/public/images/admin/icons/16x16/4.png +0 -0
  734. data/auth/spec/test_app/public/images/admin/icons/16x16/5.png +0 -0
  735. data/auth/spec/test_app/public/images/admin/icons/16x16/6.png +0 -0
  736. data/auth/spec/test_app/public/images/admin/icons/16x16/7.png +0 -0
  737. data/auth/spec/test_app/public/images/admin/icons/16x16/8.png +0 -0
  738. data/auth/spec/test_app/public/images/admin/icons/16x16/9.png +0 -0
  739. data/auth/spec/test_app/public/images/admin/icons/32x32/1.png +0 -0
  740. data/auth/spec/test_app/public/images/admin/icons/32x32/10.png +0 -0
  741. data/auth/spec/test_app/public/images/admin/icons/32x32/11.png +0 -0
  742. data/auth/spec/test_app/public/images/admin/icons/32x32/2.png +0 -0
  743. data/auth/spec/test_app/public/images/admin/icons/32x32/3.png +0 -0
  744. data/auth/spec/test_app/public/images/admin/icons/32x32/4.png +0 -0
  745. data/auth/spec/test_app/public/images/admin/icons/32x32/5.png +0 -0
  746. data/auth/spec/test_app/public/images/admin/icons/32x32/6.png +0 -0
  747. data/auth/spec/test_app/public/images/admin/icons/32x32/7.png +0 -0
  748. data/auth/spec/test_app/public/images/admin/icons/32x32/8.png +0 -0
  749. data/auth/spec/test_app/public/images/admin/icons/32x32/9.png +0 -0
  750. data/auth/spec/test_app/public/images/admin/icons/accept.png +0 -0
  751. data/auth/spec/test_app/public/images/admin/icons/add.gif +0 -0
  752. data/auth/spec/test_app/public/images/admin/icons/add.png +0 -0
  753. data/auth/spec/test_app/public/images/admin/icons/arrow-down.gif +0 -0
  754. data/auth/spec/test_app/public/images/admin/icons/cross.png +0 -0
  755. data/auth/spec/test_app/public/images/admin/icons/delete.gif +0 -0
  756. data/auth/spec/test_app/public/images/admin/icons/delete.png +0 -0
  757. data/auth/spec/test_app/public/images/admin/icons/drag.gif +0 -0
  758. data/auth/spec/test_app/public/images/admin/icons/edit.gif +0 -0
  759. data/auth/spec/test_app/public/images/admin/icons/edit.png +0 -0
  760. data/auth/spec/test_app/public/images/admin/icons/email.png +0 -0
  761. data/auth/spec/test_app/public/images/admin/icons/error.png +0 -0
  762. data/auth/spec/test_app/public/images/admin/icons/exclamation.png +0 -0
  763. data/auth/spec/test_app/public/images/admin/icons/feed.png +0 -0
  764. data/auth/spec/test_app/public/images/admin/icons/pdf.png +0 -0
  765. data/auth/spec/test_app/public/images/admin/icons/reorder.gif +0 -0
  766. data/auth/spec/test_app/public/images/admin/icons/search.gif +0 -0
  767. data/auth/spec/test_app/public/images/admin/icons/send-email.png +0 -0
  768. data/auth/spec/test_app/public/images/admin/icons/stop.png +0 -0
  769. data/auth/spec/test_app/public/images/admin/icons/tick.png +0 -0
  770. data/auth/spec/test_app/public/images/admin/icons/up.gif +0 -0
  771. data/auth/spec/test_app/public/images/admin/icons/xls.png +0 -0
  772. data/auth/spec/test_app/public/images/admin/tabs/off-left.png +0 -0
  773. data/auth/spec/test_app/public/images/admin/tabs/off-right.png +0 -0
  774. data/auth/spec/test_app/public/images/admin/tabs/on-left.png +0 -0
  775. data/auth/spec/test_app/public/images/admin/tabs/on-right.png +0 -0
  776. data/auth/spec/test_app/public/images/ajax_loader.gif +0 -0
  777. data/auth/spec/test_app/public/images/amex_cid.gif +0 -0
  778. data/auth/spec/test_app/public/images/bg-button-hover.png +0 -0
  779. data/auth/spec/test_app/public/images/bg-button-pressed.png +0 -0
  780. data/auth/spec/test_app/public/images/bg-button.gif +0 -0
  781. data/auth/spec/test_app/public/images/bg-button.png +0 -0
  782. data/auth/spec/test_app/public/images/blue/left_01.png +0 -0
  783. data/auth/spec/test_app/public/images/blue/right_01.png +0 -0
  784. data/auth/spec/test_app/public/images/body-back.png +0 -0
  785. data/auth/spec/test_app/public/images/bottom_shine.png +0 -0
  786. data/auth/spec/test_app/public/images/breadcrumb.gif +0 -0
  787. data/auth/spec/test_app/public/images/button-dark-hover.png +0 -0
  788. data/auth/spec/test_app/public/images/button-dark.png +0 -0
  789. data/auth/spec/test_app/public/images/buttons/bg-button-hover.png +0 -0
  790. data/auth/spec/test_app/public/images/buttons/bg-button-pressed.png +0 -0
  791. data/auth/spec/test_app/public/images/buttons/bg-button.gif +0 -0
  792. data/auth/spec/test_app/public/images/buttons/bg-button.png +0 -0
  793. data/auth/spec/test_app/public/images/buttons/blue/left_01.png +0 -0
  794. data/auth/spec/test_app/public/images/buttons/blue/right_01.png +0 -0
  795. data/auth/spec/test_app/public/images/buttons/button-dark-hover.png +0 -0
  796. data/auth/spec/test_app/public/images/buttons/button-dark.png +0 -0
  797. data/auth/spec/test_app/public/images/buttons/drag-handle-green.png +0 -0
  798. data/auth/spec/test_app/public/images/buttons/green/left_01.png +0 -0
  799. data/auth/spec/test_app/public/images/buttons/green/right_01.png +0 -0
  800. data/auth/spec/test_app/public/images/buttons/left_01.png +0 -0
  801. data/auth/spec/test_app/public/images/buttons/left_01_small.png +0 -0
  802. data/auth/spec/test_app/public/images/buttons/orange/left_03.png +0 -0
  803. data/auth/spec/test_app/public/images/buttons/orange/right_03.png +0 -0
  804. data/auth/spec/test_app/public/images/buttons/right_01.png +0 -0
  805. data/auth/spec/test_app/public/images/buttons/right_01_small.png +0 -0
  806. data/auth/spec/test_app/public/images/buttons/sxsw-ribbon-v1.png +0 -0
  807. data/auth/spec/test_app/public/images/buttons/top-shine.png +0 -0
  808. data/auth/spec/test_app/public/images/calendar_date_select/calendar.gif +0 -0
  809. data/auth/spec/test_app/public/images/cart-empty.png +0 -0
  810. data/auth/spec/test_app/public/images/cart-empty_x32.png +0 -0
  811. data/auth/spec/test_app/public/images/cart-full.png +0 -0
  812. data/auth/spec/test_app/public/images/cart-full_x32.png +0 -0
  813. data/auth/spec/test_app/public/images/checkout.png +0 -0
  814. data/auth/spec/test_app/public/images/creditcard.gif +0 -0
  815. data/auth/spec/test_app/public/images/datepicker/backstripes.gif +0 -0
  816. data/auth/spec/test_app/public/images/datepicker/bg_header.jpg +0 -0
  817. data/auth/spec/test_app/public/images/datepicker/bullet1.gif +0 -0
  818. data/auth/spec/test_app/public/images/datepicker/bullet2.gif +0 -0
  819. data/auth/spec/test_app/public/images/datepicker/cal.gif +0 -0
  820. data/auth/spec/test_app/public/images/datepicker/gradient-e5e5e5-ffffff.gif +0 -0
  821. data/auth/spec/test_app/public/images/discover_cid.gif +0 -0
  822. data/auth/spec/test_app/public/images/drag-handle-green.png +0 -0
  823. data/auth/spec/test_app/public/images/favicon.ico +0 -0
  824. data/auth/spec/test_app/public/images/green/left_01.png +0 -0
  825. data/auth/spec/test_app/public/images/green/right_01.png +0 -0
  826. data/auth/spec/test_app/public/images/grid.png +0 -0
  827. data/auth/spec/test_app/public/images/left_01.png +0 -0
  828. data/auth/spec/test_app/public/images/left_01_small.png +0 -0
  829. data/auth/spec/test_app/public/images/master_cid.jpg +0 -0
  830. data/auth/spec/test_app/public/images/menu-current.png +0 -0
  831. data/auth/spec/test_app/public/images/menu-hover.png +0 -0
  832. data/auth/spec/test_app/public/images/noimage/mini.jpg +0 -0
  833. data/auth/spec/test_app/public/images/noimage/product.jpg +0 -0
  834. data/auth/spec/test_app/public/images/noimage/small.jpg +0 -0
  835. data/auth/spec/test_app/public/images/openid-inputicon.gif +0 -0
  836. data/auth/spec/test_app/public/images/orange/left_03.png +0 -0
  837. data/auth/spec/test_app/public/images/orange/right_03.png +0 -0
  838. data/auth/spec/test_app/public/images/progress.gif +0 -0
  839. data/auth/spec/test_app/public/images/reorder.jpg +0 -0
  840. data/auth/spec/test_app/public/images/right_01.png +0 -0
  841. data/auth/spec/test_app/public/images/right_01_small.png +0 -0
  842. data/auth/spec/test_app/public/images/separator.png +0 -0
  843. data/auth/spec/test_app/public/images/shadow-top.png +0 -0
  844. data/auth/spec/test_app/public/images/shadow_top.png +0 -0
  845. data/auth/spec/test_app/public/images/spinner.gif +0 -0
  846. data/auth/spec/test_app/public/images/spree.jpg +0 -0
  847. data/auth/spec/test_app/public/images/spree/progress.gif +0 -0
  848. data/auth/spec/test_app/public/images/spree/spinner.gif +0 -0
  849. data/auth/spec/test_app/public/images/spree/spree.jpg +0 -0
  850. data/auth/spec/test_app/public/images/step-progress/completed-completed.gif +0 -0
  851. data/auth/spec/test_app/public/images/step-progress/completed-current.gif +0 -0
  852. data/auth/spec/test_app/public/images/step-progress/completed-first.gif +0 -0
  853. data/auth/spec/test_app/public/images/step-progress/current-first.gif +0 -0
  854. data/auth/spec/test_app/public/images/step-progress/current-incomplete.gif +0 -0
  855. data/auth/spec/test_app/public/images/step-progress/current-right.gif +0 -0
  856. data/auth/spec/test_app/public/images/step-progress/incomplete-incomplete.gif +0 -0
  857. data/auth/spec/test_app/public/images/step-progress/incomplete-right.gif +0 -0
  858. data/auth/spec/test_app/public/images/steps/1.png +0 -0
  859. data/auth/spec/test_app/public/images/steps/1_small.png +0 -0
  860. data/auth/spec/test_app/public/images/steps/2.png +0 -0
  861. data/auth/spec/test_app/public/images/steps/2_small.png +0 -0
  862. data/auth/spec/test_app/public/images/steps/3.png +0 -0
  863. data/auth/spec/test_app/public/images/steps/3_small.png +0 -0
  864. data/auth/spec/test_app/public/images/steps/4.png +0 -0
  865. data/auth/spec/test_app/public/images/steps/4_small.png +0 -0
  866. data/auth/spec/test_app/public/images/steps/5.png +0 -0
  867. data/auth/spec/test_app/public/images/steps/5_small.png +0 -0
  868. data/auth/spec/test_app/public/images/steps/6.png +0 -0
  869. data/auth/spec/test_app/public/images/steps/6_small.png +0 -0
  870. data/auth/spec/test_app/public/images/sxsw-ribbon-v1.png +0 -0
  871. data/auth/spec/test_app/public/images/tab_bottom.gif +0 -0
  872. data/auth/spec/test_app/public/images/tile-header.png +0 -0
  873. data/auth/spec/test_app/public/images/tile-slider.png +0 -0
  874. data/auth/spec/test_app/public/images/top-shine.png +0 -0
  875. data/auth/spec/test_app/public/images/tree-nav-icons/bullet.gif +0 -0
  876. data/auth/spec/test_app/public/images/tree-nav-icons/minus.gif +0 -0
  877. data/auth/spec/test_app/public/images/tree-nav-icons/plus.gif +0 -0
  878. data/auth/spec/test_app/public/images/tree-nav-icons/treeview-loading.gif +0 -0
  879. data/auth/spec/test_app/public/images/tree-nav-icons/treeview-sprite.gif +0 -0
  880. data/auth/spec/test_app/public/images/update.png +0 -0
  881. data/auth/spec/test_app/public/images/visa_cid.gif +0 -0
  882. data/auth/spec/test_app/public/images/wrapper-back-2.png +0 -0
  883. data/auth/spec/test_app/public/images/wrapper-back.png +0 -0
  884. data/auth/spec/test_app/public/images/yui-menubaritem_submenuindicator.png +0 -0
  885. data/auth/spec/test_app/public/images/yui-menubaritem_submenuindicator_disabled.png +0 -0
  886. data/auth/spec/test_app/public/images/yui-menuitem_checkbox.png +0 -0
  887. data/auth/spec/test_app/public/images/yui-menuitem_checkbox_disabled.png +0 -0
  888. data/auth/spec/test_app/public/images/yui-menuitem_submenuindicator.png +0 -0
  889. data/auth/spec/test_app/public/images/yui-menuitem_submenuindicator_disabled.png +0 -0
  890. data/auth/spec/test_app/public/images/yui-sprite.png +0 -0
  891. data/auth/spec/test_app/public/javascripts/additional-methods.js +236 -0
  892. data/auth/spec/test_app/public/javascripts/admin.js +232 -0
  893. data/auth/spec/test_app/public/javascripts/admin/address_states.js +25 -0
  894. data/auth/spec/test_app/public/javascripts/admin/checkouts/edit.js +130 -0
  895. data/auth/spec/test_app/public/javascripts/admin/orders/edit.js +23 -0
  896. data/auth/spec/test_app/public/javascripts/admin/orders/edit_form.js +16 -0
  897. data/auth/spec/test_app/public/javascripts/admin/payments/new.js +9 -0
  898. data/auth/spec/test_app/public/javascripts/admin/unobtrusive_handlers.js +43 -0
  899. data/auth/spec/test_app/public/javascripts/application.js +12 -0
  900. data/auth/spec/test_app/public/javascripts/calculator.js +15 -0
  901. data/auth/spec/test_app/public/javascripts/checkout.js +75 -0
  902. data/auth/spec/test_app/public/javascripts/datepicker.js +1445 -0
  903. data/auth/spec/test_app/public/javascripts/gateway.js +13 -0
  904. data/auth/spec/test_app/public/javascripts/jquery-1.4.2.min.js +154 -0
  905. data/auth/spec/test_app/public/javascripts/jquery-ui.js +188 -0
  906. data/auth/spec/test_app/public/javascripts/jquery.alerts/images/help.gif +0 -0
  907. data/auth/spec/test_app/public/javascripts/jquery.alerts/images/important.gif +0 -0
  908. data/auth/spec/test_app/public/javascripts/jquery.alerts/images/info.gif +0 -0
  909. data/auth/spec/test_app/public/javascripts/jquery.alerts/images/title.gif +0 -0
  910. data/auth/spec/test_app/public/javascripts/jquery.alerts/jquery.alerts.css +57 -0
  911. data/auth/spec/test_app/public/javascripts/jquery.alerts/jquery.alerts.js +235 -0
  912. data/auth/spec/test_app/public/javascripts/jquery.alerts/jquery.alerts.spree.css +30 -0
  913. data/auth/spec/test_app/public/javascripts/jquery.autocomplete.min.js +13 -0
  914. data/auth/spec/test_app/public/javascripts/jquery.cookie.js +96 -0
  915. data/auth/spec/test_app/public/javascripts/jquery.delayedobserver.js +35 -0
  916. data/auth/spec/test_app/public/javascripts/jquery.suggest.js +276 -0
  917. data/auth/spec/test_app/public/javascripts/jquery.template.js +255 -0
  918. data/auth/spec/test_app/public/javascripts/jquery.tokeninput.js +618 -0
  919. data/auth/spec/test_app/public/javascripts/jquery.validate.min.js +16 -0
  920. data/auth/spec/test_app/public/javascripts/jsTree/jquery.jstree.js +3510 -0
  921. data/auth/spec/test_app/public/javascripts/jsTree/themes/apple/bg.jpg +0 -0
  922. data/auth/spec/test_app/public/javascripts/jsTree/themes/apple/d.png +0 -0
  923. data/auth/spec/test_app/public/javascripts/jsTree/themes/apple/dot_for_ie.gif +0 -0
  924. data/auth/spec/test_app/public/javascripts/jsTree/themes/apple/style.css +60 -0
  925. data/auth/spec/test_app/public/javascripts/jsTree/themes/apple/throbber.gif +0 -0
  926. data/auth/spec/test_app/public/javascripts/lang/af.js +40 -0
  927. data/auth/spec/test_app/public/javascripts/lang/ar.js +50 -0
  928. data/auth/spec/test_app/public/javascripts/lang/de.js +40 -0
  929. data/auth/spec/test_app/public/javascripts/lang/du.js +40 -0
  930. data/auth/spec/test_app/public/javascripts/lang/en.js +42 -0
  931. data/auth/spec/test_app/public/javascripts/lang/es.js +41 -0
  932. data/auth/spec/test_app/public/javascripts/lang/fi.js +40 -0
  933. data/auth/spec/test_app/public/javascripts/lang/fr.js +44 -0
  934. data/auth/spec/test_app/public/javascripts/lang/gr.js +40 -0
  935. data/auth/spec/test_app/public/javascripts/lang/he.js +49 -0
  936. data/auth/spec/test_app/public/javascripts/lang/it.js +13 -0
  937. data/auth/spec/test_app/public/javascripts/lang/nl.js +40 -0
  938. data/auth/spec/test_app/public/javascripts/lang/no.js +40 -0
  939. data/auth/spec/test_app/public/javascripts/lang/pt.js +50 -0
  940. data/auth/spec/test_app/public/javascripts/lang/ro.js +40 -0
  941. data/auth/spec/test_app/public/javascripts/lang/ru.js +40 -0
  942. data/auth/spec/test_app/public/javascripts/lang/sp.js +40 -0
  943. data/auth/spec/test_app/public/javascripts/lang/sv.js +41 -0
  944. data/auth/spec/test_app/public/javascripts/lang/ua.js +40 -0
  945. data/auth/spec/test_app/public/javascripts/localization/messages_cn.js +24 -0
  946. data/auth/spec/test_app/public/javascripts/localization/messages_cs.js +23 -0
  947. data/auth/spec/test_app/public/javascripts/localization/messages_da.js +21 -0
  948. data/auth/spec/test_app/public/javascripts/localization/messages_de.js +21 -0
  949. data/auth/spec/test_app/public/javascripts/localization/messages_es.js +24 -0
  950. data/auth/spec/test_app/public/javascripts/localization/messages_fr.js +23 -0
  951. data/auth/spec/test_app/public/javascripts/localization/messages_hu.js +21 -0
  952. data/auth/spec/test_app/public/javascripts/localization/messages_it.js +26 -0
  953. data/auth/spec/test_app/public/javascripts/localization/messages_kk.js +23 -0
  954. data/auth/spec/test_app/public/javascripts/localization/messages_nl.js +23 -0
  955. data/auth/spec/test_app/public/javascripts/localization/messages_no.js +23 -0
  956. data/auth/spec/test_app/public/javascripts/localization/messages_pl.js +23 -0
  957. data/auth/spec/test_app/public/javascripts/localization/messages_ptbr.js +30 -0
  958. data/auth/spec/test_app/public/javascripts/localization/messages_ro.js +24 -0
  959. data/auth/spec/test_app/public/javascripts/localization/messages_ru.js +23 -0
  960. data/auth/spec/test_app/public/javascripts/localization/messages_se.js +23 -0
  961. data/auth/spec/test_app/public/javascripts/localization/messages_sk.js +21 -0
  962. data/auth/spec/test_app/public/javascripts/localization/messages_tr.js +24 -0
  963. data/auth/spec/test_app/public/javascripts/localization/messages_tw.js +24 -0
  964. data/auth/spec/test_app/public/javascripts/localization/messages_ua.js +24 -0
  965. data/auth/spec/test_app/public/javascripts/nested-attribute.js +26 -0
  966. data/auth/spec/test_app/public/javascripts/open_id.js +15 -0
  967. data/auth/spec/test_app/public/javascripts/product.js +49 -0
  968. data/auth/spec/test_app/public/javascripts/rails.js +127 -0
  969. data/auth/spec/test_app/public/javascripts/taxonomy.js +201 -0
  970. data/auth/spec/test_app/public/javascripts/zone.js +39 -0
  971. data/auth/spec/test_app/public/robots.txt +5 -0
  972. data/auth/spec/test_app/public/stylesheets/admin/admin-forms.css +154 -0
  973. data/auth/spec/test_app/public/stylesheets/admin/admin-reset.css +69 -0
  974. data/auth/spec/test_app/public/stylesheets/admin/admin-tables.css +39 -0
  975. data/auth/spec/test_app/public/stylesheets/admin/admin-typography.css +117 -0
  976. data/auth/spec/test_app/public/stylesheets/admin/admin.css +614 -0
  977. data/auth/spec/test_app/public/stylesheets/admin/autocomplete.css +73 -0
  978. data/auth/spec/test_app/public/stylesheets/admin/dashboard.css +143 -0
  979. data/auth/spec/test_app/public/stylesheets/admin/edit_checkouts.css +57 -0
  980. data/auth/spec/test_app/public/stylesheets/admin/grids.css +314 -0
  981. data/auth/spec/test_app/public/stylesheets/admin/reset-fonts-grids-2-6-0.css +7 -0
  982. data/auth/spec/test_app/public/stylesheets/admin/token-input.css +109 -0
  983. data/auth/spec/test_app/public/stylesheets/admin/yui-includes.css +14 -0
  984. data/auth/spec/test_app/public/stylesheets/datepicker.css +263 -0
  985. data/auth/spec/test_app/public/stylesheets/jquery.autocomplete.css +48 -0
  986. data/auth/spec/test_app/public/stylesheets/screen.css +916 -0
  987. data/auth/spec/test_app/script/rails +6 -0
  988. data/core/Gemfile +34 -0
  989. data/core/Gemfile.lock +226 -0
  990. data/core/LICENSE +26 -0
  991. data/core/README.md +15 -0
  992. data/core/Rakefile +48 -0
  993. data/core/app/controllers/admin/adjustments_controller.rb +10 -0
  994. data/core/app/controllers/admin/base_controller.rb +63 -0
  995. data/core/app/controllers/admin/configurations_controller.rb +2 -0
  996. data/core/app/controllers/admin/general_settings_controller.rb +22 -0
  997. data/core/app/controllers/admin/images_controller.rb +49 -0
  998. data/core/app/controllers/admin/inventory_settings_controller.rb +13 -0
  999. data/core/app/controllers/admin/inventory_units_controller.rb +2 -0
  1000. data/core/app/controllers/admin/line_items_controller.rb +60 -0
  1001. data/core/app/controllers/admin/mail_methods_controller.rb +8 -0
  1002. data/core/app/controllers/admin/mail_settings_controller.rb +14 -0
  1003. data/core/app/controllers/admin/option_types_controller.rb +65 -0
  1004. data/core/app/controllers/admin/orders_controller.rb +136 -0
  1005. data/core/app/controllers/admin/overview_controller.rb +14 -0
  1006. data/core/app/controllers/admin/payment_methods_controller.rb +43 -0
  1007. data/core/app/controllers/admin/payments_controller.rb +107 -0
  1008. data/core/app/controllers/admin/product_groups_controller.rb +46 -0
  1009. data/core/app/controllers/admin/product_properties_controller.rb +10 -0
  1010. data/core/app/controllers/admin/product_scopes_controller.rb +35 -0
  1011. data/core/app/controllers/admin/products_controller.rb +113 -0
  1012. data/core/app/controllers/admin/products_controller.rb~ +114 -0
  1013. data/core/app/controllers/admin/properties_controller.rb +11 -0
  1014. data/core/app/controllers/admin/prototypes_controller.rb +26 -0
  1015. data/core/app/controllers/admin/reports_controller.rb +50 -0
  1016. data/core/app/controllers/admin/resource_controller.rb +232 -0
  1017. data/core/app/controllers/admin/return_authorizations_controller.rb +17 -0
  1018. data/core/app/controllers/admin/shipments_controller.rb +117 -0
  1019. data/core/app/controllers/admin/shipping_categories_controller.rb +2 -0
  1020. data/core/app/controllers/admin/shipping_methods_controller.rb +14 -0
  1021. data/core/app/controllers/admin/states_controller.rb +25 -0
  1022. data/core/app/controllers/admin/tax_categories_controller.rb +2 -0
  1023. data/core/app/controllers/admin/tax_rates_controller.rb +22 -0
  1024. data/core/app/controllers/admin/tax_settings_controller.rb +13 -0
  1025. data/core/app/controllers/admin/taxonomies_controller.rb +20 -0
  1026. data/core/app/controllers/admin/taxons_controller.rb +161 -0
  1027. data/core/app/controllers/admin/trackers_controller.rb +2 -0
  1028. data/core/app/controllers/admin/users_controller.rb +65 -0
  1029. data/core/app/controllers/admin/variants_controller.rb +51 -0
  1030. data/core/app/controllers/admin/zones_controller.rb +23 -0
  1031. data/core/app/controllers/checkout_controller.rb +97 -0
  1032. data/core/app/controllers/content_controller.rb +21 -0
  1033. data/core/app/controllers/locale_controller.rb +14 -0
  1034. data/core/app/controllers/orders_controller.rb +64 -0
  1035. data/core/app/controllers/products_controller.rb +39 -0
  1036. data/core/app/controllers/spree/base_controller.rb +4 -0
  1037. data/core/app/controllers/states_controller.rb +16 -0
  1038. data/core/app/controllers/taxons_controller.rb +22 -0
  1039. data/core/app/helpers/account_helper.rb +2 -0
  1040. data/core/app/helpers/admin/base_helper.rb +194 -0
  1041. data/core/app/helpers/admin/inventory_settings_helper.rb +5 -0
  1042. data/core/app/helpers/admin/navigation_helper.rb +162 -0
  1043. data/core/app/helpers/admin/orders_helper.rb +22 -0
  1044. data/core/app/helpers/admin/overview_helper.rb +12 -0
  1045. data/core/app/helpers/admin/payments_helper.rb +7 -0
  1046. data/core/app/helpers/admin/product_groups_helper.rb +11 -0
  1047. data/core/app/helpers/admin/product_properties_helper.rb +21 -0
  1048. data/core/app/helpers/admin/products_helper.rb +11 -0
  1049. data/core/app/helpers/admin/taxons_helper.rb +18 -0
  1050. data/core/app/helpers/admin/users_helper.rb +8 -0
  1051. data/core/app/helpers/admin/zones_helper.rb +11 -0
  1052. data/core/app/helpers/checkout_helper.rb +31 -0
  1053. data/core/app/helpers/hook_helper.rb +20 -0
  1054. data/core/app/helpers/orders_helper.rb +3 -0
  1055. data/core/app/helpers/products_helper.rb +30 -0
  1056. data/core/app/helpers/search_helper.rb +10 -0
  1057. data/core/app/helpers/spree/base_helper.rb +119 -0
  1058. data/core/app/helpers/taxons_helper.rb +32 -0
  1059. data/core/app/helpers/trackers_helper.rb +2 -0
  1060. data/core/app/mailers/order_mailer.rb +19 -0
  1061. data/core/app/mailers/shipment_mailer.rb +11 -0
  1062. data/core/app/models/address.rb +115 -0
  1063. data/core/app/models/adjustment.rb +47 -0
  1064. data/core/app/models/app_configuration.rb +44 -0
  1065. data/core/app/models/asset.rb +4 -0
  1066. data/core/app/models/billing_integration.rb +23 -0
  1067. data/core/app/models/calculator.rb +46 -0
  1068. data/core/app/models/calculator/flat_percent_item_total.rb +19 -0
  1069. data/core/app/models/calculator/flat_rate.rb +16 -0
  1070. data/core/app/models/calculator/flexi_rate.rb +32 -0
  1071. data/core/app/models/calculator/per_item.rb +16 -0
  1072. data/core/app/models/calculator/price_bucket.rb +30 -0
  1073. data/core/app/models/calculator/sales_tax.rb +48 -0
  1074. data/core/app/models/calculator/vat.rb +63 -0
  1075. data/core/app/models/configuration.rb +3 -0
  1076. data/core/app/models/country.rb +16 -0
  1077. data/core/app/models/creditcard.rb +267 -0
  1078. data/core/app/models/gateway.rb +48 -0
  1079. data/core/app/models/gateway/authorize_net.rb +19 -0
  1080. data/core/app/models/gateway/authorize_net_cim.rb +132 -0
  1081. data/core/app/models/gateway/beanstream.rb +187 -0
  1082. data/core/app/models/gateway/bogus.rb +80 -0
  1083. data/core/app/models/gateway/braintree.rb +88 -0
  1084. data/core/app/models/gateway/eway.rb +11 -0
  1085. data/core/app/models/gateway/linkpoint.rb +8 -0
  1086. data/core/app/models/gateway/pay_pal.rb +11 -0
  1087. data/core/app/models/gateway/sage_pay.rb +9 -0
  1088. data/core/app/models/image.rb +31 -0
  1089. data/core/app/models/inventory_unit.rb +119 -0
  1090. data/core/app/models/line_item.rb +95 -0
  1091. data/core/app/models/log_entry.rb +3 -0
  1092. data/core/app/models/mail_method.rb +23 -0
  1093. data/core/app/models/option_type.rb +9 -0
  1094. data/core/app/models/option_value.rb +5 -0
  1095. data/core/app/models/order.rb +484 -0
  1096. data/core/app/models/payment.rb +119 -0
  1097. data/core/app/models/payment_method.rb +56 -0
  1098. data/core/app/models/payment_method/check.rb +27 -0
  1099. data/core/app/models/preference.rb +51 -0
  1100. data/core/app/models/product.rb +258 -0
  1101. data/core/app/models/product_group.rb +216 -0
  1102. data/core/app/models/product_option_type.rb +5 -0
  1103. data/core/app/models/product_property.rb +15 -0
  1104. data/core/app/models/product_scope.rb +78 -0
  1105. data/core/app/models/property.rb +18 -0
  1106. data/core/app/models/prototype.rb +5 -0
  1107. data/core/app/models/return_authorization.rb +79 -0
  1108. data/core/app/models/role.rb +3 -0
  1109. data/core/app/models/shipment.rb +157 -0
  1110. data/core/app/models/shipping_category.rb +3 -0
  1111. data/core/app/models/shipping_method.rb +25 -0
  1112. data/core/app/models/spree/alert.rb +13 -0
  1113. data/core/app/models/state.rb +16 -0
  1114. data/core/app/models/state_event.rb +16 -0
  1115. data/core/app/models/tax_category.rb +15 -0
  1116. data/core/app/models/tax_rate.rb +16 -0
  1117. data/core/app/models/taxon.rb +52 -0
  1118. data/core/app/models/taxonomy.rb +20 -0
  1119. data/core/app/models/taxonomy.rb~ +22 -0
  1120. data/core/app/models/tracker.rb +5 -0
  1121. data/core/app/models/user.rb +21 -0
  1122. data/core/app/models/variant.rb +104 -0
  1123. data/core/app/models/zone.rb +84 -0
  1124. data/core/app/models/zone_member.rb +10 -0
  1125. data/core/app/stylesheets/_buttons.less +80 -0
  1126. data/core/app/stylesheets/_cart.less +24 -0
  1127. data/core/app/stylesheets/_checkout.less +76 -0
  1128. data/core/app/stylesheets/_checkout_progress.less +62 -0
  1129. data/core/app/stylesheets/_colors.less +16 -0
  1130. data/core/app/stylesheets/_forms.less +50 -0
  1131. data/core/app/stylesheets/_layout.less +77 -0
  1132. data/core/app/stylesheets/_messages.less +32 -0
  1133. data/core/app/stylesheets/_mixins.less +71 -0
  1134. data/core/app/stylesheets/_navigation.less +130 -0
  1135. data/core/app/stylesheets/_prices.less +18 -0
  1136. data/core/app/stylesheets/_product_details.less +56 -0
  1137. data/core/app/stylesheets/_product_lists.less +66 -0
  1138. data/core/app/stylesheets/_registration.less +24 -0
  1139. data/core/app/stylesheets/_reset.less +69 -0
  1140. data/core/app/stylesheets/_typography.less +158 -0
  1141. data/core/app/stylesheets/screen.less +13 -0
  1142. data/core/app/views/admin/adjustments/_adjustments_table.html.erb +24 -0
  1143. data/core/app/views/admin/adjustments/_form.html.erb +12 -0
  1144. data/core/app/views/admin/adjustments/edit.html.erb +13 -0
  1145. data/core/app/views/admin/adjustments/index.html.erb +4 -0
  1146. data/core/app/views/admin/adjustments/new.html.erb +14 -0
  1147. data/core/app/views/admin/configurations/index.html.erb +66 -0
  1148. data/core/app/views/admin/extensions/index.html.erb +23 -0
  1149. data/core/app/views/admin/general_settings/edit.html.erb +46 -0
  1150. data/core/app/views/admin/general_settings/show.html.erb +36 -0
  1151. data/core/app/views/admin/images/_form.html.erb +16 -0
  1152. data/core/app/views/admin/images/edit.html.erb +19 -0
  1153. data/core/app/views/admin/images/index.html.erb +69 -0
  1154. data/core/app/views/admin/images/new.html.erb +22 -0
  1155. data/core/app/views/admin/images/new.html.erb~ +22 -0
  1156. data/core/app/views/admin/inventory_settings/edit.html.erb +27 -0
  1157. data/core/app/views/admin/inventory_settings/show.html.erb +9 -0
  1158. data/core/app/views/admin/inventory_units/adjust.html.erb +33 -0
  1159. data/core/app/views/admin/mail_methods/_form.html.erb +96 -0
  1160. data/core/app/views/admin/mail_methods/edit.html.erb +9 -0
  1161. data/core/app/views/admin/mail_methods/index.html.erb +41 -0
  1162. data/core/app/views/admin/mail_methods/new.html.erb +9 -0
  1163. data/core/app/views/admin/option_types/_available.html.erb +27 -0
  1164. data/core/app/views/admin/option_types/_form.html.erb +11 -0
  1165. data/core/app/views/admin/option_types/_option_value_fields.html.erb +5 -0
  1166. data/core/app/views/admin/option_types/_selected.html.erb +26 -0
  1167. data/core/app/views/admin/option_types/available.js.erb +2 -0
  1168. data/core/app/views/admin/option_types/edit.html.erb +32 -0
  1169. data/core/app/views/admin/option_types/index.html.erb +33 -0
  1170. data/core/app/views/admin/option_types/new.erb +11 -0
  1171. data/core/app/views/admin/option_types/select.js.erb +3 -0
  1172. data/core/app/views/admin/option_types/selected.html.erb +6 -0
  1173. data/core/app/views/admin/orders/_add_product.html.erb +20 -0
  1174. data/core/app/views/admin/orders/_form.html.erb +67 -0
  1175. data/core/app/views/admin/orders/_line_item.html.erb +17 -0
  1176. data/core/app/views/admin/orders/_user_form.html.erb +42 -0
  1177. data/core/app/views/admin/orders/edit.html.erb +31 -0
  1178. data/core/app/views/admin/orders/history.html.erb +29 -0
  1179. data/core/app/views/admin/orders/index.html.erb +103 -0
  1180. data/core/app/views/admin/orders/new.html.erb +20 -0
  1181. data/core/app/views/admin/orders/show.html.erb +28 -0
  1182. data/core/app/views/admin/orders/user.html.erb +24 -0
  1183. data/core/app/views/admin/payment_methods/_form.html.erb +50 -0
  1184. data/core/app/views/admin/payment_methods/edit.html.erb +10 -0
  1185. data/core/app/views/admin/payment_methods/index.html.erb +49 -0
  1186. data/core/app/views/admin/payment_methods/new.html.erb +11 -0
  1187. data/core/app/views/admin/payments/_bill_address_form.html.erb +9 -0
  1188. data/core/app/views/admin/payments/_form.html.erb +15 -0
  1189. data/core/app/views/admin/payments/_list.html.erb +22 -0
  1190. data/core/app/views/admin/payments/_transaction_list.html.erb +24 -0
  1191. data/core/app/views/admin/payments/credit.html.erb +14 -0
  1192. data/core/app/views/admin/payments/index.html.erb +22 -0
  1193. data/core/app/views/admin/payments/new.html.erb +19 -0
  1194. data/core/app/views/admin/payments/show.html.erb +10 -0
  1195. data/core/app/views/admin/payments/source_forms/_check.html.erb +0 -0
  1196. data/core/app/views/admin/payments/source_forms/_gateway.html.erb +43 -0
  1197. data/core/app/views/admin/payments/source_views/_check.html.erb +0 -0
  1198. data/core/app/views/admin/payments/source_views/_gateway.html.erb +34 -0
  1199. data/core/app/views/admin/product_groups/_preview.html.erb +34 -0
  1200. data/core/app/views/admin/product_groups/_product_scope.html.erb +24 -0
  1201. data/core/app/views/admin/product_groups/edit.html.erb +56 -0
  1202. data/core/app/views/admin/product_groups/index.html.erb +37 -0
  1203. data/core/app/views/admin/product_groups/new.html.erb +12 -0
  1204. data/core/app/views/admin/product_groups/show.html.erb +32 -0
  1205. data/core/app/views/admin/product_groups/update.js.erb +8 -0
  1206. data/core/app/views/admin/product_properties/_product_property_fields.html.erb +11 -0
  1207. data/core/app/views/admin/product_properties/index.html.erb +55 -0
  1208. data/core/app/views/admin/product_scopes/_form.html.erb +106 -0
  1209. data/core/app/views/admin/product_scopes/create.js.erb +3 -0
  1210. data/core/app/views/admin/product_scopes/destroy.js.erb +3 -0
  1211. data/core/app/views/admin/product_scopes/new.html.erb +1 -0
  1212. data/core/app/views/admin/products/_form.html.erb +112 -0
  1213. data/core/app/views/admin/products/_option_types.html.erb +40 -0
  1214. data/core/app/views/admin/products/_properties_form.erb +7 -0
  1215. data/core/app/views/admin/products/edit.html.erb +10 -0
  1216. data/core/app/views/admin/products/edit.html.erb~ +10 -0
  1217. data/core/app/views/admin/products/index.html.erb +81 -0
  1218. data/core/app/views/admin/products/index.html.erb~ +81 -0
  1219. data/core/app/views/admin/products/new.erb +58 -0
  1220. data/core/app/views/admin/products/new.erb~ +53 -0
  1221. data/core/app/views/admin/products/show.html.erb +4 -0
  1222. data/core/app/views/admin/products/show.html.erb~ +4 -0
  1223. data/core/app/views/admin/properties/_form.html.erb +12 -0
  1224. data/core/app/views/admin/properties/edit.html.erb +10 -0
  1225. data/core/app/views/admin/properties/filtered.html.erb +1 -0
  1226. data/core/app/views/admin/properties/index.html.erb +40 -0
  1227. data/core/app/views/admin/properties/new.erb +11 -0
  1228. data/core/app/views/admin/prototypes/_form.html.erb +44 -0
  1229. data/core/app/views/admin/prototypes/available.html.erb +22 -0
  1230. data/core/app/views/admin/prototypes/edit.html.erb +9 -0
  1231. data/core/app/views/admin/prototypes/index.html.erb +37 -0
  1232. data/core/app/views/admin/prototypes/new.erb +11 -0
  1233. data/core/app/views/admin/prototypes/select.js.erb +4 -0
  1234. data/core/app/views/admin/reports/index.html.erb +19 -0
  1235. data/core/app/views/admin/reports/sales_total.html.erb +23 -0
  1236. data/core/app/views/admin/return_authorizations/_form.html.erb +78 -0
  1237. data/core/app/views/admin/return_authorizations/edit.html.erb +27 -0
  1238. data/core/app/views/admin/return_authorizations/index.html.erb +45 -0
  1239. data/core/app/views/admin/return_authorizations/new.html.erb +13 -0
  1240. data/core/app/views/admin/shared/_additional_field.html.erb +5 -0
  1241. data/core/app/views/admin/shared/_address.html.erb +5 -0
  1242. data/core/app/views/admin/shared/_address_form.html.erb +79 -0
  1243. data/core/app/views/admin/shared/_alert.html.erb +6 -0
  1244. data/core/app/views/admin/shared/_calculator_fields.html.erb +19 -0
  1245. data/core/app/views/admin/shared/_configuration_menu.html.erb +22 -0
  1246. data/core/app/views/admin/shared/_destroy.js.erb +16 -0
  1247. data/core/app/views/admin/shared/_edit_resource_links.html.erb +4 -0
  1248. data/core/app/views/admin/shared/_group_from_products_form.html.erb +12 -0
  1249. data/core/app/views/admin/shared/_new_adjustment_button.html.erb +8 -0
  1250. data/core/app/views/admin/shared/_new_resource_links.html.erb +4 -0
  1251. data/core/app/views/admin/shared/_order_details.html.erb +3 -0
  1252. data/core/app/views/admin/shared/_order_sub_menu.html.erb +0 -0
  1253. data/core/app/views/admin/shared/_order_tabs.html.erb +64 -0
  1254. data/core/app/views/admin/shared/_product_sub_menu.html.erb +11 -0
  1255. data/core/app/views/admin/shared/_product_tabs.html.erb +34 -0
  1256. data/core/app/views/admin/shared/_report_criteria.html.erb +15 -0
  1257. data/core/app/views/admin/shared/_show_resource_links.html.erb +5 -0
  1258. data/core/app/views/admin/shared/_tabs.html.erb +6 -0
  1259. data/core/app/views/admin/shared/_update_order_state.js +6 -0
  1260. data/core/app/views/admin/shipments/_form.html.erb +77 -0
  1261. data/core/app/views/admin/shipments/edit.html.erb +40 -0
  1262. data/core/app/views/admin/shipments/index.html.erb +47 -0
  1263. data/core/app/views/admin/shipments/new.html.erb +18 -0
  1264. data/core/app/views/admin/shipping_categories/_form.html.erb +6 -0
  1265. data/core/app/views/admin/shipping_categories/edit.html.erb +6 -0
  1266. data/core/app/views/admin/shipping_categories/index.html.erb +29 -0
  1267. data/core/app/views/admin/shipping_categories/new.html.erb +8 -0
  1268. data/core/app/views/admin/shipping_methods/_form.html.erb +26 -0
  1269. data/core/app/views/admin/shipping_methods/edit.html.erb +16 -0
  1270. data/core/app/views/admin/shipping_methods/index.html.erb +49 -0
  1271. data/core/app/views/admin/shipping_methods/new.html.erb +17 -0
  1272. data/core/app/views/admin/states/_form.html.erb +9 -0
  1273. data/core/app/views/admin/states/_state_list.html.erb +34 -0
  1274. data/core/app/views/admin/states/edit.html.erb +10 -0
  1275. data/core/app/views/admin/states/index.html.erb +16 -0
  1276. data/core/app/views/admin/states/new.erb +8 -0
  1277. data/core/app/views/admin/tax_categories/_form.html.erb +12 -0
  1278. data/core/app/views/admin/tax_categories/edit.html.erb +10 -0
  1279. data/core/app/views/admin/tax_categories/index.html.erb +44 -0
  1280. data/core/app/views/admin/tax_categories/new.html.erb +10 -0
  1281. data/core/app/views/admin/tax_categories/show.html.erb +1 -0
  1282. data/core/app/views/admin/tax_rates/_form.html.erb +16 -0
  1283. data/core/app/views/admin/tax_rates/edit.html.erb +6 -0
  1284. data/core/app/views/admin/tax_rates/index.html.erb +34 -0
  1285. data/core/app/views/admin/tax_rates/new.html.erb +8 -0
  1286. data/core/app/views/admin/tax_settings/edit.html.erb +17 -0
  1287. data/core/app/views/admin/tax_settings/show.html.erb +14 -0
  1288. data/core/app/views/admin/taxonomies/_form.html.erb +10 -0
  1289. data/core/app/views/admin/taxonomies/_form.html.erb~ +11 -0
  1290. data/core/app/views/admin/taxonomies/_js_head.html.erb +9 -0
  1291. data/core/app/views/admin/taxonomies/_list.html.erb +19 -0
  1292. data/core/app/views/admin/taxonomies/_list.html.erb~ +20 -0
  1293. data/core/app/views/admin/taxonomies/_taxon.html.erb +12 -0
  1294. data/core/app/views/admin/taxonomies/edit.erb +49 -0
  1295. data/core/app/views/admin/taxonomies/get_children.json.erb +9 -0
  1296. data/core/app/views/admin/taxonomies/index.html.erb +16 -0
  1297. data/core/app/views/admin/taxonomies/new.html.erb +12 -0
  1298. data/core/app/views/admin/taxons/_form.html.erb +23 -0
  1299. data/core/app/views/admin/taxons/_taxon_table.html.erb +23 -0
  1300. data/core/app/views/admin/taxons/available.js.erb +33 -0
  1301. data/core/app/views/admin/taxons/edit.html.erb +11 -0
  1302. data/core/app/views/admin/taxons/remove.html.erb +1 -0
  1303. data/core/app/views/admin/taxons/select.js.erb +2 -0
  1304. data/core/app/views/admin/taxons/selected.html.erb +43 -0
  1305. data/core/app/views/admin/trackers/_form.html.erb +26 -0
  1306. data/core/app/views/admin/trackers/edit.html.erb +8 -0
  1307. data/core/app/views/admin/trackers/index.html.erb +41 -0
  1308. data/core/app/views/admin/trackers/new.html.erb +9 -0
  1309. data/core/app/views/admin/users/_form.html.erb +35 -0
  1310. data/core/app/views/admin/users/edit.html.erb +14 -0
  1311. data/core/app/views/admin/users/index.html.erb +63 -0
  1312. data/core/app/views/admin/users/new.html.erb +14 -0
  1313. data/core/app/views/admin/users/show.html.erb +21 -0
  1314. data/core/app/views/admin/variants/_form.html.erb +40 -0
  1315. data/core/app/views/admin/variants/edit.html.erb +13 -0
  1316. data/core/app/views/admin/variants/index.html.erb +66 -0
  1317. data/core/app/views/admin/variants/new.erb +11 -0
  1318. data/core/app/views/admin/zones/_country_member.html.erb +5 -0
  1319. data/core/app/views/admin/zones/_form.html.erb +29 -0
  1320. data/core/app/views/admin/zones/_member_type.html.erb +15 -0
  1321. data/core/app/views/admin/zones/_state_member.html.erb +5 -0
  1322. data/core/app/views/admin/zones/_zone_member.html.erb +5 -0
  1323. data/core/app/views/admin/zones/edit.html.erb +10 -0
  1324. data/core/app/views/admin/zones/index.html.erb +41 -0
  1325. data/core/app/views/admin/zones/new.html.erb +10 -0
  1326. data/core/app/views/checkout/_address.html.erb +163 -0
  1327. data/core/app/views/checkout/_confirm.html.erb +11 -0
  1328. data/core/app/views/checkout/_delivery.html.erb +25 -0
  1329. data/core/app/views/checkout/_payment.html.erb +30 -0
  1330. data/core/app/views/checkout/_summary.html.erb +21 -0
  1331. data/core/app/views/checkout/edit.html.erb +20 -0
  1332. data/core/app/views/checkout/payment/_check.html.erb +0 -0
  1333. data/core/app/views/checkout/payment/_gateway.html.erb +31 -0
  1334. data/core/app/views/checkout/registration.html.erb +20 -0
  1335. data/core/app/views/content/cvv.html.erb +13 -0
  1336. data/core/app/views/layouts/admin.html.erb +75 -0
  1337. data/core/app/views/layouts/spree_application.html.erb +52 -0
  1338. data/core/app/views/order_mailer/cancel_email.text.erb +16 -0
  1339. data/core/app/views/order_mailer/confirm_email.text.erb +19 -0
  1340. data/core/app/views/orders/_form.html.erb +19 -0
  1341. data/core/app/views/orders/_line_item.html.erb +41 -0
  1342. data/core/app/views/orders/edit.html.erb +41 -0
  1343. data/core/app/views/orders/new.html.erb +9 -0
  1344. data/core/app/views/orders/show.html.erb +14 -0
  1345. data/core/app/views/products/_cart_form.html.erb +54 -0
  1346. data/core/app/views/products/_cart_form.html.erb~ +54 -0
  1347. data/core/app/views/products/_image.html.erb +5 -0
  1348. data/core/app/views/products/_image.html.erb~ +5 -0
  1349. data/core/app/views/products/_properties.html.erb +8 -0
  1350. data/core/app/views/products/_taxons.html.erb +16 -0
  1351. data/core/app/views/products/_thumbnails.html.erb +40 -0
  1352. data/core/app/views/products/index.html.erb +37 -0
  1353. data/core/app/views/products/show.html.erb +31 -0
  1354. data/core/app/views/shared/_additional_field.html.erb +7 -0
  1355. data/core/app/views/shared/_admin_head.html.erb +34 -0
  1356. data/core/app/views/shared/_basic_layout.html.erb +44 -0
  1357. data/core/app/views/shared/_edit_resource_links.html.erb +1 -0
  1358. data/core/app/views/shared/_end_soon.html.erb +43 -0
  1359. data/core/app/views/shared/_error_messages.html.erb +11 -0
  1360. data/core/app/views/shared/_filters.html.erb +27 -0
  1361. data/core/app/views/shared/_footer.html.erb +13 -0
  1362. data/core/app/views/shared/_google_analytics.html.erb +40 -0
  1363. data/core/app/views/shared/_head.html.erb +10 -0
  1364. data/core/app/views/shared/_method_error_message.html.erb +4 -0
  1365. data/core/app/views/shared/_nav_bar.html.erb +5 -0
  1366. data/core/app/views/shared/_new_release.html.erb +42 -0
  1367. data/core/app/views/shared/_new_resource_links.html.erb +1 -0
  1368. data/core/app/views/shared/_order_details.html.erb +50 -0
  1369. data/core/app/views/shared/_products.html.erb +42 -0
  1370. data/core/app/views/shared/_search.html.erb +9 -0
  1371. data/core/app/views/shared/_show_resource_links.html.erb +3 -0
  1372. data/core/app/views/shared/_store_menu.html.erb +3 -0
  1373. data/core/app/views/shared/_taxonomies.html.erb +19 -0
  1374. data/core/app/views/shared/_test_hook.html.erb +1 -0
  1375. data/core/app/views/shared/_upcoming_products.html.erb +42 -0
  1376. data/core/app/views/shipment_mailer/shipped_email.text.erb +15 -0
  1377. data/core/app/views/states/index.js.erb +1 -0
  1378. data/core/app/views/taxons/_taxon.html.erb +4 -0
  1379. data/core/app/views/taxons/show.html.erb +19 -0
  1380. data/core/config/cucumber.yml +10 -0
  1381. data/core/config/initializers/form_builder.rb +19 -0
  1382. data/core/config/initializers/load_unobtrusive_date_picker.rb +8 -0
  1383. data/core/config/initializers/spree.rb +29 -0
  1384. data/core/config/initializers/workarounds_for_ruby19.rb +72 -0
  1385. data/core/config/locales/en.yml +1015 -0
  1386. data/core/config/routes.rb +207 -0
  1387. data/core/db/default/countries.yml +1583 -0
  1388. data/core/db/default/roles.yml +7 -0
  1389. data/core/db/default/states.yml +256 -0
  1390. data/core/db/default/zone_members.yml +169 -0
  1391. data/core/db/default/zones.yml +13 -0
  1392. data/core/db/migrate/20090823005402_spree_zero_nine_zero.rb +442 -0
  1393. data/core/db/migrate/20090904192342_create_indexes_for_inventory_units.rb +12 -0
  1394. data/core/db/migrate/20090923100315_add_count_on_hand_to_variants_and_products.rb +36 -0
  1395. data/core/db/migrate/20091007134354_change_taxons_to_nested_set.rb +40 -0
  1396. data/core/db/migrate/20091008091614_move_to_configurable_gateways.rb +55 -0
  1397. data/core/db/migrate/20091012120519_product_groups_and_scopes.rb +25 -0
  1398. data/core/db/migrate/20091015110842_add_open_id_authentication_tables.rb +20 -0
  1399. data/core/db/migrate/20091015153048_add_openid_field_to_users.rb +19 -0
  1400. data/core/db/migrate/20091016174634_change_preference_value_type.rb +10 -0
  1401. data/core/db/migrate/20091017175558_create_billing_integrations.rb +16 -0
  1402. data/core/db/migrate/20091021133257_charge_refactoring.rb +35 -0
  1403. data/core/db/migrate/20091104151730_add_some_indexes.rb +21 -0
  1404. data/core/db/migrate/20091126190904_checkout_state_machine.rb +13 -0
  1405. data/core/db/migrate/20091209153045_state_for_shipments.rb +9 -0
  1406. data/core/db/migrate/20091209202200_make_state_events_polymorphic.rb +12 -0
  1407. data/core/db/migrate/20091211203813_ship_address_id_for_checkouts.rb +9 -0
  1408. data/core/db/migrate/20091212161118_shipping_method_id_for_checkouts.rb +9 -0
  1409. data/core/db/migrate/20091213222815_creditcard_last_four_digits.rb +19 -0
  1410. data/core/db/migrate/20091214183826_populate_legacy_shipment_state.rb +19 -0
  1411. data/core/db/migrate/20100105090147_add_cost_price.rb +9 -0
  1412. data/core/db/migrate/20100105132138_shipment_id_for_inventory_units.rb +21 -0
  1413. data/core/db/migrate/20100111205525_cim_fields_for_creditcards.rb +11 -0
  1414. data/core/db/migrate/20100112151511_create_return_authorizations.rb +16 -0
  1415. data/core/db/migrate/20100113090919_add_return_authorization_to_inventory_units.rb +9 -0
  1416. data/core/db/migrate/20100113203104_create_trackers.rb +14 -0
  1417. data/core/db/migrate/20100121160010_creditcard_id_for_creditcard_txns.rb +9 -0
  1418. data/core/db/migrate/20100121183934_original_creditcard_txn_id_for_creditcard_txns.rb +9 -0
  1419. data/core/db/migrate/20100125145351_add_test_mode_to_billing_integration.rb +11 -0
  1420. data/core/db/migrate/20100126103714_create_products_product_groups.rb +12 -0
  1421. data/core/db/migrate/20100209025806_create_payment_methods.rb +20 -0
  1422. data/core/db/migrate/20100209144531_polymorphic_payments.rb +29 -0
  1423. data/core/db/migrate/20100213103131_change_payments_payment_method_to_belongs_to.rb +11 -0
  1424. data/core/db/migrate/20100214212536_assign_creditcard_txns_to_payment.rb +16 -0
  1425. data/core/db/migrate/20100223170312_sti_for_transactions.rb +14 -0
  1426. data/core/db/migrate/20100223183812_drop_billing_integrations.rb +16 -0
  1427. data/core/db/migrate/20100224153127_deleted_at_for_payment_methods.rb +13 -0
  1428. data/core/db/migrate/20100301163454_add_adjustments_index.rb +10 -0
  1429. data/core/db/migrate/20100306153445_fix_by_popularity.rb +8 -0
  1430. data/core/db/migrate/20100317120946_add_alt_text_to_images.rb +9 -0
  1431. data/core/db/migrate/20100427121301_add_display_to_payment_methods.rb +9 -0
  1432. data/core/db/migrate/20100504142133_add_addresses_checkouts_indexes.rb +16 -0
  1433. data/core/db/migrate/20100506180619_add_icon_to_taxons.rb +18 -0
  1434. data/core/db/migrate/20100506185838_add_description_to_taxons.rb +11 -0
  1435. data/core/db/migrate/20100528155333_index_for_shipments_number.rb +9 -0
  1436. data/core/db/migrate/20100528185820_add_index_on_users_persistence_token.rb +9 -0
  1437. data/core/db/migrate/20100605152042_add_default_to_tax_categories.rb +9 -0
  1438. data/core/db/migrate/20100624110730_add_display_to_shipping_methods.rb +9 -0
  1439. data/core/db/migrate/20100624123336_rename_payment_method_display.rb +9 -0
  1440. data/core/db/migrate/20100624175547_rename_preferences_field.rb +8 -0
  1441. data/core/db/migrate/20100811163637_add_guest_flag.rb +13 -0
  1442. data/core/db/migrate/20100811205836_drop_order_token.rb +11 -0
  1443. data/core/db/migrate/20100812162326_payments_state_and_assigned_to_order_only.rb +11 -0
  1444. data/core/db/migrate/20100813023502_create_address_keys_for_order.rb +15 -0
  1445. data/core/db/migrate/20100813185745_payment_total_for_orders.rb +9 -0
  1446. data/core/db/migrate/20100816212146_shipping_method_id_for_orders.rb +9 -0
  1447. data/core/db/migrate/20100817152723_add_shipment_and_payment_state.rb +15 -0
  1448. data/core/db/migrate/20100819170125_refactor_adjustments.rb +19 -0
  1449. data/core/db/migrate/20100820135707_response_code_and_avs_response_for_payments.rb +11 -0
  1450. data/core/db/migrate/20100901171814_change_guest_flag_to_anonymous.rb +13 -0
  1451. data/core/db/migrate/20100903203949_email_for_orders.rb +9 -0
  1452. data/core/db/migrate/20100923162011_create_mail_methods.rb +12 -0
  1453. data/core/db/migrate/20100929151905_rename_frozen_to_locked.rb +8 -0
  1454. data/core/db/migrate/20101008190536_move_special_instructions_to_orders.rb +11 -0
  1455. data/core/db/migrate/20101026184700_create_log_entries.rb +15 -0
  1456. data/core/db/migrate/20101026184714_migrate_transactions_to_payment_state.rb +94 -0
  1457. data/core/db/migrate/20101026184746_delete_in_progress_orders.rb +18 -0
  1458. data/core/db/migrate/20101026184808_migrate_checkout_to_orders.rb +27 -0
  1459. data/core/db/migrate/20101026184833_migrate_adjustments.rb +9 -0
  1460. data/core/db/migrate/20101026184855_remove_shipped_state.rb +14 -0
  1461. data/core/db/migrate/20101026184916_prevent_nil_payment_total.rb +8 -0
  1462. data/core/db/migrate/20101026184932_prevent_nil_email.rb +9 -0
  1463. data/core/db/migrate/20101026184959_generate_anonymous_users.rb +14 -0
  1464. data/core/db/migrate/20101026185022_update_order_state.rb +8 -0
  1465. data/core/db/migrate/20101026192225_cleanup_legacy_tables.rb +11 -0
  1466. data/core/db/migrate/20101028151745_remove_number_and_cvv_from_credicard.rb +9 -0
  1467. data/core/db/migrate/20101103212716_drop_anonymous_field_for_user.rb +8 -0
  1468. data/core/db/migrate/20101111133551_renamed_rma_cancelled_state.rb +10 -0
  1469. data/core/db/migrate/20101117031806_fix_problematic_index_names.rb +13 -0
  1470. data/core/db/migrate/20101223215658_add_position_to_variants.rb +9 -0
  1471. data/core/db/migrate/20110110130847_add_next_state_to_state_events.rb +9 -0
  1472. data/core/db/migrate/20110111122537_add_position_to_option_types.rb +9 -0
  1473. data/core/db/migrate/20110314192118_remove_trailing_slashes_in_taxon_permalinks.rb +17 -0
  1474. data/core/db/sample/users.rb +61 -0
  1475. data/core/db/seeds.rb +3 -0
  1476. data/core/features/admin/configuration/analytics_tracker.feature +27 -0
  1477. data/core/features/admin/configuration/general_settings.feature +22 -0
  1478. data/core/features/admin/configuration/inventory_settings.feature +15 -0
  1479. data/core/features/admin/configuration/mail_methods.feature +32 -0
  1480. data/core/features/admin/configuration/payment_methods.feature +41 -0
  1481. data/core/features/admin/configuration/shipping_methods.feature +21 -0
  1482. data/core/features/admin/configuration/states.feature +42 -0
  1483. data/core/features/admin/configuration/tax_categories.feature +40 -0
  1484. data/core/features/admin/configuration/taxonomies.feature +42 -0
  1485. data/core/features/admin/configuration/zones.feature +25 -0
  1486. data/core/features/admin/homepage.feature +45 -0
  1487. data/core/features/admin/orders/adjustments.feature +76 -0
  1488. data/core/features/admin/orders/customer_details.feature +45 -0
  1489. data/core/features/admin/orders/history.feature +10 -0
  1490. data/core/features/admin/orders/listing.feature +55 -0
  1491. data/core/features/admin/orders/order_details.feature +74 -0
  1492. data/core/features/admin/orders/payments.feature +84 -0
  1493. data/core/features/admin/orders/return_authorizations.feature +0 -0
  1494. data/core/features/admin/orders/shipments.feature +38 -0
  1495. data/core/features/admin/products/edit/images.feature +22 -0
  1496. data/core/features/admin/products/edit/option_types.feature +34 -0
  1497. data/core/features/admin/products/edit/product_details.feature +16 -0
  1498. data/core/features/admin/products/edit/product_properties.feature +57 -0
  1499. data/core/features/admin/products/edit/taxons.feature +26 -0
  1500. data/core/features/admin/products/edit/variants.feature +67 -0
  1501. data/core/features/admin/products/option_types.feature +37 -0
  1502. data/core/features/admin/products/product_groups.feature +244 -0
  1503. data/core/features/admin/products/products.feature +127 -0
  1504. data/core/features/admin/products/properties.feature +41 -0
  1505. data/core/features/admin/products/prototypes.feature +47 -0
  1506. data/core/features/admin/reports.feature +17 -0
  1507. data/core/features/admin/users.feature +77 -0
  1508. data/core/features/products.feature +73 -0
  1509. data/core/features/step_definitions/admin/configurations.rb +59 -0
  1510. data/core/features/step_definitions/admin/configurations/mail_methods.rb +11 -0
  1511. data/core/features/step_definitions/admin/configurations/payment_method.rb +13 -0
  1512. data/core/features/step_definitions/admin/configurations/tax_categories.rb +10 -0
  1513. data/core/features/step_definitions/admin/configurations/taxonomies.rb +8 -0
  1514. data/core/features/step_definitions/admin/option_types.rb +9 -0
  1515. data/core/features/step_definitions/admin/orders.rb +68 -0
  1516. data/core/features/step_definitions/admin/product_groups.rb +62 -0
  1517. data/core/features/step_definitions/admin/products.rb +39 -0
  1518. data/core/features/step_definitions/admin/products/images.rb +4 -0
  1519. data/core/features/step_definitions/admin/products/product_properties.rb +9 -0
  1520. data/core/features/step_definitions/admin/products/taxons.rb +19 -0
  1521. data/core/features/step_definitions/admin/properties.rb +16 -0
  1522. data/core/features/step_definitions/admin/prototypes.rb +9 -0
  1523. data/core/features/step_definitions/admin/reports.rb +23 -0
  1524. data/core/features/step_definitions/admin/users.rb +15 -0
  1525. data/core/features/step_definitions/orders/adjustments.rb +8 -0
  1526. data/core/features/step_definitions/orders/history.rb +19 -0
  1527. data/core/features/step_definitions/orders/order_details.rb +46 -0
  1528. data/core/features/step_definitions/orders/payments.rb +31 -0
  1529. data/core/features/step_definitions/orders/shipments.rb +9 -0
  1530. data/core/features/step_definitions/product.rb +134 -0
  1531. data/core/features/step_definitions/ror_ringer.jpeg +0 -0
  1532. data/core/features/support/env.rb +5 -0
  1533. data/core/features/support/paths.rb +42 -0
  1534. data/core/lib/custom_fixtures.rb +7 -0
  1535. data/core/lib/generators/spree_core/upgrade_generator.rb +23 -0
  1536. data/core/lib/generators/templates/config/initializers/%file_name%.rb.tt +1 -0
  1537. data/core/lib/generators/templates/config/locales/%current_locale%.yml.tt +2 -0
  1538. data/core/lib/generators/templates/config/routes.rb +3 -0
  1539. data/core/lib/middleware/seo_assist.rb +44 -0
  1540. data/core/lib/product_filters.rb +179 -0
  1541. data/core/lib/redirect_legacy_product_url.rb +13 -0
  1542. data/core/lib/scopes.rb +69 -0
  1543. data/core/lib/scopes/dynamic.rb +31 -0
  1544. data/core/lib/scopes/product.rb +266 -0
  1545. data/core/lib/scopes/variant.rb +18 -0
  1546. data/core/lib/spree/calculated_adjustments.rb +69 -0
  1547. data/core/lib/spree/config.rb +33 -0
  1548. data/core/lib/spree/current_order.rb +30 -0
  1549. data/core/lib/spree/file_utilz.rb +73 -0
  1550. data/core/lib/spree/gateway_error.rb +3 -0
  1551. data/core/lib/spree/mail_interceptor.rb +23 -0
  1552. data/core/lib/spree/mail_settings.rb +33 -0
  1553. data/core/lib/spree/preference_access.rb +27 -0
  1554. data/core/lib/spree/search/base.rb +64 -0
  1555. data/core/lib/spree_base.rb +116 -0
  1556. data/core/lib/spree_core.rb +94 -0
  1557. data/core/lib/spree_core/action_callbacks.rb +26 -0
  1558. data/core/lib/spree_core/authorize_net_cim_hack.rb +871 -0
  1559. data/core/lib/spree_core/delegate_belongs_to.rb +89 -0
  1560. data/core/lib/spree_core/enumerable_constants.rb +209 -0
  1561. data/core/lib/spree_core/ext/active_record.rb +15 -0
  1562. data/core/lib/spree_core/ext/array.rb +14 -0
  1563. data/core/lib/spree_core/ext/hash.rb +75 -0
  1564. data/core/lib/spree_core/ext/string.rb +10 -0
  1565. data/core/lib/spree_core/preferences/model_hooks.rb +293 -0
  1566. data/core/lib/spree_core/preferences/preference_definition.rb +53 -0
  1567. data/core/lib/spree_core/railtie.rb +63 -0
  1568. data/core/lib/spree_core/spree_custom_responder.rb +29 -0
  1569. data/core/lib/spree_core/spree_respond_with.rb +57 -0
  1570. data/core/lib/spree_core/ssl_requirement.rb +104 -0
  1571. data/core/lib/spree_core/testing_support/factories.rb +13 -0
  1572. data/core/lib/spree_core/testing_support/factories/address_factory.rb +20 -0
  1573. data/core/lib/spree_core/testing_support/factories/adjustment_factory.rb +6 -0
  1574. data/core/lib/spree_core/testing_support/factories/calculator_factory.rb +5 -0
  1575. data/core/lib/spree_core/testing_support/factories/configuraion_factory.rb +4 -0
  1576. data/core/lib/spree_core/testing_support/factories/country_factory.rb +7 -0
  1577. data/core/lib/spree_core/testing_support/factories/creditcard_factory.rb +11 -0
  1578. data/core/lib/spree_core/testing_support/factories/inventory_unit_factory.rb +7 -0
  1579. data/core/lib/spree_core/testing_support/factories/line_item_factory.rb +8 -0
  1580. data/core/lib/spree_core/testing_support/factories/mail_method_factory.rb +4 -0
  1581. data/core/lib/spree_core/testing_support/factories/options_factory.rb +10 -0
  1582. data/core/lib/spree_core/testing_support/factories/order_factory.rb +18 -0
  1583. data/core/lib/spree_core/testing_support/factories/payment_factory.rb +26 -0
  1584. data/core/lib/spree_core/testing_support/factories/payment_method_factory.rb +17 -0
  1585. data/core/lib/spree_core/testing_support/factories/product_factory.rb +16 -0
  1586. data/core/lib/spree_core/testing_support/factories/product_group_factory.rb +3 -0
  1587. data/core/lib/spree_core/testing_support/factories/product_option_type_factory.rb +4 -0
  1588. data/core/lib/spree_core/testing_support/factories/product_property_factory.rb +4 -0
  1589. data/core/lib/spree_core/testing_support/factories/product_scope_factory.rb +6 -0
  1590. data/core/lib/spree_core/testing_support/factories/property_factory.rb +4 -0
  1591. data/core/lib/spree_core/testing_support/factories/prototype_factory.rb +4 -0
  1592. data/core/lib/spree_core/testing_support/factories/return_authorization_factory.rb +8 -0
  1593. data/core/lib/spree_core/testing_support/factories/role_factory.rb +9 -0
  1594. data/core/lib/spree_core/testing_support/factories/shipment_factory.rb +9 -0
  1595. data/core/lib/spree_core/testing_support/factories/shipping_category_factory.rb +5 -0
  1596. data/core/lib/spree_core/testing_support/factories/shipping_method_factory.rb +11 -0
  1597. data/core/lib/spree_core/testing_support/factories/state_factory.rb +11 -0
  1598. data/core/lib/spree_core/testing_support/factories/tax_category_factory.rb +8 -0
  1599. data/core/lib/spree_core/testing_support/factories/tax_rate_factory.rb +5 -0
  1600. data/core/lib/spree_core/testing_support/factories/taxon_factory.rb +5 -0
  1601. data/core/lib/spree_core/testing_support/factories/taxonomy_factory.rb +3 -0
  1602. data/core/lib/spree_core/testing_support/factories/tracker_factory.rb +5 -0
  1603. data/core/lib/spree_core/testing_support/factories/user_factory.rb +15 -0
  1604. data/core/lib/spree_core/testing_support/factories/variant_factory.rb +14 -0
  1605. data/core/lib/spree_core/testing_support/factories/zone_factory.rb +18 -0
  1606. data/core/lib/spree_core/theme_support.rb +4 -0
  1607. data/core/lib/spree_core/theme_support/hook.rb +51 -0
  1608. data/core/lib/spree_core/theme_support/hook_listener.rb +68 -0
  1609. data/core/lib/spree_core/theme_support/hook_modifier.rb +35 -0
  1610. data/core/lib/spree_core/theme_support/more_patches.rb +118 -0
  1611. data/core/lib/spree_core/version.rb +5 -0
  1612. data/core/lib/store_helpers.rb +10 -0
  1613. data/core/lib/tasks/common.rb +30 -0
  1614. data/core/lib/tasks/core.rake +105 -0
  1615. data/core/lib/tasks/install.rake +26 -0
  1616. data/core/lib/tasks/rake_util.rb +19 -0
  1617. data/core/lib/tasks/taxon.rake +14 -0
  1618. data/core/lib/tasks/themes.rake +34 -0
  1619. data/core/public/images/add-to-cart.png +0 -0
  1620. data/core/public/images/admin/bg/active-tab.png +0 -0
  1621. data/core/public/images/admin/bg/admin_tab_back.png +0 -0
  1622. data/core/public/images/admin/bg/admin_tab_selected_back.png +0 -0
  1623. data/core/public/images/admin/bg/content-back-blue.png +0 -0
  1624. data/core/public/images/admin/bg/content-back-green.png +0 -0
  1625. data/core/public/images/admin/bg/content-back.png +0 -0
  1626. data/core/public/images/admin/bg/flash-error.png +0 -0
  1627. data/core/public/images/admin/bg/flash-notice.png +0 -0
  1628. data/core/public/images/admin/bg/green-stripes.gif +0 -0
  1629. data/core/public/images/admin/bg/green-stripes.png +0 -0
  1630. data/core/public/images/admin/bg/grid_header_back.png +0 -0
  1631. data/core/public/images/admin/bg/grid_header_back_green.png +0 -0
  1632. data/core/public/images/admin/bg/header-bg.png +0 -0
  1633. data/core/public/images/admin/bg/header.png +0 -0
  1634. data/core/public/images/admin/bg/header_bg.jpg +0 -0
  1635. data/core/public/images/admin/bg/menu-current.png +0 -0
  1636. data/core/public/images/admin/bg/red-stripes.gif +0 -0
  1637. data/core/public/images/admin/bg/red-stripes.png +0 -0
  1638. data/core/public/images/admin/bg/spree_50.png +0 -0
  1639. data/core/public/images/admin/bg/subnav-divider.png +0 -0
  1640. data/core/public/images/admin/bg/subnav.png +0 -0
  1641. data/core/public/images/admin/bg/tab-back.png +0 -0
  1642. data/core/public/images/admin/buttons/blue/left_01.png +0 -0
  1643. data/core/public/images/admin/buttons/blue/right_01.png +0 -0
  1644. data/core/public/images/admin/buttons/drag-handle-green.png +0 -0
  1645. data/core/public/images/admin/buttons/green/left_01.png +0 -0
  1646. data/core/public/images/admin/buttons/green/right_01.png +0 -0
  1647. data/core/public/images/admin/buttons/left_01.png +0 -0
  1648. data/core/public/images/admin/buttons/left_01_small.png +0 -0
  1649. data/core/public/images/admin/buttons/orange/left_03.png +0 -0
  1650. data/core/public/images/admin/buttons/orange/right_03.png +0 -0
  1651. data/core/public/images/admin/buttons/right_01.png +0 -0
  1652. data/core/public/images/admin/buttons/right_01_small.png +0 -0
  1653. data/core/public/images/admin/icons/16x16/1.png +0 -0
  1654. data/core/public/images/admin/icons/16x16/10.png +0 -0
  1655. data/core/public/images/admin/icons/16x16/2.png +0 -0
  1656. data/core/public/images/admin/icons/16x16/3.png +0 -0
  1657. data/core/public/images/admin/icons/16x16/4.png +0 -0
  1658. data/core/public/images/admin/icons/16x16/5.png +0 -0
  1659. data/core/public/images/admin/icons/16x16/6.png +0 -0
  1660. data/core/public/images/admin/icons/16x16/7.png +0 -0
  1661. data/core/public/images/admin/icons/16x16/8.png +0 -0
  1662. data/core/public/images/admin/icons/16x16/9.png +0 -0
  1663. data/core/public/images/admin/icons/32x32/1.png +0 -0
  1664. data/core/public/images/admin/icons/32x32/10.png +0 -0
  1665. data/core/public/images/admin/icons/32x32/11.png +0 -0
  1666. data/core/public/images/admin/icons/32x32/2.png +0 -0
  1667. data/core/public/images/admin/icons/32x32/3.png +0 -0
  1668. data/core/public/images/admin/icons/32x32/4.png +0 -0
  1669. data/core/public/images/admin/icons/32x32/5.png +0 -0
  1670. data/core/public/images/admin/icons/32x32/6.png +0 -0
  1671. data/core/public/images/admin/icons/32x32/7.png +0 -0
  1672. data/core/public/images/admin/icons/32x32/8.png +0 -0
  1673. data/core/public/images/admin/icons/32x32/9.png +0 -0
  1674. data/core/public/images/admin/icons/accept.png +0 -0
  1675. data/core/public/images/admin/icons/add.gif +0 -0
  1676. data/core/public/images/admin/icons/add.png +0 -0
  1677. data/core/public/images/admin/icons/arrow-down.gif +0 -0
  1678. data/core/public/images/admin/icons/cross.png +0 -0
  1679. data/core/public/images/admin/icons/delete.gif +0 -0
  1680. data/core/public/images/admin/icons/delete.png +0 -0
  1681. data/core/public/images/admin/icons/drag.gif +0 -0
  1682. data/core/public/images/admin/icons/edit.gif +0 -0
  1683. data/core/public/images/admin/icons/edit.png +0 -0
  1684. data/core/public/images/admin/icons/email.png +0 -0
  1685. data/core/public/images/admin/icons/error.png +0 -0
  1686. data/core/public/images/admin/icons/exclamation.png +0 -0
  1687. data/core/public/images/admin/icons/feed.png +0 -0
  1688. data/core/public/images/admin/icons/pdf.png +0 -0
  1689. data/core/public/images/admin/icons/reorder.gif +0 -0
  1690. data/core/public/images/admin/icons/search.gif +0 -0
  1691. data/core/public/images/admin/icons/send-email.png +0 -0
  1692. data/core/public/images/admin/icons/stop.png +0 -0
  1693. data/core/public/images/admin/icons/tick.png +0 -0
  1694. data/core/public/images/admin/icons/up.gif +0 -0
  1695. data/core/public/images/admin/icons/xls.png +0 -0
  1696. data/core/public/images/admin/tabs/off-left.png +0 -0
  1697. data/core/public/images/admin/tabs/off-right.png +0 -0
  1698. data/core/public/images/admin/tabs/on-left.png +0 -0
  1699. data/core/public/images/admin/tabs/on-right.png +0 -0
  1700. data/core/public/images/ajax_loader.gif +0 -0
  1701. data/core/public/images/amex_cid.gif +0 -0
  1702. data/core/public/images/bg-button-hover.png +0 -0
  1703. data/core/public/images/bg-button-pressed.png +0 -0
  1704. data/core/public/images/bg-button.gif +0 -0
  1705. data/core/public/images/bg-button.png +0 -0
  1706. data/core/public/images/blue/left_01.png +0 -0
  1707. data/core/public/images/blue/right_01.png +0 -0
  1708. data/core/public/images/body-back.png +0 -0
  1709. data/core/public/images/bottom_shine.png +0 -0
  1710. data/core/public/images/breadcrumb.gif +0 -0
  1711. data/core/public/images/button-dark-hover.png +0 -0
  1712. data/core/public/images/button-dark.png +0 -0
  1713. data/core/public/images/buttons/bg-button-hover.png +0 -0
  1714. data/core/public/images/buttons/bg-button-pressed.png +0 -0
  1715. data/core/public/images/buttons/bg-button.gif +0 -0
  1716. data/core/public/images/buttons/bg-button.png +0 -0
  1717. data/core/public/images/buttons/blue/left_01.png +0 -0
  1718. data/core/public/images/buttons/blue/right_01.png +0 -0
  1719. data/core/public/images/buttons/button-dark-hover.png +0 -0
  1720. data/core/public/images/buttons/button-dark.png +0 -0
  1721. data/core/public/images/buttons/drag-handle-green.png +0 -0
  1722. data/core/public/images/buttons/green/left_01.png +0 -0
  1723. data/core/public/images/buttons/green/right_01.png +0 -0
  1724. data/core/public/images/buttons/left_01.png +0 -0
  1725. data/core/public/images/buttons/left_01_small.png +0 -0
  1726. data/core/public/images/buttons/orange/left_03.png +0 -0
  1727. data/core/public/images/buttons/orange/right_03.png +0 -0
  1728. data/core/public/images/buttons/right_01.png +0 -0
  1729. data/core/public/images/buttons/right_01_small.png +0 -0
  1730. data/core/public/images/buttons/sxsw-ribbon-v1.png +0 -0
  1731. data/core/public/images/buttons/top-shine.png +0 -0
  1732. data/core/public/images/calendar_date_select/calendar.gif +0 -0
  1733. data/core/public/images/cart-empty.png +0 -0
  1734. data/core/public/images/cart-empty_x32.png +0 -0
  1735. data/core/public/images/cart-full.png +0 -0
  1736. data/core/public/images/cart-full_x32.png +0 -0
  1737. data/core/public/images/checkout.png +0 -0
  1738. data/core/public/images/creditcard.gif +0 -0
  1739. data/core/public/images/datepicker/backstripes.gif +0 -0
  1740. data/core/public/images/datepicker/bg_header.jpg +0 -0
  1741. data/core/public/images/datepicker/bullet1.gif +0 -0
  1742. data/core/public/images/datepicker/bullet2.gif +0 -0
  1743. data/core/public/images/datepicker/cal.gif +0 -0
  1744. data/core/public/images/datepicker/gradient-e5e5e5-ffffff.gif +0 -0
  1745. data/core/public/images/discover_cid.gif +0 -0
  1746. data/core/public/images/drag-handle-green.png +0 -0
  1747. data/core/public/images/favicon.ico +0 -0
  1748. data/core/public/images/green/left_01.png +0 -0
  1749. data/core/public/images/green/right_01.png +0 -0
  1750. data/core/public/images/grid.png +0 -0
  1751. data/core/public/images/left_01.png +0 -0
  1752. data/core/public/images/left_01_small.png +0 -0
  1753. data/core/public/images/master_cid.jpg +0 -0
  1754. data/core/public/images/menu-current.png +0 -0
  1755. data/core/public/images/menu-hover.png +0 -0
  1756. data/core/public/images/noimage/mini.jpg +0 -0
  1757. data/core/public/images/noimage/product.jpg +0 -0
  1758. data/core/public/images/noimage/small.jpg +0 -0
  1759. data/core/public/images/openid-inputicon.gif +0 -0
  1760. data/core/public/images/orange/left_03.png +0 -0
  1761. data/core/public/images/orange/right_03.png +0 -0
  1762. data/core/public/images/progress.gif +0 -0
  1763. data/core/public/images/reorder.jpg +0 -0
  1764. data/core/public/images/right_01.png +0 -0
  1765. data/core/public/images/right_01_small.png +0 -0
  1766. data/core/public/images/separator.png +0 -0
  1767. data/core/public/images/shadow-top.png +0 -0
  1768. data/core/public/images/shadow_top.png +0 -0
  1769. data/core/public/images/spinner.gif +0 -0
  1770. data/core/public/images/spree.jpg +0 -0
  1771. data/core/public/images/spree/progress.gif +0 -0
  1772. data/core/public/images/spree/spinner.gif +0 -0
  1773. data/core/public/images/spree/spree.jpg +0 -0
  1774. data/core/public/images/step-progress/completed-completed.gif +0 -0
  1775. data/core/public/images/step-progress/completed-current.gif +0 -0
  1776. data/core/public/images/step-progress/completed-first.gif +0 -0
  1777. data/core/public/images/step-progress/current-first.gif +0 -0
  1778. data/core/public/images/step-progress/current-incomplete.gif +0 -0
  1779. data/core/public/images/step-progress/current-right.gif +0 -0
  1780. data/core/public/images/step-progress/incomplete-incomplete.gif +0 -0
  1781. data/core/public/images/step-progress/incomplete-right.gif +0 -0
  1782. data/core/public/images/steps/1.png +0 -0
  1783. data/core/public/images/steps/1_small.png +0 -0
  1784. data/core/public/images/steps/2.png +0 -0
  1785. data/core/public/images/steps/2_small.png +0 -0
  1786. data/core/public/images/steps/3.png +0 -0
  1787. data/core/public/images/steps/3_small.png +0 -0
  1788. data/core/public/images/steps/4.png +0 -0
  1789. data/core/public/images/steps/4_small.png +0 -0
  1790. data/core/public/images/steps/5.png +0 -0
  1791. data/core/public/images/steps/5_small.png +0 -0
  1792. data/core/public/images/steps/6.png +0 -0
  1793. data/core/public/images/steps/6_small.png +0 -0
  1794. data/core/public/images/sxsw-ribbon-v1.png +0 -0
  1795. data/core/public/images/tab_bottom.gif +0 -0
  1796. data/core/public/images/tile-header.png +0 -0
  1797. data/core/public/images/tile-slider.png +0 -0
  1798. data/core/public/images/top-shine.png +0 -0
  1799. data/core/public/images/tree-nav-icons/bullet.gif +0 -0
  1800. data/core/public/images/tree-nav-icons/minus.gif +0 -0
  1801. data/core/public/images/tree-nav-icons/plus.gif +0 -0
  1802. data/core/public/images/tree-nav-icons/treeview-loading.gif +0 -0
  1803. data/core/public/images/tree-nav-icons/treeview-sprite.gif +0 -0
  1804. data/core/public/images/update.png +0 -0
  1805. data/core/public/images/visa_cid.gif +0 -0
  1806. data/core/public/images/wrapper-back-2.png +0 -0
  1807. data/core/public/images/wrapper-back.png +0 -0
  1808. data/core/public/images/yui-menubaritem_submenuindicator.png +0 -0
  1809. data/core/public/images/yui-menubaritem_submenuindicator_disabled.png +0 -0
  1810. data/core/public/images/yui-menuitem_checkbox.png +0 -0
  1811. data/core/public/images/yui-menuitem_checkbox_disabled.png +0 -0
  1812. data/core/public/images/yui-menuitem_submenuindicator.png +0 -0
  1813. data/core/public/images/yui-menuitem_submenuindicator_disabled.png +0 -0
  1814. data/core/public/images/yui-sprite.png +0 -0
  1815. data/core/public/javascripts/additional-methods.js +236 -0
  1816. data/core/public/javascripts/admin.js +232 -0
  1817. data/core/public/javascripts/admin/address_states.js +25 -0
  1818. data/core/public/javascripts/admin/checkouts/edit.js +130 -0
  1819. data/core/public/javascripts/admin/orders/edit.js +23 -0
  1820. data/core/public/javascripts/admin/orders/edit_form.js +16 -0
  1821. data/core/public/javascripts/admin/payments/new.js +9 -0
  1822. data/core/public/javascripts/admin/unobtrusive_handlers.js +43 -0
  1823. data/core/public/javascripts/application.js +12 -0
  1824. data/core/public/javascripts/calculator.js +15 -0
  1825. data/core/public/javascripts/checkout.js +75 -0
  1826. data/core/public/javascripts/datepicker.js +1445 -0
  1827. data/core/public/javascripts/gateway.js +13 -0
  1828. data/core/public/javascripts/jquery-1.4.2.min.js +154 -0
  1829. data/core/public/javascripts/jquery-ui.js +188 -0
  1830. data/core/public/javascripts/jquery.alerts/images/help.gif +0 -0
  1831. data/core/public/javascripts/jquery.alerts/images/important.gif +0 -0
  1832. data/core/public/javascripts/jquery.alerts/images/info.gif +0 -0
  1833. data/core/public/javascripts/jquery.alerts/images/title.gif +0 -0
  1834. data/core/public/javascripts/jquery.alerts/jquery.alerts.css +57 -0
  1835. data/core/public/javascripts/jquery.alerts/jquery.alerts.js +235 -0
  1836. data/core/public/javascripts/jquery.alerts/jquery.alerts.spree.css +30 -0
  1837. data/core/public/javascripts/jquery.autocomplete.min.js +13 -0
  1838. data/core/public/javascripts/jquery.cookie.js +96 -0
  1839. data/core/public/javascripts/jquery.delayedobserver.js +35 -0
  1840. data/core/public/javascripts/jquery.suggest.js +276 -0
  1841. data/core/public/javascripts/jquery.template.js +255 -0
  1842. data/core/public/javascripts/jquery.tokeninput.js +618 -0
  1843. data/core/public/javascripts/jquery.validate.min.js +16 -0
  1844. data/core/public/javascripts/jsTree/jquery.jstree.js +3510 -0
  1845. data/core/public/javascripts/jsTree/themes/apple/bg.jpg +0 -0
  1846. data/core/public/javascripts/jsTree/themes/apple/d.png +0 -0
  1847. data/core/public/javascripts/jsTree/themes/apple/dot_for_ie.gif +0 -0
  1848. data/core/public/javascripts/jsTree/themes/apple/style.css +60 -0
  1849. data/core/public/javascripts/jsTree/themes/apple/throbber.gif +0 -0
  1850. data/core/public/javascripts/lang/af.js +40 -0
  1851. data/core/public/javascripts/lang/ar.js +50 -0
  1852. data/core/public/javascripts/lang/de.js +40 -0
  1853. data/core/public/javascripts/lang/du.js +40 -0
  1854. data/core/public/javascripts/lang/en.js +42 -0
  1855. data/core/public/javascripts/lang/es.js +41 -0
  1856. data/core/public/javascripts/lang/fi.js +40 -0
  1857. data/core/public/javascripts/lang/fr.js +44 -0
  1858. data/core/public/javascripts/lang/gr.js +40 -0
  1859. data/core/public/javascripts/lang/he.js +49 -0
  1860. data/core/public/javascripts/lang/it.js +13 -0
  1861. data/core/public/javascripts/lang/nl.js +40 -0
  1862. data/core/public/javascripts/lang/no.js +40 -0
  1863. data/core/public/javascripts/lang/pt.js +50 -0
  1864. data/core/public/javascripts/lang/ro.js +40 -0
  1865. data/core/public/javascripts/lang/ru.js +40 -0
  1866. data/core/public/javascripts/lang/sp.js +40 -0
  1867. data/core/public/javascripts/lang/sv.js +41 -0
  1868. data/core/public/javascripts/lang/ua.js +40 -0
  1869. data/core/public/javascripts/localization/messages_cn.js +24 -0
  1870. data/core/public/javascripts/localization/messages_cs.js +23 -0
  1871. data/core/public/javascripts/localization/messages_da.js +21 -0
  1872. data/core/public/javascripts/localization/messages_de.js +21 -0
  1873. data/core/public/javascripts/localization/messages_es.js +24 -0
  1874. data/core/public/javascripts/localization/messages_fr.js +23 -0
  1875. data/core/public/javascripts/localization/messages_hu.js +21 -0
  1876. data/core/public/javascripts/localization/messages_it.js +26 -0
  1877. data/core/public/javascripts/localization/messages_kk.js +23 -0
  1878. data/core/public/javascripts/localization/messages_nl.js +23 -0
  1879. data/core/public/javascripts/localization/messages_no.js +23 -0
  1880. data/core/public/javascripts/localization/messages_pl.js +23 -0
  1881. data/core/public/javascripts/localization/messages_ptbr.js +30 -0
  1882. data/core/public/javascripts/localization/messages_ro.js +24 -0
  1883. data/core/public/javascripts/localization/messages_ru.js +23 -0
  1884. data/core/public/javascripts/localization/messages_se.js +23 -0
  1885. data/core/public/javascripts/localization/messages_sk.js +21 -0
  1886. data/core/public/javascripts/localization/messages_tr.js +24 -0
  1887. data/core/public/javascripts/localization/messages_tw.js +24 -0
  1888. data/core/public/javascripts/localization/messages_ua.js +24 -0
  1889. data/core/public/javascripts/nested-attribute.js +26 -0
  1890. data/core/public/javascripts/open_id.js +15 -0
  1891. data/core/public/javascripts/product.js +49 -0
  1892. data/core/public/javascripts/rails.js +127 -0
  1893. data/core/public/javascripts/taxonomy.js +201 -0
  1894. data/core/public/javascripts/zone.js +39 -0
  1895. data/core/public/stylesheets/admin/admin-forms.css +154 -0
  1896. data/core/public/stylesheets/admin/admin-reset.css +69 -0
  1897. data/core/public/stylesheets/admin/admin-tables.css +39 -0
  1898. data/core/public/stylesheets/admin/admin-typography.css +117 -0
  1899. data/core/public/stylesheets/admin/admin.css +614 -0
  1900. data/core/public/stylesheets/admin/autocomplete.css +73 -0
  1901. data/core/public/stylesheets/admin/dashboard.css +143 -0
  1902. data/core/public/stylesheets/admin/edit_checkouts.css +57 -0
  1903. data/core/public/stylesheets/admin/grids.css +314 -0
  1904. data/core/public/stylesheets/admin/reset-fonts-grids-2-6-0.css +7 -0
  1905. data/core/public/stylesheets/admin/token-input.css +109 -0
  1906. data/core/public/stylesheets/admin/yui-includes.css +14 -0
  1907. data/core/public/stylesheets/datepicker.css +263 -0
  1908. data/core/public/stylesheets/jquery.autocomplete.css +48 -0
  1909. data/core/public/stylesheets/screen.css +916 -0
  1910. data/core/rfcommerce_core.gemspec +37 -0
  1911. data/core/spec/controllers/admin/base_controller_spec.rb +61 -0
  1912. data/core/spec/controllers/admin/general_settings_controller_spec.rb +17 -0
  1913. data/core/spec/controllers/admin/mail_methods_controller_spec.rb +26 -0
  1914. data/core/spec/controllers/admin/orders_controller_spec.rb +26 -0
  1915. data/core/spec/controllers/admin/products_controller_spec.rb +16 -0
  1916. data/core/spec/controllers/admin/users_controller_spec.rb +16 -0
  1917. data/core/spec/controllers/checkout_controller_spec.rb +144 -0
  1918. data/core/spec/controllers/content_controller_spec.rb +14 -0
  1919. data/core/spec/controllers/orders_controller_extension_spec.rb +62 -0
  1920. data/core/spec/controllers/orders_controller_spec.rb +82 -0
  1921. data/core/spec/lib/calculated_adjustments_spec.rb +54 -0
  1922. data/core/spec/lib/ext_spec.rb +53 -0
  1923. data/core/spec/lib/mail_interceptor_spec.rb +69 -0
  1924. data/core/spec/lib/mail_settings_spec.rb +82 -0
  1925. data/core/spec/models/address_spec.rb +135 -0
  1926. data/core/spec/models/adjustment_spec.rb +67 -0
  1927. data/core/spec/models/calculator/flat_percent_item_total_spec.rb +22 -0
  1928. data/core/spec/models/configuration_spec.rb +9 -0
  1929. data/core/spec/models/country_spec.rb +13 -0
  1930. data/core/spec/models/creditcard_spec.rb +487 -0
  1931. data/core/spec/models/gateway/authorize_net.rb +17 -0
  1932. data/core/spec/models/gateway/authorize_net_cim_spec.rb +18 -0
  1933. data/core/spec/models/gateway/authorize_net_spec.rb +17 -0
  1934. data/core/spec/models/gateway/braintree_spec.rb +192 -0
  1935. data/core/spec/models/inventory_unit_spec.rb +254 -0
  1936. data/core/spec/models/line_item_spec.rb +119 -0
  1937. data/core/spec/models/mail_method_spec.rb +26 -0
  1938. data/core/spec/models/order_spec.rb +579 -0
  1939. data/core/spec/models/payment_method_spec.rb +50 -0
  1940. data/core/spec/models/payment_spec.rb +147 -0
  1941. data/core/spec/models/product_group_spec.rb +36 -0
  1942. data/core/spec/models/product_option_type_spec.rb +9 -0
  1943. data/core/spec/models/product_property_spec.rb +9 -0
  1944. data/core/spec/models/product_scope_spec.rb +39 -0
  1945. data/core/spec/models/product_spec.rb +125 -0
  1946. data/core/spec/models/return_authorization_spec.rb +113 -0
  1947. data/core/spec/models/shipment_spec.rb +179 -0
  1948. data/core/spec/models/shipping_category_spec.rb +10 -0
  1949. data/core/spec/models/shipping_method_spec.rb +16 -0
  1950. data/core/spec/models/state_spec.rb +13 -0
  1951. data/core/spec/models/tax_category_spec.rb +28 -0
  1952. data/core/spec/models/tax_rate_spec.rb +34 -0
  1953. data/core/spec/models/taxon_spec.rb +38 -0
  1954. data/core/spec/models/taxonomy_spec.rb +14 -0
  1955. data/core/spec/models/tracer_spec.rb +9 -0
  1956. data/core/spec/models/user_spec.rb +9 -0
  1957. data/core/spec/models/variant_spec.rb +125 -0
  1958. data/core/spec/spec_helper.rb +47 -0
  1959. data/core/spec/test_app/Gemfile +34 -0
  1960. data/core/spec/test_app/Rakefile +7 -0
  1961. data/core/spec/test_app/app/controllers/application_controller.rb +3 -0
  1962. data/core/spec/test_app/app/helpers/application_helper.rb +2 -0
  1963. data/core/spec/test_app/app/views/layouts/application.html.erb +14 -0
  1964. data/core/spec/test_app/config.ru +4 -0
  1965. data/core/spec/test_app/config/application.rb +42 -0
  1966. data/core/spec/test_app/config/boot.rb +6 -0
  1967. data/core/spec/test_app/config/database.yml +17 -0
  1968. data/core/spec/test_app/config/environment.rb +5 -0
  1969. data/core/spec/test_app/config/environments/cucumber.rb +38 -0
  1970. data/core/spec/test_app/config/environments/development.rb +26 -0
  1971. data/core/spec/test_app/config/environments/production.rb +49 -0
  1972. data/core/spec/test_app/config/environments/test.rb +35 -0
  1973. data/core/spec/test_app/config/initializers/backtrace_silencers.rb +7 -0
  1974. data/core/spec/test_app/config/initializers/inflections.rb +10 -0
  1975. data/core/spec/test_app/config/initializers/mime_types.rb +5 -0
  1976. data/core/spec/test_app/config/initializers/secret_token.rb +7 -0
  1977. data/core/spec/test_app/config/initializers/session_store.rb +8 -0
  1978. data/core/spec/test_app/config/locales/en.yml +5 -0
  1979. data/core/spec/test_app/config/routes.rb +58 -0
  1980. data/core/spec/test_app/db/cucumber.sqlite3 +0 -0
  1981. data/core/spec/test_app/db/default/countries.yml +1583 -0
  1982. data/core/spec/test_app/db/default/roles.yml +7 -0
  1983. data/core/spec/test_app/db/default/states.yml +256 -0
  1984. data/core/spec/test_app/db/default/zone_members.yml +169 -0
  1985. data/core/spec/test_app/db/default/zones.yml +13 -0
  1986. data/core/spec/test_app/db/migrate/20090823005402_spree_zero_nine_zero.rb +442 -0
  1987. data/core/spec/test_app/db/migrate/20090904192342_create_indexes_for_inventory_units.rb +12 -0
  1988. data/core/spec/test_app/db/migrate/20090923100315_add_count_on_hand_to_variants_and_products.rb +36 -0
  1989. data/core/spec/test_app/db/migrate/20091007134354_change_taxons_to_nested_set.rb +40 -0
  1990. data/core/spec/test_app/db/migrate/20091008091614_move_to_configurable_gateways.rb +55 -0
  1991. data/core/spec/test_app/db/migrate/20091012120519_product_groups_and_scopes.rb +25 -0
  1992. data/core/spec/test_app/db/migrate/20091015110842_add_open_id_authentication_tables.rb +20 -0
  1993. data/core/spec/test_app/db/migrate/20091015153048_add_openid_field_to_users.rb +19 -0
  1994. data/core/spec/test_app/db/migrate/20091016174634_change_preference_value_type.rb +10 -0
  1995. data/core/spec/test_app/db/migrate/20091017175558_create_billing_integrations.rb +16 -0
  1996. data/core/spec/test_app/db/migrate/20091021133257_charge_refactoring.rb +35 -0
  1997. data/core/spec/test_app/db/migrate/20091104151730_add_some_indexes.rb +21 -0
  1998. data/core/spec/test_app/db/migrate/20091126190904_checkout_state_machine.rb +13 -0
  1999. data/core/spec/test_app/db/migrate/20091209153045_state_for_shipments.rb +9 -0
  2000. data/core/spec/test_app/db/migrate/20091209202200_make_state_events_polymorphic.rb +12 -0
  2001. data/core/spec/test_app/db/migrate/20091211203813_ship_address_id_for_checkouts.rb +9 -0
  2002. data/core/spec/test_app/db/migrate/20091212161118_shipping_method_id_for_checkouts.rb +9 -0
  2003. data/core/spec/test_app/db/migrate/20091213222815_creditcard_last_four_digits.rb +19 -0
  2004. data/core/spec/test_app/db/migrate/20091214183826_populate_legacy_shipment_state.rb +19 -0
  2005. data/core/spec/test_app/db/migrate/20100105090147_add_cost_price.rb +9 -0
  2006. data/core/spec/test_app/db/migrate/20100105132138_shipment_id_for_inventory_units.rb +21 -0
  2007. data/core/spec/test_app/db/migrate/20100111205525_cim_fields_for_creditcards.rb +11 -0
  2008. data/core/spec/test_app/db/migrate/20100112151511_create_return_authorizations.rb +16 -0
  2009. data/core/spec/test_app/db/migrate/20100113090919_add_return_authorization_to_inventory_units.rb +9 -0
  2010. data/core/spec/test_app/db/migrate/20100113203104_create_trackers.rb +14 -0
  2011. data/core/spec/test_app/db/migrate/20100121160010_creditcard_id_for_creditcard_txns.rb +9 -0
  2012. data/core/spec/test_app/db/migrate/20100121183934_original_creditcard_txn_id_for_creditcard_txns.rb +9 -0
  2013. data/core/spec/test_app/db/migrate/20100125145351_add_test_mode_to_billing_integration.rb +11 -0
  2014. data/core/spec/test_app/db/migrate/20100126103714_create_products_product_groups.rb +12 -0
  2015. data/core/spec/test_app/db/migrate/20100209025806_create_payment_methods.rb +20 -0
  2016. data/core/spec/test_app/db/migrate/20100209144531_polymorphic_payments.rb +29 -0
  2017. data/core/spec/test_app/db/migrate/20100213103131_change_payments_payment_method_to_belongs_to.rb +11 -0
  2018. data/core/spec/test_app/db/migrate/20100214212536_assign_creditcard_txns_to_payment.rb +16 -0
  2019. data/core/spec/test_app/db/migrate/20100223170312_sti_for_transactions.rb +14 -0
  2020. data/core/spec/test_app/db/migrate/20100223183812_drop_billing_integrations.rb +16 -0
  2021. data/core/spec/test_app/db/migrate/20100224153127_deleted_at_for_payment_methods.rb +13 -0
  2022. data/core/spec/test_app/db/migrate/20100301163454_add_adjustments_index.rb +10 -0
  2023. data/core/spec/test_app/db/migrate/20100306153445_fix_by_popularity.rb +8 -0
  2024. data/core/spec/test_app/db/migrate/20100317120946_add_alt_text_to_images.rb +9 -0
  2025. data/core/spec/test_app/db/migrate/20100427121301_add_display_to_payment_methods.rb +9 -0
  2026. data/core/spec/test_app/db/migrate/20100504142133_add_addresses_checkouts_indexes.rb +16 -0
  2027. data/core/spec/test_app/db/migrate/20100506180619_add_icon_to_taxons.rb +18 -0
  2028. data/core/spec/test_app/db/migrate/20100506185838_add_description_to_taxons.rb +11 -0
  2029. data/core/spec/test_app/db/migrate/20100528155333_index_for_shipments_number.rb +9 -0
  2030. data/core/spec/test_app/db/migrate/20100528185820_add_index_on_users_persistence_token.rb +9 -0
  2031. data/core/spec/test_app/db/migrate/20100605152042_add_default_to_tax_categories.rb +9 -0
  2032. data/core/spec/test_app/db/migrate/20100624110730_add_display_to_shipping_methods.rb +9 -0
  2033. data/core/spec/test_app/db/migrate/20100624123336_rename_payment_method_display.rb +9 -0
  2034. data/core/spec/test_app/db/migrate/20100624175547_rename_preferences_field.rb +8 -0
  2035. data/core/spec/test_app/db/migrate/20100811163637_add_guest_flag.rb +13 -0
  2036. data/core/spec/test_app/db/migrate/20100811205836_drop_order_token.rb +11 -0
  2037. data/core/spec/test_app/db/migrate/20100812162326_payments_state_and_assigned_to_order_only.rb +11 -0
  2038. data/core/spec/test_app/db/migrate/20100813023502_create_address_keys_for_order.rb +15 -0
  2039. data/core/spec/test_app/db/migrate/20100813185745_payment_total_for_orders.rb +9 -0
  2040. data/core/spec/test_app/db/migrate/20100816212146_shipping_method_id_for_orders.rb +9 -0
  2041. data/core/spec/test_app/db/migrate/20100817152723_add_shipment_and_payment_state.rb +15 -0
  2042. data/core/spec/test_app/db/migrate/20100819170125_refactor_adjustments.rb +19 -0
  2043. data/core/spec/test_app/db/migrate/20100820135707_response_code_and_avs_response_for_payments.rb +11 -0
  2044. data/core/spec/test_app/db/migrate/20100901171814_change_guest_flag_to_anonymous.rb +13 -0
  2045. data/core/spec/test_app/db/migrate/20100903203949_email_for_orders.rb +9 -0
  2046. data/core/spec/test_app/db/migrate/20100923162011_create_mail_methods.rb +12 -0
  2047. data/core/spec/test_app/db/migrate/20100929151905_rename_frozen_to_locked.rb +8 -0
  2048. data/core/spec/test_app/db/migrate/20101008190536_move_special_instructions_to_orders.rb +11 -0
  2049. data/core/spec/test_app/db/migrate/20101026184700_create_log_entries.rb +15 -0
  2050. data/core/spec/test_app/db/migrate/20101026184714_migrate_transactions_to_payment_state.rb +94 -0
  2051. data/core/spec/test_app/db/migrate/20101026184746_delete_in_progress_orders.rb +18 -0
  2052. data/core/spec/test_app/db/migrate/20101026184808_migrate_checkout_to_orders.rb +27 -0
  2053. data/core/spec/test_app/db/migrate/20101026184833_migrate_adjustments.rb +9 -0
  2054. data/core/spec/test_app/db/migrate/20101026184855_remove_shipped_state.rb +14 -0
  2055. data/core/spec/test_app/db/migrate/20101026184916_prevent_nil_payment_total.rb +8 -0
  2056. data/core/spec/test_app/db/migrate/20101026184932_prevent_nil_email.rb +9 -0
  2057. data/core/spec/test_app/db/migrate/20101026184959_generate_anonymous_users.rb +14 -0
  2058. data/core/spec/test_app/db/migrate/20101026185022_update_order_state.rb +8 -0
  2059. data/core/spec/test_app/db/migrate/20101026192225_cleanup_legacy_tables.rb +11 -0
  2060. data/core/spec/test_app/db/migrate/20101028151745_remove_number_and_cvv_from_credicard.rb +9 -0
  2061. data/core/spec/test_app/db/migrate/20101103212716_drop_anonymous_field_for_user.rb +8 -0
  2062. data/core/spec/test_app/db/migrate/20101111133551_renamed_rma_cancelled_state.rb +10 -0
  2063. data/core/spec/test_app/db/migrate/20101117031806_fix_problematic_index_names.rb +13 -0
  2064. data/core/spec/test_app/db/migrate/20101223215658_add_position_to_variants.rb +9 -0
  2065. data/core/spec/test_app/db/migrate/20110110130847_add_next_state_to_state_events.rb +9 -0
  2066. data/core/spec/test_app/db/migrate/20110111122537_add_position_to_option_types.rb +9 -0
  2067. data/core/spec/test_app/db/migrate/20110314192118_remove_trailing_slashes_in_taxon_permalinks.rb +17 -0
  2068. data/core/spec/test_app/db/sample/users.rb +61 -0
  2069. data/core/spec/test_app/db/schema.rb +531 -0
  2070. data/core/spec/test_app/db/seeds.rb +3 -0
  2071. data/core/spec/test_app/db/test.sqlite3 +0 -0
  2072. data/core/spec/test_app/log/cucumber.log +1324 -0
  2073. data/core/spec/test_app/log/development.log +0 -0
  2074. data/core/spec/test_app/log/production.log +0 -0
  2075. data/core/spec/test_app/log/server.log +0 -0
  2076. data/core/spec/test_app/log/test.log +1324 -0
  2077. data/core/spec/test_app/public/404.html +26 -0
  2078. data/core/spec/test_app/public/422.html +26 -0
  2079. data/core/spec/test_app/public/500.html +26 -0
  2080. data/core/spec/test_app/public/favicon.ico +0 -0
  2081. data/core/spec/test_app/public/images/add-to-cart.png +0 -0
  2082. data/core/spec/test_app/public/images/admin/bg/active-tab.png +0 -0
  2083. data/core/spec/test_app/public/images/admin/bg/admin_tab_back.png +0 -0
  2084. data/core/spec/test_app/public/images/admin/bg/admin_tab_selected_back.png +0 -0
  2085. data/core/spec/test_app/public/images/admin/bg/content-back-blue.png +0 -0
  2086. data/core/spec/test_app/public/images/admin/bg/content-back-green.png +0 -0
  2087. data/core/spec/test_app/public/images/admin/bg/content-back.png +0 -0
  2088. data/core/spec/test_app/public/images/admin/bg/flash-error.png +0 -0
  2089. data/core/spec/test_app/public/images/admin/bg/flash-notice.png +0 -0
  2090. data/core/spec/test_app/public/images/admin/bg/green-stripes.gif +0 -0
  2091. data/core/spec/test_app/public/images/admin/bg/green-stripes.png +0 -0
  2092. data/core/spec/test_app/public/images/admin/bg/grid_header_back.png +0 -0
  2093. data/core/spec/test_app/public/images/admin/bg/grid_header_back_green.png +0 -0
  2094. data/core/spec/test_app/public/images/admin/bg/header-bg.png +0 -0
  2095. data/core/spec/test_app/public/images/admin/bg/header.png +0 -0
  2096. data/core/spec/test_app/public/images/admin/bg/header_bg.jpg +0 -0
  2097. data/core/spec/test_app/public/images/admin/bg/menu-current.png +0 -0
  2098. data/core/spec/test_app/public/images/admin/bg/red-stripes.gif +0 -0
  2099. data/core/spec/test_app/public/images/admin/bg/red-stripes.png +0 -0
  2100. data/core/spec/test_app/public/images/admin/bg/spree_50.png +0 -0
  2101. data/core/spec/test_app/public/images/admin/bg/subnav-divider.png +0 -0
  2102. data/core/spec/test_app/public/images/admin/bg/subnav.png +0 -0
  2103. data/core/spec/test_app/public/images/admin/bg/tab-back.png +0 -0
  2104. data/core/spec/test_app/public/images/admin/buttons/blue/left_01.png +0 -0
  2105. data/core/spec/test_app/public/images/admin/buttons/blue/right_01.png +0 -0
  2106. data/core/spec/test_app/public/images/admin/buttons/drag-handle-green.png +0 -0
  2107. data/core/spec/test_app/public/images/admin/buttons/green/left_01.png +0 -0
  2108. data/core/spec/test_app/public/images/admin/buttons/green/right_01.png +0 -0
  2109. data/core/spec/test_app/public/images/admin/buttons/left_01.png +0 -0
  2110. data/core/spec/test_app/public/images/admin/buttons/left_01_small.png +0 -0
  2111. data/core/spec/test_app/public/images/admin/buttons/orange/left_03.png +0 -0
  2112. data/core/spec/test_app/public/images/admin/buttons/orange/right_03.png +0 -0
  2113. data/core/spec/test_app/public/images/admin/buttons/right_01.png +0 -0
  2114. data/core/spec/test_app/public/images/admin/buttons/right_01_small.png +0 -0
  2115. data/core/spec/test_app/public/images/admin/icons/16x16/1.png +0 -0
  2116. data/core/spec/test_app/public/images/admin/icons/16x16/10.png +0 -0
  2117. data/core/spec/test_app/public/images/admin/icons/16x16/2.png +0 -0
  2118. data/core/spec/test_app/public/images/admin/icons/16x16/3.png +0 -0
  2119. data/core/spec/test_app/public/images/admin/icons/16x16/4.png +0 -0
  2120. data/core/spec/test_app/public/images/admin/icons/16x16/5.png +0 -0
  2121. data/core/spec/test_app/public/images/admin/icons/16x16/6.png +0 -0
  2122. data/core/spec/test_app/public/images/admin/icons/16x16/7.png +0 -0
  2123. data/core/spec/test_app/public/images/admin/icons/16x16/8.png +0 -0
  2124. data/core/spec/test_app/public/images/admin/icons/16x16/9.png +0 -0
  2125. data/core/spec/test_app/public/images/admin/icons/32x32/1.png +0 -0
  2126. data/core/spec/test_app/public/images/admin/icons/32x32/10.png +0 -0
  2127. data/core/spec/test_app/public/images/admin/icons/32x32/11.png +0 -0
  2128. data/core/spec/test_app/public/images/admin/icons/32x32/2.png +0 -0
  2129. data/core/spec/test_app/public/images/admin/icons/32x32/3.png +0 -0
  2130. data/core/spec/test_app/public/images/admin/icons/32x32/4.png +0 -0
  2131. data/core/spec/test_app/public/images/admin/icons/32x32/5.png +0 -0
  2132. data/core/spec/test_app/public/images/admin/icons/32x32/6.png +0 -0
  2133. data/core/spec/test_app/public/images/admin/icons/32x32/7.png +0 -0
  2134. data/core/spec/test_app/public/images/admin/icons/32x32/8.png +0 -0
  2135. data/core/spec/test_app/public/images/admin/icons/32x32/9.png +0 -0
  2136. data/core/spec/test_app/public/images/admin/icons/accept.png +0 -0
  2137. data/core/spec/test_app/public/images/admin/icons/add.gif +0 -0
  2138. data/core/spec/test_app/public/images/admin/icons/add.png +0 -0
  2139. data/core/spec/test_app/public/images/admin/icons/arrow-down.gif +0 -0
  2140. data/core/spec/test_app/public/images/admin/icons/cross.png +0 -0
  2141. data/core/spec/test_app/public/images/admin/icons/delete.gif +0 -0
  2142. data/core/spec/test_app/public/images/admin/icons/delete.png +0 -0
  2143. data/core/spec/test_app/public/images/admin/icons/drag.gif +0 -0
  2144. data/core/spec/test_app/public/images/admin/icons/edit.gif +0 -0
  2145. data/core/spec/test_app/public/images/admin/icons/edit.png +0 -0
  2146. data/core/spec/test_app/public/images/admin/icons/email.png +0 -0
  2147. data/core/spec/test_app/public/images/admin/icons/error.png +0 -0
  2148. data/core/spec/test_app/public/images/admin/icons/exclamation.png +0 -0
  2149. data/core/spec/test_app/public/images/admin/icons/feed.png +0 -0
  2150. data/core/spec/test_app/public/images/admin/icons/pdf.png +0 -0
  2151. data/core/spec/test_app/public/images/admin/icons/reorder.gif +0 -0
  2152. data/core/spec/test_app/public/images/admin/icons/search.gif +0 -0
  2153. data/core/spec/test_app/public/images/admin/icons/send-email.png +0 -0
  2154. data/core/spec/test_app/public/images/admin/icons/stop.png +0 -0
  2155. data/core/spec/test_app/public/images/admin/icons/tick.png +0 -0
  2156. data/core/spec/test_app/public/images/admin/icons/up.gif +0 -0
  2157. data/core/spec/test_app/public/images/admin/icons/xls.png +0 -0
  2158. data/core/spec/test_app/public/images/admin/tabs/off-left.png +0 -0
  2159. data/core/spec/test_app/public/images/admin/tabs/off-right.png +0 -0
  2160. data/core/spec/test_app/public/images/admin/tabs/on-left.png +0 -0
  2161. data/core/spec/test_app/public/images/admin/tabs/on-right.png +0 -0
  2162. data/core/spec/test_app/public/images/ajax_loader.gif +0 -0
  2163. data/core/spec/test_app/public/images/amex_cid.gif +0 -0
  2164. data/core/spec/test_app/public/images/bg-button-hover.png +0 -0
  2165. data/core/spec/test_app/public/images/bg-button-pressed.png +0 -0
  2166. data/core/spec/test_app/public/images/bg-button.gif +0 -0
  2167. data/core/spec/test_app/public/images/bg-button.png +0 -0
  2168. data/core/spec/test_app/public/images/blue/left_01.png +0 -0
  2169. data/core/spec/test_app/public/images/blue/right_01.png +0 -0
  2170. data/core/spec/test_app/public/images/body-back.png +0 -0
  2171. data/core/spec/test_app/public/images/bottom_shine.png +0 -0
  2172. data/core/spec/test_app/public/images/breadcrumb.gif +0 -0
  2173. data/core/spec/test_app/public/images/button-dark-hover.png +0 -0
  2174. data/core/spec/test_app/public/images/button-dark.png +0 -0
  2175. data/core/spec/test_app/public/images/buttons/bg-button-hover.png +0 -0
  2176. data/core/spec/test_app/public/images/buttons/bg-button-pressed.png +0 -0
  2177. data/core/spec/test_app/public/images/buttons/bg-button.gif +0 -0
  2178. data/core/spec/test_app/public/images/buttons/bg-button.png +0 -0
  2179. data/core/spec/test_app/public/images/buttons/blue/left_01.png +0 -0
  2180. data/core/spec/test_app/public/images/buttons/blue/right_01.png +0 -0
  2181. data/core/spec/test_app/public/images/buttons/button-dark-hover.png +0 -0
  2182. data/core/spec/test_app/public/images/buttons/button-dark.png +0 -0
  2183. data/core/spec/test_app/public/images/buttons/drag-handle-green.png +0 -0
  2184. data/core/spec/test_app/public/images/buttons/green/left_01.png +0 -0
  2185. data/core/spec/test_app/public/images/buttons/green/right_01.png +0 -0
  2186. data/core/spec/test_app/public/images/buttons/left_01.png +0 -0
  2187. data/core/spec/test_app/public/images/buttons/left_01_small.png +0 -0
  2188. data/core/spec/test_app/public/images/buttons/orange/left_03.png +0 -0
  2189. data/core/spec/test_app/public/images/buttons/orange/right_03.png +0 -0
  2190. data/core/spec/test_app/public/images/buttons/right_01.png +0 -0
  2191. data/core/spec/test_app/public/images/buttons/right_01_small.png +0 -0
  2192. data/core/spec/test_app/public/images/buttons/sxsw-ribbon-v1.png +0 -0
  2193. data/core/spec/test_app/public/images/buttons/top-shine.png +0 -0
  2194. data/core/spec/test_app/public/images/calendar_date_select/calendar.gif +0 -0
  2195. data/core/spec/test_app/public/images/cart-empty.png +0 -0
  2196. data/core/spec/test_app/public/images/cart-empty_x32.png +0 -0
  2197. data/core/spec/test_app/public/images/cart-full.png +0 -0
  2198. data/core/spec/test_app/public/images/cart-full_x32.png +0 -0
  2199. data/core/spec/test_app/public/images/checkout.png +0 -0
  2200. data/core/spec/test_app/public/images/creditcard.gif +0 -0
  2201. data/core/spec/test_app/public/images/datepicker/backstripes.gif +0 -0
  2202. data/core/spec/test_app/public/images/datepicker/bg_header.jpg +0 -0
  2203. data/core/spec/test_app/public/images/datepicker/bullet1.gif +0 -0
  2204. data/core/spec/test_app/public/images/datepicker/bullet2.gif +0 -0
  2205. data/core/spec/test_app/public/images/datepicker/cal.gif +0 -0
  2206. data/core/spec/test_app/public/images/datepicker/gradient-e5e5e5-ffffff.gif +0 -0
  2207. data/core/spec/test_app/public/images/discover_cid.gif +0 -0
  2208. data/core/spec/test_app/public/images/drag-handle-green.png +0 -0
  2209. data/core/spec/test_app/public/images/favicon.ico +0 -0
  2210. data/core/spec/test_app/public/images/green/left_01.png +0 -0
  2211. data/core/spec/test_app/public/images/green/right_01.png +0 -0
  2212. data/core/spec/test_app/public/images/grid.png +0 -0
  2213. data/core/spec/test_app/public/images/left_01.png +0 -0
  2214. data/core/spec/test_app/public/images/left_01_small.png +0 -0
  2215. data/core/spec/test_app/public/images/master_cid.jpg +0 -0
  2216. data/core/spec/test_app/public/images/menu-current.png +0 -0
  2217. data/core/spec/test_app/public/images/menu-hover.png +0 -0
  2218. data/core/spec/test_app/public/images/noimage/mini.jpg +0 -0
  2219. data/core/spec/test_app/public/images/noimage/product.jpg +0 -0
  2220. data/core/spec/test_app/public/images/noimage/small.jpg +0 -0
  2221. data/core/spec/test_app/public/images/openid-inputicon.gif +0 -0
  2222. data/core/spec/test_app/public/images/orange/left_03.png +0 -0
  2223. data/core/spec/test_app/public/images/orange/right_03.png +0 -0
  2224. data/core/spec/test_app/public/images/progress.gif +0 -0
  2225. data/core/spec/test_app/public/images/reorder.jpg +0 -0
  2226. data/core/spec/test_app/public/images/right_01.png +0 -0
  2227. data/core/spec/test_app/public/images/right_01_small.png +0 -0
  2228. data/core/spec/test_app/public/images/separator.png +0 -0
  2229. data/core/spec/test_app/public/images/shadow-top.png +0 -0
  2230. data/core/spec/test_app/public/images/shadow_top.png +0 -0
  2231. data/core/spec/test_app/public/images/spinner.gif +0 -0
  2232. data/core/spec/test_app/public/images/spree.jpg +0 -0
  2233. data/core/spec/test_app/public/images/spree/progress.gif +0 -0
  2234. data/core/spec/test_app/public/images/spree/spinner.gif +0 -0
  2235. data/core/spec/test_app/public/images/spree/spree.jpg +0 -0
  2236. data/core/spec/test_app/public/images/step-progress/completed-completed.gif +0 -0
  2237. data/core/spec/test_app/public/images/step-progress/completed-current.gif +0 -0
  2238. data/core/spec/test_app/public/images/step-progress/completed-first.gif +0 -0
  2239. data/core/spec/test_app/public/images/step-progress/current-first.gif +0 -0
  2240. data/core/spec/test_app/public/images/step-progress/current-incomplete.gif +0 -0
  2241. data/core/spec/test_app/public/images/step-progress/current-right.gif +0 -0
  2242. data/core/spec/test_app/public/images/step-progress/incomplete-incomplete.gif +0 -0
  2243. data/core/spec/test_app/public/images/step-progress/incomplete-right.gif +0 -0
  2244. data/core/spec/test_app/public/images/steps/1.png +0 -0
  2245. data/core/spec/test_app/public/images/steps/1_small.png +0 -0
  2246. data/core/spec/test_app/public/images/steps/2.png +0 -0
  2247. data/core/spec/test_app/public/images/steps/2_small.png +0 -0
  2248. data/core/spec/test_app/public/images/steps/3.png +0 -0
  2249. data/core/spec/test_app/public/images/steps/3_small.png +0 -0
  2250. data/core/spec/test_app/public/images/steps/4.png +0 -0
  2251. data/core/spec/test_app/public/images/steps/4_small.png +0 -0
  2252. data/core/spec/test_app/public/images/steps/5.png +0 -0
  2253. data/core/spec/test_app/public/images/steps/5_small.png +0 -0
  2254. data/core/spec/test_app/public/images/steps/6.png +0 -0
  2255. data/core/spec/test_app/public/images/steps/6_small.png +0 -0
  2256. data/core/spec/test_app/public/images/sxsw-ribbon-v1.png +0 -0
  2257. data/core/spec/test_app/public/images/tab_bottom.gif +0 -0
  2258. data/core/spec/test_app/public/images/tile-header.png +0 -0
  2259. data/core/spec/test_app/public/images/tile-slider.png +0 -0
  2260. data/core/spec/test_app/public/images/top-shine.png +0 -0
  2261. data/core/spec/test_app/public/images/tree-nav-icons/bullet.gif +0 -0
  2262. data/core/spec/test_app/public/images/tree-nav-icons/minus.gif +0 -0
  2263. data/core/spec/test_app/public/images/tree-nav-icons/plus.gif +0 -0
  2264. data/core/spec/test_app/public/images/tree-nav-icons/treeview-loading.gif +0 -0
  2265. data/core/spec/test_app/public/images/tree-nav-icons/treeview-sprite.gif +0 -0
  2266. data/core/spec/test_app/public/images/update.png +0 -0
  2267. data/core/spec/test_app/public/images/visa_cid.gif +0 -0
  2268. data/core/spec/test_app/public/images/wrapper-back-2.png +0 -0
  2269. data/core/spec/test_app/public/images/wrapper-back.png +0 -0
  2270. data/core/spec/test_app/public/images/yui-menubaritem_submenuindicator.png +0 -0
  2271. data/core/spec/test_app/public/images/yui-menubaritem_submenuindicator_disabled.png +0 -0
  2272. data/core/spec/test_app/public/images/yui-menuitem_checkbox.png +0 -0
  2273. data/core/spec/test_app/public/images/yui-menuitem_checkbox_disabled.png +0 -0
  2274. data/core/spec/test_app/public/images/yui-menuitem_submenuindicator.png +0 -0
  2275. data/core/spec/test_app/public/images/yui-menuitem_submenuindicator_disabled.png +0 -0
  2276. data/core/spec/test_app/public/images/yui-sprite.png +0 -0
  2277. data/core/spec/test_app/public/javascripts/additional-methods.js +236 -0
  2278. data/core/spec/test_app/public/javascripts/admin.js +232 -0
  2279. data/core/spec/test_app/public/javascripts/admin/address_states.js +25 -0
  2280. data/core/spec/test_app/public/javascripts/admin/checkouts/edit.js +130 -0
  2281. data/core/spec/test_app/public/javascripts/admin/orders/edit.js +23 -0
  2282. data/core/spec/test_app/public/javascripts/admin/orders/edit_form.js +16 -0
  2283. data/core/spec/test_app/public/javascripts/admin/payments/new.js +9 -0
  2284. data/core/spec/test_app/public/javascripts/admin/unobtrusive_handlers.js +43 -0
  2285. data/core/spec/test_app/public/javascripts/application.js +12 -0
  2286. data/core/spec/test_app/public/javascripts/calculator.js +15 -0
  2287. data/core/spec/test_app/public/javascripts/checkout.js +75 -0
  2288. data/core/spec/test_app/public/javascripts/datepicker.js +1445 -0
  2289. data/core/spec/test_app/public/javascripts/gateway.js +13 -0
  2290. data/core/spec/test_app/public/javascripts/jquery-1.4.2.min.js +154 -0
  2291. data/core/spec/test_app/public/javascripts/jquery-ui.js +188 -0
  2292. data/core/spec/test_app/public/javascripts/jquery.alerts/images/help.gif +0 -0
  2293. data/core/spec/test_app/public/javascripts/jquery.alerts/images/important.gif +0 -0
  2294. data/core/spec/test_app/public/javascripts/jquery.alerts/images/info.gif +0 -0
  2295. data/core/spec/test_app/public/javascripts/jquery.alerts/images/title.gif +0 -0
  2296. data/core/spec/test_app/public/javascripts/jquery.alerts/jquery.alerts.css +57 -0
  2297. data/core/spec/test_app/public/javascripts/jquery.alerts/jquery.alerts.js +235 -0
  2298. data/core/spec/test_app/public/javascripts/jquery.alerts/jquery.alerts.spree.css +30 -0
  2299. data/core/spec/test_app/public/javascripts/jquery.autocomplete.min.js +13 -0
  2300. data/core/spec/test_app/public/javascripts/jquery.cookie.js +96 -0
  2301. data/core/spec/test_app/public/javascripts/jquery.delayedobserver.js +35 -0
  2302. data/core/spec/test_app/public/javascripts/jquery.suggest.js +276 -0
  2303. data/core/spec/test_app/public/javascripts/jquery.template.js +255 -0
  2304. data/core/spec/test_app/public/javascripts/jquery.tokeninput.js +618 -0
  2305. data/core/spec/test_app/public/javascripts/jquery.validate.min.js +16 -0
  2306. data/core/spec/test_app/public/javascripts/jsTree/jquery.jstree.js +3510 -0
  2307. data/core/spec/test_app/public/javascripts/jsTree/themes/apple/bg.jpg +0 -0
  2308. data/core/spec/test_app/public/javascripts/jsTree/themes/apple/d.png +0 -0
  2309. data/core/spec/test_app/public/javascripts/jsTree/themes/apple/dot_for_ie.gif +0 -0
  2310. data/core/spec/test_app/public/javascripts/jsTree/themes/apple/style.css +60 -0
  2311. data/core/spec/test_app/public/javascripts/jsTree/themes/apple/throbber.gif +0 -0
  2312. data/core/spec/test_app/public/javascripts/lang/af.js +40 -0
  2313. data/core/spec/test_app/public/javascripts/lang/ar.js +50 -0
  2314. data/core/spec/test_app/public/javascripts/lang/de.js +40 -0
  2315. data/core/spec/test_app/public/javascripts/lang/du.js +40 -0
  2316. data/core/spec/test_app/public/javascripts/lang/en.js +42 -0
  2317. data/core/spec/test_app/public/javascripts/lang/es.js +41 -0
  2318. data/core/spec/test_app/public/javascripts/lang/fi.js +40 -0
  2319. data/core/spec/test_app/public/javascripts/lang/fr.js +44 -0
  2320. data/core/spec/test_app/public/javascripts/lang/gr.js +40 -0
  2321. data/core/spec/test_app/public/javascripts/lang/he.js +49 -0
  2322. data/core/spec/test_app/public/javascripts/lang/it.js +13 -0
  2323. data/core/spec/test_app/public/javascripts/lang/nl.js +40 -0
  2324. data/core/spec/test_app/public/javascripts/lang/no.js +40 -0
  2325. data/core/spec/test_app/public/javascripts/lang/pt.js +50 -0
  2326. data/core/spec/test_app/public/javascripts/lang/ro.js +40 -0
  2327. data/core/spec/test_app/public/javascripts/lang/ru.js +40 -0
  2328. data/core/spec/test_app/public/javascripts/lang/sp.js +40 -0
  2329. data/core/spec/test_app/public/javascripts/lang/sv.js +41 -0
  2330. data/core/spec/test_app/public/javascripts/lang/ua.js +40 -0
  2331. data/core/spec/test_app/public/javascripts/localization/messages_cn.js +24 -0
  2332. data/core/spec/test_app/public/javascripts/localization/messages_cs.js +23 -0
  2333. data/core/spec/test_app/public/javascripts/localization/messages_da.js +21 -0
  2334. data/core/spec/test_app/public/javascripts/localization/messages_de.js +21 -0
  2335. data/core/spec/test_app/public/javascripts/localization/messages_es.js +24 -0
  2336. data/core/spec/test_app/public/javascripts/localization/messages_fr.js +23 -0
  2337. data/core/spec/test_app/public/javascripts/localization/messages_hu.js +21 -0
  2338. data/core/spec/test_app/public/javascripts/localization/messages_it.js +26 -0
  2339. data/core/spec/test_app/public/javascripts/localization/messages_kk.js +23 -0
  2340. data/core/spec/test_app/public/javascripts/localization/messages_nl.js +23 -0
  2341. data/core/spec/test_app/public/javascripts/localization/messages_no.js +23 -0
  2342. data/core/spec/test_app/public/javascripts/localization/messages_pl.js +23 -0
  2343. data/core/spec/test_app/public/javascripts/localization/messages_ptbr.js +30 -0
  2344. data/core/spec/test_app/public/javascripts/localization/messages_ro.js +24 -0
  2345. data/core/spec/test_app/public/javascripts/localization/messages_ru.js +23 -0
  2346. data/core/spec/test_app/public/javascripts/localization/messages_se.js +23 -0
  2347. data/core/spec/test_app/public/javascripts/localization/messages_sk.js +21 -0
  2348. data/core/spec/test_app/public/javascripts/localization/messages_tr.js +24 -0
  2349. data/core/spec/test_app/public/javascripts/localization/messages_tw.js +24 -0
  2350. data/core/spec/test_app/public/javascripts/localization/messages_ua.js +24 -0
  2351. data/core/spec/test_app/public/javascripts/nested-attribute.js +26 -0
  2352. data/core/spec/test_app/public/javascripts/open_id.js +15 -0
  2353. data/core/spec/test_app/public/javascripts/product.js +49 -0
  2354. data/core/spec/test_app/public/javascripts/rails.js +127 -0
  2355. data/core/spec/test_app/public/javascripts/taxonomy.js +201 -0
  2356. data/core/spec/test_app/public/javascripts/zone.js +39 -0
  2357. data/core/spec/test_app/public/robots.txt +5 -0
  2358. data/core/spec/test_app/public/stylesheets/admin/admin-forms.css +154 -0
  2359. data/core/spec/test_app/public/stylesheets/admin/admin-reset.css +69 -0
  2360. data/core/spec/test_app/public/stylesheets/admin/admin-tables.css +39 -0
  2361. data/core/spec/test_app/public/stylesheets/admin/admin-typography.css +117 -0
  2362. data/core/spec/test_app/public/stylesheets/admin/admin.css +614 -0
  2363. data/core/spec/test_app/public/stylesheets/admin/autocomplete.css +73 -0
  2364. data/core/spec/test_app/public/stylesheets/admin/dashboard.css +143 -0
  2365. data/core/spec/test_app/public/stylesheets/admin/edit_checkouts.css +57 -0
  2366. data/core/spec/test_app/public/stylesheets/admin/grids.css +314 -0
  2367. data/core/spec/test_app/public/stylesheets/admin/reset-fonts-grids-2-6-0.css +7 -0
  2368. data/core/spec/test_app/public/stylesheets/admin/token-input.css +109 -0
  2369. data/core/spec/test_app/public/stylesheets/admin/yui-includes.css +14 -0
  2370. data/core/spec/test_app/public/stylesheets/datepicker.css +263 -0
  2371. data/core/spec/test_app/public/stylesheets/jquery.autocomplete.css +48 -0
  2372. data/core/spec/test_app/public/stylesheets/screen.css +916 -0
  2373. data/core/spec/test_app/script/rails +6 -0
  2374. data/dash/Gemfile +35 -0
  2375. data/dash/Gemfile.lock +233 -0
  2376. data/dash/LICENSE +26 -0
  2377. data/dash/README.md +14 -0
  2378. data/dash/Rakefile +50 -0
  2379. data/dash/app/controllers/admin/overview_controller.rb +152 -0
  2380. data/dash/app/views/admin/overview/index.html.erb +174 -0
  2381. data/dash/config/routes.rb +4 -0
  2382. data/dash/lib/spree_dash.rb +6 -0
  2383. data/dash/lib/tasks/install.rake +24 -0
  2384. data/dash/public/javascripts/dashboard.js +143 -0
  2385. data/dash/public/javascripts/jqPlot/excanvas.min.js +1 -0
  2386. data/dash/public/javascripts/jqPlot/jquery.jqplot.min.js +14 -0
  2387. data/dash/public/javascripts/jqPlot/plugins/jqplot.canvasAxisLabelRenderer.min.js +14 -0
  2388. data/dash/public/javascripts/jqPlot/plugins/jqplot.canvasAxisTickRenderer.min.js +14 -0
  2389. data/dash/public/javascripts/jqPlot/plugins/jqplot.canvasTextRenderer.min.js +14 -0
  2390. data/dash/public/javascripts/jqPlot/plugins/jqplot.categoryAxisRenderer.min.js +14 -0
  2391. data/dash/public/javascripts/jqPlot/plugins/jqplot.dateAxisRenderer.min.js +14 -0
  2392. data/dash/public/javascripts/jqPlot/plugins/jqplot.highlighter.min.js +14 -0
  2393. data/dash/public/javascripts/jqPlot/plugins/jqplot.pieRenderer.min.js +14 -0
  2394. data/dash/public/stylesheets/admin/dashboard.css +143 -0
  2395. data/dash/rfcommerce_dash.gemspec +27 -0
  2396. data/dash/spec/controllers/admin/overview_controller_spec.rb +16 -0
  2397. data/dash/spec/spec_helper.rb +30 -0
  2398. data/dash/spec/test_app/Gemfile +35 -0
  2399. data/dash/spec/test_app/Rakefile +7 -0
  2400. data/dash/spec/test_app/app/controllers/application_controller.rb +3 -0
  2401. data/dash/spec/test_app/app/helpers/application_helper.rb +2 -0
  2402. data/dash/spec/test_app/app/views/layouts/application.html.erb +14 -0
  2403. data/dash/spec/test_app/config.ru +4 -0
  2404. data/dash/spec/test_app/config/application.rb +42 -0
  2405. data/dash/spec/test_app/config/boot.rb +6 -0
  2406. data/dash/spec/test_app/config/database.yml +17 -0
  2407. data/dash/spec/test_app/config/environment.rb +5 -0
  2408. data/dash/spec/test_app/config/environments/cucumber.rb +38 -0
  2409. data/dash/spec/test_app/config/environments/development.rb +26 -0
  2410. data/dash/spec/test_app/config/environments/production.rb +49 -0
  2411. data/dash/spec/test_app/config/environments/test.rb +35 -0
  2412. data/dash/spec/test_app/config/initializers/backtrace_silencers.rb +7 -0
  2413. data/dash/spec/test_app/config/initializers/inflections.rb +10 -0
  2414. data/dash/spec/test_app/config/initializers/mime_types.rb +5 -0
  2415. data/dash/spec/test_app/config/initializers/secret_token.rb +7 -0
  2416. data/dash/spec/test_app/config/initializers/session_store.rb +8 -0
  2417. data/dash/spec/test_app/config/locales/en.yml +5 -0
  2418. data/dash/spec/test_app/config/routes.rb +58 -0
  2419. data/dash/spec/test_app/db/cucumber.sqlite3 +0 -0
  2420. data/dash/spec/test_app/db/default/countries.yml +1583 -0
  2421. data/dash/spec/test_app/db/default/roles.yml +7 -0
  2422. data/dash/spec/test_app/db/default/states.yml +256 -0
  2423. data/dash/spec/test_app/db/default/zone_members.yml +169 -0
  2424. data/dash/spec/test_app/db/default/zones.yml +13 -0
  2425. data/dash/spec/test_app/db/migrate/20090823005402_spree_zero_nine_zero.rb +442 -0
  2426. data/dash/spec/test_app/db/migrate/20090904192342_create_indexes_for_inventory_units.rb +12 -0
  2427. data/dash/spec/test_app/db/migrate/20090923100315_add_count_on_hand_to_variants_and_products.rb +36 -0
  2428. data/dash/spec/test_app/db/migrate/20091007134354_change_taxons_to_nested_set.rb +40 -0
  2429. data/dash/spec/test_app/db/migrate/20091008091614_move_to_configurable_gateways.rb +55 -0
  2430. data/dash/spec/test_app/db/migrate/20091012120519_product_groups_and_scopes.rb +25 -0
  2431. data/dash/spec/test_app/db/migrate/20091015110842_add_open_id_authentication_tables.rb +20 -0
  2432. data/dash/spec/test_app/db/migrate/20091015153048_add_openid_field_to_users.rb +19 -0
  2433. data/dash/spec/test_app/db/migrate/20091016174634_change_preference_value_type.rb +10 -0
  2434. data/dash/spec/test_app/db/migrate/20091017175558_create_billing_integrations.rb +16 -0
  2435. data/dash/spec/test_app/db/migrate/20091021133257_charge_refactoring.rb +35 -0
  2436. data/dash/spec/test_app/db/migrate/20091104151730_add_some_indexes.rb +21 -0
  2437. data/dash/spec/test_app/db/migrate/20091126190904_checkout_state_machine.rb +13 -0
  2438. data/dash/spec/test_app/db/migrate/20091209153045_state_for_shipments.rb +9 -0
  2439. data/dash/spec/test_app/db/migrate/20091209202200_make_state_events_polymorphic.rb +12 -0
  2440. data/dash/spec/test_app/db/migrate/20091211203813_ship_address_id_for_checkouts.rb +9 -0
  2441. data/dash/spec/test_app/db/migrate/20091212161118_shipping_method_id_for_checkouts.rb +9 -0
  2442. data/dash/spec/test_app/db/migrate/20091213222815_creditcard_last_four_digits.rb +19 -0
  2443. data/dash/spec/test_app/db/migrate/20091214183826_populate_legacy_shipment_state.rb +19 -0
  2444. data/dash/spec/test_app/db/migrate/20100105090147_add_cost_price.rb +9 -0
  2445. data/dash/spec/test_app/db/migrate/20100105132138_shipment_id_for_inventory_units.rb +21 -0
  2446. data/dash/spec/test_app/db/migrate/20100111205525_cim_fields_for_creditcards.rb +11 -0
  2447. data/dash/spec/test_app/db/migrate/20100112151511_create_return_authorizations.rb +16 -0
  2448. data/dash/spec/test_app/db/migrate/20100113090919_add_return_authorization_to_inventory_units.rb +9 -0
  2449. data/dash/spec/test_app/db/migrate/20100113203104_create_trackers.rb +14 -0
  2450. data/dash/spec/test_app/db/migrate/20100121160010_creditcard_id_for_creditcard_txns.rb +9 -0
  2451. data/dash/spec/test_app/db/migrate/20100121183934_original_creditcard_txn_id_for_creditcard_txns.rb +9 -0
  2452. data/dash/spec/test_app/db/migrate/20100125145351_add_test_mode_to_billing_integration.rb +11 -0
  2453. data/dash/spec/test_app/db/migrate/20100126103714_create_products_product_groups.rb +12 -0
  2454. data/dash/spec/test_app/db/migrate/20100209025806_create_payment_methods.rb +20 -0
  2455. data/dash/spec/test_app/db/migrate/20100209144531_polymorphic_payments.rb +29 -0
  2456. data/dash/spec/test_app/db/migrate/20100213103131_change_payments_payment_method_to_belongs_to.rb +11 -0
  2457. data/dash/spec/test_app/db/migrate/20100214212536_assign_creditcard_txns_to_payment.rb +16 -0
  2458. data/dash/spec/test_app/db/migrate/20100223170312_sti_for_transactions.rb +14 -0
  2459. data/dash/spec/test_app/db/migrate/20100223183812_drop_billing_integrations.rb +16 -0
  2460. data/dash/spec/test_app/db/migrate/20100224153127_deleted_at_for_payment_methods.rb +13 -0
  2461. data/dash/spec/test_app/db/migrate/20100301163454_add_adjustments_index.rb +10 -0
  2462. data/dash/spec/test_app/db/migrate/20100306153445_fix_by_popularity.rb +8 -0
  2463. data/dash/spec/test_app/db/migrate/20100317120946_add_alt_text_to_images.rb +9 -0
  2464. data/dash/spec/test_app/db/migrate/20100427121301_add_display_to_payment_methods.rb +9 -0
  2465. data/dash/spec/test_app/db/migrate/20100504142133_add_addresses_checkouts_indexes.rb +16 -0
  2466. data/dash/spec/test_app/db/migrate/20100506180619_add_icon_to_taxons.rb +18 -0
  2467. data/dash/spec/test_app/db/migrate/20100506185838_add_description_to_taxons.rb +11 -0
  2468. data/dash/spec/test_app/db/migrate/20100528155333_index_for_shipments_number.rb +9 -0
  2469. data/dash/spec/test_app/db/migrate/20100528185820_add_index_on_users_persistence_token.rb +9 -0
  2470. data/dash/spec/test_app/db/migrate/20100605152042_add_default_to_tax_categories.rb +9 -0
  2471. data/dash/spec/test_app/db/migrate/20100624110730_add_display_to_shipping_methods.rb +9 -0
  2472. data/dash/spec/test_app/db/migrate/20100624123336_rename_payment_method_display.rb +9 -0
  2473. data/dash/spec/test_app/db/migrate/20100624175547_rename_preferences_field.rb +8 -0
  2474. data/dash/spec/test_app/db/migrate/20100811163637_add_guest_flag.rb +13 -0
  2475. data/dash/spec/test_app/db/migrate/20100811205836_drop_order_token.rb +11 -0
  2476. data/dash/spec/test_app/db/migrate/20100812162326_payments_state_and_assigned_to_order_only.rb +11 -0
  2477. data/dash/spec/test_app/db/migrate/20100813023502_create_address_keys_for_order.rb +15 -0
  2478. data/dash/spec/test_app/db/migrate/20100813185745_payment_total_for_orders.rb +9 -0
  2479. data/dash/spec/test_app/db/migrate/20100816212146_shipping_method_id_for_orders.rb +9 -0
  2480. data/dash/spec/test_app/db/migrate/20100817152723_add_shipment_and_payment_state.rb +15 -0
  2481. data/dash/spec/test_app/db/migrate/20100819170125_refactor_adjustments.rb +19 -0
  2482. data/dash/spec/test_app/db/migrate/20100820135707_response_code_and_avs_response_for_payments.rb +11 -0
  2483. data/dash/spec/test_app/db/migrate/20100901171814_change_guest_flag_to_anonymous.rb +13 -0
  2484. data/dash/spec/test_app/db/migrate/20100903203949_email_for_orders.rb +9 -0
  2485. data/dash/spec/test_app/db/migrate/20100923162011_create_mail_methods.rb +12 -0
  2486. data/dash/spec/test_app/db/migrate/20100929151905_rename_frozen_to_locked.rb +8 -0
  2487. data/dash/spec/test_app/db/migrate/20101008190536_move_special_instructions_to_orders.rb +11 -0
  2488. data/dash/spec/test_app/db/migrate/20101026184700_create_log_entries.rb +15 -0
  2489. data/dash/spec/test_app/db/migrate/20101026184714_migrate_transactions_to_payment_state.rb +94 -0
  2490. data/dash/spec/test_app/db/migrate/20101026184746_delete_in_progress_orders.rb +18 -0
  2491. data/dash/spec/test_app/db/migrate/20101026184808_migrate_checkout_to_orders.rb +27 -0
  2492. data/dash/spec/test_app/db/migrate/20101026184833_migrate_adjustments.rb +9 -0
  2493. data/dash/spec/test_app/db/migrate/20101026184855_remove_shipped_state.rb +14 -0
  2494. data/dash/spec/test_app/db/migrate/20101026184916_prevent_nil_payment_total.rb +8 -0
  2495. data/dash/spec/test_app/db/migrate/20101026184932_prevent_nil_email.rb +9 -0
  2496. data/dash/spec/test_app/db/migrate/20101026184959_generate_anonymous_users.rb +14 -0
  2497. data/dash/spec/test_app/db/migrate/20101026185022_update_order_state.rb +8 -0
  2498. data/dash/spec/test_app/db/migrate/20101026192225_cleanup_legacy_tables.rb +11 -0
  2499. data/dash/spec/test_app/db/migrate/20101028151745_remove_number_and_cvv_from_credicard.rb +9 -0
  2500. data/dash/spec/test_app/db/migrate/20101103212716_drop_anonymous_field_for_user.rb +8 -0
  2501. data/dash/spec/test_app/db/migrate/20101111133551_renamed_rma_cancelled_state.rb +10 -0
  2502. data/dash/spec/test_app/db/migrate/20101117031806_fix_problematic_index_names.rb +13 -0
  2503. data/dash/spec/test_app/db/migrate/20101223215658_add_position_to_variants.rb +9 -0
  2504. data/dash/spec/test_app/db/migrate/20110110130847_add_next_state_to_state_events.rb +9 -0
  2505. data/dash/spec/test_app/db/migrate/20110111122537_add_position_to_option_types.rb +9 -0
  2506. data/dash/spec/test_app/db/migrate/20110314192118_remove_trailing_slashes_in_taxon_permalinks.rb +17 -0
  2507. data/dash/spec/test_app/db/sample/users.rb +61 -0
  2508. data/dash/spec/test_app/db/schema.rb +531 -0
  2509. data/dash/spec/test_app/db/seeds.rb +3 -0
  2510. data/dash/spec/test_app/db/test.sqlite3 +0 -0
  2511. data/dash/spec/test_app/log/cucumber.log +1324 -0
  2512. data/dash/spec/test_app/log/development.log +0 -0
  2513. data/dash/spec/test_app/log/production.log +0 -0
  2514. data/dash/spec/test_app/log/server.log +0 -0
  2515. data/dash/spec/test_app/log/test.log +1324 -0
  2516. data/dash/spec/test_app/public/404.html +26 -0
  2517. data/dash/spec/test_app/public/422.html +26 -0
  2518. data/dash/spec/test_app/public/500.html +26 -0
  2519. data/dash/spec/test_app/public/favicon.ico +0 -0
  2520. data/dash/spec/test_app/public/images/add-to-cart.png +0 -0
  2521. data/dash/spec/test_app/public/images/admin/bg/active-tab.png +0 -0
  2522. data/dash/spec/test_app/public/images/admin/bg/admin_tab_back.png +0 -0
  2523. data/dash/spec/test_app/public/images/admin/bg/admin_tab_selected_back.png +0 -0
  2524. data/dash/spec/test_app/public/images/admin/bg/content-back-blue.png +0 -0
  2525. data/dash/spec/test_app/public/images/admin/bg/content-back-green.png +0 -0
  2526. data/dash/spec/test_app/public/images/admin/bg/content-back.png +0 -0
  2527. data/dash/spec/test_app/public/images/admin/bg/flash-error.png +0 -0
  2528. data/dash/spec/test_app/public/images/admin/bg/flash-notice.png +0 -0
  2529. data/dash/spec/test_app/public/images/admin/bg/green-stripes.gif +0 -0
  2530. data/dash/spec/test_app/public/images/admin/bg/green-stripes.png +0 -0
  2531. data/dash/spec/test_app/public/images/admin/bg/grid_header_back.png +0 -0
  2532. data/dash/spec/test_app/public/images/admin/bg/grid_header_back_green.png +0 -0
  2533. data/dash/spec/test_app/public/images/admin/bg/header-bg.png +0 -0
  2534. data/dash/spec/test_app/public/images/admin/bg/header.png +0 -0
  2535. data/dash/spec/test_app/public/images/admin/bg/header_bg.jpg +0 -0
  2536. data/dash/spec/test_app/public/images/admin/bg/menu-current.png +0 -0
  2537. data/dash/spec/test_app/public/images/admin/bg/red-stripes.gif +0 -0
  2538. data/dash/spec/test_app/public/images/admin/bg/red-stripes.png +0 -0
  2539. data/dash/spec/test_app/public/images/admin/bg/spree_50.png +0 -0
  2540. data/dash/spec/test_app/public/images/admin/bg/subnav-divider.png +0 -0
  2541. data/dash/spec/test_app/public/images/admin/bg/subnav.png +0 -0
  2542. data/dash/spec/test_app/public/images/admin/bg/tab-back.png +0 -0
  2543. data/dash/spec/test_app/public/images/admin/buttons/blue/left_01.png +0 -0
  2544. data/dash/spec/test_app/public/images/admin/buttons/blue/right_01.png +0 -0
  2545. data/dash/spec/test_app/public/images/admin/buttons/drag-handle-green.png +0 -0
  2546. data/dash/spec/test_app/public/images/admin/buttons/green/left_01.png +0 -0
  2547. data/dash/spec/test_app/public/images/admin/buttons/green/right_01.png +0 -0
  2548. data/dash/spec/test_app/public/images/admin/buttons/left_01.png +0 -0
  2549. data/dash/spec/test_app/public/images/admin/buttons/left_01_small.png +0 -0
  2550. data/dash/spec/test_app/public/images/admin/buttons/orange/left_03.png +0 -0
  2551. data/dash/spec/test_app/public/images/admin/buttons/orange/right_03.png +0 -0
  2552. data/dash/spec/test_app/public/images/admin/buttons/right_01.png +0 -0
  2553. data/dash/spec/test_app/public/images/admin/buttons/right_01_small.png +0 -0
  2554. data/dash/spec/test_app/public/images/admin/icons/16x16/1.png +0 -0
  2555. data/dash/spec/test_app/public/images/admin/icons/16x16/10.png +0 -0
  2556. data/dash/spec/test_app/public/images/admin/icons/16x16/2.png +0 -0
  2557. data/dash/spec/test_app/public/images/admin/icons/16x16/3.png +0 -0
  2558. data/dash/spec/test_app/public/images/admin/icons/16x16/4.png +0 -0
  2559. data/dash/spec/test_app/public/images/admin/icons/16x16/5.png +0 -0
  2560. data/dash/spec/test_app/public/images/admin/icons/16x16/6.png +0 -0
  2561. data/dash/spec/test_app/public/images/admin/icons/16x16/7.png +0 -0
  2562. data/dash/spec/test_app/public/images/admin/icons/16x16/8.png +0 -0
  2563. data/dash/spec/test_app/public/images/admin/icons/16x16/9.png +0 -0
  2564. data/dash/spec/test_app/public/images/admin/icons/32x32/1.png +0 -0
  2565. data/dash/spec/test_app/public/images/admin/icons/32x32/10.png +0 -0
  2566. data/dash/spec/test_app/public/images/admin/icons/32x32/11.png +0 -0
  2567. data/dash/spec/test_app/public/images/admin/icons/32x32/2.png +0 -0
  2568. data/dash/spec/test_app/public/images/admin/icons/32x32/3.png +0 -0
  2569. data/dash/spec/test_app/public/images/admin/icons/32x32/4.png +0 -0
  2570. data/dash/spec/test_app/public/images/admin/icons/32x32/5.png +0 -0
  2571. data/dash/spec/test_app/public/images/admin/icons/32x32/6.png +0 -0
  2572. data/dash/spec/test_app/public/images/admin/icons/32x32/7.png +0 -0
  2573. data/dash/spec/test_app/public/images/admin/icons/32x32/8.png +0 -0
  2574. data/dash/spec/test_app/public/images/admin/icons/32x32/9.png +0 -0
  2575. data/dash/spec/test_app/public/images/admin/icons/accept.png +0 -0
  2576. data/dash/spec/test_app/public/images/admin/icons/add.gif +0 -0
  2577. data/dash/spec/test_app/public/images/admin/icons/add.png +0 -0
  2578. data/dash/spec/test_app/public/images/admin/icons/arrow-down.gif +0 -0
  2579. data/dash/spec/test_app/public/images/admin/icons/cross.png +0 -0
  2580. data/dash/spec/test_app/public/images/admin/icons/delete.gif +0 -0
  2581. data/dash/spec/test_app/public/images/admin/icons/delete.png +0 -0
  2582. data/dash/spec/test_app/public/images/admin/icons/drag.gif +0 -0
  2583. data/dash/spec/test_app/public/images/admin/icons/edit.gif +0 -0
  2584. data/dash/spec/test_app/public/images/admin/icons/edit.png +0 -0
  2585. data/dash/spec/test_app/public/images/admin/icons/email.png +0 -0
  2586. data/dash/spec/test_app/public/images/admin/icons/error.png +0 -0
  2587. data/dash/spec/test_app/public/images/admin/icons/exclamation.png +0 -0
  2588. data/dash/spec/test_app/public/images/admin/icons/feed.png +0 -0
  2589. data/dash/spec/test_app/public/images/admin/icons/pdf.png +0 -0
  2590. data/dash/spec/test_app/public/images/admin/icons/reorder.gif +0 -0
  2591. data/dash/spec/test_app/public/images/admin/icons/search.gif +0 -0
  2592. data/dash/spec/test_app/public/images/admin/icons/send-email.png +0 -0
  2593. data/dash/spec/test_app/public/images/admin/icons/stop.png +0 -0
  2594. data/dash/spec/test_app/public/images/admin/icons/tick.png +0 -0
  2595. data/dash/spec/test_app/public/images/admin/icons/up.gif +0 -0
  2596. data/dash/spec/test_app/public/images/admin/icons/xls.png +0 -0
  2597. data/dash/spec/test_app/public/images/admin/tabs/off-left.png +0 -0
  2598. data/dash/spec/test_app/public/images/admin/tabs/off-right.png +0 -0
  2599. data/dash/spec/test_app/public/images/admin/tabs/on-left.png +0 -0
  2600. data/dash/spec/test_app/public/images/admin/tabs/on-right.png +0 -0
  2601. data/dash/spec/test_app/public/images/ajax_loader.gif +0 -0
  2602. data/dash/spec/test_app/public/images/amex_cid.gif +0 -0
  2603. data/dash/spec/test_app/public/images/bg-button-hover.png +0 -0
  2604. data/dash/spec/test_app/public/images/bg-button-pressed.png +0 -0
  2605. data/dash/spec/test_app/public/images/bg-button.gif +0 -0
  2606. data/dash/spec/test_app/public/images/bg-button.png +0 -0
  2607. data/dash/spec/test_app/public/images/blue/left_01.png +0 -0
  2608. data/dash/spec/test_app/public/images/blue/right_01.png +0 -0
  2609. data/dash/spec/test_app/public/images/body-back.png +0 -0
  2610. data/dash/spec/test_app/public/images/bottom_shine.png +0 -0
  2611. data/dash/spec/test_app/public/images/breadcrumb.gif +0 -0
  2612. data/dash/spec/test_app/public/images/button-dark-hover.png +0 -0
  2613. data/dash/spec/test_app/public/images/button-dark.png +0 -0
  2614. data/dash/spec/test_app/public/images/buttons/bg-button-hover.png +0 -0
  2615. data/dash/spec/test_app/public/images/buttons/bg-button-pressed.png +0 -0
  2616. data/dash/spec/test_app/public/images/buttons/bg-button.gif +0 -0
  2617. data/dash/spec/test_app/public/images/buttons/bg-button.png +0 -0
  2618. data/dash/spec/test_app/public/images/buttons/blue/left_01.png +0 -0
  2619. data/dash/spec/test_app/public/images/buttons/blue/right_01.png +0 -0
  2620. data/dash/spec/test_app/public/images/buttons/button-dark-hover.png +0 -0
  2621. data/dash/spec/test_app/public/images/buttons/button-dark.png +0 -0
  2622. data/dash/spec/test_app/public/images/buttons/drag-handle-green.png +0 -0
  2623. data/dash/spec/test_app/public/images/buttons/green/left_01.png +0 -0
  2624. data/dash/spec/test_app/public/images/buttons/green/right_01.png +0 -0
  2625. data/dash/spec/test_app/public/images/buttons/left_01.png +0 -0
  2626. data/dash/spec/test_app/public/images/buttons/left_01_small.png +0 -0
  2627. data/dash/spec/test_app/public/images/buttons/orange/left_03.png +0 -0
  2628. data/dash/spec/test_app/public/images/buttons/orange/right_03.png +0 -0
  2629. data/dash/spec/test_app/public/images/buttons/right_01.png +0 -0
  2630. data/dash/spec/test_app/public/images/buttons/right_01_small.png +0 -0
  2631. data/dash/spec/test_app/public/images/buttons/sxsw-ribbon-v1.png +0 -0
  2632. data/dash/spec/test_app/public/images/buttons/top-shine.png +0 -0
  2633. data/dash/spec/test_app/public/images/calendar_date_select/calendar.gif +0 -0
  2634. data/dash/spec/test_app/public/images/cart-empty.png +0 -0
  2635. data/dash/spec/test_app/public/images/cart-empty_x32.png +0 -0
  2636. data/dash/spec/test_app/public/images/cart-full.png +0 -0
  2637. data/dash/spec/test_app/public/images/cart-full_x32.png +0 -0
  2638. data/dash/spec/test_app/public/images/checkout.png +0 -0
  2639. data/dash/spec/test_app/public/images/creditcard.gif +0 -0
  2640. data/dash/spec/test_app/public/images/datepicker/backstripes.gif +0 -0
  2641. data/dash/spec/test_app/public/images/datepicker/bg_header.jpg +0 -0
  2642. data/dash/spec/test_app/public/images/datepicker/bullet1.gif +0 -0
  2643. data/dash/spec/test_app/public/images/datepicker/bullet2.gif +0 -0
  2644. data/dash/spec/test_app/public/images/datepicker/cal.gif +0 -0
  2645. data/dash/spec/test_app/public/images/datepicker/gradient-e5e5e5-ffffff.gif +0 -0
  2646. data/dash/spec/test_app/public/images/discover_cid.gif +0 -0
  2647. data/dash/spec/test_app/public/images/drag-handle-green.png +0 -0
  2648. data/dash/spec/test_app/public/images/favicon.ico +0 -0
  2649. data/dash/spec/test_app/public/images/green/left_01.png +0 -0
  2650. data/dash/spec/test_app/public/images/green/right_01.png +0 -0
  2651. data/dash/spec/test_app/public/images/grid.png +0 -0
  2652. data/dash/spec/test_app/public/images/left_01.png +0 -0
  2653. data/dash/spec/test_app/public/images/left_01_small.png +0 -0
  2654. data/dash/spec/test_app/public/images/master_cid.jpg +0 -0
  2655. data/dash/spec/test_app/public/images/menu-current.png +0 -0
  2656. data/dash/spec/test_app/public/images/menu-hover.png +0 -0
  2657. data/dash/spec/test_app/public/images/noimage/mini.jpg +0 -0
  2658. data/dash/spec/test_app/public/images/noimage/product.jpg +0 -0
  2659. data/dash/spec/test_app/public/images/noimage/small.jpg +0 -0
  2660. data/dash/spec/test_app/public/images/openid-inputicon.gif +0 -0
  2661. data/dash/spec/test_app/public/images/orange/left_03.png +0 -0
  2662. data/dash/spec/test_app/public/images/orange/right_03.png +0 -0
  2663. data/dash/spec/test_app/public/images/progress.gif +0 -0
  2664. data/dash/spec/test_app/public/images/reorder.jpg +0 -0
  2665. data/dash/spec/test_app/public/images/right_01.png +0 -0
  2666. data/dash/spec/test_app/public/images/right_01_small.png +0 -0
  2667. data/dash/spec/test_app/public/images/separator.png +0 -0
  2668. data/dash/spec/test_app/public/images/shadow-top.png +0 -0
  2669. data/dash/spec/test_app/public/images/shadow_top.png +0 -0
  2670. data/dash/spec/test_app/public/images/spinner.gif +0 -0
  2671. data/dash/spec/test_app/public/images/spree.jpg +0 -0
  2672. data/dash/spec/test_app/public/images/spree/progress.gif +0 -0
  2673. data/dash/spec/test_app/public/images/spree/spinner.gif +0 -0
  2674. data/dash/spec/test_app/public/images/spree/spree.jpg +0 -0
  2675. data/dash/spec/test_app/public/images/step-progress/completed-completed.gif +0 -0
  2676. data/dash/spec/test_app/public/images/step-progress/completed-current.gif +0 -0
  2677. data/dash/spec/test_app/public/images/step-progress/completed-first.gif +0 -0
  2678. data/dash/spec/test_app/public/images/step-progress/current-first.gif +0 -0
  2679. data/dash/spec/test_app/public/images/step-progress/current-incomplete.gif +0 -0
  2680. data/dash/spec/test_app/public/images/step-progress/current-right.gif +0 -0
  2681. data/dash/spec/test_app/public/images/step-progress/incomplete-incomplete.gif +0 -0
  2682. data/dash/spec/test_app/public/images/step-progress/incomplete-right.gif +0 -0
  2683. data/dash/spec/test_app/public/images/steps/1.png +0 -0
  2684. data/dash/spec/test_app/public/images/steps/1_small.png +0 -0
  2685. data/dash/spec/test_app/public/images/steps/2.png +0 -0
  2686. data/dash/spec/test_app/public/images/steps/2_small.png +0 -0
  2687. data/dash/spec/test_app/public/images/steps/3.png +0 -0
  2688. data/dash/spec/test_app/public/images/steps/3_small.png +0 -0
  2689. data/dash/spec/test_app/public/images/steps/4.png +0 -0
  2690. data/dash/spec/test_app/public/images/steps/4_small.png +0 -0
  2691. data/dash/spec/test_app/public/images/steps/5.png +0 -0
  2692. data/dash/spec/test_app/public/images/steps/5_small.png +0 -0
  2693. data/dash/spec/test_app/public/images/steps/6.png +0 -0
  2694. data/dash/spec/test_app/public/images/steps/6_small.png +0 -0
  2695. data/dash/spec/test_app/public/images/sxsw-ribbon-v1.png +0 -0
  2696. data/dash/spec/test_app/public/images/tab_bottom.gif +0 -0
  2697. data/dash/spec/test_app/public/images/tile-header.png +0 -0
  2698. data/dash/spec/test_app/public/images/tile-slider.png +0 -0
  2699. data/dash/spec/test_app/public/images/top-shine.png +0 -0
  2700. data/dash/spec/test_app/public/images/tree-nav-icons/bullet.gif +0 -0
  2701. data/dash/spec/test_app/public/images/tree-nav-icons/minus.gif +0 -0
  2702. data/dash/spec/test_app/public/images/tree-nav-icons/plus.gif +0 -0
  2703. data/dash/spec/test_app/public/images/tree-nav-icons/treeview-loading.gif +0 -0
  2704. data/dash/spec/test_app/public/images/tree-nav-icons/treeview-sprite.gif +0 -0
  2705. data/dash/spec/test_app/public/images/update.png +0 -0
  2706. data/dash/spec/test_app/public/images/visa_cid.gif +0 -0
  2707. data/dash/spec/test_app/public/images/wrapper-back-2.png +0 -0
  2708. data/dash/spec/test_app/public/images/wrapper-back.png +0 -0
  2709. data/dash/spec/test_app/public/images/yui-menubaritem_submenuindicator.png +0 -0
  2710. data/dash/spec/test_app/public/images/yui-menubaritem_submenuindicator_disabled.png +0 -0
  2711. data/dash/spec/test_app/public/images/yui-menuitem_checkbox.png +0 -0
  2712. data/dash/spec/test_app/public/images/yui-menuitem_checkbox_disabled.png +0 -0
  2713. data/dash/spec/test_app/public/images/yui-menuitem_submenuindicator.png +0 -0
  2714. data/dash/spec/test_app/public/images/yui-menuitem_submenuindicator_disabled.png +0 -0
  2715. data/dash/spec/test_app/public/images/yui-sprite.png +0 -0
  2716. data/dash/spec/test_app/public/javascripts/additional-methods.js +236 -0
  2717. data/dash/spec/test_app/public/javascripts/admin.js +232 -0
  2718. data/dash/spec/test_app/public/javascripts/admin/address_states.js +25 -0
  2719. data/dash/spec/test_app/public/javascripts/admin/checkouts/edit.js +130 -0
  2720. data/dash/spec/test_app/public/javascripts/admin/orders/edit.js +23 -0
  2721. data/dash/spec/test_app/public/javascripts/admin/orders/edit_form.js +16 -0
  2722. data/dash/spec/test_app/public/javascripts/admin/payments/new.js +9 -0
  2723. data/dash/spec/test_app/public/javascripts/admin/unobtrusive_handlers.js +43 -0
  2724. data/dash/spec/test_app/public/javascripts/application.js +12 -0
  2725. data/dash/spec/test_app/public/javascripts/calculator.js +15 -0
  2726. data/dash/spec/test_app/public/javascripts/checkout.js +75 -0
  2727. data/dash/spec/test_app/public/javascripts/dashboard.js +143 -0
  2728. data/dash/spec/test_app/public/javascripts/datepicker.js +1445 -0
  2729. data/dash/spec/test_app/public/javascripts/gateway.js +13 -0
  2730. data/dash/spec/test_app/public/javascripts/jqPlot/excanvas.min.js +1 -0
  2731. data/dash/spec/test_app/public/javascripts/jqPlot/jquery.jqplot.min.js +14 -0
  2732. data/dash/spec/test_app/public/javascripts/jqPlot/plugins/jqplot.canvasAxisLabelRenderer.min.js +14 -0
  2733. data/dash/spec/test_app/public/javascripts/jqPlot/plugins/jqplot.canvasAxisTickRenderer.min.js +14 -0
  2734. data/dash/spec/test_app/public/javascripts/jqPlot/plugins/jqplot.canvasTextRenderer.min.js +14 -0
  2735. data/dash/spec/test_app/public/javascripts/jqPlot/plugins/jqplot.categoryAxisRenderer.min.js +14 -0
  2736. data/dash/spec/test_app/public/javascripts/jqPlot/plugins/jqplot.dateAxisRenderer.min.js +14 -0
  2737. data/dash/spec/test_app/public/javascripts/jqPlot/plugins/jqplot.highlighter.min.js +14 -0
  2738. data/dash/spec/test_app/public/javascripts/jqPlot/plugins/jqplot.pieRenderer.min.js +14 -0
  2739. data/dash/spec/test_app/public/javascripts/jquery-1.4.2.min.js +154 -0
  2740. data/dash/spec/test_app/public/javascripts/jquery-ui.js +188 -0
  2741. data/dash/spec/test_app/public/javascripts/jquery.alerts/images/help.gif +0 -0
  2742. data/dash/spec/test_app/public/javascripts/jquery.alerts/images/important.gif +0 -0
  2743. data/dash/spec/test_app/public/javascripts/jquery.alerts/images/info.gif +0 -0
  2744. data/dash/spec/test_app/public/javascripts/jquery.alerts/images/title.gif +0 -0
  2745. data/dash/spec/test_app/public/javascripts/jquery.alerts/jquery.alerts.css +57 -0
  2746. data/dash/spec/test_app/public/javascripts/jquery.alerts/jquery.alerts.js +235 -0
  2747. data/dash/spec/test_app/public/javascripts/jquery.alerts/jquery.alerts.spree.css +30 -0
  2748. data/dash/spec/test_app/public/javascripts/jquery.autocomplete.min.js +13 -0
  2749. data/dash/spec/test_app/public/javascripts/jquery.cookie.js +96 -0
  2750. data/dash/spec/test_app/public/javascripts/jquery.delayedobserver.js +35 -0
  2751. data/dash/spec/test_app/public/javascripts/jquery.suggest.js +276 -0
  2752. data/dash/spec/test_app/public/javascripts/jquery.template.js +255 -0
  2753. data/dash/spec/test_app/public/javascripts/jquery.tokeninput.js +618 -0
  2754. data/dash/spec/test_app/public/javascripts/jquery.validate.min.js +16 -0
  2755. data/dash/spec/test_app/public/javascripts/jsTree/jquery.jstree.js +3510 -0
  2756. data/dash/spec/test_app/public/javascripts/jsTree/themes/apple/bg.jpg +0 -0
  2757. data/dash/spec/test_app/public/javascripts/jsTree/themes/apple/d.png +0 -0
  2758. data/dash/spec/test_app/public/javascripts/jsTree/themes/apple/dot_for_ie.gif +0 -0
  2759. data/dash/spec/test_app/public/javascripts/jsTree/themes/apple/style.css +60 -0
  2760. data/dash/spec/test_app/public/javascripts/jsTree/themes/apple/throbber.gif +0 -0
  2761. data/dash/spec/test_app/public/javascripts/lang/af.js +40 -0
  2762. data/dash/spec/test_app/public/javascripts/lang/ar.js +50 -0
  2763. data/dash/spec/test_app/public/javascripts/lang/de.js +40 -0
  2764. data/dash/spec/test_app/public/javascripts/lang/du.js +40 -0
  2765. data/dash/spec/test_app/public/javascripts/lang/en.js +42 -0
  2766. data/dash/spec/test_app/public/javascripts/lang/es.js +41 -0
  2767. data/dash/spec/test_app/public/javascripts/lang/fi.js +40 -0
  2768. data/dash/spec/test_app/public/javascripts/lang/fr.js +44 -0
  2769. data/dash/spec/test_app/public/javascripts/lang/gr.js +40 -0
  2770. data/dash/spec/test_app/public/javascripts/lang/he.js +49 -0
  2771. data/dash/spec/test_app/public/javascripts/lang/it.js +13 -0
  2772. data/dash/spec/test_app/public/javascripts/lang/nl.js +40 -0
  2773. data/dash/spec/test_app/public/javascripts/lang/no.js +40 -0
  2774. data/dash/spec/test_app/public/javascripts/lang/pt.js +50 -0
  2775. data/dash/spec/test_app/public/javascripts/lang/ro.js +40 -0
  2776. data/dash/spec/test_app/public/javascripts/lang/ru.js +40 -0
  2777. data/dash/spec/test_app/public/javascripts/lang/sp.js +40 -0
  2778. data/dash/spec/test_app/public/javascripts/lang/sv.js +41 -0
  2779. data/dash/spec/test_app/public/javascripts/lang/ua.js +40 -0
  2780. data/dash/spec/test_app/public/javascripts/localization/messages_cn.js +24 -0
  2781. data/dash/spec/test_app/public/javascripts/localization/messages_cs.js +23 -0
  2782. data/dash/spec/test_app/public/javascripts/localization/messages_da.js +21 -0
  2783. data/dash/spec/test_app/public/javascripts/localization/messages_de.js +21 -0
  2784. data/dash/spec/test_app/public/javascripts/localization/messages_es.js +24 -0
  2785. data/dash/spec/test_app/public/javascripts/localization/messages_fr.js +23 -0
  2786. data/dash/spec/test_app/public/javascripts/localization/messages_hu.js +21 -0
  2787. data/dash/spec/test_app/public/javascripts/localization/messages_it.js +26 -0
  2788. data/dash/spec/test_app/public/javascripts/localization/messages_kk.js +23 -0
  2789. data/dash/spec/test_app/public/javascripts/localization/messages_nl.js +23 -0
  2790. data/dash/spec/test_app/public/javascripts/localization/messages_no.js +23 -0
  2791. data/dash/spec/test_app/public/javascripts/localization/messages_pl.js +23 -0
  2792. data/dash/spec/test_app/public/javascripts/localization/messages_ptbr.js +30 -0
  2793. data/dash/spec/test_app/public/javascripts/localization/messages_ro.js +24 -0
  2794. data/dash/spec/test_app/public/javascripts/localization/messages_ru.js +23 -0
  2795. data/dash/spec/test_app/public/javascripts/localization/messages_se.js +23 -0
  2796. data/dash/spec/test_app/public/javascripts/localization/messages_sk.js +21 -0
  2797. data/dash/spec/test_app/public/javascripts/localization/messages_tr.js +24 -0
  2798. data/dash/spec/test_app/public/javascripts/localization/messages_tw.js +24 -0
  2799. data/dash/spec/test_app/public/javascripts/localization/messages_ua.js +24 -0
  2800. data/dash/spec/test_app/public/javascripts/nested-attribute.js +26 -0
  2801. data/dash/spec/test_app/public/javascripts/open_id.js +15 -0
  2802. data/dash/spec/test_app/public/javascripts/product.js +49 -0
  2803. data/dash/spec/test_app/public/javascripts/rails.js +127 -0
  2804. data/dash/spec/test_app/public/javascripts/taxonomy.js +201 -0
  2805. data/dash/spec/test_app/public/javascripts/zone.js +39 -0
  2806. data/dash/spec/test_app/public/robots.txt +5 -0
  2807. data/dash/spec/test_app/public/stylesheets/admin/admin-forms.css +154 -0
  2808. data/dash/spec/test_app/public/stylesheets/admin/admin-reset.css +69 -0
  2809. data/dash/spec/test_app/public/stylesheets/admin/admin-tables.css +39 -0
  2810. data/dash/spec/test_app/public/stylesheets/admin/admin-typography.css +117 -0
  2811. data/dash/spec/test_app/public/stylesheets/admin/admin.css +614 -0
  2812. data/dash/spec/test_app/public/stylesheets/admin/autocomplete.css +73 -0
  2813. data/dash/spec/test_app/public/stylesheets/admin/dashboard.css +143 -0
  2814. data/dash/spec/test_app/public/stylesheets/admin/edit_checkouts.css +57 -0
  2815. data/dash/spec/test_app/public/stylesheets/admin/grids.css +314 -0
  2816. data/dash/spec/test_app/public/stylesheets/admin/reset-fonts-grids-2-6-0.css +7 -0
  2817. data/dash/spec/test_app/public/stylesheets/admin/token-input.css +109 -0
  2818. data/dash/spec/test_app/public/stylesheets/admin/yui-includes.css +14 -0
  2819. data/dash/spec/test_app/public/stylesheets/datepicker.css +263 -0
  2820. data/dash/spec/test_app/public/stylesheets/jquery.autocomplete.css +48 -0
  2821. data/dash/spec/test_app/public/stylesheets/screen.css +916 -0
  2822. data/dash/spec/test_app/script/rails +6 -0
  2823. data/features/step_definitions/async_steps.rb +19 -0
  2824. data/features/step_definitions/authentication_steps.rb +46 -0
  2825. data/features/step_definitions/checkout_steps.rb +76 -0
  2826. data/features/step_definitions/cukes_util.rb +123 -0
  2827. data/features/step_definitions/spree_steps.rb +15 -0
  2828. data/features/step_definitions/user_steps.rb +12 -0
  2829. data/features/step_definitions/web_steps.rb +218 -0
  2830. data/features/support/env.rb +74 -0
  2831. data/features/support/hooks.rb +6 -0
  2832. data/features/support/load_default_data.rb +10 -0
  2833. data/features/support/share_connections.rb +13 -0
  2834. data/features/support/stop.rb +12 -0
  2835. data/lib/generators/spree/extension_generator.rb +71 -0
  2836. data/lib/generators/spree/site_generator.rb +45 -0
  2837. data/lib/generators/spree/test_app_generator.rb +145 -0
  2838. data/lib/generators/templates/Gemfile +32 -0
  2839. data/lib/generators/templates/LICENSE +23 -0
  2840. data/lib/generators/templates/README.md +13 -0
  2841. data/lib/generators/templates/Rakefile.tt +75 -0
  2842. data/lib/generators/templates/Versionfile.tt +9 -0
  2843. data/lib/generators/templates/config/database.yml +17 -0
  2844. data/lib/generators/templates/config/database.yml.mysql +29 -0
  2845. data/lib/generators/templates/config/database.yml.sqlite3 +17 -0
  2846. data/lib/generators/templates/config/environments/cucumber.rb +38 -0
  2847. data/lib/generators/templates/extension.gemspec.tt +20 -0
  2848. data/lib/generators/templates/extension/extension.rb.tt +17 -0
  2849. data/lib/generators/templates/gitignore.tt +9 -0
  2850. data/lib/generators/templates/hooks.rb.tt +3 -0
  2851. data/lib/generators/templates/install.rake.tt +25 -0
  2852. data/lib/generators/templates/lib/tasks/%file_name%.rake.tt +1 -0
  2853. data/lib/generators/templates/routes.rb +3 -0
  2854. data/lib/generators/templates/spec_helper.rb +30 -0
  2855. data/lib/generators/templates/spree_site.rb +12 -0
  2856. data/lib/spree.rb +11 -0
  2857. data/lib/tasks/install.rake +29 -0
  2858. data/promo/Gemfile +36 -0
  2859. data/promo/Gemfile.lock +251 -0
  2860. data/promo/LICENSE +26 -0
  2861. data/promo/README.markdown +14 -0
  2862. data/promo/Rakefile +55 -0
  2863. data/promo/app/controllers/admin/promotion_rules_controller.rb +26 -0
  2864. data/promo/app/controllers/admin/promotions_controller.rb +21 -0
  2865. data/promo/app/controllers/orders_controller_decorator.rb +10 -0
  2866. data/promo/app/models/calculator/free_shipping.rb +24 -0
  2867. data/promo/app/models/promotion.rb +73 -0
  2868. data/promo/app/models/promotion/rules/first_order.rb +7 -0
  2869. data/promo/app/models/promotion/rules/item_total.rb +12 -0
  2870. data/promo/app/models/promotion/rules/product.rb +40 -0
  2871. data/promo/app/models/promotion/rules/user.rb +17 -0
  2872. data/promo/app/models/promotion_credit.rb +9 -0
  2873. data/promo/app/models/promotion_rule.rb +26 -0
  2874. data/promo/app/views/admin/promotion_rules/create.js.erb +6 -0
  2875. data/promo/app/views/admin/promotion_rules/destroy.js.erb +1 -0
  2876. data/promo/app/views/admin/promotions/_form.html.erb +46 -0
  2877. data/promo/app/views/admin/promotions/_promotion_rule.html.erb +8 -0
  2878. data/promo/app/views/admin/promotions/_tab.html.erb +1 -0
  2879. data/promo/app/views/admin/promotions/edit.html.erb +46 -0
  2880. data/promo/app/views/admin/promotions/index.html.erb +40 -0
  2881. data/promo/app/views/admin/promotions/new.html.erb +6 -0
  2882. data/promo/app/views/admin/promotions/rules/_first_order.html.erb +0 -0
  2883. data/promo/app/views/admin/promotions/rules/_item_total.html.erb +7 -0
  2884. data/promo/app/views/admin/promotions/rules/_product.html.erb +18 -0
  2885. data/promo/app/views/admin/promotions/rules/_user.html.erb +7 -0
  2886. data/promo/app/views/checkout/_coupon_code_field.html.erb +6 -0
  2887. data/promo/app/views/products/_promotions.html.erb +23 -0
  2888. data/promo/config/cucumber.yml +10 -0
  2889. data/promo/config/locales/en.yml +55 -0
  2890. data/promo/config/routes.rb +7 -0
  2891. data/promo/db/migrate/20100419190933_rename_coupons_to_promotions.rb +10 -0
  2892. data/promo/db/migrate/20100419194457_fix_existing_coupon_credits.rb +9 -0
  2893. data/promo/db/migrate/20100426100726_create_promotion_rules.rb +24 -0
  2894. data/promo/db/migrate/20100501084722_match_policy_for_promotions.rb +9 -0
  2895. data/promo/db/migrate/20100501095202_create_promotion_rules_users.rb +14 -0
  2896. data/promo/db/migrate/20100502163939_name_for_promotions.rb +9 -0
  2897. data/promo/db/migrate/20100923095305_update_calculable_type_for_promotions.rb +9 -0
  2898. data/promo/features/orders_total_promo.feature +89 -0
  2899. data/promo/features/step_definitions/promotions_steps.rb +4 -0
  2900. data/promo/features/support/env.rb +4 -0
  2901. data/promo/features/support/paths.rb +39 -0
  2902. data/promo/lib/spree_promo.rb +132 -0
  2903. data/promo/lib/spree_promo_hooks.rb +11 -0
  2904. data/promo/lib/tasks/install.rake +26 -0
  2905. data/promo/lib/tasks/promotions.rake +11 -0
  2906. data/promo/lib/tasks/promotions_extension_tasks.rake +17 -0
  2907. data/promo/public/javascripts/admin/promotions.js +26 -0
  2908. data/promo/public/stylesheets/admin/promotions.css +54 -0
  2909. data/promo/rfcommerce_promo.gemspec +26 -0
  2910. data/promo/spec/models/order_spec.rb +72 -0
  2911. data/promo/spec/models/promotion/rules/first_order_spec.rb +27 -0
  2912. data/promo/spec/models/promotion/rules/item_total_spec.rb +46 -0
  2913. data/promo/spec/models/promotion/rules/product_spec.rb +68 -0
  2914. data/promo/spec/models/promotion/rules/user_spec.rb +35 -0
  2915. data/promo/spec/models/promotion_rule_spec.rb +36 -0
  2916. data/promo/spec/models/promotion_spec.rb +146 -0
  2917. data/promo/spec/spec_helper.rb +17 -0
  2918. data/promo/spec/test_app/Gemfile +36 -0
  2919. data/promo/spec/test_app/Rakefile +7 -0
  2920. data/promo/spec/test_app/app/controllers/application_controller.rb +3 -0
  2921. data/promo/spec/test_app/app/helpers/application_helper.rb +2 -0
  2922. data/promo/spec/test_app/app/views/layouts/application.html.erb +14 -0
  2923. data/promo/spec/test_app/config.ru +4 -0
  2924. data/promo/spec/test_app/config/application.rb +42 -0
  2925. data/promo/spec/test_app/config/boot.rb +6 -0
  2926. data/promo/spec/test_app/config/database.yml +17 -0
  2927. data/promo/spec/test_app/config/environment.rb +5 -0
  2928. data/promo/spec/test_app/config/environments/cucumber.rb +38 -0
  2929. data/promo/spec/test_app/config/environments/development.rb +26 -0
  2930. data/promo/spec/test_app/config/environments/production.rb +49 -0
  2931. data/promo/spec/test_app/config/environments/test.rb +35 -0
  2932. data/promo/spec/test_app/config/initializers/backtrace_silencers.rb +7 -0
  2933. data/promo/spec/test_app/config/initializers/inflections.rb +10 -0
  2934. data/promo/spec/test_app/config/initializers/mime_types.rb +5 -0
  2935. data/promo/spec/test_app/config/initializers/secret_token.rb +7 -0
  2936. data/promo/spec/test_app/config/initializers/session_store.rb +8 -0
  2937. data/promo/spec/test_app/config/locales/en.yml +5 -0
  2938. data/promo/spec/test_app/config/routes.rb +58 -0
  2939. data/promo/spec/test_app/db/cucumber.sqlite3 +0 -0
  2940. data/promo/spec/test_app/db/default/countries.yml +1583 -0
  2941. data/promo/spec/test_app/db/default/roles.yml +7 -0
  2942. data/promo/spec/test_app/db/default/states.yml +256 -0
  2943. data/promo/spec/test_app/db/default/zone_members.yml +169 -0
  2944. data/promo/spec/test_app/db/default/zones.yml +13 -0
  2945. data/promo/spec/test_app/db/migrate/20090823005402_spree_zero_nine_zero.rb +442 -0
  2946. data/promo/spec/test_app/db/migrate/20090904192342_create_indexes_for_inventory_units.rb +12 -0
  2947. data/promo/spec/test_app/db/migrate/20090923100315_add_count_on_hand_to_variants_and_products.rb +36 -0
  2948. data/promo/spec/test_app/db/migrate/20091007134354_change_taxons_to_nested_set.rb +40 -0
  2949. data/promo/spec/test_app/db/migrate/20091008091614_move_to_configurable_gateways.rb +55 -0
  2950. data/promo/spec/test_app/db/migrate/20091012120519_product_groups_and_scopes.rb +25 -0
  2951. data/promo/spec/test_app/db/migrate/20091015110842_add_open_id_authentication_tables.rb +20 -0
  2952. data/promo/spec/test_app/db/migrate/20091015153048_add_openid_field_to_users.rb +19 -0
  2953. data/promo/spec/test_app/db/migrate/20091016174634_change_preference_value_type.rb +10 -0
  2954. data/promo/spec/test_app/db/migrate/20091017175558_create_billing_integrations.rb +16 -0
  2955. data/promo/spec/test_app/db/migrate/20091021133257_charge_refactoring.rb +35 -0
  2956. data/promo/spec/test_app/db/migrate/20091104151730_add_some_indexes.rb +21 -0
  2957. data/promo/spec/test_app/db/migrate/20091126190904_checkout_state_machine.rb +13 -0
  2958. data/promo/spec/test_app/db/migrate/20091209153045_state_for_shipments.rb +9 -0
  2959. data/promo/spec/test_app/db/migrate/20091209202200_make_state_events_polymorphic.rb +12 -0
  2960. data/promo/spec/test_app/db/migrate/20091211203813_ship_address_id_for_checkouts.rb +9 -0
  2961. data/promo/spec/test_app/db/migrate/20091212161118_shipping_method_id_for_checkouts.rb +9 -0
  2962. data/promo/spec/test_app/db/migrate/20091213222815_creditcard_last_four_digits.rb +19 -0
  2963. data/promo/spec/test_app/db/migrate/20091214183826_populate_legacy_shipment_state.rb +19 -0
  2964. data/promo/spec/test_app/db/migrate/20100105090147_add_cost_price.rb +9 -0
  2965. data/promo/spec/test_app/db/migrate/20100105132138_shipment_id_for_inventory_units.rb +21 -0
  2966. data/promo/spec/test_app/db/migrate/20100111205525_cim_fields_for_creditcards.rb +11 -0
  2967. data/promo/spec/test_app/db/migrate/20100112151511_create_return_authorizations.rb +16 -0
  2968. data/promo/spec/test_app/db/migrate/20100113090919_add_return_authorization_to_inventory_units.rb +9 -0
  2969. data/promo/spec/test_app/db/migrate/20100113203104_create_trackers.rb +14 -0
  2970. data/promo/spec/test_app/db/migrate/20100121160010_creditcard_id_for_creditcard_txns.rb +9 -0
  2971. data/promo/spec/test_app/db/migrate/20100121183934_original_creditcard_txn_id_for_creditcard_txns.rb +9 -0
  2972. data/promo/spec/test_app/db/migrate/20100125145351_add_test_mode_to_billing_integration.rb +11 -0
  2973. data/promo/spec/test_app/db/migrate/20100126103714_create_products_product_groups.rb +12 -0
  2974. data/promo/spec/test_app/db/migrate/20100209025806_create_payment_methods.rb +20 -0
  2975. data/promo/spec/test_app/db/migrate/20100209144531_polymorphic_payments.rb +29 -0
  2976. data/promo/spec/test_app/db/migrate/20100213103131_change_payments_payment_method_to_belongs_to.rb +11 -0
  2977. data/promo/spec/test_app/db/migrate/20100214212536_assign_creditcard_txns_to_payment.rb +16 -0
  2978. data/promo/spec/test_app/db/migrate/20100223170312_sti_for_transactions.rb +14 -0
  2979. data/promo/spec/test_app/db/migrate/20100223183812_drop_billing_integrations.rb +16 -0
  2980. data/promo/spec/test_app/db/migrate/20100224153127_deleted_at_for_payment_methods.rb +13 -0
  2981. data/promo/spec/test_app/db/migrate/20100301163454_add_adjustments_index.rb +10 -0
  2982. data/promo/spec/test_app/db/migrate/20100306153445_fix_by_popularity.rb +8 -0
  2983. data/promo/spec/test_app/db/migrate/20100317120946_add_alt_text_to_images.rb +9 -0
  2984. data/promo/spec/test_app/db/migrate/20100419190933_rename_coupons_to_promotions.rb +10 -0
  2985. data/promo/spec/test_app/db/migrate/20100419194457_fix_existing_coupon_credits.rb +9 -0
  2986. data/promo/spec/test_app/db/migrate/20100426100726_create_promotion_rules.rb +24 -0
  2987. data/promo/spec/test_app/db/migrate/20100427121301_add_display_to_payment_methods.rb +9 -0
  2988. data/promo/spec/test_app/db/migrate/20100501084722_match_policy_for_promotions.rb +9 -0
  2989. data/promo/spec/test_app/db/migrate/20100501095202_create_promotion_rules_users.rb +14 -0
  2990. data/promo/spec/test_app/db/migrate/20100502163939_name_for_promotions.rb +9 -0
  2991. data/promo/spec/test_app/db/migrate/20100504142133_add_addresses_checkouts_indexes.rb +16 -0
  2992. data/promo/spec/test_app/db/migrate/20100506180619_add_icon_to_taxons.rb +18 -0
  2993. data/promo/spec/test_app/db/migrate/20100506185838_add_description_to_taxons.rb +11 -0
  2994. data/promo/spec/test_app/db/migrate/20100528155333_index_for_shipments_number.rb +9 -0
  2995. data/promo/spec/test_app/db/migrate/20100528185820_add_index_on_users_persistence_token.rb +9 -0
  2996. data/promo/spec/test_app/db/migrate/20100605152042_add_default_to_tax_categories.rb +9 -0
  2997. data/promo/spec/test_app/db/migrate/20100624110730_add_display_to_shipping_methods.rb +9 -0
  2998. data/promo/spec/test_app/db/migrate/20100624123336_rename_payment_method_display.rb +9 -0
  2999. data/promo/spec/test_app/db/migrate/20100624175547_rename_preferences_field.rb +8 -0
  3000. data/promo/spec/test_app/db/migrate/20100811163637_add_guest_flag.rb +13 -0
  3001. data/promo/spec/test_app/db/migrate/20100811205836_drop_order_token.rb +11 -0
  3002. data/promo/spec/test_app/db/migrate/20100812162326_payments_state_and_assigned_to_order_only.rb +11 -0
  3003. data/promo/spec/test_app/db/migrate/20100813023502_create_address_keys_for_order.rb +15 -0
  3004. data/promo/spec/test_app/db/migrate/20100813185745_payment_total_for_orders.rb +9 -0
  3005. data/promo/spec/test_app/db/migrate/20100816212146_shipping_method_id_for_orders.rb +9 -0
  3006. data/promo/spec/test_app/db/migrate/20100817152723_add_shipment_and_payment_state.rb +15 -0
  3007. data/promo/spec/test_app/db/migrate/20100819170125_refactor_adjustments.rb +19 -0
  3008. data/promo/spec/test_app/db/migrate/20100820135707_response_code_and_avs_response_for_payments.rb +11 -0
  3009. data/promo/spec/test_app/db/migrate/20100901171814_change_guest_flag_to_anonymous.rb +13 -0
  3010. data/promo/spec/test_app/db/migrate/20100903203949_email_for_orders.rb +9 -0
  3011. data/promo/spec/test_app/db/migrate/20100923095305_update_calculable_type_for_promotions.rb +9 -0
  3012. data/promo/spec/test_app/db/migrate/20100923162011_create_mail_methods.rb +12 -0
  3013. data/promo/spec/test_app/db/migrate/20100929151905_rename_frozen_to_locked.rb +8 -0
  3014. data/promo/spec/test_app/db/migrate/20101008190536_move_special_instructions_to_orders.rb +11 -0
  3015. data/promo/spec/test_app/db/migrate/20101026184700_create_log_entries.rb +15 -0
  3016. data/promo/spec/test_app/db/migrate/20101026184714_migrate_transactions_to_payment_state.rb +94 -0
  3017. data/promo/spec/test_app/db/migrate/20101026184746_delete_in_progress_orders.rb +18 -0
  3018. data/promo/spec/test_app/db/migrate/20101026184808_migrate_checkout_to_orders.rb +27 -0
  3019. data/promo/spec/test_app/db/migrate/20101026184833_migrate_adjustments.rb +9 -0
  3020. data/promo/spec/test_app/db/migrate/20101026184855_remove_shipped_state.rb +14 -0
  3021. data/promo/spec/test_app/db/migrate/20101026184916_prevent_nil_payment_total.rb +8 -0
  3022. data/promo/spec/test_app/db/migrate/20101026184932_prevent_nil_email.rb +9 -0
  3023. data/promo/spec/test_app/db/migrate/20101026184950_rename_columns_for_devise.rb +39 -0
  3024. data/promo/spec/test_app/db/migrate/20101026184959_generate_anonymous_users.rb +14 -0
  3025. data/promo/spec/test_app/db/migrate/20101026185022_update_order_state.rb +8 -0
  3026. data/promo/spec/test_app/db/migrate/20101026192225_cleanup_legacy_tables.rb +11 -0
  3027. data/promo/spec/test_app/db/migrate/20101028151745_remove_number_and_cvv_from_credicard.rb +9 -0
  3028. data/promo/spec/test_app/db/migrate/20101103212716_drop_anonymous_field_for_user.rb +8 -0
  3029. data/promo/spec/test_app/db/migrate/20101111133551_renamed_rma_cancelled_state.rb +10 -0
  3030. data/promo/spec/test_app/db/migrate/20101117031806_fix_problematic_index_names.rb +13 -0
  3031. data/promo/spec/test_app/db/migrate/20101214150824_convert_user_remember_field.rb +11 -0
  3032. data/promo/spec/test_app/db/migrate/20101217012656_create_tokenized_permissions.rb +18 -0
  3033. data/promo/spec/test_app/db/migrate/20101219201531_tokens_for_legacy_orders.rb +12 -0
  3034. data/promo/spec/test_app/db/migrate/20101223215658_add_position_to_variants.rb +9 -0
  3035. data/promo/spec/test_app/db/migrate/20110110130847_add_next_state_to_state_events.rb +9 -0
  3036. data/promo/spec/test_app/db/migrate/20110111122537_add_position_to_option_types.rb +9 -0
  3037. data/promo/spec/test_app/db/migrate/20110314192118_remove_trailing_slashes_in_taxon_permalinks.rb +17 -0
  3038. data/promo/spec/test_app/db/sample/users.rb +53 -0
  3039. data/promo/spec/test_app/db/schema.rb +572 -0
  3040. data/promo/spec/test_app/db/seeds.rb +3 -0
  3041. data/promo/spec/test_app/db/test.sqlite3 +0 -0
  3042. data/promo/spec/test_app/log/cucumber.log +1682 -0
  3043. data/promo/spec/test_app/log/development.log +0 -0
  3044. data/promo/spec/test_app/log/production.log +0 -0
  3045. data/promo/spec/test_app/log/server.log +0 -0
  3046. data/promo/spec/test_app/log/test.log +1682 -0
  3047. data/promo/spec/test_app/public/404.html +26 -0
  3048. data/promo/spec/test_app/public/422.html +26 -0
  3049. data/promo/spec/test_app/public/500.html +26 -0
  3050. data/promo/spec/test_app/public/favicon.ico +0 -0
  3051. data/promo/spec/test_app/public/images/add-to-cart.png +0 -0
  3052. data/promo/spec/test_app/public/images/admin/bg/active-tab.png +0 -0
  3053. data/promo/spec/test_app/public/images/admin/bg/admin_tab_back.png +0 -0
  3054. data/promo/spec/test_app/public/images/admin/bg/admin_tab_selected_back.png +0 -0
  3055. data/promo/spec/test_app/public/images/admin/bg/content-back-blue.png +0 -0
  3056. data/promo/spec/test_app/public/images/admin/bg/content-back-green.png +0 -0
  3057. data/promo/spec/test_app/public/images/admin/bg/content-back.png +0 -0
  3058. data/promo/spec/test_app/public/images/admin/bg/flash-error.png +0 -0
  3059. data/promo/spec/test_app/public/images/admin/bg/flash-notice.png +0 -0
  3060. data/promo/spec/test_app/public/images/admin/bg/green-stripes.gif +0 -0
  3061. data/promo/spec/test_app/public/images/admin/bg/green-stripes.png +0 -0
  3062. data/promo/spec/test_app/public/images/admin/bg/grid_header_back.png +0 -0
  3063. data/promo/spec/test_app/public/images/admin/bg/grid_header_back_green.png +0 -0
  3064. data/promo/spec/test_app/public/images/admin/bg/header-bg.png +0 -0
  3065. data/promo/spec/test_app/public/images/admin/bg/header.png +0 -0
  3066. data/promo/spec/test_app/public/images/admin/bg/header_bg.jpg +0 -0
  3067. data/promo/spec/test_app/public/images/admin/bg/menu-current.png +0 -0
  3068. data/promo/spec/test_app/public/images/admin/bg/red-stripes.gif +0 -0
  3069. data/promo/spec/test_app/public/images/admin/bg/red-stripes.png +0 -0
  3070. data/promo/spec/test_app/public/images/admin/bg/spree_50.png +0 -0
  3071. data/promo/spec/test_app/public/images/admin/bg/subnav-divider.png +0 -0
  3072. data/promo/spec/test_app/public/images/admin/bg/subnav.png +0 -0
  3073. data/promo/spec/test_app/public/images/admin/bg/tab-back.png +0 -0
  3074. data/promo/spec/test_app/public/images/admin/buttons/blue/left_01.png +0 -0
  3075. data/promo/spec/test_app/public/images/admin/buttons/blue/right_01.png +0 -0
  3076. data/promo/spec/test_app/public/images/admin/buttons/drag-handle-green.png +0 -0
  3077. data/promo/spec/test_app/public/images/admin/buttons/green/left_01.png +0 -0
  3078. data/promo/spec/test_app/public/images/admin/buttons/green/right_01.png +0 -0
  3079. data/promo/spec/test_app/public/images/admin/buttons/left_01.png +0 -0
  3080. data/promo/spec/test_app/public/images/admin/buttons/left_01_small.png +0 -0
  3081. data/promo/spec/test_app/public/images/admin/buttons/orange/left_03.png +0 -0
  3082. data/promo/spec/test_app/public/images/admin/buttons/orange/right_03.png +0 -0
  3083. data/promo/spec/test_app/public/images/admin/buttons/right_01.png +0 -0
  3084. data/promo/spec/test_app/public/images/admin/buttons/right_01_small.png +0 -0
  3085. data/promo/spec/test_app/public/images/admin/icons/16x16/1.png +0 -0
  3086. data/promo/spec/test_app/public/images/admin/icons/16x16/10.png +0 -0
  3087. data/promo/spec/test_app/public/images/admin/icons/16x16/2.png +0 -0
  3088. data/promo/spec/test_app/public/images/admin/icons/16x16/3.png +0 -0
  3089. data/promo/spec/test_app/public/images/admin/icons/16x16/4.png +0 -0
  3090. data/promo/spec/test_app/public/images/admin/icons/16x16/5.png +0 -0
  3091. data/promo/spec/test_app/public/images/admin/icons/16x16/6.png +0 -0
  3092. data/promo/spec/test_app/public/images/admin/icons/16x16/7.png +0 -0
  3093. data/promo/spec/test_app/public/images/admin/icons/16x16/8.png +0 -0
  3094. data/promo/spec/test_app/public/images/admin/icons/16x16/9.png +0 -0
  3095. data/promo/spec/test_app/public/images/admin/icons/32x32/1.png +0 -0
  3096. data/promo/spec/test_app/public/images/admin/icons/32x32/10.png +0 -0
  3097. data/promo/spec/test_app/public/images/admin/icons/32x32/11.png +0 -0
  3098. data/promo/spec/test_app/public/images/admin/icons/32x32/2.png +0 -0
  3099. data/promo/spec/test_app/public/images/admin/icons/32x32/3.png +0 -0
  3100. data/promo/spec/test_app/public/images/admin/icons/32x32/4.png +0 -0
  3101. data/promo/spec/test_app/public/images/admin/icons/32x32/5.png +0 -0
  3102. data/promo/spec/test_app/public/images/admin/icons/32x32/6.png +0 -0
  3103. data/promo/spec/test_app/public/images/admin/icons/32x32/7.png +0 -0
  3104. data/promo/spec/test_app/public/images/admin/icons/32x32/8.png +0 -0
  3105. data/promo/spec/test_app/public/images/admin/icons/32x32/9.png +0 -0
  3106. data/promo/spec/test_app/public/images/admin/icons/accept.png +0 -0
  3107. data/promo/spec/test_app/public/images/admin/icons/add.gif +0 -0
  3108. data/promo/spec/test_app/public/images/admin/icons/add.png +0 -0
  3109. data/promo/spec/test_app/public/images/admin/icons/arrow-down.gif +0 -0
  3110. data/promo/spec/test_app/public/images/admin/icons/cross.png +0 -0
  3111. data/promo/spec/test_app/public/images/admin/icons/delete.gif +0 -0
  3112. data/promo/spec/test_app/public/images/admin/icons/delete.png +0 -0
  3113. data/promo/spec/test_app/public/images/admin/icons/drag.gif +0 -0
  3114. data/promo/spec/test_app/public/images/admin/icons/edit.gif +0 -0
  3115. data/promo/spec/test_app/public/images/admin/icons/edit.png +0 -0
  3116. data/promo/spec/test_app/public/images/admin/icons/email.png +0 -0
  3117. data/promo/spec/test_app/public/images/admin/icons/error.png +0 -0
  3118. data/promo/spec/test_app/public/images/admin/icons/exclamation.png +0 -0
  3119. data/promo/spec/test_app/public/images/admin/icons/feed.png +0 -0
  3120. data/promo/spec/test_app/public/images/admin/icons/pdf.png +0 -0
  3121. data/promo/spec/test_app/public/images/admin/icons/reorder.gif +0 -0
  3122. data/promo/spec/test_app/public/images/admin/icons/search.gif +0 -0
  3123. data/promo/spec/test_app/public/images/admin/icons/send-email.png +0 -0
  3124. data/promo/spec/test_app/public/images/admin/icons/stop.png +0 -0
  3125. data/promo/spec/test_app/public/images/admin/icons/tick.png +0 -0
  3126. data/promo/spec/test_app/public/images/admin/icons/up.gif +0 -0
  3127. data/promo/spec/test_app/public/images/admin/icons/xls.png +0 -0
  3128. data/promo/spec/test_app/public/images/admin/tabs/off-left.png +0 -0
  3129. data/promo/spec/test_app/public/images/admin/tabs/off-right.png +0 -0
  3130. data/promo/spec/test_app/public/images/admin/tabs/on-left.png +0 -0
  3131. data/promo/spec/test_app/public/images/admin/tabs/on-right.png +0 -0
  3132. data/promo/spec/test_app/public/images/ajax_loader.gif +0 -0
  3133. data/promo/spec/test_app/public/images/amex_cid.gif +0 -0
  3134. data/promo/spec/test_app/public/images/bg-button-hover.png +0 -0
  3135. data/promo/spec/test_app/public/images/bg-button-pressed.png +0 -0
  3136. data/promo/spec/test_app/public/images/bg-button.gif +0 -0
  3137. data/promo/spec/test_app/public/images/bg-button.png +0 -0
  3138. data/promo/spec/test_app/public/images/blue/left_01.png +0 -0
  3139. data/promo/spec/test_app/public/images/blue/right_01.png +0 -0
  3140. data/promo/spec/test_app/public/images/body-back.png +0 -0
  3141. data/promo/spec/test_app/public/images/bottom_shine.png +0 -0
  3142. data/promo/spec/test_app/public/images/breadcrumb.gif +0 -0
  3143. data/promo/spec/test_app/public/images/button-dark-hover.png +0 -0
  3144. data/promo/spec/test_app/public/images/button-dark.png +0 -0
  3145. data/promo/spec/test_app/public/images/buttons/bg-button-hover.png +0 -0
  3146. data/promo/spec/test_app/public/images/buttons/bg-button-pressed.png +0 -0
  3147. data/promo/spec/test_app/public/images/buttons/bg-button.gif +0 -0
  3148. data/promo/spec/test_app/public/images/buttons/bg-button.png +0 -0
  3149. data/promo/spec/test_app/public/images/buttons/blue/left_01.png +0 -0
  3150. data/promo/spec/test_app/public/images/buttons/blue/right_01.png +0 -0
  3151. data/promo/spec/test_app/public/images/buttons/button-dark-hover.png +0 -0
  3152. data/promo/spec/test_app/public/images/buttons/button-dark.png +0 -0
  3153. data/promo/spec/test_app/public/images/buttons/drag-handle-green.png +0 -0
  3154. data/promo/spec/test_app/public/images/buttons/green/left_01.png +0 -0
  3155. data/promo/spec/test_app/public/images/buttons/green/right_01.png +0 -0
  3156. data/promo/spec/test_app/public/images/buttons/left_01.png +0 -0
  3157. data/promo/spec/test_app/public/images/buttons/left_01_small.png +0 -0
  3158. data/promo/spec/test_app/public/images/buttons/orange/left_03.png +0 -0
  3159. data/promo/spec/test_app/public/images/buttons/orange/right_03.png +0 -0
  3160. data/promo/spec/test_app/public/images/buttons/right_01.png +0 -0
  3161. data/promo/spec/test_app/public/images/buttons/right_01_small.png +0 -0
  3162. data/promo/spec/test_app/public/images/buttons/sxsw-ribbon-v1.png +0 -0
  3163. data/promo/spec/test_app/public/images/buttons/top-shine.png +0 -0
  3164. data/promo/spec/test_app/public/images/calendar_date_select/calendar.gif +0 -0
  3165. data/promo/spec/test_app/public/images/cart-empty.png +0 -0
  3166. data/promo/spec/test_app/public/images/cart-empty_x32.png +0 -0
  3167. data/promo/spec/test_app/public/images/cart-full.png +0 -0
  3168. data/promo/spec/test_app/public/images/cart-full_x32.png +0 -0
  3169. data/promo/spec/test_app/public/images/checkout.png +0 -0
  3170. data/promo/spec/test_app/public/images/creditcard.gif +0 -0
  3171. data/promo/spec/test_app/public/images/datepicker/backstripes.gif +0 -0
  3172. data/promo/spec/test_app/public/images/datepicker/bg_header.jpg +0 -0
  3173. data/promo/spec/test_app/public/images/datepicker/bullet1.gif +0 -0
  3174. data/promo/spec/test_app/public/images/datepicker/bullet2.gif +0 -0
  3175. data/promo/spec/test_app/public/images/datepicker/cal.gif +0 -0
  3176. data/promo/spec/test_app/public/images/datepicker/gradient-e5e5e5-ffffff.gif +0 -0
  3177. data/promo/spec/test_app/public/images/discover_cid.gif +0 -0
  3178. data/promo/spec/test_app/public/images/drag-handle-green.png +0 -0
  3179. data/promo/spec/test_app/public/images/favicon.ico +0 -0
  3180. data/promo/spec/test_app/public/images/green/left_01.png +0 -0
  3181. data/promo/spec/test_app/public/images/green/right_01.png +0 -0
  3182. data/promo/spec/test_app/public/images/grid.png +0 -0
  3183. data/promo/spec/test_app/public/images/left_01.png +0 -0
  3184. data/promo/spec/test_app/public/images/left_01_small.png +0 -0
  3185. data/promo/spec/test_app/public/images/master_cid.jpg +0 -0
  3186. data/promo/spec/test_app/public/images/menu-current.png +0 -0
  3187. data/promo/spec/test_app/public/images/menu-hover.png +0 -0
  3188. data/promo/spec/test_app/public/images/noimage/mini.jpg +0 -0
  3189. data/promo/spec/test_app/public/images/noimage/product.jpg +0 -0
  3190. data/promo/spec/test_app/public/images/noimage/small.jpg +0 -0
  3191. data/promo/spec/test_app/public/images/openid-inputicon.gif +0 -0
  3192. data/promo/spec/test_app/public/images/orange/left_03.png +0 -0
  3193. data/promo/spec/test_app/public/images/orange/right_03.png +0 -0
  3194. data/promo/spec/test_app/public/images/progress.gif +0 -0
  3195. data/promo/spec/test_app/public/images/reorder.jpg +0 -0
  3196. data/promo/spec/test_app/public/images/right_01.png +0 -0
  3197. data/promo/spec/test_app/public/images/right_01_small.png +0 -0
  3198. data/promo/spec/test_app/public/images/separator.png +0 -0
  3199. data/promo/spec/test_app/public/images/shadow-top.png +0 -0
  3200. data/promo/spec/test_app/public/images/shadow_top.png +0 -0
  3201. data/promo/spec/test_app/public/images/spinner.gif +0 -0
  3202. data/promo/spec/test_app/public/images/spree.jpg +0 -0
  3203. data/promo/spec/test_app/public/images/spree/progress.gif +0 -0
  3204. data/promo/spec/test_app/public/images/spree/spinner.gif +0 -0
  3205. data/promo/spec/test_app/public/images/spree/spree.jpg +0 -0
  3206. data/promo/spec/test_app/public/images/step-progress/completed-completed.gif +0 -0
  3207. data/promo/spec/test_app/public/images/step-progress/completed-current.gif +0 -0
  3208. data/promo/spec/test_app/public/images/step-progress/completed-first.gif +0 -0
  3209. data/promo/spec/test_app/public/images/step-progress/current-first.gif +0 -0
  3210. data/promo/spec/test_app/public/images/step-progress/current-incomplete.gif +0 -0
  3211. data/promo/spec/test_app/public/images/step-progress/current-right.gif +0 -0
  3212. data/promo/spec/test_app/public/images/step-progress/incomplete-incomplete.gif +0 -0
  3213. data/promo/spec/test_app/public/images/step-progress/incomplete-right.gif +0 -0
  3214. data/promo/spec/test_app/public/images/steps/1.png +0 -0
  3215. data/promo/spec/test_app/public/images/steps/1_small.png +0 -0
  3216. data/promo/spec/test_app/public/images/steps/2.png +0 -0
  3217. data/promo/spec/test_app/public/images/steps/2_small.png +0 -0
  3218. data/promo/spec/test_app/public/images/steps/3.png +0 -0
  3219. data/promo/spec/test_app/public/images/steps/3_small.png +0 -0
  3220. data/promo/spec/test_app/public/images/steps/4.png +0 -0
  3221. data/promo/spec/test_app/public/images/steps/4_small.png +0 -0
  3222. data/promo/spec/test_app/public/images/steps/5.png +0 -0
  3223. data/promo/spec/test_app/public/images/steps/5_small.png +0 -0
  3224. data/promo/spec/test_app/public/images/steps/6.png +0 -0
  3225. data/promo/spec/test_app/public/images/steps/6_small.png +0 -0
  3226. data/promo/spec/test_app/public/images/sxsw-ribbon-v1.png +0 -0
  3227. data/promo/spec/test_app/public/images/tab_bottom.gif +0 -0
  3228. data/promo/spec/test_app/public/images/tile-header.png +0 -0
  3229. data/promo/spec/test_app/public/images/tile-slider.png +0 -0
  3230. data/promo/spec/test_app/public/images/top-shine.png +0 -0
  3231. data/promo/spec/test_app/public/images/tree-nav-icons/bullet.gif +0 -0
  3232. data/promo/spec/test_app/public/images/tree-nav-icons/minus.gif +0 -0
  3233. data/promo/spec/test_app/public/images/tree-nav-icons/plus.gif +0 -0
  3234. data/promo/spec/test_app/public/images/tree-nav-icons/treeview-loading.gif +0 -0
  3235. data/promo/spec/test_app/public/images/tree-nav-icons/treeview-sprite.gif +0 -0
  3236. data/promo/spec/test_app/public/images/update.png +0 -0
  3237. data/promo/spec/test_app/public/images/visa_cid.gif +0 -0
  3238. data/promo/spec/test_app/public/images/wrapper-back-2.png +0 -0
  3239. data/promo/spec/test_app/public/images/wrapper-back.png +0 -0
  3240. data/promo/spec/test_app/public/images/yui-menubaritem_submenuindicator.png +0 -0
  3241. data/promo/spec/test_app/public/images/yui-menubaritem_submenuindicator_disabled.png +0 -0
  3242. data/promo/spec/test_app/public/images/yui-menuitem_checkbox.png +0 -0
  3243. data/promo/spec/test_app/public/images/yui-menuitem_checkbox_disabled.png +0 -0
  3244. data/promo/spec/test_app/public/images/yui-menuitem_submenuindicator.png +0 -0
  3245. data/promo/spec/test_app/public/images/yui-menuitem_submenuindicator_disabled.png +0 -0
  3246. data/promo/spec/test_app/public/images/yui-sprite.png +0 -0
  3247. data/promo/spec/test_app/public/javascripts/additional-methods.js +236 -0
  3248. data/promo/spec/test_app/public/javascripts/admin.js +232 -0
  3249. data/promo/spec/test_app/public/javascripts/admin/address_states.js +25 -0
  3250. data/promo/spec/test_app/public/javascripts/admin/checkouts/edit.js +130 -0
  3251. data/promo/spec/test_app/public/javascripts/admin/orders/edit.js +23 -0
  3252. data/promo/spec/test_app/public/javascripts/admin/orders/edit_form.js +16 -0
  3253. data/promo/spec/test_app/public/javascripts/admin/payments/new.js +9 -0
  3254. data/promo/spec/test_app/public/javascripts/admin/promotions.js +26 -0
  3255. data/promo/spec/test_app/public/javascripts/admin/unobtrusive_handlers.js +43 -0
  3256. data/promo/spec/test_app/public/javascripts/application.js +12 -0
  3257. data/promo/spec/test_app/public/javascripts/calculator.js +15 -0
  3258. data/promo/spec/test_app/public/javascripts/checkout.js +75 -0
  3259. data/promo/spec/test_app/public/javascripts/datepicker.js +1445 -0
  3260. data/promo/spec/test_app/public/javascripts/gateway.js +13 -0
  3261. data/promo/spec/test_app/public/javascripts/jquery-1.4.2.min.js +154 -0
  3262. data/promo/spec/test_app/public/javascripts/jquery-ui.js +188 -0
  3263. data/promo/spec/test_app/public/javascripts/jquery.alerts/images/help.gif +0 -0
  3264. data/promo/spec/test_app/public/javascripts/jquery.alerts/images/important.gif +0 -0
  3265. data/promo/spec/test_app/public/javascripts/jquery.alerts/images/info.gif +0 -0
  3266. data/promo/spec/test_app/public/javascripts/jquery.alerts/images/title.gif +0 -0
  3267. data/promo/spec/test_app/public/javascripts/jquery.alerts/jquery.alerts.css +57 -0
  3268. data/promo/spec/test_app/public/javascripts/jquery.alerts/jquery.alerts.js +235 -0
  3269. data/promo/spec/test_app/public/javascripts/jquery.alerts/jquery.alerts.spree.css +30 -0
  3270. data/promo/spec/test_app/public/javascripts/jquery.autocomplete.min.js +13 -0
  3271. data/promo/spec/test_app/public/javascripts/jquery.cookie.js +96 -0
  3272. data/promo/spec/test_app/public/javascripts/jquery.delayedobserver.js +35 -0
  3273. data/promo/spec/test_app/public/javascripts/jquery.suggest.js +276 -0
  3274. data/promo/spec/test_app/public/javascripts/jquery.template.js +255 -0
  3275. data/promo/spec/test_app/public/javascripts/jquery.tokeninput.js +618 -0
  3276. data/promo/spec/test_app/public/javascripts/jquery.validate.min.js +16 -0
  3277. data/promo/spec/test_app/public/javascripts/jsTree/jquery.jstree.js +3510 -0
  3278. data/promo/spec/test_app/public/javascripts/jsTree/themes/apple/bg.jpg +0 -0
  3279. data/promo/spec/test_app/public/javascripts/jsTree/themes/apple/d.png +0 -0
  3280. data/promo/spec/test_app/public/javascripts/jsTree/themes/apple/dot_for_ie.gif +0 -0
  3281. data/promo/spec/test_app/public/javascripts/jsTree/themes/apple/style.css +60 -0
  3282. data/promo/spec/test_app/public/javascripts/jsTree/themes/apple/throbber.gif +0 -0
  3283. data/promo/spec/test_app/public/javascripts/lang/af.js +40 -0
  3284. data/promo/spec/test_app/public/javascripts/lang/ar.js +50 -0
  3285. data/promo/spec/test_app/public/javascripts/lang/de.js +40 -0
  3286. data/promo/spec/test_app/public/javascripts/lang/du.js +40 -0
  3287. data/promo/spec/test_app/public/javascripts/lang/en.js +42 -0
  3288. data/promo/spec/test_app/public/javascripts/lang/es.js +41 -0
  3289. data/promo/spec/test_app/public/javascripts/lang/fi.js +40 -0
  3290. data/promo/spec/test_app/public/javascripts/lang/fr.js +44 -0
  3291. data/promo/spec/test_app/public/javascripts/lang/gr.js +40 -0
  3292. data/promo/spec/test_app/public/javascripts/lang/he.js +49 -0
  3293. data/promo/spec/test_app/public/javascripts/lang/it.js +13 -0
  3294. data/promo/spec/test_app/public/javascripts/lang/nl.js +40 -0
  3295. data/promo/spec/test_app/public/javascripts/lang/no.js +40 -0
  3296. data/promo/spec/test_app/public/javascripts/lang/pt.js +50 -0
  3297. data/promo/spec/test_app/public/javascripts/lang/ro.js +40 -0
  3298. data/promo/spec/test_app/public/javascripts/lang/ru.js +40 -0
  3299. data/promo/spec/test_app/public/javascripts/lang/sp.js +40 -0
  3300. data/promo/spec/test_app/public/javascripts/lang/sv.js +41 -0
  3301. data/promo/spec/test_app/public/javascripts/lang/ua.js +40 -0
  3302. data/promo/spec/test_app/public/javascripts/localization/messages_cn.js +24 -0
  3303. data/promo/spec/test_app/public/javascripts/localization/messages_cs.js +23 -0
  3304. data/promo/spec/test_app/public/javascripts/localization/messages_da.js +21 -0
  3305. data/promo/spec/test_app/public/javascripts/localization/messages_de.js +21 -0
  3306. data/promo/spec/test_app/public/javascripts/localization/messages_es.js +24 -0
  3307. data/promo/spec/test_app/public/javascripts/localization/messages_fr.js +23 -0
  3308. data/promo/spec/test_app/public/javascripts/localization/messages_hu.js +21 -0
  3309. data/promo/spec/test_app/public/javascripts/localization/messages_it.js +26 -0
  3310. data/promo/spec/test_app/public/javascripts/localization/messages_kk.js +23 -0
  3311. data/promo/spec/test_app/public/javascripts/localization/messages_nl.js +23 -0
  3312. data/promo/spec/test_app/public/javascripts/localization/messages_no.js +23 -0
  3313. data/promo/spec/test_app/public/javascripts/localization/messages_pl.js +23 -0
  3314. data/promo/spec/test_app/public/javascripts/localization/messages_ptbr.js +30 -0
  3315. data/promo/spec/test_app/public/javascripts/localization/messages_ro.js +24 -0
  3316. data/promo/spec/test_app/public/javascripts/localization/messages_ru.js +23 -0
  3317. data/promo/spec/test_app/public/javascripts/localization/messages_se.js +23 -0
  3318. data/promo/spec/test_app/public/javascripts/localization/messages_sk.js +21 -0
  3319. data/promo/spec/test_app/public/javascripts/localization/messages_tr.js +24 -0
  3320. data/promo/spec/test_app/public/javascripts/localization/messages_tw.js +24 -0
  3321. data/promo/spec/test_app/public/javascripts/localization/messages_ua.js +24 -0
  3322. data/promo/spec/test_app/public/javascripts/nested-attribute.js +26 -0
  3323. data/promo/spec/test_app/public/javascripts/open_id.js +15 -0
  3324. data/promo/spec/test_app/public/javascripts/product.js +49 -0
  3325. data/promo/spec/test_app/public/javascripts/rails.js +127 -0
  3326. data/promo/spec/test_app/public/javascripts/taxonomy.js +201 -0
  3327. data/promo/spec/test_app/public/javascripts/zone.js +39 -0
  3328. data/promo/spec/test_app/public/robots.txt +5 -0
  3329. data/promo/spec/test_app/public/stylesheets/admin/admin-forms.css +154 -0
  3330. data/promo/spec/test_app/public/stylesheets/admin/admin-reset.css +69 -0
  3331. data/promo/spec/test_app/public/stylesheets/admin/admin-tables.css +39 -0
  3332. data/promo/spec/test_app/public/stylesheets/admin/admin-typography.css +117 -0
  3333. data/promo/spec/test_app/public/stylesheets/admin/admin.css +614 -0
  3334. data/promo/spec/test_app/public/stylesheets/admin/autocomplete.css +73 -0
  3335. data/promo/spec/test_app/public/stylesheets/admin/dashboard.css +143 -0
  3336. data/promo/spec/test_app/public/stylesheets/admin/edit_checkouts.css +57 -0
  3337. data/promo/spec/test_app/public/stylesheets/admin/grids.css +314 -0
  3338. data/promo/spec/test_app/public/stylesheets/admin/promotions.css +54 -0
  3339. data/promo/spec/test_app/public/stylesheets/admin/reset-fonts-grids-2-6-0.css +7 -0
  3340. data/promo/spec/test_app/public/stylesheets/admin/token-input.css +109 -0
  3341. data/promo/spec/test_app/public/stylesheets/admin/yui-includes.css +14 -0
  3342. data/promo/spec/test_app/public/stylesheets/datepicker.css +263 -0
  3343. data/promo/spec/test_app/public/stylesheets/jquery.autocomplete.css +48 -0
  3344. data/promo/spec/test_app/public/stylesheets/screen.css +916 -0
  3345. data/promo/spec/test_app/script/rails +6 -0
  3346. data/sample/LICENSE +26 -0
  3347. data/sample/Rakefile +17 -0
  3348. data/sample/db/sample/addresses.yml +27 -0
  3349. data/sample/db/sample/adjustments.yml +24 -0
  3350. data/sample/db/sample/assets.yml +320 -0
  3351. data/sample/db/sample/assets/apache_baseball.png +0 -0
  3352. data/sample/db/sample/assets/ror_bag.jpeg +0 -0
  3353. data/sample/db/sample/assets/ror_baseball.jpeg +0 -0
  3354. data/sample/db/sample/assets/ror_baseball_back.jpeg +0 -0
  3355. data/sample/db/sample/assets/ror_baseball_jersey_back_blue.png +0 -0
  3356. data/sample/db/sample/assets/ror_baseball_jersey_back_green.png +0 -0
  3357. data/sample/db/sample/assets/ror_baseball_jersey_back_red.png +0 -0
  3358. data/sample/db/sample/assets/ror_baseball_jersey_blue.png +0 -0
  3359. data/sample/db/sample/assets/ror_baseball_jersey_green.png +0 -0
  3360. data/sample/db/sample/assets/ror_baseball_jersey_red.png +0 -0
  3361. data/sample/db/sample/assets/ror_jr_spaghetti.jpeg +0 -0
  3362. data/sample/db/sample/assets/ror_mug.jpeg +0 -0
  3363. data/sample/db/sample/assets/ror_mug_back.jpeg +0 -0
  3364. data/sample/db/sample/assets/ror_ringer.jpeg +0 -0
  3365. data/sample/db/sample/assets/ror_ringer_back.jpeg +0 -0
  3366. data/sample/db/sample/assets/ror_stein.jpeg +0 -0
  3367. data/sample/db/sample/assets/ror_stein_back.jpeg +0 -0
  3368. data/sample/db/sample/assets/ror_tote.jpeg +0 -0
  3369. data/sample/db/sample/assets/ror_tote_back.jpeg +0 -0
  3370. data/sample/db/sample/assets/ruby_baseball.png +0 -0
  3371. data/sample/db/sample/calculators.yml +16 -0
  3372. data/sample/db/sample/inventory_units.rb +4 -0
  3373. data/sample/db/sample/line_items.yml +40 -0
  3374. data/sample/db/sample/option_types.yml +8 -0
  3375. data/sample/db/sample/option_values.yml +35 -0
  3376. data/sample/db/sample/orders.yml +20 -0
  3377. data/sample/db/sample/payment_methods.yml +30 -0
  3378. data/sample/db/sample/payments.rb +25 -0
  3379. data/sample/db/sample/preferences.yml +20 -0
  3380. data/sample/db/sample/product_groups.yml +9 -0
  3381. data/sample/db/sample/product_option_types.yml +8 -0
  3382. data/sample/db/sample/product_properties.yml +136 -0
  3383. data/sample/db/sample/product_scopes.yml +35 -0
  3384. data/sample/db/sample/products.rb +15 -0
  3385. data/sample/db/sample/products.yml +53 -0
  3386. data/sample/db/sample/properties.yml +39 -0
  3387. data/sample/db/sample/prototypes.yml +9 -0
  3388. data/sample/db/sample/shipments.yml +8 -0
  3389. data/sample/db/sample/shipping_categories.yml +2 -0
  3390. data/sample/db/sample/shipping_methods.yml +9 -0
  3391. data/sample/db/sample/tax_categories.yml +6 -0
  3392. data/sample/db/sample/taxonomies.yml +4 -0
  3393. data/sample/db/sample/taxons.rb +3 -0
  3394. data/sample/db/sample/taxons.yml +91 -0
  3395. data/sample/db/sample/update_memberships.rb +1 -0
  3396. data/sample/db/sample/users.yml +8 -0
  3397. data/sample/db/sample/variants.yml +133 -0
  3398. data/sample/lib/spree_sample.rb +6 -0
  3399. data/sample/lib/tasks/install.rake +24 -0
  3400. data/sample/rfcommerce_sample.gemspec +26 -0
  3401. data/sample/sandbox_template.rb +4 -0
  3402. data/sandbox/Gemfile +39 -0
  3403. data/sandbox/Gemfile.lock +99 -0
  3404. data/sandbox/README +256 -0
  3405. data/sandbox/Rakefile +22 -0
  3406. data/sandbox/app/controllers/application_controller.rb +3 -0
  3407. data/sandbox/app/helpers/application_helper.rb +2 -0
  3408. data/sandbox/app/views/layouts/application.html.erb +14 -0
  3409. data/sandbox/config.ru +4 -0
  3410. data/sandbox/config/application.rb +45 -0
  3411. data/sandbox/config/boot.rb +6 -0
  3412. data/sandbox/config/database.yml +22 -0
  3413. data/sandbox/config/environment.rb +5 -0
  3414. data/sandbox/config/environments/development.rb +26 -0
  3415. data/sandbox/config/environments/production.rb +49 -0
  3416. data/sandbox/config/environments/test.rb +35 -0
  3417. data/sandbox/config/initializers/backtrace_silencers.rb +7 -0
  3418. data/sandbox/config/initializers/inflections.rb +10 -0
  3419. data/sandbox/config/initializers/mime_types.rb +5 -0
  3420. data/sandbox/config/initializers/secret_token.rb +7 -0
  3421. data/sandbox/config/initializers/session_store.rb +8 -0
  3422. data/sandbox/config/locales/en.yml +5 -0
  3423. data/sandbox/config/routes.rb +58 -0
  3424. data/sandbox/db/default/countries.yml +1583 -0
  3425. data/sandbox/db/default/roles.yml +7 -0
  3426. data/sandbox/db/default/states.yml +256 -0
  3427. data/sandbox/db/default/zone_members.yml +169 -0
  3428. data/sandbox/db/default/zones.yml +13 -0
  3429. data/sandbox/db/development.sqlite3 +0 -0
  3430. data/sandbox/db/migrate/20090823005402_spree_zero_nine_zero.rb +442 -0
  3431. data/sandbox/db/migrate/20090904192342_create_indexes_for_inventory_units.rb +12 -0
  3432. data/sandbox/db/migrate/20090923100315_add_count_on_hand_to_variants_and_products.rb +36 -0
  3433. data/sandbox/db/migrate/20091007134354_change_taxons_to_nested_set.rb +40 -0
  3434. data/sandbox/db/migrate/20091008091614_move_to_configurable_gateways.rb +55 -0
  3435. data/sandbox/db/migrate/20091012120519_product_groups_and_scopes.rb +25 -0
  3436. data/sandbox/db/migrate/20091015110842_add_open_id_authentication_tables.rb +20 -0
  3437. data/sandbox/db/migrate/20091015153048_add_openid_field_to_users.rb +19 -0
  3438. data/sandbox/db/migrate/20091016174634_change_preference_value_type.rb +10 -0
  3439. data/sandbox/db/migrate/20091017175558_create_billing_integrations.rb +16 -0
  3440. data/sandbox/db/migrate/20091021133257_charge_refactoring.rb +35 -0
  3441. data/sandbox/db/migrate/20091104151730_add_some_indexes.rb +21 -0
  3442. data/sandbox/db/migrate/20091126190904_checkout_state_machine.rb +13 -0
  3443. data/sandbox/db/migrate/20091209153045_state_for_shipments.rb +9 -0
  3444. data/sandbox/db/migrate/20091209202200_make_state_events_polymorphic.rb +12 -0
  3445. data/sandbox/db/migrate/20091211203813_ship_address_id_for_checkouts.rb +9 -0
  3446. data/sandbox/db/migrate/20091212161118_shipping_method_id_for_checkouts.rb +9 -0
  3447. data/sandbox/db/migrate/20091213222815_creditcard_last_four_digits.rb +19 -0
  3448. data/sandbox/db/migrate/20091214183826_populate_legacy_shipment_state.rb +19 -0
  3449. data/sandbox/db/migrate/20100105090147_add_cost_price.rb +9 -0
  3450. data/sandbox/db/migrate/20100105132138_shipment_id_for_inventory_units.rb +21 -0
  3451. data/sandbox/db/migrate/20100107141738_add_api_key_to_users.rb +9 -0
  3452. data/sandbox/db/migrate/20100111205525_cim_fields_for_creditcards.rb +11 -0
  3453. data/sandbox/db/migrate/20100112151511_create_return_authorizations.rb +16 -0
  3454. data/sandbox/db/migrate/20100113090919_add_return_authorization_to_inventory_units.rb +9 -0
  3455. data/sandbox/db/migrate/20100113203104_create_trackers.rb +14 -0
  3456. data/sandbox/db/migrate/20100121160010_creditcard_id_for_creditcard_txns.rb +9 -0
  3457. data/sandbox/db/migrate/20100121183934_original_creditcard_txn_id_for_creditcard_txns.rb +9 -0
  3458. data/sandbox/db/migrate/20100125145351_add_test_mode_to_billing_integration.rb +11 -0
  3459. data/sandbox/db/migrate/20100126103714_create_products_product_groups.rb +12 -0
  3460. data/sandbox/db/migrate/20100209025806_create_payment_methods.rb +20 -0
  3461. data/sandbox/db/migrate/20100209144531_polymorphic_payments.rb +29 -0
  3462. data/sandbox/db/migrate/20100213103131_change_payments_payment_method_to_belongs_to.rb +11 -0
  3463. data/sandbox/db/migrate/20100214212536_assign_creditcard_txns_to_payment.rb +16 -0
  3464. data/sandbox/db/migrate/20100223170312_sti_for_transactions.rb +14 -0
  3465. data/sandbox/db/migrate/20100223183812_drop_billing_integrations.rb +16 -0
  3466. data/sandbox/db/migrate/20100224153127_deleted_at_for_payment_methods.rb +13 -0
  3467. data/sandbox/db/migrate/20100301163454_add_adjustments_index.rb +10 -0
  3468. data/sandbox/db/migrate/20100306153445_fix_by_popularity.rb +8 -0
  3469. data/sandbox/db/migrate/20100317120946_add_alt_text_to_images.rb +9 -0
  3470. data/sandbox/db/migrate/20100419190933_rename_coupons_to_promotions.rb +10 -0
  3471. data/sandbox/db/migrate/20100419194457_fix_existing_coupon_credits.rb +9 -0
  3472. data/sandbox/db/migrate/20100426100726_create_promotion_rules.rb +24 -0
  3473. data/sandbox/db/migrate/20100427121301_add_display_to_payment_methods.rb +9 -0
  3474. data/sandbox/db/migrate/20100501084722_match_policy_for_promotions.rb +9 -0
  3475. data/sandbox/db/migrate/20100501095202_create_promotion_rules_users.rb +14 -0
  3476. data/sandbox/db/migrate/20100502163939_name_for_promotions.rb +9 -0
  3477. data/sandbox/db/migrate/20100504142133_add_addresses_checkouts_indexes.rb +16 -0
  3478. data/sandbox/db/migrate/20100506180619_add_icon_to_taxons.rb +18 -0
  3479. data/sandbox/db/migrate/20100506185838_add_description_to_taxons.rb +11 -0
  3480. data/sandbox/db/migrate/20100528155333_index_for_shipments_number.rb +9 -0
  3481. data/sandbox/db/migrate/20100528185820_add_index_on_users_persistence_token.rb +9 -0
  3482. data/sandbox/db/migrate/20100605152042_add_default_to_tax_categories.rb +9 -0
  3483. data/sandbox/db/migrate/20100624110730_add_display_to_shipping_methods.rb +9 -0
  3484. data/sandbox/db/migrate/20100624123336_rename_payment_method_display.rb +9 -0
  3485. data/sandbox/db/migrate/20100624175547_rename_preferences_field.rb +8 -0
  3486. data/sandbox/db/migrate/20100811163637_add_guest_flag.rb +13 -0
  3487. data/sandbox/db/migrate/20100811205836_drop_order_token.rb +11 -0
  3488. data/sandbox/db/migrate/20100812162326_payments_state_and_assigned_to_order_only.rb +11 -0
  3489. data/sandbox/db/migrate/20100813023502_create_address_keys_for_order.rb +15 -0
  3490. data/sandbox/db/migrate/20100813185745_payment_total_for_orders.rb +9 -0
  3491. data/sandbox/db/migrate/20100816212146_shipping_method_id_for_orders.rb +9 -0
  3492. data/sandbox/db/migrate/20100817152723_add_shipment_and_payment_state.rb +15 -0
  3493. data/sandbox/db/migrate/20100819170125_refactor_adjustments.rb +19 -0
  3494. data/sandbox/db/migrate/20100820135707_response_code_and_avs_response_for_payments.rb +11 -0
  3495. data/sandbox/db/migrate/20100901171814_change_guest_flag_to_anonymous.rb +13 -0
  3496. data/sandbox/db/migrate/20100903203949_email_for_orders.rb +9 -0
  3497. data/sandbox/db/migrate/20100923095305_update_calculable_type_for_promotions.rb +9 -0
  3498. data/sandbox/db/migrate/20100923162011_create_mail_methods.rb +12 -0
  3499. data/sandbox/db/migrate/20100929151905_rename_frozen_to_locked.rb +8 -0
  3500. data/sandbox/db/migrate/20101008190536_move_special_instructions_to_orders.rb +11 -0
  3501. data/sandbox/db/migrate/20101026184700_create_log_entries.rb +15 -0
  3502. data/sandbox/db/migrate/20101026184714_migrate_transactions_to_payment_state.rb +94 -0
  3503. data/sandbox/db/migrate/20101026184746_delete_in_progress_orders.rb +18 -0
  3504. data/sandbox/db/migrate/20101026184808_migrate_checkout_to_orders.rb +27 -0
  3505. data/sandbox/db/migrate/20101026184833_migrate_adjustments.rb +9 -0
  3506. data/sandbox/db/migrate/20101026184855_remove_shipped_state.rb +14 -0
  3507. data/sandbox/db/migrate/20101026184916_prevent_nil_payment_total.rb +8 -0
  3508. data/sandbox/db/migrate/20101026184932_prevent_nil_email.rb +9 -0
  3509. data/sandbox/db/migrate/20101026184950_rename_columns_for_devise.rb +39 -0
  3510. data/sandbox/db/migrate/20101026184959_generate_anonymous_users.rb +14 -0
  3511. data/sandbox/db/migrate/20101026185022_update_order_state.rb +8 -0
  3512. data/sandbox/db/migrate/20101026192225_cleanup_legacy_tables.rb +11 -0
  3513. data/sandbox/db/migrate/20101028151745_remove_number_and_cvv_from_credicard.rb +9 -0
  3514. data/sandbox/db/migrate/20101103212716_drop_anonymous_field_for_user.rb +8 -0
  3515. data/sandbox/db/migrate/20101111133551_renamed_rma_cancelled_state.rb +10 -0
  3516. data/sandbox/db/migrate/20101117031806_fix_problematic_index_names.rb +13 -0
  3517. data/sandbox/db/migrate/20101214150824_convert_user_remember_field.rb +11 -0
  3518. data/sandbox/db/migrate/20101217012656_create_tokenized_permissions.rb +18 -0
  3519. data/sandbox/db/migrate/20101219201531_tokens_for_legacy_orders.rb +12 -0
  3520. data/sandbox/db/migrate/20101223215658_add_position_to_variants.rb +9 -0
  3521. data/sandbox/db/migrate/20110110130847_add_next_state_to_state_events.rb +9 -0
  3522. data/sandbox/db/migrate/20110111122537_add_position_to_option_types.rb +9 -0
  3523. data/sandbox/db/migrate/20110314192118_remove_trailing_slashes_in_taxon_permalinks.rb +17 -0
  3524. data/sandbox/db/sample/addresses.yml +27 -0
  3525. data/sandbox/db/sample/adjustments.yml +24 -0
  3526. data/sandbox/db/sample/assets.yml +320 -0
  3527. data/sandbox/db/sample/assets/apache_baseball.png +0 -0
  3528. data/sandbox/db/sample/assets/ror_bag.jpeg +0 -0
  3529. data/sandbox/db/sample/assets/ror_baseball.jpeg +0 -0
  3530. data/sandbox/db/sample/assets/ror_baseball_back.jpeg +0 -0
  3531. data/sandbox/db/sample/assets/ror_baseball_jersey_back_blue.png +0 -0
  3532. data/sandbox/db/sample/assets/ror_baseball_jersey_back_green.png +0 -0
  3533. data/sandbox/db/sample/assets/ror_baseball_jersey_back_red.png +0 -0
  3534. data/sandbox/db/sample/assets/ror_baseball_jersey_blue.png +0 -0
  3535. data/sandbox/db/sample/assets/ror_baseball_jersey_green.png +0 -0
  3536. data/sandbox/db/sample/assets/ror_baseball_jersey_red.png +0 -0
  3537. data/sandbox/db/sample/assets/ror_jr_spaghetti.jpeg +0 -0
  3538. data/sandbox/db/sample/assets/ror_mug.jpeg +0 -0
  3539. data/sandbox/db/sample/assets/ror_mug_back.jpeg +0 -0
  3540. data/sandbox/db/sample/assets/ror_ringer.jpeg +0 -0
  3541. data/sandbox/db/sample/assets/ror_ringer_back.jpeg +0 -0
  3542. data/sandbox/db/sample/assets/ror_stein.jpeg +0 -0
  3543. data/sandbox/db/sample/assets/ror_stein_back.jpeg +0 -0
  3544. data/sandbox/db/sample/assets/ror_tote.jpeg +0 -0
  3545. data/sandbox/db/sample/assets/ror_tote_back.jpeg +0 -0
  3546. data/sandbox/db/sample/assets/ruby_baseball.png +0 -0
  3547. data/sandbox/db/sample/calculators.yml +16 -0
  3548. data/sandbox/db/sample/inventory_units.rb +4 -0
  3549. data/sandbox/db/sample/line_items.yml +40 -0
  3550. data/sandbox/db/sample/option_types.yml +8 -0
  3551. data/sandbox/db/sample/option_values.yml +35 -0
  3552. data/sandbox/db/sample/orders.yml +20 -0
  3553. data/sandbox/db/sample/payment_methods.yml +30 -0
  3554. data/sandbox/db/sample/payments.rb +25 -0
  3555. data/sandbox/db/sample/preferences.yml +20 -0
  3556. data/sandbox/db/sample/product_groups.yml +9 -0
  3557. data/sandbox/db/sample/product_option_types.yml +8 -0
  3558. data/sandbox/db/sample/product_properties.yml +136 -0
  3559. data/sandbox/db/sample/product_scopes.yml +35 -0
  3560. data/sandbox/db/sample/products.rb +15 -0
  3561. data/sandbox/db/sample/products.yml +53 -0
  3562. data/sandbox/db/sample/properties.yml +39 -0
  3563. data/sandbox/db/sample/prototypes.yml +9 -0
  3564. data/sandbox/db/sample/shipments.yml +8 -0
  3565. data/sandbox/db/sample/shipping_categories.yml +2 -0
  3566. data/sandbox/db/sample/shipping_methods.yml +9 -0
  3567. data/sandbox/db/sample/tax_categories.yml +6 -0
  3568. data/sandbox/db/sample/taxonomies.yml +4 -0
  3569. data/sandbox/db/sample/taxons.rb +3 -0
  3570. data/sandbox/db/sample/taxons.yml +91 -0
  3571. data/sandbox/db/sample/update_memberships.rb +1 -0
  3572. data/sandbox/db/sample/users.rb +53 -0
  3573. data/sandbox/db/sample/users.yml +8 -0
  3574. data/sandbox/db/sample/variants.yml +133 -0
  3575. data/sandbox/db/schema.rb +572 -0
  3576. data/sandbox/db/seeds.rb +3 -0
  3577. data/sandbox/doc/README_FOR_APP +2 -0
  3578. data/sandbox/lib/spree_site.rb +12 -0
  3579. data/sandbox/log/development.log +8406 -0
  3580. data/sandbox/log/production.log +0 -0
  3581. data/sandbox/log/server.log +0 -0
  3582. data/sandbox/log/test.log +0 -0
  3583. data/sandbox/public/404.html +26 -0
  3584. data/sandbox/public/422.html +26 -0
  3585. data/sandbox/public/500.html +26 -0
  3586. data/sandbox/public/assets/products/1/large/ror_tote.jpeg +0 -0
  3587. data/sandbox/public/assets/products/1/mini/ror_tote.jpeg +0 -0
  3588. data/sandbox/public/assets/products/1/original/ror_tote.jpeg +0 -0
  3589. data/sandbox/public/assets/products/1/product/ror_tote.jpeg +0 -0
  3590. data/sandbox/public/assets/products/1/small/ror_tote.jpeg +0 -0
  3591. data/sandbox/public/assets/products/10/large/ror_ringer_back.jpeg +0 -0
  3592. data/sandbox/public/assets/products/10/mini/ror_ringer_back.jpeg +0 -0
  3593. data/sandbox/public/assets/products/10/original/ror_ringer_back.jpeg +0 -0
  3594. data/sandbox/public/assets/products/10/product/ror_ringer_back.jpeg +0 -0
  3595. data/sandbox/public/assets/products/10/small/ror_ringer_back.jpeg +0 -0
  3596. data/sandbox/public/assets/products/1004/large/apache_baseball.png +0 -0
  3597. data/sandbox/public/assets/products/1004/mini/apache_baseball.png +0 -0
  3598. data/sandbox/public/assets/products/1004/original/apache_baseball.png +0 -0
  3599. data/sandbox/public/assets/products/1004/product/apache_baseball.png +0 -0
  3600. data/sandbox/public/assets/products/1004/small/apache_baseball.png +0 -0
  3601. data/sandbox/public/assets/products/1008/large/ruby_baseball.png +0 -0
  3602. data/sandbox/public/assets/products/1008/mini/ruby_baseball.png +0 -0
  3603. data/sandbox/public/assets/products/1008/original/ruby_baseball.png +0 -0
  3604. data/sandbox/public/assets/products/1008/product/ruby_baseball.png +0 -0
  3605. data/sandbox/public/assets/products/1008/small/ruby_baseball.png +0 -0
  3606. data/sandbox/public/assets/products/1009/large/ror_baseball_jersey_green.png +0 -0
  3607. data/sandbox/public/assets/products/1009/mini/ror_baseball_jersey_green.png +0 -0
  3608. data/sandbox/public/assets/products/1009/original/ror_baseball_jersey_green.png +0 -0
  3609. data/sandbox/public/assets/products/1009/product/ror_baseball_jersey_green.png +0 -0
  3610. data/sandbox/public/assets/products/1009/small/ror_baseball_jersey_green.png +0 -0
  3611. data/sandbox/public/assets/products/1010/large/ror_baseball_jersey_back_green.png +0 -0
  3612. data/sandbox/public/assets/products/1010/mini/ror_baseball_jersey_back_green.png +0 -0
  3613. data/sandbox/public/assets/products/1010/original/ror_baseball_jersey_back_green.png +0 -0
  3614. data/sandbox/public/assets/products/1010/product/ror_baseball_jersey_back_green.png +0 -0
  3615. data/sandbox/public/assets/products/1010/small/ror_baseball_jersey_back_green.png +0 -0
  3616. data/sandbox/public/assets/products/1011/large/ror_baseball_jersey_green.png +0 -0
  3617. data/sandbox/public/assets/products/1011/mini/ror_baseball_jersey_green.png +0 -0
  3618. data/sandbox/public/assets/products/1011/original/ror_baseball_jersey_green.png +0 -0
  3619. data/sandbox/public/assets/products/1011/product/ror_baseball_jersey_green.png +0 -0
  3620. data/sandbox/public/assets/products/1011/small/ror_baseball_jersey_green.png +0 -0
  3621. data/sandbox/public/assets/products/1012/large/ror_baseball_jersey_back_green.png +0 -0
  3622. data/sandbox/public/assets/products/1012/mini/ror_baseball_jersey_back_green.png +0 -0
  3623. data/sandbox/public/assets/products/1012/original/ror_baseball_jersey_back_green.png +0 -0
  3624. data/sandbox/public/assets/products/1012/product/ror_baseball_jersey_back_green.png +0 -0
  3625. data/sandbox/public/assets/products/1012/small/ror_baseball_jersey_back_green.png +0 -0
  3626. data/sandbox/public/assets/products/1013/large/ror_baseball_jersey_green.png +0 -0
  3627. data/sandbox/public/assets/products/1013/mini/ror_baseball_jersey_green.png +0 -0
  3628. data/sandbox/public/assets/products/1013/original/ror_baseball_jersey_green.png +0 -0
  3629. data/sandbox/public/assets/products/1013/product/ror_baseball_jersey_green.png +0 -0
  3630. data/sandbox/public/assets/products/1013/small/ror_baseball_jersey_green.png +0 -0
  3631. data/sandbox/public/assets/products/1014/large/ror_baseball_jersey_back_green.png +0 -0
  3632. data/sandbox/public/assets/products/1014/mini/ror_baseball_jersey_back_green.png +0 -0
  3633. data/sandbox/public/assets/products/1014/original/ror_baseball_jersey_back_green.png +0 -0
  3634. data/sandbox/public/assets/products/1014/product/ror_baseball_jersey_back_green.png +0 -0
  3635. data/sandbox/public/assets/products/1014/small/ror_baseball_jersey_back_green.png +0 -0
  3636. data/sandbox/public/assets/products/1015/large/ror_baseball_jersey_blue.png +0 -0
  3637. data/sandbox/public/assets/products/1015/mini/ror_baseball_jersey_blue.png +0 -0
  3638. data/sandbox/public/assets/products/1015/original/ror_baseball_jersey_blue.png +0 -0
  3639. data/sandbox/public/assets/products/1015/product/ror_baseball_jersey_blue.png +0 -0
  3640. data/sandbox/public/assets/products/1015/small/ror_baseball_jersey_blue.png +0 -0
  3641. data/sandbox/public/assets/products/1016/large/ror_baseball_jersey_back_blue.png +0 -0
  3642. data/sandbox/public/assets/products/1016/mini/ror_baseball_jersey_back_blue.png +0 -0
  3643. data/sandbox/public/assets/products/1016/original/ror_baseball_jersey_back_blue.png +0 -0
  3644. data/sandbox/public/assets/products/1016/product/ror_baseball_jersey_back_blue.png +0 -0
  3645. data/sandbox/public/assets/products/1016/small/ror_baseball_jersey_back_blue.png +0 -0
  3646. data/sandbox/public/assets/products/1017/large/ror_baseball_jersey_blue.png +0 -0
  3647. data/sandbox/public/assets/products/1017/mini/ror_baseball_jersey_blue.png +0 -0
  3648. data/sandbox/public/assets/products/1017/original/ror_baseball_jersey_blue.png +0 -0
  3649. data/sandbox/public/assets/products/1017/product/ror_baseball_jersey_blue.png +0 -0
  3650. data/sandbox/public/assets/products/1017/small/ror_baseball_jersey_blue.png +0 -0
  3651. data/sandbox/public/assets/products/1018/large/ror_baseball_jersey_back_blue.png +0 -0
  3652. data/sandbox/public/assets/products/1018/mini/ror_baseball_jersey_back_blue.png +0 -0
  3653. data/sandbox/public/assets/products/1018/original/ror_baseball_jersey_back_blue.png +0 -0
  3654. data/sandbox/public/assets/products/1018/product/ror_baseball_jersey_back_blue.png +0 -0
  3655. data/sandbox/public/assets/products/1018/small/ror_baseball_jersey_back_blue.png +0 -0
  3656. data/sandbox/public/assets/products/1019/large/ror_baseball_jersey_blue.png +0 -0
  3657. data/sandbox/public/assets/products/1019/mini/ror_baseball_jersey_blue.png +0 -0
  3658. data/sandbox/public/assets/products/1019/original/ror_baseball_jersey_blue.png +0 -0
  3659. data/sandbox/public/assets/products/1019/product/ror_baseball_jersey_blue.png +0 -0
  3660. data/sandbox/public/assets/products/1019/small/ror_baseball_jersey_blue.png +0 -0
  3661. data/sandbox/public/assets/products/1020/large/ror_baseball_jersey_back_blue.png +0 -0
  3662. data/sandbox/public/assets/products/1020/mini/ror_baseball_jersey_back_blue.png +0 -0
  3663. data/sandbox/public/assets/products/1020/original/ror_baseball_jersey_back_blue.png +0 -0
  3664. data/sandbox/public/assets/products/1020/product/ror_baseball_jersey_back_blue.png +0 -0
  3665. data/sandbox/public/assets/products/1020/small/ror_baseball_jersey_back_blue.png +0 -0
  3666. data/sandbox/public/assets/products/1021/large/ror_baseball_jersey_red.png +0 -0
  3667. data/sandbox/public/assets/products/1021/mini/ror_baseball_jersey_red.png +0 -0
  3668. data/sandbox/public/assets/products/1021/original/ror_baseball_jersey_red.png +0 -0
  3669. data/sandbox/public/assets/products/1021/product/ror_baseball_jersey_red.png +0 -0
  3670. data/sandbox/public/assets/products/1021/small/ror_baseball_jersey_red.png +0 -0
  3671. data/sandbox/public/assets/products/1022/large/ror_baseball_jersey_back_red.png +0 -0
  3672. data/sandbox/public/assets/products/1022/mini/ror_baseball_jersey_back_red.png +0 -0
  3673. data/sandbox/public/assets/products/1022/original/ror_baseball_jersey_back_red.png +0 -0
  3674. data/sandbox/public/assets/products/1022/product/ror_baseball_jersey_back_red.png +0 -0
  3675. data/sandbox/public/assets/products/1022/small/ror_baseball_jersey_back_red.png +0 -0
  3676. data/sandbox/public/assets/products/1023/large/ror_baseball_jersey_red.png +0 -0
  3677. data/sandbox/public/assets/products/1023/mini/ror_baseball_jersey_red.png +0 -0
  3678. data/sandbox/public/assets/products/1023/original/ror_baseball_jersey_red.png +0 -0
  3679. data/sandbox/public/assets/products/1023/product/ror_baseball_jersey_red.png +0 -0
  3680. data/sandbox/public/assets/products/1023/small/ror_baseball_jersey_red.png +0 -0
  3681. data/sandbox/public/assets/products/1024/large/ror_baseball_jersey_back_red.png +0 -0
  3682. data/sandbox/public/assets/products/1024/mini/ror_baseball_jersey_back_red.png +0 -0
  3683. data/sandbox/public/assets/products/1024/original/ror_baseball_jersey_back_red.png +0 -0
  3684. data/sandbox/public/assets/products/1024/product/ror_baseball_jersey_back_red.png +0 -0
  3685. data/sandbox/public/assets/products/1024/small/ror_baseball_jersey_back_red.png +0 -0
  3686. data/sandbox/public/assets/products/1025/large/ror_baseball_jersey_red.png +0 -0
  3687. data/sandbox/public/assets/products/1025/mini/ror_baseball_jersey_red.png +0 -0
  3688. data/sandbox/public/assets/products/1025/original/ror_baseball_jersey_red.png +0 -0
  3689. data/sandbox/public/assets/products/1025/product/ror_baseball_jersey_red.png +0 -0
  3690. data/sandbox/public/assets/products/1025/small/ror_baseball_jersey_red.png +0 -0
  3691. data/sandbox/public/assets/products/1026/large/ror_baseball_jersey_back_red.png +0 -0
  3692. data/sandbox/public/assets/products/1026/mini/ror_baseball_jersey_back_red.png +0 -0
  3693. data/sandbox/public/assets/products/1026/original/ror_baseball_jersey_back_red.png +0 -0
  3694. data/sandbox/public/assets/products/1026/product/ror_baseball_jersey_back_red.png +0 -0
  3695. data/sandbox/public/assets/products/1026/small/ror_baseball_jersey_back_red.png +0 -0
  3696. data/sandbox/public/assets/products/11/large/ror_stein.jpeg +0 -0
  3697. data/sandbox/public/assets/products/11/mini/ror_stein.jpeg +0 -0
  3698. data/sandbox/public/assets/products/11/original/ror_stein.jpeg +0 -0
  3699. data/sandbox/public/assets/products/11/product/ror_stein.jpeg +0 -0
  3700. data/sandbox/public/assets/products/11/small/ror_stein.jpeg +0 -0
  3701. data/sandbox/public/assets/products/12/large/ror_stein_back.jpeg +0 -0
  3702. data/sandbox/public/assets/products/12/mini/ror_stein_back.jpeg +0 -0
  3703. data/sandbox/public/assets/products/12/original/ror_stein_back.jpeg +0 -0
  3704. data/sandbox/public/assets/products/12/product/ror_stein_back.jpeg +0 -0
  3705. data/sandbox/public/assets/products/12/small/ror_stein_back.jpeg +0 -0
  3706. data/sandbox/public/assets/products/2/large/ror_tote_back.jpeg +0 -0
  3707. data/sandbox/public/assets/products/2/mini/ror_tote_back.jpeg +0 -0
  3708. data/sandbox/public/assets/products/2/original/ror_tote_back.jpeg +0 -0
  3709. data/sandbox/public/assets/products/2/product/ror_tote_back.jpeg +0 -0
  3710. data/sandbox/public/assets/products/2/small/ror_tote_back.jpeg +0 -0
  3711. data/sandbox/public/assets/products/3/large/ror_bag.jpeg +0 -0
  3712. data/sandbox/public/assets/products/3/mini/ror_bag.jpeg +0 -0
  3713. data/sandbox/public/assets/products/3/original/ror_bag.jpeg +0 -0
  3714. data/sandbox/public/assets/products/3/product/ror_bag.jpeg +0 -0
  3715. data/sandbox/public/assets/products/3/small/ror_bag.jpeg +0 -0
  3716. data/sandbox/public/assets/products/4/large/ror_baseball.jpeg +0 -0
  3717. data/sandbox/public/assets/products/4/mini/ror_baseball.jpeg +0 -0
  3718. data/sandbox/public/assets/products/4/original/ror_baseball.jpeg +0 -0
  3719. data/sandbox/public/assets/products/4/product/ror_baseball.jpeg +0 -0
  3720. data/sandbox/public/assets/products/4/small/ror_baseball.jpeg +0 -0
  3721. data/sandbox/public/assets/products/5/large/ror_baseball_back.jpeg +0 -0
  3722. data/sandbox/public/assets/products/5/mini/ror_baseball_back.jpeg +0 -0
  3723. data/sandbox/public/assets/products/5/original/ror_baseball_back.jpeg +0 -0
  3724. data/sandbox/public/assets/products/5/product/ror_baseball_back.jpeg +0 -0
  3725. data/sandbox/public/assets/products/5/small/ror_baseball_back.jpeg +0 -0
  3726. data/sandbox/public/assets/products/6/large/ror_jr_spaghetti.jpeg +0 -0
  3727. data/sandbox/public/assets/products/6/mini/ror_jr_spaghetti.jpeg +0 -0
  3728. data/sandbox/public/assets/products/6/original/ror_jr_spaghetti.jpeg +0 -0
  3729. data/sandbox/public/assets/products/6/product/ror_jr_spaghetti.jpeg +0 -0
  3730. data/sandbox/public/assets/products/6/small/ror_jr_spaghetti.jpeg +0 -0
  3731. data/sandbox/public/assets/products/7/large/ror_mug.jpeg +0 -0
  3732. data/sandbox/public/assets/products/7/mini/ror_mug.jpeg +0 -0
  3733. data/sandbox/public/assets/products/7/original/ror_mug.jpeg +0 -0
  3734. data/sandbox/public/assets/products/7/product/ror_mug.jpeg +0 -0
  3735. data/sandbox/public/assets/products/7/small/ror_mug.jpeg +0 -0
  3736. data/sandbox/public/assets/products/8/large/ror_mug_back.jpeg +0 -0
  3737. data/sandbox/public/assets/products/8/mini/ror_mug_back.jpeg +0 -0
  3738. data/sandbox/public/assets/products/8/original/ror_mug_back.jpeg +0 -0
  3739. data/sandbox/public/assets/products/8/product/ror_mug_back.jpeg +0 -0
  3740. data/sandbox/public/assets/products/8/small/ror_mug_back.jpeg +0 -0
  3741. data/sandbox/public/assets/products/9/large/ror_ringer.jpeg +0 -0
  3742. data/sandbox/public/assets/products/9/mini/ror_ringer.jpeg +0 -0
  3743. data/sandbox/public/assets/products/9/original/ror_ringer.jpeg +0 -0
  3744. data/sandbox/public/assets/products/9/product/ror_ringer.jpeg +0 -0
  3745. data/sandbox/public/assets/products/9/small/ror_ringer.jpeg +0 -0
  3746. data/sandbox/public/favicon.ico +0 -0
  3747. data/sandbox/public/images/add-to-cart.png +0 -0
  3748. data/sandbox/public/images/admin/bg/active-tab.png +0 -0
  3749. data/sandbox/public/images/admin/bg/admin_tab_back.png +0 -0
  3750. data/sandbox/public/images/admin/bg/admin_tab_selected_back.png +0 -0
  3751. data/sandbox/public/images/admin/bg/content-back-blue.png +0 -0
  3752. data/sandbox/public/images/admin/bg/content-back-green.png +0 -0
  3753. data/sandbox/public/images/admin/bg/content-back.png +0 -0
  3754. data/sandbox/public/images/admin/bg/flash-error.png +0 -0
  3755. data/sandbox/public/images/admin/bg/flash-notice.png +0 -0
  3756. data/sandbox/public/images/admin/bg/green-stripes.gif +0 -0
  3757. data/sandbox/public/images/admin/bg/green-stripes.png +0 -0
  3758. data/sandbox/public/images/admin/bg/grid_header_back.png +0 -0
  3759. data/sandbox/public/images/admin/bg/grid_header_back_green.png +0 -0
  3760. data/sandbox/public/images/admin/bg/header-bg.png +0 -0
  3761. data/sandbox/public/images/admin/bg/header.png +0 -0
  3762. data/sandbox/public/images/admin/bg/header_bg.jpg +0 -0
  3763. data/sandbox/public/images/admin/bg/menu-current.png +0 -0
  3764. data/sandbox/public/images/admin/bg/red-stripes.gif +0 -0
  3765. data/sandbox/public/images/admin/bg/red-stripes.png +0 -0
  3766. data/sandbox/public/images/admin/bg/spree_50.png +0 -0
  3767. data/sandbox/public/images/admin/bg/subnav-divider.png +0 -0
  3768. data/sandbox/public/images/admin/bg/subnav.png +0 -0
  3769. data/sandbox/public/images/admin/bg/tab-back.png +0 -0
  3770. data/sandbox/public/images/admin/buttons/blue/left_01.png +0 -0
  3771. data/sandbox/public/images/admin/buttons/blue/right_01.png +0 -0
  3772. data/sandbox/public/images/admin/buttons/drag-handle-green.png +0 -0
  3773. data/sandbox/public/images/admin/buttons/green/left_01.png +0 -0
  3774. data/sandbox/public/images/admin/buttons/green/right_01.png +0 -0
  3775. data/sandbox/public/images/admin/buttons/left_01.png +0 -0
  3776. data/sandbox/public/images/admin/buttons/left_01_small.png +0 -0
  3777. data/sandbox/public/images/admin/buttons/orange/left_03.png +0 -0
  3778. data/sandbox/public/images/admin/buttons/orange/right_03.png +0 -0
  3779. data/sandbox/public/images/admin/buttons/right_01.png +0 -0
  3780. data/sandbox/public/images/admin/buttons/right_01_small.png +0 -0
  3781. data/sandbox/public/images/admin/icons/16x16/1.png +0 -0
  3782. data/sandbox/public/images/admin/icons/16x16/10.png +0 -0
  3783. data/sandbox/public/images/admin/icons/16x16/2.png +0 -0
  3784. data/sandbox/public/images/admin/icons/16x16/3.png +0 -0
  3785. data/sandbox/public/images/admin/icons/16x16/4.png +0 -0
  3786. data/sandbox/public/images/admin/icons/16x16/5.png +0 -0
  3787. data/sandbox/public/images/admin/icons/16x16/6.png +0 -0
  3788. data/sandbox/public/images/admin/icons/16x16/7.png +0 -0
  3789. data/sandbox/public/images/admin/icons/16x16/8.png +0 -0
  3790. data/sandbox/public/images/admin/icons/16x16/9.png +0 -0
  3791. data/sandbox/public/images/admin/icons/32x32/1.png +0 -0
  3792. data/sandbox/public/images/admin/icons/32x32/10.png +0 -0
  3793. data/sandbox/public/images/admin/icons/32x32/11.png +0 -0
  3794. data/sandbox/public/images/admin/icons/32x32/2.png +0 -0
  3795. data/sandbox/public/images/admin/icons/32x32/3.png +0 -0
  3796. data/sandbox/public/images/admin/icons/32x32/4.png +0 -0
  3797. data/sandbox/public/images/admin/icons/32x32/5.png +0 -0
  3798. data/sandbox/public/images/admin/icons/32x32/6.png +0 -0
  3799. data/sandbox/public/images/admin/icons/32x32/7.png +0 -0
  3800. data/sandbox/public/images/admin/icons/32x32/8.png +0 -0
  3801. data/sandbox/public/images/admin/icons/32x32/9.png +0 -0
  3802. data/sandbox/public/images/admin/icons/accept.png +0 -0
  3803. data/sandbox/public/images/admin/icons/add.gif +0 -0
  3804. data/sandbox/public/images/admin/icons/add.png +0 -0
  3805. data/sandbox/public/images/admin/icons/arrow-down.gif +0 -0
  3806. data/sandbox/public/images/admin/icons/cross.png +0 -0
  3807. data/sandbox/public/images/admin/icons/delete.gif +0 -0
  3808. data/sandbox/public/images/admin/icons/delete.png +0 -0
  3809. data/sandbox/public/images/admin/icons/drag.gif +0 -0
  3810. data/sandbox/public/images/admin/icons/edit.gif +0 -0
  3811. data/sandbox/public/images/admin/icons/edit.png +0 -0
  3812. data/sandbox/public/images/admin/icons/email.png +0 -0
  3813. data/sandbox/public/images/admin/icons/error.png +0 -0
  3814. data/sandbox/public/images/admin/icons/exclamation.png +0 -0
  3815. data/sandbox/public/images/admin/icons/feed.png +0 -0
  3816. data/sandbox/public/images/admin/icons/pdf.png +0 -0
  3817. data/sandbox/public/images/admin/icons/reorder.gif +0 -0
  3818. data/sandbox/public/images/admin/icons/search.gif +0 -0
  3819. data/sandbox/public/images/admin/icons/send-email.png +0 -0
  3820. data/sandbox/public/images/admin/icons/stop.png +0 -0
  3821. data/sandbox/public/images/admin/icons/tick.png +0 -0
  3822. data/sandbox/public/images/admin/icons/up.gif +0 -0
  3823. data/sandbox/public/images/admin/icons/xls.png +0 -0
  3824. data/sandbox/public/images/admin/tabs/off-left.png +0 -0
  3825. data/sandbox/public/images/admin/tabs/off-right.png +0 -0
  3826. data/sandbox/public/images/admin/tabs/on-left.png +0 -0
  3827. data/sandbox/public/images/admin/tabs/on-right.png +0 -0
  3828. data/sandbox/public/images/ajax_loader.gif +0 -0
  3829. data/sandbox/public/images/amex_cid.gif +0 -0
  3830. data/sandbox/public/images/bg-button-hover.png +0 -0
  3831. data/sandbox/public/images/bg-button-pressed.png +0 -0
  3832. data/sandbox/public/images/bg-button.gif +0 -0
  3833. data/sandbox/public/images/bg-button.png +0 -0
  3834. data/sandbox/public/images/blue/left_01.png +0 -0
  3835. data/sandbox/public/images/blue/right_01.png +0 -0
  3836. data/sandbox/public/images/body-back.png +0 -0
  3837. data/sandbox/public/images/bottom_shine.png +0 -0
  3838. data/sandbox/public/images/breadcrumb.gif +0 -0
  3839. data/sandbox/public/images/button-dark-hover.png +0 -0
  3840. data/sandbox/public/images/button-dark.png +0 -0
  3841. data/sandbox/public/images/buttons/bg-button-hover.png +0 -0
  3842. data/sandbox/public/images/buttons/bg-button-pressed.png +0 -0
  3843. data/sandbox/public/images/buttons/bg-button.gif +0 -0
  3844. data/sandbox/public/images/buttons/bg-button.png +0 -0
  3845. data/sandbox/public/images/buttons/blue/left_01.png +0 -0
  3846. data/sandbox/public/images/buttons/blue/right_01.png +0 -0
  3847. data/sandbox/public/images/buttons/button-dark-hover.png +0 -0
  3848. data/sandbox/public/images/buttons/button-dark.png +0 -0
  3849. data/sandbox/public/images/buttons/drag-handle-green.png +0 -0
  3850. data/sandbox/public/images/buttons/green/left_01.png +0 -0
  3851. data/sandbox/public/images/buttons/green/right_01.png +0 -0
  3852. data/sandbox/public/images/buttons/left_01.png +0 -0
  3853. data/sandbox/public/images/buttons/left_01_small.png +0 -0
  3854. data/sandbox/public/images/buttons/orange/left_03.png +0 -0
  3855. data/sandbox/public/images/buttons/orange/right_03.png +0 -0
  3856. data/sandbox/public/images/buttons/right_01.png +0 -0
  3857. data/sandbox/public/images/buttons/right_01_small.png +0 -0
  3858. data/sandbox/public/images/buttons/sxsw-ribbon-v1.png +0 -0
  3859. data/sandbox/public/images/buttons/top-shine.png +0 -0
  3860. data/sandbox/public/images/calendar_date_select/calendar.gif +0 -0
  3861. data/sandbox/public/images/cart-empty.png +0 -0
  3862. data/sandbox/public/images/cart-empty_x32.png +0 -0
  3863. data/sandbox/public/images/cart-full.png +0 -0
  3864. data/sandbox/public/images/cart-full_x32.png +0 -0
  3865. data/sandbox/public/images/checkout.png +0 -0
  3866. data/sandbox/public/images/creditcard.gif +0 -0
  3867. data/sandbox/public/images/datepicker/backstripes.gif +0 -0
  3868. data/sandbox/public/images/datepicker/bg_header.jpg +0 -0
  3869. data/sandbox/public/images/datepicker/bullet1.gif +0 -0
  3870. data/sandbox/public/images/datepicker/bullet2.gif +0 -0
  3871. data/sandbox/public/images/datepicker/cal.gif +0 -0
  3872. data/sandbox/public/images/datepicker/gradient-e5e5e5-ffffff.gif +0 -0
  3873. data/sandbox/public/images/discover_cid.gif +0 -0
  3874. data/sandbox/public/images/drag-handle-green.png +0 -0
  3875. data/sandbox/public/images/favicon.ico +0 -0
  3876. data/sandbox/public/images/green/left_01.png +0 -0
  3877. data/sandbox/public/images/green/right_01.png +0 -0
  3878. data/sandbox/public/images/grid.png +0 -0
  3879. data/sandbox/public/images/left_01.png +0 -0
  3880. data/sandbox/public/images/left_01_small.png +0 -0
  3881. data/sandbox/public/images/master_cid.jpg +0 -0
  3882. data/sandbox/public/images/menu-current.png +0 -0
  3883. data/sandbox/public/images/menu-hover.png +0 -0
  3884. data/sandbox/public/images/noimage/mini.jpg +0 -0
  3885. data/sandbox/public/images/noimage/product.jpg +0 -0
  3886. data/sandbox/public/images/noimage/small.jpg +0 -0
  3887. data/sandbox/public/images/openid-inputicon.gif +0 -0
  3888. data/sandbox/public/images/orange/left_03.png +0 -0
  3889. data/sandbox/public/images/orange/right_03.png +0 -0
  3890. data/sandbox/public/images/progress.gif +0 -0
  3891. data/sandbox/public/images/rails.png +0 -0
  3892. data/sandbox/public/images/reorder.jpg +0 -0
  3893. data/sandbox/public/images/right_01.png +0 -0
  3894. data/sandbox/public/images/right_01_small.png +0 -0
  3895. data/sandbox/public/images/separator.png +0 -0
  3896. data/sandbox/public/images/shadow-top.png +0 -0
  3897. data/sandbox/public/images/shadow_top.png +0 -0
  3898. data/sandbox/public/images/spinner.gif +0 -0
  3899. data/sandbox/public/images/spree.jpg +0 -0
  3900. data/sandbox/public/images/spree/progress.gif +0 -0
  3901. data/sandbox/public/images/spree/spinner.gif +0 -0
  3902. data/sandbox/public/images/spree/spree.jpg +0 -0
  3903. data/sandbox/public/images/step-progress/completed-completed.gif +0 -0
  3904. data/sandbox/public/images/step-progress/completed-current.gif +0 -0
  3905. data/sandbox/public/images/step-progress/completed-first.gif +0 -0
  3906. data/sandbox/public/images/step-progress/current-first.gif +0 -0
  3907. data/sandbox/public/images/step-progress/current-incomplete.gif +0 -0
  3908. data/sandbox/public/images/step-progress/current-right.gif +0 -0
  3909. data/sandbox/public/images/step-progress/incomplete-incomplete.gif +0 -0
  3910. data/sandbox/public/images/step-progress/incomplete-right.gif +0 -0
  3911. data/sandbox/public/images/steps/1.png +0 -0
  3912. data/sandbox/public/images/steps/1_small.png +0 -0
  3913. data/sandbox/public/images/steps/2.png +0 -0
  3914. data/sandbox/public/images/steps/2_small.png +0 -0
  3915. data/sandbox/public/images/steps/3.png +0 -0
  3916. data/sandbox/public/images/steps/3_small.png +0 -0
  3917. data/sandbox/public/images/steps/4.png +0 -0
  3918. data/sandbox/public/images/steps/4_small.png +0 -0
  3919. data/sandbox/public/images/steps/5.png +0 -0
  3920. data/sandbox/public/images/steps/5_small.png +0 -0
  3921. data/sandbox/public/images/steps/6.png +0 -0
  3922. data/sandbox/public/images/steps/6_small.png +0 -0
  3923. data/sandbox/public/images/sxsw-ribbon-v1.png +0 -0
  3924. data/sandbox/public/images/tab_bottom.gif +0 -0
  3925. data/sandbox/public/images/tile-header.png +0 -0
  3926. data/sandbox/public/images/tile-slider.png +0 -0
  3927. data/sandbox/public/images/top-shine.png +0 -0
  3928. data/sandbox/public/images/tree-nav-icons/bullet.gif +0 -0
  3929. data/sandbox/public/images/tree-nav-icons/minus.gif +0 -0
  3930. data/sandbox/public/images/tree-nav-icons/plus.gif +0 -0
  3931. data/sandbox/public/images/tree-nav-icons/treeview-loading.gif +0 -0
  3932. data/sandbox/public/images/tree-nav-icons/treeview-sprite.gif +0 -0
  3933. data/sandbox/public/images/update.png +0 -0
  3934. data/sandbox/public/images/visa_cid.gif +0 -0
  3935. data/sandbox/public/images/wrapper-back-2.png +0 -0
  3936. data/sandbox/public/images/wrapper-back.png +0 -0
  3937. data/sandbox/public/images/yui-menubaritem_submenuindicator.png +0 -0
  3938. data/sandbox/public/images/yui-menubaritem_submenuindicator_disabled.png +0 -0
  3939. data/sandbox/public/images/yui-menuitem_checkbox.png +0 -0
  3940. data/sandbox/public/images/yui-menuitem_checkbox_disabled.png +0 -0
  3941. data/sandbox/public/images/yui-menuitem_submenuindicator.png +0 -0
  3942. data/sandbox/public/images/yui-menuitem_submenuindicator_disabled.png +0 -0
  3943. data/sandbox/public/images/yui-sprite.png +0 -0
  3944. data/sandbox/public/javascripts/additional-methods.js +236 -0
  3945. data/sandbox/public/javascripts/admin.js +232 -0
  3946. data/sandbox/public/javascripts/admin/address_states.js +25 -0
  3947. data/sandbox/public/javascripts/admin/checkouts/edit.js +130 -0
  3948. data/sandbox/public/javascripts/admin/orders/edit.js +23 -0
  3949. data/sandbox/public/javascripts/admin/orders/edit_form.js +16 -0
  3950. data/sandbox/public/javascripts/admin/payments/new.js +9 -0
  3951. data/sandbox/public/javascripts/admin/promotions.js +26 -0
  3952. data/sandbox/public/javascripts/admin/unobtrusive_handlers.js +43 -0
  3953. data/sandbox/public/javascripts/application.js +12 -0
  3954. data/sandbox/public/javascripts/calculator.js +15 -0
  3955. data/sandbox/public/javascripts/checkout.js +75 -0
  3956. data/sandbox/public/javascripts/dashboard.js +143 -0
  3957. data/sandbox/public/javascripts/datepicker.js +1445 -0
  3958. data/sandbox/public/javascripts/gateway.js +13 -0
  3959. data/sandbox/public/javascripts/jqPlot/excanvas.min.js +1 -0
  3960. data/sandbox/public/javascripts/jqPlot/jquery.jqplot.min.js +14 -0
  3961. data/sandbox/public/javascripts/jqPlot/plugins/jqplot.canvasAxisLabelRenderer.min.js +14 -0
  3962. data/sandbox/public/javascripts/jqPlot/plugins/jqplot.canvasAxisTickRenderer.min.js +14 -0
  3963. data/sandbox/public/javascripts/jqPlot/plugins/jqplot.canvasTextRenderer.min.js +14 -0
  3964. data/sandbox/public/javascripts/jqPlot/plugins/jqplot.categoryAxisRenderer.min.js +14 -0
  3965. data/sandbox/public/javascripts/jqPlot/plugins/jqplot.dateAxisRenderer.min.js +14 -0
  3966. data/sandbox/public/javascripts/jqPlot/plugins/jqplot.highlighter.min.js +14 -0
  3967. data/sandbox/public/javascripts/jqPlot/plugins/jqplot.pieRenderer.min.js +14 -0
  3968. data/sandbox/public/javascripts/jquery-1.4.2.min.js +154 -0
  3969. data/sandbox/public/javascripts/jquery-ui.js +188 -0
  3970. data/sandbox/public/javascripts/jquery.alerts/images/help.gif +0 -0
  3971. data/sandbox/public/javascripts/jquery.alerts/images/important.gif +0 -0
  3972. data/sandbox/public/javascripts/jquery.alerts/images/info.gif +0 -0
  3973. data/sandbox/public/javascripts/jquery.alerts/images/title.gif +0 -0
  3974. data/sandbox/public/javascripts/jquery.alerts/jquery.alerts.css +57 -0
  3975. data/sandbox/public/javascripts/jquery.alerts/jquery.alerts.js +235 -0
  3976. data/sandbox/public/javascripts/jquery.alerts/jquery.alerts.spree.css +30 -0
  3977. data/sandbox/public/javascripts/jquery.autocomplete.min.js +13 -0
  3978. data/sandbox/public/javascripts/jquery.cookie.js +96 -0
  3979. data/sandbox/public/javascripts/jquery.delayedobserver.js +35 -0
  3980. data/sandbox/public/javascripts/jquery.suggest.js +276 -0
  3981. data/sandbox/public/javascripts/jquery.template.js +255 -0
  3982. data/sandbox/public/javascripts/jquery.tokeninput.js +618 -0
  3983. data/sandbox/public/javascripts/jquery.validate.min.js +16 -0
  3984. data/sandbox/public/javascripts/jsTree/jquery.jstree.js +3510 -0
  3985. data/sandbox/public/javascripts/jsTree/themes/apple/bg.jpg +0 -0
  3986. data/sandbox/public/javascripts/jsTree/themes/apple/d.png +0 -0
  3987. data/sandbox/public/javascripts/jsTree/themes/apple/dot_for_ie.gif +0 -0
  3988. data/sandbox/public/javascripts/jsTree/themes/apple/style.css +60 -0
  3989. data/sandbox/public/javascripts/jsTree/themes/apple/throbber.gif +0 -0
  3990. data/sandbox/public/javascripts/lang/af.js +40 -0
  3991. data/sandbox/public/javascripts/lang/ar.js +50 -0
  3992. data/sandbox/public/javascripts/lang/de.js +40 -0
  3993. data/sandbox/public/javascripts/lang/du.js +40 -0
  3994. data/sandbox/public/javascripts/lang/en.js +42 -0
  3995. data/sandbox/public/javascripts/lang/es.js +41 -0
  3996. data/sandbox/public/javascripts/lang/fi.js +40 -0
  3997. data/sandbox/public/javascripts/lang/fr.js +44 -0
  3998. data/sandbox/public/javascripts/lang/gr.js +40 -0
  3999. data/sandbox/public/javascripts/lang/he.js +49 -0
  4000. data/sandbox/public/javascripts/lang/it.js +13 -0
  4001. data/sandbox/public/javascripts/lang/nl.js +40 -0
  4002. data/sandbox/public/javascripts/lang/no.js +40 -0
  4003. data/sandbox/public/javascripts/lang/pt.js +50 -0
  4004. data/sandbox/public/javascripts/lang/ro.js +40 -0
  4005. data/sandbox/public/javascripts/lang/ru.js +40 -0
  4006. data/sandbox/public/javascripts/lang/sp.js +40 -0
  4007. data/sandbox/public/javascripts/lang/sv.js +41 -0
  4008. data/sandbox/public/javascripts/lang/ua.js +40 -0
  4009. data/sandbox/public/javascripts/localization/messages_cn.js +24 -0
  4010. data/sandbox/public/javascripts/localization/messages_cs.js +23 -0
  4011. data/sandbox/public/javascripts/localization/messages_da.js +21 -0
  4012. data/sandbox/public/javascripts/localization/messages_de.js +21 -0
  4013. data/sandbox/public/javascripts/localization/messages_es.js +24 -0
  4014. data/sandbox/public/javascripts/localization/messages_fr.js +23 -0
  4015. data/sandbox/public/javascripts/localization/messages_hu.js +21 -0
  4016. data/sandbox/public/javascripts/localization/messages_it.js +26 -0
  4017. data/sandbox/public/javascripts/localization/messages_kk.js +23 -0
  4018. data/sandbox/public/javascripts/localization/messages_nl.js +23 -0
  4019. data/sandbox/public/javascripts/localization/messages_no.js +23 -0
  4020. data/sandbox/public/javascripts/localization/messages_pl.js +23 -0
  4021. data/sandbox/public/javascripts/localization/messages_ptbr.js +30 -0
  4022. data/sandbox/public/javascripts/localization/messages_ro.js +24 -0
  4023. data/sandbox/public/javascripts/localization/messages_ru.js +23 -0
  4024. data/sandbox/public/javascripts/localization/messages_se.js +23 -0
  4025. data/sandbox/public/javascripts/localization/messages_sk.js +21 -0
  4026. data/sandbox/public/javascripts/localization/messages_tr.js +24 -0
  4027. data/sandbox/public/javascripts/localization/messages_tw.js +24 -0
  4028. data/sandbox/public/javascripts/localization/messages_ua.js +24 -0
  4029. data/sandbox/public/javascripts/nested-attribute.js +26 -0
  4030. data/sandbox/public/javascripts/open_id.js +15 -0
  4031. data/sandbox/public/javascripts/product.js +49 -0
  4032. data/sandbox/public/javascripts/rails.js +127 -0
  4033. data/sandbox/public/javascripts/taxonomy.js +201 -0
  4034. data/sandbox/public/javascripts/zone.js +39 -0
  4035. data/sandbox/public/robots.txt +14 -0
  4036. data/sandbox/public/stylesheets/admin/admin-forms.css +154 -0
  4037. data/sandbox/public/stylesheets/admin/admin-reset.css +69 -0
  4038. data/sandbox/public/stylesheets/admin/admin-tables.css +39 -0
  4039. data/sandbox/public/stylesheets/admin/admin-typography.css +117 -0
  4040. data/sandbox/public/stylesheets/admin/admin.css +614 -0
  4041. data/sandbox/public/stylesheets/admin/autocomplete.css +73 -0
  4042. data/sandbox/public/stylesheets/admin/dashboard.css +143 -0
  4043. data/sandbox/public/stylesheets/admin/edit_checkouts.css +57 -0
  4044. data/sandbox/public/stylesheets/admin/grids.css +314 -0
  4045. data/sandbox/public/stylesheets/admin/promotions.css +54 -0
  4046. data/sandbox/public/stylesheets/admin/reset-fonts-grids-2-6-0.css +7 -0
  4047. data/sandbox/public/stylesheets/admin/token-input.css +109 -0
  4048. data/sandbox/public/stylesheets/admin/yui-includes.css +14 -0
  4049. data/sandbox/public/stylesheets/datepicker.css +263 -0
  4050. data/sandbox/public/stylesheets/jquery.autocomplete.css +48 -0
  4051. data/sandbox/public/stylesheets/screen.css +916 -0
  4052. data/sandbox/rfcommerce_sandbox.gemspec +26 -0
  4053. data/sandbox/script/rails +6 -0
  4054. data/sandbox/tmp/cache/C51/6F0/configuration_AppConfiguration +0 -0
  4055. metadata +4101 -0
@@ -0,0 +1,25 @@
1
+ var update_state = function(region) {
2
+ var country = $('span#' + region + 'country :only-child').val();
3
+ var states = state_mapper[country];
4
+
5
+ var state_select = $('span#' + region + 'state select');
6
+ var state_input = $('span#' + region + 'state input');
7
+
8
+ if(states) {
9
+ state_select.html('');
10
+ var states_with_blank = [["",""]].concat(states);
11
+ $.each(states_with_blank, function(pos,id_nm) {
12
+ var opt = $(document.createElement('option'))
13
+ .attr('value', id_nm[0])
14
+ .html(id_nm[1]);
15
+ state_select.append(opt);
16
+ });
17
+ state_select.removeAttr('disabled').show();;
18
+ state_input.hide().attr('disabled', 'disabled');
19
+
20
+ } else {
21
+ state_input.removeAttr('disabled').show();
22
+ state_select.hide().attr('disabled', 'disabled');
23
+ }
24
+
25
+ };
@@ -0,0 +1,130 @@
1
+ jQuery(document).ready(function(){
2
+ add_address = function(addr){
3
+ var html = "";
4
+ if(addr!=undefined){
5
+ html += addr['firstname'] + " " + addr['lastname'] + ", ";
6
+ html += addr['address1'] + ", " + addr['address2'] + ", ";
7
+ html += addr['city'] + ", ";
8
+
9
+ if(addr['state_id']!=null){
10
+ html += addr['state']['name'] + ", ";
11
+ }else{
12
+ html += addr['state_name'] + ", ";
13
+ }
14
+
15
+ html += addr['country']['name'];
16
+ }
17
+ return html;
18
+ }
19
+
20
+ format_autocomplete = function(data){
21
+ var html = "<h4>" + data['email'] +"</h4>";
22
+ html += "<span><strong>Billing:</strong> ";
23
+ html += add_address(data['bill_address']);
24
+ html += "</span>";
25
+
26
+ html += "<span><strong>Shipping:</strong> ";
27
+ html += add_address(data['ship_address']);
28
+ html += "</span>";
29
+
30
+ return html
31
+ }
32
+
33
+ prep_autocomplete_data = function(data){
34
+ return $.map(eval(data), function(row) {
35
+ return {
36
+ data: row['user'],
37
+ value: row['user']['email'],
38
+ result: row['user']['email']
39
+ }
40
+ });
41
+ }
42
+
43
+ $("#customer_search").autocomplete("/admin/users.json?authenticity_token=" + $('meta[name=csrf-token]').attr("content"), {
44
+ minChars: 5,
45
+ delay: 1500,
46
+ parse: prep_autocomplete_data,
47
+ formatItem: function(item) {
48
+ return format_autocomplete(item);
49
+ }
50
+ }).result(function(event, data, formatted) {
51
+ $('#user_id').val(data['id']);
52
+ $('#guest_checkout_true').removeAttr("checked");
53
+ $('#guest_checkout_false').attr("checked", "checked");
54
+ $('#guest_checkout_false').removeAttr("disabled");
55
+ $('#order_email').val(data['email']);
56
+
57
+ var addr = data['bill_address'];
58
+ if(addr!=undefined){
59
+ $('#order_bill_address_attributes_firstname').val(addr['firstname']);
60
+ $('#order_bill_address_attributes_lastname').val(addr['lastname']);
61
+ $('#order_bill_address_attributes_address1').val(addr['address1']);
62
+ $('#order_bill_address_attributes_address2').val(addr['address2']);
63
+ $('#order_bill_address_attributes_city').val(addr['city']);
64
+ $('#order_bill_address_attributes_zipcode').val(addr['zipcode']);
65
+ $('#order_bill_address_attributes_state_id').val(addr['state_id']);
66
+ $('#order_bill_address_attributes_country_id').val(addr['country_id']);
67
+ $('#order_bill_address_attributes_phone').val(addr['phone']);
68
+ }
69
+
70
+ var addr = data['ship_address'];
71
+ if(addr!=undefined){
72
+ $('#order_ship_address_attributes_firstname').val(addr['firstname']);
73
+ $('#order_ship_address_attributes_lastname').val(addr['lastname']);
74
+ $('#order_ship_address_attributes_address1').val(addr['address1']);
75
+ $('#order_ship_address_attributes_address2').val(addr['address2']);
76
+ $('#order_ship_address_attributes_city').val(addr['city']);
77
+ $('#order_ship_address_attributes_zipcode').val(addr['zipcode']);
78
+ $('#order_ship_address_attributes_state_id').val(addr['state_id']);
79
+ $('#order_ship_address_attributes_country_id').val(addr['country_id']);
80
+ $('#order_ship_address_attributes_phone').val(addr['phone']);
81
+ }
82
+ });
83
+
84
+
85
+ $('input#order_use_billing').click(function() {
86
+ show_billing(!$(this).is(':checked'));
87
+ });
88
+
89
+ $('#guest_checkout_true').change(function() {
90
+ $('#customer_search').val("");
91
+ $('#user_id').val("");
92
+ $('#checkout_email').val("");
93
+ $('#guest_checkout_false').attr("disabled", "true");
94
+
95
+ $('#order_bill_address_attributes_firstname').val("");
96
+ $('#order_bill_address_attributes_lastname').val("");
97
+ $('#order_bill_address_attributes_address1').val("");
98
+ $('#order_bill_address_attributes_address2').val("");
99
+ $('#order_bill_address_attributes_city').val("");
100
+ $('#order_bill_address_attributes_zipcode').val("");
101
+ $('#order_bill_address_attributes_state_id').val("");
102
+ $('#order_bill_address_attributes_country_id').val("");
103
+ $('#order_bill_address_attributes_phone').val("");
104
+
105
+ $('#order_ship_address_attributes_firstname').val("");
106
+ $('#order_ship_address_attributes_lastname').val("");
107
+ $('#order_ship_address_attributes_address1').val("");
108
+ $('#order_ship_address_attributes_address2').val("");
109
+ $('#order_ship_address_attributes_city').val("");
110
+ $('#order_ship_address_attributes_zipcode').val("");
111
+ $('#order_ship_address_attributes_state_id').val("");
112
+ $('#order_ship_address_attributes_country_id').val("");
113
+ $('#order_ship_address_attributes_phone').val("");
114
+ });
115
+
116
+ var show_billing = function(show) {
117
+ if(show) {
118
+ $('#shipping').show();
119
+ $('#shipping input').removeAttr('disabled', 'disabled');
120
+ $('#shipping select').removeAttr('disabled', 'disabled');
121
+ } else {
122
+ $('#shipping').hide();
123
+ $('#shipping input').attr('disabled', 'disabled');
124
+ $('#shipping select').attr('disabled', 'disabled');
125
+ }
126
+ }
127
+
128
+ });
129
+
130
+
@@ -0,0 +1,23 @@
1
+ jQuery(document).ready(function(){
2
+
3
+ $("#add_product_name").product_autocomplete();
4
+
5
+ $("#add_line_item_to_order").live("click", function(){
6
+ if($('#add_variant_id').val() == ''){ return false; }
7
+ update_target = jQuery(this).attr("data-update");
8
+ jQuery.ajax({ dataType: 'script', url: this.href, type: "POST",
9
+ data: {"line_item[variant_id]": $('#add_variant_id').val(),
10
+ "line_item[quantity]": $('#add_quantity').val()},
11
+ success: function(data){
12
+ $("#"+update_target).html(data);
13
+ $('#add_product_name').val('');
14
+ $('#add_variant_id').val('');
15
+ $('#add_quantity').val(1)
16
+ }
17
+ });
18
+ return false;
19
+ });
20
+
21
+ });
22
+
23
+
@@ -0,0 +1,16 @@
1
+ $.each($('td.qty input'), function(i, inpt){
2
+
3
+ $(inpt).delayedObserver(function() {
4
+
5
+ var id = $(this).attr('id').replace("order_line_items_attributes_", "").replace("_quantity", "");
6
+ id = "#order_line_items_attributes_" + id + "_id";
7
+
8
+ jQuery.ajax({
9
+ type: "POST",
10
+ url: "/admin/orders/" + $('input#order_number').val() + "/line_items/" + $(id).val(),
11
+ data: ({_method: "put", "line_item[quantity]": $(this).val()}),
12
+ success: function(html){ $('#order-form-wrapper').html(html)}
13
+ });
14
+
15
+ }, 0,5);
16
+ });
@@ -0,0 +1,9 @@
1
+ $(document).ready(function(){
2
+
3
+ $("#card_new").radioControlsVisibilityOfElement('#card_form');
4
+
5
+ $('select.jump_menu').change(function(){
6
+ window.location = this.options[this.selectedIndex].value;
7
+ });
8
+
9
+ });
@@ -0,0 +1,26 @@
1
+ var initProductRuleSourceField = function(){
2
+
3
+ $products_source_field = jQuery('.products_rule_products_source_field input');
4
+ $products_source_field.click(function() {
5
+ $rule_container = jQuery(this).parents('.promotion-rule');
6
+ if(this.checked){
7
+ if(this.value == 'manual'){
8
+ $rule_container.find('.products_rule_products').show();
9
+ $rule_container.find('.products_rule_product_group').hide();
10
+ } else {
11
+ $rule_container.find('.products_rule_products').hide();
12
+ $rule_container.find('.products_rule_product_group').show();
13
+ }
14
+ }
15
+ });
16
+ $products_source_field.each(function() {
17
+ $(this).triggerHandler('click');
18
+ });
19
+
20
+ };
21
+
22
+
23
+ jQuery(document).ready(function() {
24
+ initProductRuleSourceField();
25
+ });
26
+
@@ -0,0 +1,43 @@
1
+ $(document).ready(function(){
2
+
3
+ $(".select_properties_from_prototype").live("click", function(){
4
+ $("#busy_indicator").show();
5
+ var clicked_link = $(this);
6
+ jQuery.ajax({ dataType: 'script', url: clicked_link.attr("href"), type: 'get',
7
+ success: function(data){
8
+ clicked_link.parent("td").parent("tr").hide();
9
+ $("#busy_indicator").hide();
10
+ }
11
+ });
12
+ return false;
13
+ });
14
+
15
+
16
+ jQuery('table.sortable').ready(function(){
17
+ jQuery('table.sortable tbody').sortable(
18
+ {
19
+ handle: '.handle',
20
+ update: function(event, ui) {
21
+ $("#progress").show();
22
+ positions = {};
23
+ type = '';
24
+ jQuery.each(jQuery('table.sortable tbody tr'), function(position, obj){
25
+ reg = /(\w+_?)+_(\d+)/;
26
+ parts = reg.exec(jQuery(obj).attr('id'));
27
+ if (parts) {
28
+ positions['positions['+parts[2]+']'] = position;
29
+ type = parts[1];
30
+ }
31
+ });
32
+ jQuery.ajax({
33
+ type: 'POST',
34
+ dataType: 'script',
35
+ url: type+'s/update_positions',
36
+ data: positions,
37
+ success: function(data){ $("#progress").hide(); }
38
+ });
39
+ }
40
+ });
41
+ });
42
+
43
+ });
@@ -0,0 +1,12 @@
1
+ (function($){
2
+ $(document).ready(function(){
3
+
4
+ // Remove an item from the cart by setting its quantity to zero and posting the update form
5
+ $('form#updatecart a.delete').show().live('click', function(e){
6
+ $(this).parents('tr').find('input.line_item_quantity').val(0);
7
+ $(this).parents('form').submit();
8
+ e.preventDefault();
9
+ });
10
+
11
+ });
12
+ })(jQuery);
@@ -0,0 +1,15 @@
1
+ $j(function() {
2
+ var original_calc_type = $j('#calc-type').attr('value');
3
+ $j('div#calculator-settings-warning').hide();
4
+ $j('#calc-type').change(function() {
5
+ if ($j('#calc-type').attr('value') == original_calc_type) {
6
+ $j('div.calculator-settings').show();
7
+ $j('div#calculator-settings-warning').hide();
8
+ $j('.calculator-settings input').removeAttr('disabled');
9
+ } else {
10
+ $j('div.calculator-settings').hide();
11
+ $j('div#calculator-settings-warning').show();
12
+ $j('.calculator-settings input').attr('disabled', 'disabled');
13
+ }
14
+ });
15
+ })
@@ -0,0 +1,75 @@
1
+ (function($){
2
+ $(document).ready(function(){
3
+
4
+ $('#checkout_form_address').validate();
5
+
6
+ var get_states = function(region){
7
+ var country = $('p#' + region + 'country' + ' span#' + region + 'country :only-child').val();
8
+ return state_mapper[country];
9
+ }
10
+
11
+ var update_state = function(region) {
12
+ var states = get_states(region);
13
+
14
+ var state_select = $('span#' + region + 'state select');
15
+ var state_input = $('span#' + region + 'state input');
16
+
17
+ if(states) {
18
+ var selected = state_select.val();
19
+ state_select.html('');
20
+ var states_with_blank = [["",""]].concat(states);
21
+ $.each(states_with_blank, function(pos,id_nm) {
22
+ var opt = $(document.createElement('option'))
23
+ .attr('value', id_nm[0])
24
+ .html(id_nm[1]);
25
+ if(selected==id_nm[0]){
26
+ opt.attr('selected', 'selected');
27
+ }
28
+ state_select.append(opt);
29
+ });
30
+ state_select.removeAttr('disabled').show();
31
+ state_input.hide().attr('disabled', 'disabled');
32
+
33
+ } else {
34
+ state_input.removeAttr('disabled').show();
35
+ state_select.hide().attr('disabled', 'disabled');
36
+ }
37
+
38
+ };
39
+
40
+ // Show fields for the selected payment method
41
+ $("input[type='radio'][name='order[payments_attributes][][payment_method_id]']").click(function(){
42
+ $('#payment-methods li').hide();
43
+ if(this.checked){ $('#payment_method_'+this.value).show(); }
44
+ }).triggerHandler('click');
45
+
46
+ $('p#bcountry span#bcountry select').change(function() { update_state('b'); });
47
+ $('p#scountry span#scountry select').change(function() { update_state('s'); });
48
+ update_state('b');
49
+ update_state('s');
50
+
51
+ $('input#order_use_billing').click(function() {
52
+ if($(this).is(':checked')) {
53
+ $('#shipping .inner input, #shipping .inner select, #shipping .inner label, #shipping .inner .req').hide();
54
+ $('#shipping .inner input, #shipping .inner select').attr('disabled', 'disabled');
55
+ } else {
56
+ $('#shipping .inner input, #shipping .inner select, #shipping .inner label, #shipping .inner .req').show();
57
+ $('#shipping .inner input, #shipping .inner select').removeAttr('disabled', 'disabled');
58
+
59
+ //only want to enable relevant field
60
+ if(get_states('s')){
61
+ $('span#sstate input').hide().attr('disabled', 'disabled');
62
+ }else{
63
+ $('span#sstate select').hide().attr('disabled', 'disabled');
64
+ }
65
+
66
+ }
67
+ }).triggerHandler('click');
68
+
69
+ $('form.edit_checkout').submit(function() {
70
+ $(this).find(':submit, :image').attr('disabled', true).removeClass('primary').addClass('disabled');
71
+ });
72
+
73
+
74
+ });
75
+ })(jQuery);
@@ -0,0 +1,1445 @@
1
+ /*
2
+ DatePicker v4.4 by frequency-decoder.com
3
+
4
+ Released under a creative commons Attribution-ShareAlike 2.5 license (http://creativecommons.org/licenses/by-sa/2.5/)
5
+
6
+ Please credit frequency-decoder in any derivative work - thanks.
7
+
8
+ You are free:
9
+
10
+ * to copy, distribute, display, and perform the work
11
+ * to make derivative works
12
+ * to make commercial use of the work
13
+
14
+ Under the following conditions:
15
+
16
+ by Attribution.
17
+ --------------
18
+ You must attribute the work in the manner specified by the author or licensor.
19
+
20
+ sa
21
+ --
22
+ Share Alike. If you alter, transform, or build upon this work, you may distribute the resulting work only under a license identical to this one.
23
+
24
+ * For any reuse or distribution, you must make clear to others the license terms of this work.
25
+ * Any of these conditions can be waived if you get permission from the copyright holder.
26
+ */
27
+ var datePickerController;
28
+
29
+ (function() {
30
+
31
+ // Detect the browser language
32
+ datePicker.languageinfo = navigator.language ? navigator.language : navigator.userLanguage;
33
+ datePicker.languageinfo = datePicker.languageinfo ? datePicker.languageinfo.toLowerCase().replace(/-[a-z]+$/, "") : 'en';
34
+
35
+ // Load the appropriate language file
36
+ var scriptFiles = document.getElementsByTagName('head')[0].getElementsByTagName('script');
37
+ var loc = scriptFiles[scriptFiles.length - 1].src.substr(0, scriptFiles[scriptFiles.length - 1].src.lastIndexOf("/")) + "/lang/" + datePicker.languageinfo + ".js";
38
+
39
+ var script = document.createElement('script');
40
+ script.type = "text/javascript";
41
+ script.src = loc;
42
+ script.setAttribute("charset", "utf-8");
43
+ /*@cc_on
44
+ /*@if(@_win32)
45
+ var bases = document.getElementsByTagName('base');
46
+ if (bases.length && bases[0].childNodes.length) {
47
+ bases[0].appendChild(script);
48
+ } else {
49
+ document.getElementsByTagName('head')[0].appendChild(script);
50
+ };
51
+ @else @*/
52
+ document.getElementsByTagName('head')[0].appendChild(script);
53
+ /*@end
54
+ @*/
55
+ script = null;
56
+
57
+ // Defaults should the locale file not load
58
+ datePicker.months = ["January","February","March","April","May","June","July","August","September","October","November","December"];
59
+ datePicker.fullDay = ["Monday","Tuesday","Wednesday","Thursday","Friday","Saturday","Sunday"];
60
+ datePicker.titles = ["Previous month","Next month","Previous year","Next year", "Today", "Show Calendar"];
61
+
62
+ datePicker.getDaysPerMonth = function(nMonth, nYear) {
63
+ nMonth = (nMonth + 12) % 12;
64
+ return (((0 == (nYear%4)) && ((0 != (nYear%100)) || (0 == (nYear%400)))) && nMonth == 1) ? 29: [31,28,31,30,31,30,31,31,30,31,30,31][nMonth];
65
+ };
66
+
67
+ function datePicker(options) {
68
+
69
+ this.defaults = {};
70
+ for(opt in options) { this[opt] = this.defaults[opt] = options[opt]; };
71
+
72
+ this.date = new Date();
73
+ this.yearinc = 1;
74
+ this.timer = null;
75
+ this.pause = 1000;
76
+ this.timerSet = false;
77
+ this.fadeTimer = null;
78
+ this.interval = new Date();
79
+ this.firstDayOfWeek = this.defaults.firstDayOfWeek = this.dayInc = this.monthInc = this.yearInc = this.opacity = this.opacityTo = 0;
80
+ this.dateSet = null;
81
+ this.visible = false;
82
+ this.disabledDates = [];
83
+ this.enabledDates = [];
84
+ this.nbsp = String.fromCharCode( 160 );
85
+ var o = this;
86
+
87
+ o.events = {
88
+ onblur:function(e) {
89
+ o.removeKeyboardEvents();
90
+ },
91
+ onfocus:function(e) {
92
+ o.addKeyboardEvents();
93
+ },
94
+ onkeydown: function (e) {
95
+ o.stopTimer();
96
+ if(!o.visible) return false;
97
+
98
+ if(e == null) e = document.parentWindow.event;
99
+ var kc = e.keyCode ? e.keyCode : e.charCode;
100
+
101
+ if( kc == 13 ) {
102
+ // close (return)
103
+ var td = document.getElementById(o.id + "-date-picker-hover");
104
+ if(!td || td.className.search(/out-of-range|day-disabled/) != -1) return o.killEvent(e);
105
+ o.returnFormattedDate();
106
+ o.hide();
107
+ return o.killEvent(e);
108
+ } else if(kc == 27) {
109
+ // close (esc)
110
+ o.hide();
111
+ return o.killEvent(e);
112
+ } else if(kc == 32 || kc == 0) {
113
+ // today (space)
114
+ o.date = new Date();
115
+ o.updateTable();
116
+ return o.killEvent(e);
117
+ };
118
+
119
+ // Internet Explorer fires the keydown event faster than the JavaScript engine can
120
+ // update the interface. The following attempts to fix this.
121
+ /*@cc_on
122
+ @if(@_win32)
123
+ if(new Date().getTime() - o.interval.getTime() < 100) return o.killEvent(e);
124
+ o.interval = new Date();
125
+ @end
126
+ @*/
127
+
128
+ if ((kc > 49 && kc < 56) || (kc > 97 && kc < 104)) {
129
+ if (kc > 96) kc -= (96-48);
130
+ kc -= 49;
131
+ o.firstDayOfWeek = (o.firstDayOfWeek + kc) % 7;
132
+ o.updateTable();
133
+ return o.killEvent(e);
134
+ };
135
+
136
+ if ( kc < 37 || kc > 40 ) return true;
137
+
138
+ var d = new Date( o.date ).valueOf();
139
+
140
+ if ( kc == 37 ) {
141
+ // ctrl + left = previous month
142
+ if( e.ctrlKey ) {
143
+ d = new Date( o.date );
144
+ d.setDate( Math.min(d.getDate(), datePicker.getDaysPerMonth(d.getMonth() - 1,d.getFullYear())) );
145
+ d.setMonth( d.getMonth() - 1 );
146
+ } else {
147
+ d = new Date( o.date.getFullYear(), o.date.getMonth(), o.date.getDate() - 1 );
148
+ };
149
+ } else if ( kc == 39 ) {
150
+ // ctrl + right = next month
151
+ if( e.ctrlKey ) {
152
+ d = new Date( o.date );
153
+ d.setDate( Math.min(d.getDate(), datePicker.getDaysPerMonth(d.getMonth() + 1,d.getFullYear())) );
154
+ d.setMonth( d.getMonth() + 1 );
155
+ } else {
156
+ d = new Date( o.date.getFullYear(), o.date.getMonth(), o.date.getDate() + 1 );
157
+ };
158
+ } else if ( kc == 38 ) {
159
+ // ctrl + up = next year
160
+ if( e.ctrlKey ) {
161
+ d = new Date( o.date );
162
+ d.setDate( Math.min(d.getDate(), datePicker.getDaysPerMonth(d.getMonth(),d.getFullYear() + 1)) );
163
+ d.setFullYear( d.getFullYear() + 1 );
164
+ } else {
165
+ d = new Date( o.date.getFullYear(), o.date.getMonth(), o.date.getDate() - 7 );
166
+ };
167
+ } else if ( kc == 40 ) {
168
+ // ctrl + down = prev year
169
+ if( e.ctrlKey ) {
170
+ d = new Date( o.date );
171
+ d.setDate( Math.min(d.getDate(), datePicker.getDaysPerMonth(d.getMonth(),d.getFullYear() - 1)) );
172
+ d.setFullYear( d.getFullYear() - 1 );
173
+ } else {
174
+ d = new Date( o.date.getFullYear(), o.date.getMonth(), o.date.getDate() + 7 );
175
+ };
176
+ };
177
+
178
+ var tmpDate = new Date(d);
179
+
180
+ if(o.outOfRange(tmpDate)) return o.killEvent(e);
181
+
182
+ var cacheDate = new Date(o.date);
183
+ o.date = tmpDate;
184
+
185
+ if(cacheDate.getFullYear() != o.date.getFullYear() || cacheDate.getMonth() != o.date.getMonth()) o.updateTable();
186
+ else {
187
+ o.disableTodayButton();
188
+ var tds = o.table.getElementsByTagName('td');
189
+ var txt;
190
+ var start = o.date.getDate() - 6;
191
+ if(start < 0) start = 0;
192
+
193
+ for(var i = start, td; td = tds[i]; i++) {
194
+ txt = Number(td.firstChild.nodeValue);
195
+ if(isNaN(txt) || txt != o.date.getDate()) continue;
196
+ o.removeHighlight();
197
+ td.id = o.id + "-date-picker-hover";
198
+ td.className = td.className.replace(/date-picker-hover/g, "") + " date-picker-hover";
199
+ };
200
+ };
201
+ return o.killEvent(e);
202
+ },
203
+ gotoToday: function(e) {
204
+ o.date = new Date();
205
+ o.updateTable();
206
+ return o.killEvent(e);
207
+ },
208
+ onmousedown: function(e) {
209
+ if ( e == null ) e = document.parentWindow.event;
210
+ var el = e.target != null ? e.target : e.srcElement;
211
+
212
+ var found = false;
213
+ while(el.parentNode) {
214
+ if(el.id && (el.id == "fd-"+o.id || el.id == "fd-but-"+o.id)) {
215
+ found = true;
216
+ break;
217
+ };
218
+ try {
219
+ el = el.parentNode;
220
+ } catch(err) {
221
+ break;
222
+ };
223
+ };
224
+ if(found) return true;
225
+ o.stopTimer();
226
+ datePickerController.hideAll();
227
+ },
228
+ onmouseover: function(e) {
229
+ o.stopTimer();
230
+ var txt = this.firstChild.nodeValue;
231
+ if(this.className == "out-of-range" || txt.search(/^[\d]+$/) == -1) return;
232
+
233
+ o.removeHighlight();
234
+
235
+ this.id = o.id+"-date-picker-hover";
236
+ this.className = this.className.replace(/date-picker-hover/g, "") + " date-picker-hover";
237
+
238
+ o.date.setDate(this.firstChild.nodeValue);
239
+ o.disableTodayButton();
240
+ },
241
+ onclick: function(e) {
242
+ if(o.opacity != o.opacityTo || this.className.search(/out-of-range|day-disabled/) != -1) return false;
243
+ if ( e == null ) e = document.parentWindow.event;
244
+ var el = e.target != null ? e.target : e.srcElement;
245
+ while ( el.nodeType != 1 ) el = el.parentNode;
246
+ var d = new Date( o.date );
247
+ var txt = el.firstChild.data;
248
+ if(txt.search(/^[\d]+$/) == -1) return;
249
+ var n = Number( txt );
250
+ if(isNaN(n)) { return true; };
251
+ d.setDate( n );
252
+ o.date = d;
253
+ o.returnFormattedDate();
254
+ if(!o.staticPos) o.hide();
255
+ o.stopTimer();
256
+ return o.killEvent(e);
257
+ },
258
+ incDec: function(e) {
259
+ if ( e == null ) e = document.parentWindow.event;
260
+ var el = e.target != null ? e.target : e.srcElement;
261
+
262
+ if(el && el.className && el.className.search('fd-disabled') != -1) { return false; }
263
+ datePickerController.addEvent(document, "mouseup", o.events.clearTimer);
264
+ o.timerInc = 800;
265
+ o.dayInc = arguments[1];
266
+ o.yearInc = arguments[2];
267
+ o.monthInc = arguments[3];
268
+ o.timerSet = true;
269
+
270
+ o.updateTable();
271
+ return true;
272
+ },
273
+ clearTimer: function(e) {
274
+ o.stopTimer();
275
+ o.timerInc = 1000;
276
+ o.yearInc = 0;
277
+ o.monthInc = 0;
278
+ o.dayInc = 0;
279
+ datePickerController.removeEvent(document, "mouseup", o.events.clearTimer);
280
+ }
281
+ };
282
+ o.stopTimer = function() {
283
+ o.timerSet = false;
284
+ window.clearTimeout(o.timer);
285
+ };
286
+ o.removeHighlight = function() {
287
+ if(document.getElementById(o.id+"-date-picker-hover")) {
288
+ document.getElementById(o.id+"-date-picker-hover").className = document.getElementById(o.id+"-date-picker-hover").className.replace("date-picker-hover", "");
289
+ document.getElementById(o.id+"-date-picker-hover").id = "";
290
+ };
291
+ };
292
+ o.reset = function() {
293
+ for(def in o.defaults) { o[def] = o.defaults[def]; };
294
+ };
295
+ o.setOpacity = function(op) {
296
+ o.div.style.opacity = op/100;
297
+ o.div.style.filter = 'alpha(opacity=' + op + ')';
298
+ o.opacity = op;
299
+ };
300
+ o.fade = function() {
301
+ window.clearTimeout(o.fadeTimer);
302
+ o.fadeTimer = null;
303
+ delete(o.fadeTimer);
304
+
305
+ var diff = Math.round(o.opacity + ((o.opacityTo - o.opacity) / 4));
306
+
307
+ o.setOpacity(diff);
308
+
309
+ if(Math.abs(o.opacityTo - diff) > 3 && !o.noTransparency) {
310
+ o.fadeTimer = window.setTimeout(o.fade, 50);
311
+ } else {
312
+ o.setOpacity(o.opacityTo);
313
+ if(o.opacityTo == 0) {
314
+ o.div.style.display = "none";
315
+ o.visible = false;
316
+ } else {
317
+ o.visible = true;
318
+ };
319
+ };
320
+ };
321
+ o.killEvent = function(e) {
322
+ e = e || document.parentWindow.event;
323
+
324
+ if(e.stopPropagation) {
325
+ e.stopPropagation();
326
+ e.preventDefault();
327
+ };
328
+
329
+ /*@cc_on
330
+ @if(@_win32)
331
+ e.cancelBubble = true;
332
+ e.returnValue = false;
333
+ @end
334
+ @*/
335
+ return false;
336
+ };
337
+ o.getElem = function() {
338
+ return document.getElementById(o.id.replace(/^fd-/, '')) || false;
339
+ };
340
+ o.setRangeLow = function(range) {
341
+ if(String(range).search(/^(\d\d?\d\d)(0[1-9]|1[012])(0[1-9]|[12][0-9]|3[01])$/) == -1) range = '';
342
+ o.low = o.defaults.low = range;
343
+ if(o.staticPos) o.updateTable(true);
344
+ };
345
+ o.setRangeHigh = function(range) {
346
+ if(String(range).search(/^(\d\d?\d\d)(0[1-9]|1[012])(0[1-9]|[12][0-9]|3[01])$/) == -1) range = '';
347
+ o.high = o.defaults.high = range;
348
+ if(o.staticPos) o.updateTable(true);
349
+ };
350
+ o.setDisabledDays = function(dayArray) {
351
+ o.disableDays = o.defaults.disableDays = dayArray;
352
+ if(o.staticPos) o.updateTable(true);
353
+ };
354
+ o.setDisabledDates = function(dateArray) {
355
+ var fin = [];
356
+ for(var i = dateArray.length; i-- ;) {
357
+ if(dateArray[i].match(/^(\d\d\d\d|\*\*\*\*)(0[1-9]|1[012]|\*\*)(0[1-9]|[12][0-9]|3[01])$/) != -1) fin[fin.length] = dateArray[i];
358
+ };
359
+ if(fin.length) {
360
+ o.disabledDates = fin;
361
+ o.enabledDates = [];
362
+ if(o.staticPos) o.updateTable(true);
363
+ };
364
+ };
365
+ o.setEnabledDates = function(dateArray) {
366
+ var fin = [];
367
+ for(var i = dateArray.length; i-- ;) {
368
+ if(dateArray[i].match(/^(\d\d\d\d|\*\*\*\*)(0[1-9]|1[012]|\*\*)(0[1-9]|[12][0-9]|3[01]|\*\*)$/) != -1 && dateArray[i] != "********") fin[fin.length] = dateArray[i];
369
+ };
370
+ if(fin.length) {
371
+ o.disabledDates = [];
372
+ o.enabledDates = fin;
373
+ if(o.staticPos) o.updateTable(true);
374
+ };
375
+ };
376
+ o.getDisabledDates = function(y, m) {
377
+ if(o.enabledDates.length) return o.getEnabledDates(y, m);
378
+ var obj = {};
379
+ var d = datePicker.getDaysPerMonth(m - 1, y);
380
+ m = m < 10 ? "0" + String(m) : m;
381
+ for(var i = o.disabledDates.length; i-- ;) {
382
+ var tmp = o.disabledDates[i].replace("****", y).replace("**", m);
383
+ if(tmp < Number(String(y)+m+"01") || tmp > Number(y+String(m)+d)) continue;
384
+ obj[tmp] = 1;
385
+ };
386
+ return obj;
387
+ };
388
+ o.getEnabledDates = function(y, m) {
389
+ var obj = {};
390
+ var d = datePicker.getDaysPerMonth(m - 1, y);
391
+ m = m < 10 ? "0" + String(m) : m;
392
+ var day,tmp,de,me,ye,disabled;
393
+ for(var dd = 1; dd <= d; dd++) {
394
+ day = dd < 10 ? "0" + String(dd) : dd;
395
+ disabled = true;
396
+ for(var i = o.enabledDates.length; i-- ;) {
397
+ tmp = o.enabledDates[i];
398
+ ye = String(o.enabledDates[i]).substr(0,4);
399
+ me = String(o.enabledDates[i]).substr(4,2);
400
+ de = String(o.enabledDates[i]).substr(6,2);
401
+
402
+ if(ye == y && me == m && de == day) {
403
+ disabled = false;
404
+ break;
405
+ }
406
+
407
+ if(ye == "****" || me == "**" || de == "**") {
408
+ if(ye == "****") tmp = tmp.replace(/^\*\*\*\*/, y);
409
+ if(me == "**") tmp = tmp = tmp.substr(0,4) + String(m) + tmp.substr(6,2);
410
+ if(de == "**") tmp = tmp.replace(/\*\*/, day);
411
+
412
+ if(tmp == String(y + String(m) + day)) {
413
+ disabled = false;
414
+ break;
415
+ };
416
+ };
417
+ };
418
+ if(disabled) obj[String(y + String(m) + day)] = 1;
419
+ };
420
+ return obj;
421
+ };
422
+ o.setFirstDayOfWeek = function(e) {
423
+ if ( e == null ) e = document.parentWindow.event;
424
+ var elem = e.target != null ? e.target : e.srcElement;
425
+ if(elem.tagName.toLowerCase() != "th") {
426
+ while(elem.tagName.toLowerCase() != "th") elem = elem.parentNode;
427
+ };
428
+ var cnt = 0;
429
+ while(elem.previousSibling) {
430
+ elem = elem.previousSibling;
431
+ if(elem.tagName.toLowerCase() == "th") cnt++;
432
+ };
433
+ o.firstDayOfWeek = (o.firstDayOfWeek + cnt) % 7;
434
+ o.updateTableHeaders();
435
+ return o.killEvent(e);
436
+ };
437
+ o.truePosition = function(element) {
438
+ var pos = o.cumulativeOffset(element);
439
+ if(window.opera) { return pos; }
440
+ var iebody = (document.compatMode && document.compatMode != "BackCompat")? document.documentElement : document.body;
441
+ var dsocleft = document.all ? iebody.scrollLeft : window.pageXOffset;
442
+ var dsoctop = document.all ? iebody.scrollTop : window.pageYOffset;
443
+ var posReal = o.realOffset(element);
444
+ return [pos[0] - posReal[0] + dsocleft, pos[1] - posReal[1] + dsoctop];
445
+ };
446
+ o.realOffset = function(element) {
447
+ var t = 0, l = 0;
448
+ do {
449
+ t += element.scrollTop || 0;
450
+ l += element.scrollLeft || 0;
451
+ element = element.parentNode;
452
+ } while (element);
453
+ return [l, t];
454
+ };
455
+ o.cumulativeOffset = function(element) {
456
+ var t = 0, l = 0;
457
+ do {
458
+ t += element.offsetTop || 0;
459
+ l += element.offsetLeft || 0;
460
+ element = element.offsetParent;
461
+ } while (element);
462
+ return [l, t];
463
+ };
464
+ o.resize = function() {
465
+ if(!o.created || !o.getElem()) return;
466
+
467
+ o.div.style.visibility = "hidden";
468
+ if(!o.staticPos) { o.div.style.left = o.div.style.top = "0px"; }
469
+ o.div.style.display = "block";
470
+
471
+ var osh = o.div.offsetHeight;
472
+ var osw = o.div.offsetWidth;
473
+
474
+ o.div.style.visibility = "visible";
475
+ o.div.style.display = "none";
476
+
477
+ if(!o.staticPos) {
478
+ var elem = document.getElementById('fd-but-' + o.id);
479
+ var pos = o.truePosition(elem);
480
+ var trueBody = (document.compatMode && document.compatMode!="BackCompat") ? document.documentElement : document.body;
481
+ var scrollTop = window.devicePixelRatio || window.opera ? 0 : trueBody.scrollTop;
482
+ var scrollLeft = window.devicePixelRatio || window.opera ? 0 : trueBody.scrollLeft;
483
+
484
+ if(parseInt(trueBody.clientWidth+scrollLeft) < parseInt(osw+pos[0])) {
485
+ o.div.style.left = Math.abs(parseInt((trueBody.clientWidth+scrollLeft) - osw)) + "px";
486
+ } else {
487
+ o.div.style.left = pos[0] + "px";
488
+ };
489
+
490
+ if(parseInt(trueBody.clientHeight+scrollTop) < parseInt(osh+pos[1]+elem.offsetHeight+2)) {
491
+ o.div.style.top = Math.abs(parseInt(pos[1] - (osh + 2))) + "px";
492
+ } else {
493
+ o.div.style.top = Math.abs(parseInt(pos[1] + elem.offsetHeight + 2)) + "px";
494
+ };
495
+ };
496
+ /*@cc_on
497
+ @if(@_jscript_version <= 5.6)
498
+ if(o.staticPos) return;
499
+ o.iePopUp.style.top = o.div.style.top;
500
+ o.iePopUp.style.left = o.div.style.left;
501
+ o.iePopUp.style.width = osw + "px";
502
+ o.iePopUp.style.height = (osh - 2) + "px";
503
+ @end
504
+ @*/
505
+ };
506
+ o.equaliseDates = function() {
507
+ var clearDayFound = false;
508
+ var tmpDate;
509
+ for(var i = o.low; i <= o.high; i++) {
510
+ tmpDate = String(i);
511
+ if(!o.disableDays[new Date(tmpDate.substr(0,4), tmpDate.substr(6,2), tmpDate.substr(4,2)).getDay() - 1]) {
512
+ clearDayFound = true;
513
+ break;
514
+ };
515
+ };
516
+ if(!clearDayFound) o.disableDays = o.defaults.disableDays = [0,0,0,0,0,0,0];
517
+ };
518
+ o.outOfRange = function(tmpDate) {
519
+ if(!o.low && !o.high) return false;
520
+
521
+ var level = false;
522
+ if(!tmpDate) {
523
+ level = true;
524
+ tmpDate = o.date;
525
+ };
526
+
527
+ var d = (tmpDate.getDate() < 10) ? "0" + tmpDate.getDate() : tmpDate.getDate();
528
+ var m = ((tmpDate.getMonth() + 1) < 10) ? "0" + (tmpDate.getMonth() + 1) : tmpDate.getMonth() + 1;
529
+ var y = tmpDate.getFullYear();
530
+ var dt = String(y)+String(m)+String(d);
531
+
532
+ if(o.low && parseInt(dt) < parseInt(o.low)) {
533
+ if(!level) return true;
534
+ o.date = new Date(o.low.substr(0,4), o.low.substr(4,2)-1, o.low.substr(6,2), 5, 0, 0);
535
+ return false;
536
+ };
537
+ if(o.high && parseInt(dt) > parseInt(o.high)) {
538
+ if(!level) return true;
539
+ o.date = new Date( o.high.substr(0,4), o.high.substr(4,2)-1, o.high.substr(6,2), 5, 0, 0);
540
+ };
541
+ return false;
542
+ };
543
+ o.createButton = function() {
544
+ if(o.staticPos) { return; };
545
+
546
+ var but;
547
+
548
+ if(!document.getElementById("fd-but-" + o.id)) {
549
+ var inp = o.getElem();
550
+
551
+ but = document.createElement('a');
552
+ but.href = "#";
553
+
554
+ var span = document.createElement('span');
555
+ span.appendChild(document.createTextNode(String.fromCharCode( 160 )));
556
+
557
+ but.className = "date-picker-control";
558
+ but.title = (typeof(fdLocale) == "object" && options.locale && fdLocale.titles.length > 5) ? fdLocale.titles[5] : "";
559
+
560
+ but.id = "fd-but-" + o.id;
561
+ but.appendChild(span);
562
+
563
+ if(inp.nextSibling) {
564
+ inp.parentNode.insertBefore(but, inp.nextSibling);
565
+ } else {
566
+ inp.parentNode.appendChild(but);
567
+ };
568
+ } else {
569
+ but = document.getElementById("fd-but-" + o.id);
570
+ };
571
+
572
+ but.onclick = but.onpress = function(e) {
573
+ e = e || window.event;
574
+ var inpId = this.id.replace('fd-but-','');
575
+ try { var dp = datePickerController.getDatePicker(inpId); } catch(err) { return false; };
576
+
577
+ if(e.type == "press") {
578
+ var kc = e.keyCode != null ? e.keyCode : e.charCode;
579
+ if(kc != 13) { return true; };
580
+ if(dp.visible) {
581
+ hideAll();
582
+ return false;
583
+ };
584
+ };
585
+
586
+ if(!dp.visible) {
587
+ datePickerController.hideAll(inpId);
588
+ dp.show();
589
+ } else {
590
+ datePickerController.hideAll();
591
+ };
592
+ return false;
593
+ };
594
+ but = null;
595
+ },
596
+ o.create = function() {
597
+
598
+ function createTH(details) {
599
+ var th = document.createElement('th');
600
+ if(details.thClassName) th.className = details.thClassName;
601
+ if(details.colspan) {
602
+ /*@cc_on
603
+ /*@if (@_win32)
604
+ th.setAttribute('colSpan',details.colspan);
605
+ @else @*/
606
+ th.setAttribute('colspan',details.colspan);
607
+ /*@end
608
+ @*/
609
+ };
610
+ /*@cc_on
611
+ /*@if (@_win32)
612
+ th.unselectable = "on";
613
+ /*@end@*/
614
+ return th;
615
+ };
616
+
617
+ function createThAndButton(tr, obj) {
618
+ for(var i = 0, details; details = obj[i]; i++) {
619
+ var th = createTH(details);
620
+ tr.appendChild(th);
621
+ var but = document.createElement('span');
622
+ but.className = details.className;
623
+ but.id = o.id + details.id;
624
+ but.appendChild(document.createTextNode(details.text));
625
+ but.title = details.title || "";
626
+ if(details.onmousedown) but.onmousedown = details.onmousedown;
627
+ if(details.onclick) but.onclick = details.onclick;
628
+ if(details.onmouseout) but.onmouseout = details.onmouseout;
629
+ th.appendChild(but);
630
+ };
631
+ };
632
+
633
+ /*@cc_on
634
+ @if(@_jscript_version <= 5.6)
635
+ if(!document.getElementById("iePopUpHack")) {
636
+ o.iePopUp = document.createElement('iframe');
637
+ o.iePopUp.src = "javascript:'<html></html>';";
638
+ o.iePopUp.setAttribute('className','iehack');
639
+ o.iePopUp.scrolling="no";
640
+ o.iePopUp.frameBorder="0";
641
+ o.iePopUp.name = o.iePopUp.id = "iePopUpHack";
642
+ document.body.appendChild(o.iePopUp);
643
+ } else {
644
+ o.iePopUp = document.getElementById("iePopUpHack");
645
+ };
646
+ @end
647
+ @*/
648
+
649
+ if(typeof(fdLocale) == "object" && o.locale) {
650
+ datePicker.titles = fdLocale.titles;
651
+ datePicker.months = fdLocale.months;
652
+ datePicker.fullDay = fdLocale.fullDay;
653
+ // Optional parameters
654
+ if(fdLocale.dayAbbr) datePicker.dayAbbr = fdLocale.dayAbbr;
655
+ if(fdLocale.firstDayOfWeek) o.firstDayOfWeek = o.defaults.firstDayOfWeek = fdLocale.firstDayOfWeek;
656
+ };
657
+
658
+ o.div = document.createElement('div');
659
+ o.div.style.zIndex = 9999;
660
+ o.div.id = "fd-"+o.id;
661
+ o.div.className = "datePicker";
662
+
663
+ if(!o.staticPos) {
664
+ document.getElementsByTagName('body')[0].appendChild(o.div);
665
+ } else {
666
+ elem = o.getElem();
667
+ if(!elem) {
668
+ o.div = null;
669
+ return;
670
+ };
671
+ o.div.className += " staticDP";
672
+ o.div.setAttribute("tabIndex", "0");
673
+ o.div.onfocus = o.events.onfocus;
674
+ o.div.onblur = o.events.onblur;
675
+ elem.parentNode.insertBefore(o.div, elem.nextSibling);
676
+ if(o.hideInput && elem.type && elem.type == "text") elem.setAttribute("type", "hidden");
677
+ };
678
+
679
+ //var nbsp = String.fromCharCode( 160 );
680
+ var tr, row, col, tableHead, tableBody;
681
+
682
+ o.table = document.createElement('table');
683
+ o.div.appendChild( o.table );
684
+
685
+ tableHead = document.createElement('thead');
686
+ o.table.appendChild( tableHead );
687
+
688
+ tr = document.createElement('tr');
689
+ tableHead.appendChild(tr);
690
+
691
+ // Title Bar
692
+ o.titleBar = createTH({thClassName:"date-picker-title", colspan:7});
693
+ tr.appendChild( o.titleBar );
694
+ tr = null;
695
+
696
+ var span = document.createElement('span');
697
+ span.className = "month-display";
698
+ o.titleBar.appendChild(span);
699
+
700
+ span = document.createElement('span');
701
+ span.className = "year-display";
702
+ o.titleBar.appendChild(span);
703
+
704
+ span = null;
705
+
706
+ tr = document.createElement('tr');
707
+ tableHead.appendChild(tr);
708
+
709
+ createThAndButton(tr, [{className:"prev-but", id:"-prev-year-but", text:"\u00AB", title:datePicker.titles[2], onmousedown:function(e) { o.events.incDec(e,0,-1,0); }, onmouseout:o.events.clearTimer },{className:"prev-but", id:"-prev-month-but", text:"\u2039", title:datePicker.titles[0], onmousedown:function(e) { o.events.incDec(e,0,0,-1); }, onmouseout:o.events.clearTimer },{colspan:3, className:"today-but", id:"-today-but", text:datePicker.titles.length > 4 ? datePicker.titles[4] : "Today", onclick:o.events.gotoToday},{className:"next-but", id:"-next-month-but", text:"\u203A", title:datePicker.titles[1], onmousedown:function(e) { o.events.incDec(e,0,0,1); }, onmouseout:o.events.clearTimer },{className:"next-but", id:"-next-year-but", text:"\u00BB", title:datePicker.titles[3], onmousedown:function(e) { o.events.incDec(e,0,1,0); }, onmouseout:o.events.clearTimer }]);
710
+
711
+ tableBody = document.createElement('tbody');
712
+ o.table.appendChild( tableBody );
713
+
714
+ for(var rows = 0; rows < 7; rows++) {
715
+ row = document.createElement('tr');
716
+
717
+ if(rows != 0) tableBody.appendChild(row);
718
+ else tableHead.appendChild(row);
719
+
720
+ for(var cols = 0; cols < 7; cols++) {
721
+ col = (rows == 0) ? document.createElement('th') : document.createElement('td');
722
+
723
+ row.appendChild(col);
724
+ if(rows != 0) {
725
+ col.appendChild(document.createTextNode(o.nbsp));
726
+ col.onmouseover = o.events.onmouseover;
727
+ col.onclick = o.events.onclick;
728
+ } else {
729
+ col.className = "date-picker-day-header";
730
+ col.scope = "col";
731
+ };
732
+ col = null;
733
+ };
734
+ row = null;
735
+ };
736
+
737
+ // Table headers
738
+ var but;
739
+ var ths = o.table.getElementsByTagName('thead')[0].getElementsByTagName('tr')[2].getElementsByTagName('th');
740
+ for ( var y = 0; y < 7; y++ ) {
741
+ if(y > 0) {
742
+ but = document.createElement("span");
743
+ but.className = "fd-day-header";
744
+ but.onclick = ths[y].onclick = o.setFirstDayOfWeek;
745
+ but.appendChild(document.createTextNode(o.nbsp));
746
+ ths[y].appendChild(but);
747
+ but = null;
748
+ } else {
749
+ ths[y].appendChild(document.createTextNode(o.nbsp));
750
+ };
751
+ };
752
+
753
+ o.ths = o.table.getElementsByTagName('thead')[0].getElementsByTagName('tr')[2].getElementsByTagName('th');
754
+ o.trs = o.table.getElementsByTagName('tbody')[0].getElementsByTagName('tr');
755
+
756
+ o.updateTableHeaders();
757
+
758
+ tableBody = tableHead = tr = createThAndButton = createTH = null;
759
+
760
+ if(o.low && o.high && (o.high - o.low < 7)) { o.equaliseDates(); };
761
+
762
+ o.created = true;
763
+
764
+ if(o.staticPos) {
765
+ var yyN = document.getElementById(o.id);
766
+ datePickerController.addEvent(yyN, "change", o.changeHandler);
767
+ if(o.splitDate) {
768
+ var mmN = document.getElementById(o.id+'-mm');
769
+ var ddN = document.getElementById(o.id+'-dd');
770
+ datePickerController.addEvent(mmN, "change", o.changeHandler);
771
+ datePickerController.addEvent(ddN, "change", o.changeHandler);
772
+ };
773
+
774
+ o.show();
775
+ } else {
776
+ o.createButton();
777
+ o.resize();
778
+ o.fade();
779
+ };
780
+ };
781
+ o.changeHandler = function() {
782
+ o.setDateFromInput();
783
+ o.updateTable();
784
+ };
785
+ o.setDateFromInput = function() {
786
+ function m2c(val) {
787
+ return String(val).length < 2 ? "00".substring(0, 2 - String(val).length) + String(val) : val;
788
+ };
789
+
790
+ o.dateSet = null;
791
+
792
+ var elem = o.getElem();
793
+ if(!elem) return;
794
+
795
+ if(!o.splitDate) {
796
+ var date = datePickerController.dateFormat(elem.value, o.format.search(/m-d-y/i) != -1);
797
+ } else {
798
+ var mmN = document.getElementById(o.id+'-mm');
799
+ var ddN = document.getElementById(o.id+'-dd');
800
+ var tm = parseInt(mmN.tagName.toLowerCase() == "input" ? mmN.value : mmN.options[mmN.selectedIndex].value, 10);
801
+ var td = parseInt(ddN.tagName.toLowerCase() == "input" ? ddN.value : ddN.options[ddN.selectedIndex].value, 10);
802
+ var ty = parseInt(elem.tagName.toLowerCase() == "input" ? elem.value : elem.options[elem.selectedIndex || 0].value, 10);
803
+ var date = datePickerController.dateFormat(tm + "/" + td + "/" + ty, true);
804
+ };
805
+
806
+ var badDate = false;
807
+ if(!date) {
808
+ badDate = true;
809
+ date = String(new Date().getFullYear()) + m2c(new Date().getMonth()+1) + m2c(new Date().getDate());
810
+ };
811
+
812
+ var d,m,y;
813
+ y = Number(date.substr(0, 4));
814
+ m = Number(date.substr(4, 2)) - 1;
815
+ d = Number(date.substr(6, 2));
816
+
817
+ var dpm = datePicker.getDaysPerMonth(m, y);
818
+ if(d > dpm) d = dpm;
819
+
820
+ if(new Date(y, m, d) == 'Invalid Date' || new Date(y, m, d) == 'NaN') {
821
+ badDate = true;
822
+ o.date = new Date();
823
+ o.date.setHours(5);
824
+ return;
825
+ };
826
+
827
+ o.date = new Date(y, m, d);
828
+ o.date.setHours(5);
829
+
830
+ if(!badDate) o.dateSet = new Date(o.date);
831
+ m2c = null;
832
+ };
833
+ o.setSelectIndex = function(elem, indx) {
834
+ var len = elem.options.length;
835
+ indx = Number(indx);
836
+ for(var opt = 0; opt < len; opt++) {
837
+ if(elem.options[opt].value == indx) {
838
+ elem.selectedIndex = opt;
839
+ return;
840
+ };
841
+ };
842
+ },
843
+ o.returnFormattedDate = function() {
844
+
845
+ var elem = o.getElem();
846
+ if(!elem) return;
847
+
848
+ var d = (o.date.getDate() < 10) ? "0" + o.date.getDate() : o.date.getDate();
849
+ var m = ((o.date.getMonth() + 1) < 10) ? "0" + (o.date.getMonth() + 1) : o.date.getMonth() + 1;
850
+ var yyyy = o.date.getFullYear();
851
+ var disabledDates = o.getDisabledDates(yyyy, m);
852
+ var weekDay = ( o.date.getDay() + 6 ) % 7;
853
+
854
+ if(!(o.disableDays[weekDay] || String(yyyy)+m+d in disabledDates)) {
855
+
856
+ if(o.splitDate) {
857
+ var ddE = document.getElementById(o.id+"-dd");
858
+ var mmE = document.getElementById(o.id+"-mm");
859
+
860
+ if(ddE.tagName.toLowerCase() == "input") { ddE.value = d; }
861
+ else { o.setSelectIndex(ddE, d); /*ddE.selectedIndex = d - 1;*/ };
862
+
863
+ if(mmE.tagName.toLowerCase() == "input") { mmE.value = m; }
864
+ else { o.setSelectIndex(mmE, m); /*mmE.selectedIndex = m - 1;*/ };
865
+
866
+ if(elem.tagName.toLowerCase() == "input") elem.value = yyyy;
867
+ else {
868
+ o.setSelectIndex(elem, yyyy); /*
869
+ for(var opt = 0; opt < elem.options.length; opt++) {
870
+ if(elem.options[opt].value == yyyy) {
871
+ elem.selectedIndex = opt;
872
+ break;
873
+ };
874
+ };
875
+ */
876
+ };
877
+ } else {
878
+ elem.value = o.format.replace('y',yyyy).replace('m',m).replace('d',d).replace(/-/g,o.divider);
879
+ };
880
+ if(!elem.type || elem.type && elem.type != "hidden"){ elem.focus(); }
881
+ if(o.staticPos) {
882
+ o.dateSet = new Date( o.date );
883
+ o.updateTable();
884
+ };
885
+
886
+ // Programmatically fire the onchange event
887
+ if(document.createEvent) {
888
+ var onchangeEvent = document.createEvent('HTMLEvents');
889
+ onchangeEvent.initEvent('change', true, false);
890
+ elem.dispatchEvent(onchangeEvent);
891
+ } else if(document.createEventObject) {
892
+ elem.fireEvent('onchange');
893
+ };
894
+ };
895
+ };
896
+ o.disableTodayButton = function() {
897
+ var today = new Date();
898
+ document.getElementById(o.id + "-today-but").className = document.getElementById(o.id + "-today-but").className.replace("fd-disabled", "");
899
+ if(o.outOfRange(today) || (o.date.getDate() == today.getDate() && o.date.getMonth() == today.getMonth() && o.date.getFullYear() == today.getFullYear())) {
900
+ document.getElementById(o.id + "-today-but").className += " fd-disabled";
901
+ document.getElementById(o.id + "-today-but").onclick = null;
902
+ } else {
903
+ document.getElementById(o.id + "-today-but").onclick = o.events.gotoToday;
904
+ };
905
+ };
906
+ o.updateTableHeaders = function() {
907
+ var d, but;
908
+ var ths = o.ths;
909
+ for ( var y = 0; y < 7; y++ ) {
910
+ d = (o.firstDayOfWeek + y) % 7;
911
+ ths[y].title = datePicker.fullDay[d];
912
+
913
+ if(y > 0) {
914
+ but = ths[y].getElementsByTagName("span")[0];
915
+ but.removeChild(but.firstChild);
916
+ but.appendChild(document.createTextNode(datePicker.dayAbbr ? datePicker.dayAbbr[d] : datePicker.fullDay[d].charAt(0)));
917
+ but.title = datePicker.fullDay[d];
918
+ but = null;
919
+ } else {
920
+ ths[y].removeChild(ths[y].firstChild);
921
+ ths[y].appendChild(document.createTextNode(datePicker.dayAbbr ? datePicker.dayAbbr[d] : datePicker.fullDay[d].charAt(0)));
922
+ };
923
+ };
924
+ o.updateTable();
925
+ };
926
+
927
+ o.updateTable = function(noCallback) {
928
+
929
+ if(o.timerSet) {
930
+ var d = new Date(o.date);
931
+ d.setDate( Math.min(d.getDate()+o.dayInc, datePicker.getDaysPerMonth(d.getMonth()+o.monthInc,d.getFullYear()+o.yearInc)) );
932
+ d.setMonth( d.getMonth() + o.monthInc );
933
+ d.setFullYear( d.getFullYear() + o.yearInc );
934
+ o.date = d;
935
+ };
936
+
937
+ if(!noCallback && "onupdate" in datePickerController && typeof(datePickerController.onupdate) == "function") datePickerController.onupdate(o);
938
+
939
+ o.outOfRange();
940
+ o.disableTodayButton();
941
+
942
+ // Set the tmpDate to the second day of this month (to avoid daylight savings time madness on Windows)
943
+ var tmpDate = new Date( o.date.getFullYear(), o.date.getMonth(), 2 );
944
+ tmpDate.setHours(5);
945
+
946
+ var tdm = tmpDate.getMonth();
947
+ var tdy = tmpDate.getFullYear();
948
+
949
+ // Do the disableDates for this year and month
950
+ var disabledDates = o.getDisabledDates(o.date.getFullYear(), o.date.getMonth() + 1);
951
+
952
+ var today = new Date();
953
+
954
+ // Previous buttons out of range
955
+ var b = document.getElementById(o.id + "-prev-year-but");
956
+ b.className = b.className.replace("fd-disabled", "");
957
+ if(o.outOfRange(new Date((tdy - 1), Number(tdm), datePicker.getDaysPerMonth(Number(tdm), tdy-1)))) {
958
+ b.className += " fd-disabled";
959
+ if(o.yearInc == -1) o.stopTimer();
960
+ };
961
+
962
+ b = document.getElementById(o.id + "-prev-month-but")
963
+ b.className = b.className.replace("fd-disabled", "");
964
+ if(o.outOfRange(new Date(tdy, (Number(tdm) - 1), datePicker.getDaysPerMonth(Number(tdm)-1, tdy)))) {
965
+ b.className += " fd-disabled";
966
+ if(o.monthInc == -1) o.stopTimer();
967
+ };
968
+
969
+ // Next buttons out of range
970
+ b= document.getElementById(o.id + "-next-year-but")
971
+ b.className = b.className.replace("fd-disabled", "");
972
+ if(o.outOfRange(new Date((tdy + 1), Number(tdm), 1))) {
973
+ b.className += " fd-disabled";
974
+ if(o.yearInc == 1) o.stopTimer();
975
+ };
976
+
977
+ b = document.getElementById(o.id + "-next-month-but")
978
+ b.className = b.className.replace("fd-disabled", "");
979
+ if(o.outOfRange(new Date(tdy, Number(tdm) + 1, 1))) {
980
+ b.className += " fd-disabled";
981
+ if(o.monthInc == 1) o.stopTimer();
982
+ };
983
+
984
+ b = null;
985
+
986
+ var cd = o.date.getDate();
987
+ var cm = o.date.getMonth();
988
+ var cy = o.date.getFullYear();
989
+
990
+ // Title Bar
991
+ var span = o.titleBar.getElementsByTagName("span");
992
+ while(span[0].firstChild) span[0].removeChild(span[0].firstChild);
993
+ while(span[1].firstChild) span[1].removeChild(span[1].firstChild);
994
+ span[0].appendChild(document.createTextNode(datePicker.months[cm] + o.nbsp));
995
+ span[1].appendChild(document.createTextNode(cy));
996
+
997
+ tmpDate.setDate( 1 );
998
+
999
+ var dt, cName, td, tds, i;
1000
+ var weekDay = ( tmpDate.getDay() + 6 ) % 7;
1001
+ var firstColIndex = (( (weekDay - o.firstDayOfWeek) + 7 ) % 7) - 1;
1002
+ var dpm = datePicker.getDaysPerMonth(cm, cy);
1003
+
1004
+ var todayD = today.getDate();
1005
+ var todayM = today.getMonth();
1006
+ var todayY = today.getFullYear();
1007
+
1008
+ var c = "class";
1009
+ /*@cc_on
1010
+ @if(@_win32)
1011
+ c = "className";
1012
+ @end
1013
+ @*/
1014
+
1015
+ var stub = String(tdy) + (String(tdm+1).length < 2 ? "0" + (tdm+1) : tdm+1);
1016
+
1017
+ for(var row = 0; row < 6; row++) {
1018
+
1019
+ tds = o.trs[row].getElementsByTagName('td');
1020
+
1021
+ for(var col = 0; col < 7; col++) {
1022
+
1023
+ td = tds[col];
1024
+ td.removeChild(td.firstChild);
1025
+
1026
+ td.setAttribute("id", "");
1027
+ td.setAttribute("title", "");
1028
+
1029
+ i = (row * 7) + col;
1030
+
1031
+ if(i > firstColIndex && i <= (firstColIndex + dpm)) {
1032
+ dt = i - firstColIndex;
1033
+
1034
+ tmpDate.setDate(dt);
1035
+ td.appendChild(document.createTextNode(dt));
1036
+
1037
+ if(o.outOfRange(tmpDate)) {
1038
+ td.setAttribute(c, "out-of-range");
1039
+ } else {
1040
+
1041
+ cName = [];
1042
+ weekDay = ( tmpDate.getDay() + 6 ) % 7;
1043
+
1044
+ if(dt == todayD && tdm == todayM && tdy == todayY) {
1045
+ cName.push("date-picker-today");
1046
+ };
1047
+
1048
+ if(o.dateSet != null && o.dateSet.getDate() == dt && o.dateSet.getMonth() == tdm && o.dateSet.getFullYear() == tdy) {
1049
+ cName.push("date-picker-selected-date");
1050
+ };
1051
+
1052
+ if(o.disableDays[weekDay] || stub + String(dt < 10 ? "0" + dt : dt) in disabledDates) {
1053
+ cName.push("day-disabled");
1054
+ } else if(o.highlightDays[weekDay]) {
1055
+ cName.push("date-picker-highlight");
1056
+ };
1057
+
1058
+ if(cd == dt) {
1059
+ td.setAttribute("id", o.id + "-date-picker-hover");
1060
+ cName.push("date-picker-hover");
1061
+ };
1062
+
1063
+ cName.push("dm-" + dt + '-' + (tdm + 1) + " " + " dmy-" + dt + '-' + (tdm + 1) + '-' + tdy);
1064
+ td.setAttribute(c, cName.join(' '));
1065
+ td.setAttribute("title", datePicker.months[cm] + o.nbsp + dt + "," + o.nbsp + cy);
1066
+ };
1067
+ } else {
1068
+ td.appendChild(document.createTextNode(o.nbsp));
1069
+ td.setAttribute(c, "date-picker-unused");
1070
+ };
1071
+ };
1072
+ };
1073
+
1074
+ if(o.timerSet) {
1075
+ o.timerInc = 50 + Math.round(((o.timerInc - 50) / 1.8));
1076
+ o.timer = window.setTimeout(o.updateTable, o.timerInc);
1077
+ };
1078
+ };
1079
+ o.addKeyboardEvents = function() {
1080
+ datePickerController.addEvent(document, "keypress", o.events.onkeydown);
1081
+ /*@cc_on
1082
+ @if(@_win32)
1083
+ datePickerController.removeEvent(document, "keypress", o.events.onkeydown);
1084
+ datePickerController.addEvent(document, "keydown", o.events.onkeydown);
1085
+ @end
1086
+ @*/
1087
+ if(window.devicePixelRatio) {
1088
+ datePickerController.removeEvent(document, "keypress", o.events.onkeydown);
1089
+ datePickerController.addEvent(document, "keydown", o.events.onkeydown);
1090
+ };
1091
+ };
1092
+ o.removeKeyboardEvents =function() {
1093
+ datePickerController.removeEvent(document, "keypress", o.events.onkeydown);
1094
+ datePickerController.removeEvent(document, "keydown", o.events.onkeydown);
1095
+ };
1096
+ o.show = function() {
1097
+ var elem = o.getElem();
1098
+ if(!elem || o.visible || elem.disabled) return;
1099
+
1100
+ o.reset();
1101
+ o.setDateFromInput();
1102
+ o.updateTable();
1103
+
1104
+ if(!o.staticPos) o.resize();
1105
+
1106
+ datePickerController.addEvent(o.staticPos ? o.table : document, "mousedown", o.events.onmousedown);
1107
+
1108
+ if(!o.staticPos) { o.addKeyboardEvents(); };
1109
+
1110
+ o.opacityTo = o.noTransparency ? 99 : 90;
1111
+ o.div.style.display = "block";
1112
+ /*@cc_on
1113
+ @if(@_jscript_version <= 5.6)
1114
+ if(!o.staticPos) o.iePopUp.style.display = "block";
1115
+ @end
1116
+ @*/
1117
+
1118
+ o.fade();
1119
+ o.visible = true;
1120
+ };
1121
+ o.hide = function() {
1122
+ if(!o.visible) return;
1123
+ o.stopTimer();
1124
+ if(o.staticPos) return;
1125
+
1126
+ datePickerController.removeEvent(document, "mousedown", o.events.onmousedown);
1127
+ datePickerController.removeEvent(document, "mouseup", o.events.clearTimer);
1128
+ o.removeKeyboardEvents();
1129
+
1130
+ /*@cc_on
1131
+ @if(@_jscript_version <= 5.6)
1132
+ o.iePopUp.style.display = "none";
1133
+ @end
1134
+ @*/
1135
+
1136
+ o.opacityTo = 0;
1137
+ o.fade();
1138
+ o.visible = false;
1139
+ var elem = o.getElem();
1140
+ if(!elem.type || elem.type && elem.type != "hidden") { elem.focus(); };
1141
+ };
1142
+ o.destroy = function() {
1143
+ // Cleanup for Internet Explorer
1144
+ datePickerController.removeEvent(o.staticPos ? o.table : document, "mousedown", o.events.onmousedown);
1145
+ datePickerController.removeEvent(document, "mouseup", o.events.clearTimer);
1146
+ o.removeKeyboardEvents();
1147
+
1148
+ if(o.staticPos) {
1149
+ var yyN = document.getElementById(o.id);
1150
+ datePickerController.removeEvent(yyN, "change", o.changeHandler);
1151
+ if(o.splitDate) {
1152
+ var mmN = document.getElementById(o.id+'-mm');
1153
+ var ddN = document.getElementById(o.id+'-dd');
1154
+
1155
+ datePickerController.removeEvent(mmN, "change", o.changeHandler);
1156
+ datePickerController.removeEvent(ddN, "change", o.changeHandler);
1157
+ };
1158
+ o.div.onfocus = o.div.onblur = null;
1159
+ };
1160
+
1161
+ var ths = o.table.getElementsByTagName("th");
1162
+ for(var i = 0, th; th = ths[i]; i++) {
1163
+ th.onmouseover = th.onmouseout = th.onmousedown = th.onclick = null;
1164
+ };
1165
+
1166
+ var tds = o.table.getElementsByTagName("td");
1167
+ for(var i = 0, td; td = tds[i]; i++) {
1168
+ td.onmouseover = td.onclick = null;
1169
+ };
1170
+
1171
+ var butts = o.table.getElementsByTagName("span");
1172
+ for(var i = 0, butt; butt = butts[i]; i++) {
1173
+ butt.onmousedown = butt.onclick = butt.onkeypress = null;
1174
+ };
1175
+
1176
+ o.ths = o.trs = null;
1177
+
1178
+ clearTimeout(o.fadeTimer);
1179
+ clearTimeout(o.timer);
1180
+ o.fadeTimer = o.timer = null;
1181
+
1182
+ /*@cc_on
1183
+ @if(@_jscript_version <= 5.6)
1184
+ o.iePopUp = null;
1185
+ @end
1186
+ @*/
1187
+
1188
+ if(!o.staticPos && document.getElementById(o.id.replace(/^fd-/, 'fd-but-'))) {
1189
+ var butt = document.getElementById(o.id.replace(/^fd-/, 'fd-but-'));
1190
+ butt.onclick = butt.onpress = null;
1191
+ };
1192
+
1193
+ if(o.div && o.div.parentNode) {
1194
+ o.div.parentNode.removeChild(o.div);
1195
+ };
1196
+
1197
+ o.titleBar = o.table = o.div = null;
1198
+ o = null;
1199
+ };
1200
+ o.create();
1201
+ };
1202
+
1203
+ datePickerController = function() {
1204
+ var datePickers = {};
1205
+ var uniqueId = 0;
1206
+
1207
+ var addEvent = function(obj, type, fn) {
1208
+ if( obj.attachEvent ) {
1209
+ obj["e"+type+fn] = fn;
1210
+ obj[type+fn] = function(){obj["e"+type+fn]( window.event );};
1211
+ obj.attachEvent( "on"+type, obj[type+fn] );
1212
+ } else {
1213
+ obj.addEventListener( type, fn, true );
1214
+ };
1215
+ };
1216
+ var removeEvent = function(obj, type, fn) {
1217
+ try {
1218
+ if( obj.detachEvent ) {
1219
+ obj.detachEvent( "on"+type, obj[type+fn] );
1220
+ obj[type+fn] = null;
1221
+ } else {
1222
+ obj.removeEventListener( type, fn, true );
1223
+ };
1224
+ } catch(err) {};
1225
+ };
1226
+ var hideAll = function(exception) {
1227
+ var dp;
1228
+ for(dp in datePickers) {
1229
+ if(!datePickers[dp].created || datePickers[dp].staticPos) continue;
1230
+ if(exception && exception == datePickers[dp].id) { continue; };
1231
+ if(document.getElementById(datePickers[dp].id)) { datePickers[dp].hide(); };
1232
+ };
1233
+ };
1234
+ var cleanUp = function() {
1235
+ var dp;
1236
+ for(dp in datePickers) {
1237
+ if(!document.getElementById(datePickers[dp].id)) {
1238
+ if(!datePickers[dp].created) continue;
1239
+ datePickers[dp].destroy();
1240
+ datePickers[dp] = null;
1241
+ delete datePickers[dp];
1242
+ };
1243
+ };
1244
+ };
1245
+ var destroy = function() {
1246
+ for(dp in datePickers) {
1247
+ if(!datePickers[dp].created) continue;
1248
+ datePickers[dp].destroy();
1249
+ datePickers[dp] = null;
1250
+ delete datePickers[dp];
1251
+ };
1252
+ datePickers = null;
1253
+ /*@cc_on
1254
+ @if(@_jscript_version <= 5.6)
1255
+ if(document.getElementById("iePopUpHack")) {
1256
+ document.body.removeChild(document.getElementById("iePopUpHack"));
1257
+ };
1258
+ @end
1259
+ @*/
1260
+ datePicker.script = null;
1261
+ removeEvent(window, 'load', datePickerController.create);
1262
+ removeEvent(window, 'unload', datePickerController.destroy);
1263
+ };
1264
+ var dateFormat = function(dateIn, favourMDY) {
1265
+ var dateTest = [
1266
+ { regExp:/^(0?[1-9]|[12][0-9]|3[01])([- \/.])(0?[1-9]|1[012])([- \/.])((\d\d)?\d\d)$/, d:1, m:3, y:5 }, // dmy
1267
+ { regExp:/^(0?[1-9]|1[012])([- \/.])(0?[1-9]|[12][0-9]|3[01])([- \/.])((\d\d)?\d\d)$/, d:3, m:1, y:5 }, // mdy
1268
+ { regExp:/^(\d\d\d\d)([- \/.])(0?[1-9]|1[012])([- \/.])(0?[1-9]|[12][0-9]|3[01])$/, d:5, m:3, y:1 } // ymd
1269
+ ];
1270
+
1271
+ var start;
1272
+ var cnt = 0;
1273
+ while(cnt < 3) {
1274
+ start = (cnt + (favourMDY ? 4 : 3)) % 3;
1275
+ if(dateIn.match(dateTest[start].regExp)) {
1276
+ res = dateIn.match(dateTest[start].regExp);
1277
+ y = res[dateTest[start].y];
1278
+ m = res[dateTest[start].m];
1279
+ d = res[dateTest[start].d];
1280
+ if(m.length == 1) m = "0" + m;
1281
+ if(d.length == 1) d = "0" + d;
1282
+ if(y.length != 4) y = (parseInt(y) < 50) ? '20' + y : '19' + y;
1283
+ return String(y)+m+d;
1284
+ };
1285
+ cnt++;
1286
+ };
1287
+ return 0;
1288
+ };
1289
+ var joinNodeLists = function() {
1290
+ if(!arguments.length) { return []; }
1291
+ var nodeList = [];
1292
+ for (var i = 0; i < arguments.length; i++) {
1293
+ for (var j = 0, item; item = arguments[i][j]; j++) {
1294
+ nodeList[nodeList.length] = item;
1295
+ };
1296
+ };
1297
+ return nodeList;
1298
+ };
1299
+ var addDatePicker = function(inpId, options) {
1300
+ if(!(inpId in datePickers)) {
1301
+ datePickers[inpId] = new datePicker(options);
1302
+ };
1303
+ };
1304
+ var getDatePicker = function(inpId) {
1305
+ if(!(inpId in datePickers)) { throw "No datePicker has been created for the form element with an id of '" + inpId.toString() + "'"; };
1306
+ return datePickers[inpId];
1307
+ };
1308
+ var grepRangeLimits = function(sel) {
1309
+ var range = [];
1310
+ for(var i = 0; i < sel.options.length; i++) {
1311
+ if(sel.options[i].value.search(/^\d\d\d\d$/) == -1) { continue; };
1312
+ if(!range[0] || Number(sel.options[i].value) < range[0]) { range[0] = Number(sel.options[i].value); };
1313
+ if(!range[1] || Number(sel.options[i].value) > range[1]) { range[1] = Number(sel.options[i].value); };
1314
+ };
1315
+ return range;
1316
+ };
1317
+ var create = function(inp) {
1318
+ if(!(typeof document.createElement != "undefined" && typeof document.documentElement != "undefined" && typeof document.documentElement.offsetWidth == "number")) return;
1319
+
1320
+ var inputs = (inp && inp.tagName) ? [inp] : joinNodeLists(document.getElementsByTagName('input'), document.getElementsByTagName('select'));
1321
+ var regExp1 = /disable-days-([1-7]){1,6}/g; // the days to disable
1322
+ var regExp2 = /no-transparency/g; // do not use transparency effects
1323
+ var regExp3 = /highlight-days-([1-7]){1,7}/g; // the days to highlight in red
1324
+ var regExp4 = /range-low-(\d\d\d\d-\d\d-\d\d)/g; // the lowest selectable date
1325
+ var regExp5 = /range-high-(\d\d\d\d-\d\d-\d\d)/g; // the highest selectable date
1326
+ var regExp6 = /format-(d-m-y|m-d-y|y-m-d)/g; // the input/output date format
1327
+ var regExp7 = /divider-(dot|slash|space|dash)/g; // the character used to divide the date
1328
+ var regExp8 = /no-locale/g; // do not attempt to detect the browser language
1329
+ var regExp9 = /no-fade/g; // always show the datepicker
1330
+ var regExp10 = /hide-input/g; // hide the input
1331
+
1332
+ for(var i=0, inp; inp = inputs[i]; i++) {
1333
+ if(inp.className && (inp.className.search(regExp6) != -1 || inp.className.search(/split-date/) != -1) && ((inp.tagName.toLowerCase() == "input" && (inp.type == "text" || inp.type == "hidden")) || inp.tagName.toLowerCase() == "select")) {
1334
+
1335
+ if(inp.id && document.getElementById('fd-'+inp.id)) { continue; };
1336
+
1337
+ if(!inp.id) { inp.id = "fdDatePicker-" + uniqueId++; };
1338
+
1339
+ var options = {
1340
+ id:inp.id,
1341
+ low:"",
1342
+ high:"",
1343
+ divider:"/",
1344
+ format:"d-m-y",
1345
+ highlightDays:[0,0,0,0,0,1,1],
1346
+ disableDays:[0,0,0,0,0,0,0],
1347
+ locale:inp.className.search(regExp8) == -1,
1348
+ splitDate:0,
1349
+ noTransparency:inp.className.search(regExp2) != -1,
1350
+ staticPos:inp.className.search(regExp9) != -1,
1351
+ hideInput:inp.className.search(regExp10) != -1
1352
+ };
1353
+
1354
+ if(!options.staticPos) {
1355
+ options.hideInput = false;
1356
+ } else {
1357
+ options.noTransparency = true;
1358
+ };
1359
+
1360
+ // Split the date into three parts ?
1361
+ if(inp.className.search(/split-date/) != -1) {
1362
+ if(document.getElementById(inp.id+'-dd') && document.getElementById(inp.id+'-mm') && document.getElementById(inp.id+'-dd').tagName.search(/input|select/i) != -1 && document.getElementById(inp.id+'-mm').tagName.search(/input|select/i) != -1) {
1363
+ options.splitDate = 1;
1364
+ };
1365
+ };
1366
+
1367
+ // Date format(variations of d-m-y)
1368
+ if(inp.className.search(regExp6) != -1) {
1369
+ options.format = inp.className.match(regExp6)[0].replace('format-','');
1370
+ };
1371
+
1372
+ // What divider to use, a "/", "-", "." or " "
1373
+ if(inp.className.search(regExp7) != -1) {
1374
+ var dividers = { dot:".", space:" ", dash:"-", slash:"/" };
1375
+ options.divider = (inp.className.search(regExp7) != -1 && inp.className.match(regExp7)[0].replace('divider-','') in dividers) ? dividers[inp.className.match(regExp7)[0].replace('divider-','')] : "/";
1376
+ };
1377
+
1378
+ // The days to highlight
1379
+ if(inp.className.search(regExp3) != -1) {
1380
+ var tmp = inp.className.match(regExp3)[0].replace(/highlight-days-/, '');
1381
+ options.highlightDays = [0,0,0,0,0,0,0];
1382
+ for(var j = 0; j < tmp.length; j++) {
1383
+ options.highlightDays[tmp.charAt(j) - 1] = 1;
1384
+ };
1385
+ };
1386
+
1387
+ // The days to disable
1388
+ if(inp.className.search(regExp1) != -1) {
1389
+ var tmp = inp.className.match(regExp1)[0].replace(/disable-days-/, '');
1390
+ options.disableDays = [0,0,0,0,0,0,0];
1391
+ for(var j = 0; j < tmp.length; j++) {
1392
+ options.disableDays[tmp.charAt(j) - 1] = 1;
1393
+ };
1394
+ };
1395
+
1396
+ // The lower limit
1397
+ if(inp.className.search(/range-low-today/i) != -1) {
1398
+ options.low = datePickerController.dateFormat((new Date().getMonth() + 1) + "/" + new Date().getDate() + "/" + new Date().getFullYear(), true);
1399
+ } else if(inp.className.search(regExp4) != -1) {
1400
+ options.low = datePickerController.dateFormat(inp.className.match(regExp4)[0].replace(/range-low-/, ''), false);
1401
+ if(!options.low) {
1402
+ options.low = '';
1403
+ };
1404
+ };
1405
+
1406
+ // The higher limit
1407
+ if(inp.className.search(/range-high-today/i) != -1 && inp.className.search(/range-low-today/i) == -1) {
1408
+ options.high = datePickerController.dateFormat((new Date().getMonth() + 1) + "/" + new Date().getDate() + "/" + new Date().getFullYear(), true);
1409
+ } else if(inp.className.search(regExp5) != -1) {
1410
+ options.high = datePickerController.dateFormat(inp.className.match(regExp5)[0].replace(/range-high-/, ''), false);
1411
+ if(!options.high) {
1412
+ options.high = '';
1413
+ };
1414
+ };
1415
+
1416
+ // Always round lower & higher limits if a selectList involved
1417
+ if(inp.tagName.search(/select/i) != -1) {
1418
+ var range = grepRangeLimits(inp);
1419
+ options.low = options.low ? range[0] + String(options.low).substr(4,4) : datePickerController.dateFormat(range[0] + "/01/01");
1420
+ options.high = options.high ? range[1] + String(options.low).substr(4,4) : datePickerController.dateFormat(range[1] + "/12/31");
1421
+ };
1422
+
1423
+ addDatePicker(inp.id, options);
1424
+ };
1425
+ };
1426
+ }
1427
+
1428
+ return {
1429
+ addEvent:addEvent,
1430
+ removeEvent:removeEvent,
1431
+ create:create,
1432
+ destroy:destroy,
1433
+ cleanUp:cleanUp,
1434
+ addDatePicker:addDatePicker,
1435
+ getDatePicker:getDatePicker,
1436
+ dateFormat:dateFormat,
1437
+ datePickers:datePickers,
1438
+ hideAll:hideAll
1439
+ };
1440
+ }();
1441
+
1442
+ })();
1443
+
1444
+ datePickerController.addEvent(window, 'load', datePickerController.create);
1445
+ datePickerController.addEvent(window, 'unload', datePickerController.destroy);