datashift_spree 0.1.0
Sign up to get free protection for your applications and to get access to all the features.
- data/LICENSE.txt +27 -0
- data/README.markdown +81 -0
- data/VERSION +1 -0
- data/datashift_spree.gemspec +36 -0
- data/datashift_spree.thor +52 -0
- data/lib/datashift_spree.rb +118 -0
- data/lib/datashift_spree_helper.rb +32 -0
- data/lib/helpers/spree_helper.rb +74 -0
- data/lib/loaders/spree/image_loader.rb +74 -0
- data/lib/loaders/spree/product_loader.rb +359 -0
- data/lib/thor/spree/bootstrap_cleanup.thor +61 -0
- data/lib/thor/spree/products_images.thor +252 -0
- data/lib/thor/spree/reports.thor +56 -0
- data/spec/Gemfile +28 -0
- data/spec/Gemfile.lock +243 -0
- data/spec/VERSION +1 -0
- data/spec/fixtures/SpreeImages.xls +0 -0
- data/spec/fixtures/SpreeMultiVariant.csv +4 -0
- data/spec/fixtures/SpreeProducts.csv +4 -0
- data/spec/fixtures/SpreeProducts.xls +0 -0
- data/spec/fixtures/SpreeProductsComplexTaxons.csv +6 -0
- data/spec/fixtures/SpreeProductsComplexTaxons.xls +0 -0
- data/spec/fixtures/SpreeProductsDefaults.yml +15 -0
- data/spec/fixtures/SpreeProductsMandatoryOnly.xls +0 -0
- data/spec/fixtures/SpreeProductsMultiColumn.csv +4 -0
- data/spec/fixtures/SpreeProductsMultiColumn.xls +0 -0
- data/spec/fixtures/SpreeProductsSimple.csv +4 -0
- data/spec/fixtures/SpreeProductsSimple.xls +0 -0
- data/spec/fixtures/SpreeProductsWithImages.csv +4 -0
- data/spec/fixtures/SpreeProductsWithImages.xls +0 -0
- data/spec/fixtures/SpreeZoneExample.csv +5 -0
- data/spec/fixtures/SpreeZoneExample.xls +0 -0
- data/spec/fixtures/config/database.yml +28 -0
- data/spec/fixtures/images/DEMO_001_ror_bag.jpeg +0 -0
- data/spec/fixtures/images/DEMO_002_Powerstation.jpg +0 -0
- data/spec/fixtures/images/DEMO_003_ror_mug.jpeg +0 -0
- data/spec/fixtures/images/DEMO_004_ror_ringer.jpeg +0 -0
- data/spec/fixtures/negative/SpreeProdMiss1Mandatory.csv +4 -0
- data/spec/fixtures/negative/SpreeProdMiss1Mandatory.xls +0 -0
- data/spec/fixtures/negative/SpreeProdMissManyMandatory.csv +4 -0
- data/spec/fixtures/negative/SpreeProdMissManyMandatory.xls +0 -0
- data/spec/fixtures/results/taxon_and_assoc_export_spec.xls +0 -0
- data/spec/fixtures/results/taxon_export_spec.xls +0 -0
- data/spec/logs/datashift_spec.log +10166 -0
- data/spec/logs/spree_sandbox.log +54803 -0
- data/spec/sandbox/Gemfile +43 -0
- data/spec/sandbox/README.rdoc +261 -0
- data/spec/sandbox/Rakefile +7 -0
- data/spec/sandbox/app/assets/images/rails.png +0 -0
- data/spec/sandbox/app/assets/javascripts/admin/all.js +12 -0
- data/spec/sandbox/app/assets/javascripts/application.js +15 -0
- data/spec/sandbox/app/assets/javascripts/store/all.js +14 -0
- data/spec/sandbox/app/assets/stylesheets/admin/all.css +13 -0
- data/spec/sandbox/app/assets/stylesheets/application.css +13 -0
- data/spec/sandbox/app/assets/stylesheets/store/all.css +13 -0
- data/spec/sandbox/app/controllers/application_controller.rb +3 -0
- data/spec/sandbox/app/helpers/application_helper.rb +2 -0
- data/spec/sandbox/app/views/layouts/application.html.erb +14 -0
- data/spec/sandbox/config.ru +4 -0
- data/spec/sandbox/config/application.rb +75 -0
- data/spec/sandbox/config/boot.rb +6 -0
- data/spec/sandbox/config/database.yml +20 -0
- data/spec/sandbox/config/environment.rb +7 -0
- data/spec/sandbox/config/environments/development.rb +37 -0
- data/spec/sandbox/config/environments/production.rb +67 -0
- data/spec/sandbox/config/environments/test.rb +37 -0
- data/spec/sandbox/config/initializers/backtrace_silencers.rb +7 -0
- data/spec/sandbox/config/initializers/inflections.rb +15 -0
- data/spec/sandbox/config/initializers/mime_types.rb +5 -0
- data/spec/sandbox/config/initializers/secret_token.rb +7 -0
- data/spec/sandbox/config/initializers/session_store.rb +8 -0
- data/spec/sandbox/config/initializers/spree.rb +12 -0
- data/spec/sandbox/config/initializers/wrap_parameters.rb +14 -0
- data/spec/sandbox/config/locales/en.yml +5 -0
- data/spec/sandbox/config/routes.rb +65 -0
- data/spec/sandbox/config/spree.yml +2 -0
- data/spec/sandbox/db/development.sqlite3 +0 -0
- data/spec/sandbox/db/migrate/20120918081451_spree_zero_nine_zero.spree.rb +390 -0
- data/spec/sandbox/db/migrate/20120918081452_create_indexes_for_inventory_units.spree.rb +7 -0
- data/spec/sandbox/db/migrate/20120918081453_add_count_on_hand_to_variants_and_products.spree.rb +50 -0
- data/spec/sandbox/db/migrate/20120918081454_change_taxons_to_nested_set.spree.rb +47 -0
- data/spec/sandbox/db/migrate/20120918081455_move_to_configurable_gateways.spree.rb +55 -0
- data/spec/sandbox/db/migrate/20120918081456_add_open_id_authentication_tables.spree.rb +16 -0
- data/spec/sandbox/db/migrate/20120918081457_add_openid_field_to_users.spree.rb +25 -0
- data/spec/sandbox/db/migrate/20120918081458_change_preference_value_type.spree.rb +11 -0
- data/spec/sandbox/db/migrate/20120918081459_create_billing_integrations.spree.rb +13 -0
- data/spec/sandbox/db/migrate/20120918081460_charge_refactoring.spree.rb +40 -0
- data/spec/sandbox/db/migrate/20120918081461_add_some_indexes.spree.rb +12 -0
- data/spec/sandbox/db/migrate/20120918081462_checkout_state_machine.spree.rb +6 -0
- data/spec/sandbox/db/migrate/20120918081463_state_for_shipments.spree.rb +6 -0
- data/spec/sandbox/db/migrate/20120918081464_make_state_events_polymorphic.spree.rb +13 -0
- data/spec/sandbox/db/migrate/20120918081465_ship_address_id_for_checkouts.spree.rb +6 -0
- data/spec/sandbox/db/migrate/20120918081466_shipping_method_id_for_checkouts.spree.rb +6 -0
- data/spec/sandbox/db/migrate/20120918081467_creditcard_last_four_digits.spree.rb +15 -0
- data/spec/sandbox/db/migrate/20120918081468_populate_legacy_shipment_state.spree.rb +16 -0
- data/spec/sandbox/db/migrate/20120918081469_add_cost_price.spree.rb +6 -0
- data/spec/sandbox/db/migrate/20120918081470_shipment_id_for_inventory_units.spree.rb +26 -0
- data/spec/sandbox/db/migrate/20120918081471_cim_fields_for_creditcards.spree.rb +7 -0
- data/spec/sandbox/db/migrate/20120918081472_create_return_authorizations.spree.rb +13 -0
- data/spec/sandbox/db/migrate/20120918081473_add_return_authorization_to_inventory_units.spree.rb +6 -0
- data/spec/sandbox/db/migrate/20120918081474_create_trackers.spree.rb +11 -0
- data/spec/sandbox/db/migrate/20120918081475_creditcard_id_for_creditcard_txns.spree.rb +6 -0
- data/spec/sandbox/db/migrate/20120918081476_original_creditcard_txn_id_for_creditcard_txns.spree.rb +6 -0
- data/spec/sandbox/db/migrate/20120918081477_add_test_mode_to_billing_integration.spree.rb +7 -0
- data/spec/sandbox/db/migrate/20120918081478_create_payment_methods.spree.rb +17 -0
- data/spec/sandbox/db/migrate/20120918081479_polymorphic_payments.spree.rb +43 -0
- data/spec/sandbox/db/migrate/20120918081480_change_payments_payment_method_to_belongs_to.spree.rb +12 -0
- data/spec/sandbox/db/migrate/20120918081481_assign_creditcard_txns_to_payment.spree.rb +24 -0
- data/spec/sandbox/db/migrate/20120918081482_sti_for_transactions.spree.rb +16 -0
- data/spec/sandbox/db/migrate/20120918081483_drop_billing_integrations.spree.rb +17 -0
- data/spec/sandbox/db/migrate/20120918081484_deleted_at_for_payment_methods.spree.rb +15 -0
- data/spec/sandbox/db/migrate/20120918081485_add_adjustments_index.spree.rb +7 -0
- data/spec/sandbox/db/migrate/20120918081486_add_alt_text_to_images.spree.rb +6 -0
- data/spec/sandbox/db/migrate/20120918081487_fix_existing_coupon_credits.spree.rb +14 -0
- data/spec/sandbox/db/migrate/20120918081488_add_display_to_payment_methods.spree.rb +6 -0
- data/spec/sandbox/db/migrate/20120918081489_add_addresses_checkouts_indexes.spree.rb +9 -0
- data/spec/sandbox/db/migrate/20120918081490_add_icon_to_taxons.spree.rb +18 -0
- data/spec/sandbox/db/migrate/20120918081491_add_description_to_taxons.spree.rb +12 -0
- data/spec/sandbox/db/migrate/20120918081492_index_for_shipments_number.spree.rb +6 -0
- data/spec/sandbox/db/migrate/20120918081493_add_index_on_users_persistence_token.spree.rb +6 -0
- data/spec/sandbox/db/migrate/20120918081494_add_default_to_tax_categories.spree.rb +6 -0
- data/spec/sandbox/db/migrate/20120918081495_add_display_to_shipping_methods.spree.rb +6 -0
- data/spec/sandbox/db/migrate/20120918081496_rename_payment_method_display.spree.rb +6 -0
- data/spec/sandbox/db/migrate/20120918081497_rename_preferences_field.spree.rb +6 -0
- data/spec/sandbox/db/migrate/20120918081498_add_guest_flag.spree.rb +6 -0
- data/spec/sandbox/db/migrate/20120918081499_drop_order_token.spree.rb +10 -0
- data/spec/sandbox/db/migrate/20120918081500_payments_state_and_assigned_to_order_only.spree.rb +15 -0
- data/spec/sandbox/db/migrate/20120918081501_create_address_keys_for_order.spree.rb +7 -0
- data/spec/sandbox/db/migrate/20120918081502_payment_total_for_orders.spree.rb +6 -0
- data/spec/sandbox/db/migrate/20120918081503_shipping_method_id_for_orders.spree.rb +6 -0
- data/spec/sandbox/db/migrate/20120918081504_add_shipment_and_payment_state.spree.rb +7 -0
- data/spec/sandbox/db/migrate/20120918081505_refactor_adjustments.spree.rb +30 -0
- data/spec/sandbox/db/migrate/20120918081506_response_code_and_avs_response_for_payments.spree.rb +7 -0
- data/spec/sandbox/db/migrate/20120918081507_change_guest_flag_to_anonymous.spree.rb +6 -0
- data/spec/sandbox/db/migrate/20120918081508_email_for_orders.spree.rb +6 -0
- data/spec/sandbox/db/migrate/20120918081509_create_mail_methods.spree.rb +11 -0
- data/spec/sandbox/db/migrate/20120918081510_rename_frozen_to_locked.spree.rb +6 -0
- data/spec/sandbox/db/migrate/20120918081511_move_special_instructions_to_orders.spree.rb +11 -0
- data/spec/sandbox/db/migrate/20120918081512_create_log_entries.spree.rb +12 -0
- data/spec/sandbox/db/migrate/20120918081513_migrate_transactions_to_payment_state.spree.rb +99 -0
- data/spec/sandbox/db/migrate/20120918081514_delete_in_progress_orders.spree.rb +20 -0
- data/spec/sandbox/db/migrate/20120918081515_migrate_checkout_to_orders.spree.rb +24 -0
- data/spec/sandbox/db/migrate/20120918081516_remove_shipped_state.spree.rb +13 -0
- data/spec/sandbox/db/migrate/20120918081517_prevent_nil_payment_total.spree.rb +9 -0
- data/spec/sandbox/db/migrate/20120918081518_prevent_nil_email.spree.rb +10 -0
- data/spec/sandbox/db/migrate/20120918081519_generate_anonymous_users.spree.rb +21 -0
- data/spec/sandbox/db/migrate/20120918081520_update_order_state.spree.rb +13 -0
- data/spec/sandbox/db/migrate/20120918081521_cleanup_legacy_tables.spree.rb +12 -0
- data/spec/sandbox/db/migrate/20120918081522_remove_number_and_cvv_from_credicard.spree.rb +12 -0
- data/spec/sandbox/db/migrate/20120918081523_drop_anonymous_field_for_user.spree.rb +10 -0
- data/spec/sandbox/db/migrate/20120918081524_renamed_rma_cancelled_state.spree.rb +10 -0
- data/spec/sandbox/db/migrate/20120918081525_fix_problematic_index_names.spree.rb +14 -0
- data/spec/sandbox/db/migrate/20120918081526_add_position_to_variants.spree.rb +6 -0
- data/spec/sandbox/db/migrate/20120918081527_add_next_state_to_state_events.spree.rb +6 -0
- data/spec/sandbox/db/migrate/20120918081528_add_position_to_option_types.spree.rb +6 -0
- data/spec/sandbox/db/migrate/20120918081529_remove_trailing_slashes_in_taxon_permalinks.spree.rb +20 -0
- data/spec/sandbox/db/migrate/20120918081530_create_activators.spree.rb +15 -0
- data/spec/sandbox/db/migrate/20120918081531_eligible_for_adjustments.spree.rb +6 -0
- data/spec/sandbox/db/migrate/20120918081532_namespace_top_level_models.spree.rb +50 -0
- data/spec/sandbox/db/migrate/20120918081533_migrate_namespaced_polymorphic_models.spree.rb +53 -0
- data/spec/sandbox/db/migrate/20120918081534_make_adjustments_polymorphic.spree.rb +10 -0
- data/spec/sandbox/db/migrate/20120918081535_add_company_to_addresses.spree.rb +6 -0
- data/spec/sandbox/db/migrate/20120918081536_add_inc_tax_to_tax_rates.spree.rb +6 -0
- data/spec/sandbox/db/migrate/20120918081537_rename_inc_price_attribute.spree.rb +6 -0
- data/spec/sandbox/db/migrate/20120918081538_add_default_tax_zone.spree.rb +6 -0
- data/spec/sandbox/db/migrate/20120918081539_associate_shipping_methods_and_shipping_categories.spree.rb +8 -0
- data/spec/sandbox/db/migrate/20120918081540_add_match_rules_to_shipping_methods.spree.rb +8 -0
- data/spec/sandbox/db/migrate/20120918081541_new_preferences.spree.rb +49 -0
- data/spec/sandbox/db/migrate/20120918081542_rename_state_events_to_state_changes.spree.rb +10 -0
- data/spec/sandbox/db/migrate/20120918081543_add_deleted_at_to_tax_category.spree.rb +6 -0
- data/spec/sandbox/db/migrate/20120918081544_migrate_images_from_products_to_variants.spree.rb +36 -0
- data/spec/sandbox/db/migrate/20120918081545_rename_attachment_size_to_attachment_file_size.spree.rb +6 -0
- data/spec/sandbox/db/migrate/20120918081546_increase_scale_of_tax_rate_amount.spree.rb +10 -0
- data/spec/sandbox/db/migrate/20120918081547_convert_sales_tax_to_default_tax.spree.rb +10 -0
- data/spec/sandbox/db/migrate/20120918081548_add_deleted_at_to_spree_shipping_methods.spree.rb +6 -0
- data/spec/sandbox/db/migrate/20120918081549_make_users_email_index_unique.spree.rb +11 -0
- data/spec/sandbox/db/migrate/20120918081550_add_counter_cache_to_zone_members.spree.rb +15 -0
- data/spec/sandbox/db/migrate/20120918081551_rename_columns_for_devise.spree_auth.rb +39 -0
- data/spec/sandbox/db/migrate/20120918081552_convert_user_remember_field.spree_auth.rb +12 -0
- data/spec/sandbox/db/migrate/20120918081553_create_tokenized_permissions.spree_auth.rb +14 -0
- data/spec/sandbox/db/migrate/20120918081554_tokens_for_legacy_orders.spree_auth.rb +19 -0
- data/spec/sandbox/db/migrate/20120918081555_namespace_tokenized_permission.spree_auth.rb +6 -0
- data/spec/sandbox/db/migrate/20120918081556_migrate_tokenized_permissions.spree_auth.rb +25 -0
- data/spec/sandbox/db/migrate/20120918081557_add_reset_password_sent_at_to_spree_users.spree_auth.rb +6 -0
- data/spec/sandbox/db/migrate/20120918081558_add_api_key_to_spree_users.spree_api.rb +6 -0
- data/spec/sandbox/db/migrate/20120918081559_resize_api_key_field.spree_api.rb +6 -0
- data/spec/sandbox/db/migrate/20120918081560_rename_coupons_to_promotions.spree_promo.rb +11 -0
- data/spec/sandbox/db/migrate/20120918081561_create_promotion_rules.spree_promo.rb +25 -0
- data/spec/sandbox/db/migrate/20120918081562_match_policy_for_promotions.spree_promo.rb +6 -0
- data/spec/sandbox/db/migrate/20120918081563_create_promotion_rules_users.spree_promo.rb +15 -0
- data/spec/sandbox/db/migrate/20120918081564_name_for_promotions.spree_promo.rb +6 -0
- data/spec/sandbox/db/migrate/20120918081565_update_calculable_type_for_promotions.spree_promo.rb +10 -0
- data/spec/sandbox/db/migrate/20120918081566_migrate_adjustments.spree_promo.rb +10 -0
- data/spec/sandbox/db/migrate/20120918081567_promotion_changes_to_subclass_of_activator.spree_promo.rb +23 -0
- data/spec/sandbox/db/migrate/20120918081568_create_promotion_actions.spree_promo.rb +10 -0
- data/spec/sandbox/db/migrate/20120918081569_create_promotion_action_line_items.spree_promo.rb +11 -0
- data/spec/sandbox/db/migrate/20120918081570_namespace_promo_tables.spree_promo.rb +86 -0
- data/spec/sandbox/db/migrate/20120918081571_create_spree_pending_promotions.spree_promo.rb +12 -0
- data/spec/sandbox/db/migrate/20120918081572_content_visited_event.spree_promo.rb +30 -0
- data/spec/sandbox/db/production.sqlite3 +0 -0
- data/spec/sandbox/db/schema.rb +586 -0
- data/spec/sandbox/db/seeds.rb +11 -0
- data/spec/sandbox/db/test.sqlite3 +0 -0
- data/spec/sandbox/doc/README_FOR_APP +2 -0
- data/spec/sandbox/log/development.log +4856 -0
- data/spec/sandbox/log/production.log +31 -0
- data/spec/sandbox/public/404.html +26 -0
- data/spec/sandbox/public/422.html +26 -0
- data/spec/sandbox/public/500.html +25 -0
- data/spec/sandbox/public/assets/rails-be8732dac73d845ac5b142c8fb5f9fb0.png +0 -0
- data/spec/sandbox/public/favicon.ico +0 -0
- data/spec/sandbox/public/robots.txt +14 -0
- data/spec/sandbox/public/spree/products/1/large/DEMO_001_ror_bag.jpeg +0 -0
- data/spec/sandbox/public/spree/products/1/mini/DEMO_001_ror_bag.jpeg +0 -0
- data/spec/sandbox/public/spree/products/1/original/DEMO_001_ror_bag.jpeg +0 -0
- data/spec/sandbox/public/spree/products/1/product/DEMO_001_ror_bag.jpeg +0 -0
- data/spec/sandbox/public/spree/products/1/small/DEMO_001_ror_bag.jpeg +0 -0
- data/spec/sandbox/public/spree/products/10/large/DEMO_001_ror_bag.jpeg +0 -0
- data/spec/sandbox/public/spree/products/10/mini/DEMO_001_ror_bag.jpeg +0 -0
- data/spec/sandbox/public/spree/products/10/original/DEMO_001_ror_bag.jpeg +0 -0
- data/spec/sandbox/public/spree/products/10/product/DEMO_001_ror_bag.jpeg +0 -0
- data/spec/sandbox/public/spree/products/10/small/DEMO_001_ror_bag.jpeg +0 -0
- data/spec/sandbox/public/spree/products/11/large/DEMO_002_Powerstation.jpg +0 -0
- data/spec/sandbox/public/spree/products/11/mini/DEMO_002_Powerstation.jpg +0 -0
- data/spec/sandbox/public/spree/products/11/original/DEMO_002_Powerstation.jpg +0 -0
- data/spec/sandbox/public/spree/products/11/product/DEMO_002_Powerstation.jpg +0 -0
- data/spec/sandbox/public/spree/products/11/small/DEMO_002_Powerstation.jpg +0 -0
- data/spec/sandbox/public/spree/products/12/large/DEMO_003_ror_mug.jpeg +0 -0
- data/spec/sandbox/public/spree/products/12/mini/DEMO_003_ror_mug.jpeg +0 -0
- data/spec/sandbox/public/spree/products/12/original/DEMO_003_ror_mug.jpeg +0 -0
- data/spec/sandbox/public/spree/products/12/product/DEMO_003_ror_mug.jpeg +0 -0
- data/spec/sandbox/public/spree/products/12/small/DEMO_003_ror_mug.jpeg +0 -0
- data/spec/sandbox/public/spree/products/13/large/DEMO_001_ror_bag.jpeg +0 -0
- data/spec/sandbox/public/spree/products/13/mini/DEMO_001_ror_bag.jpeg +0 -0
- data/spec/sandbox/public/spree/products/13/original/DEMO_001_ror_bag.jpeg +0 -0
- data/spec/sandbox/public/spree/products/13/product/DEMO_001_ror_bag.jpeg +0 -0
- data/spec/sandbox/public/spree/products/13/small/DEMO_001_ror_bag.jpeg +0 -0
- data/spec/sandbox/public/spree/products/14/large/DEMO_002_Powerstation.jpg +0 -0
- data/spec/sandbox/public/spree/products/14/mini/DEMO_002_Powerstation.jpg +0 -0
- data/spec/sandbox/public/spree/products/14/original/DEMO_002_Powerstation.jpg +0 -0
- data/spec/sandbox/public/spree/products/14/product/DEMO_002_Powerstation.jpg +0 -0
- data/spec/sandbox/public/spree/products/14/small/DEMO_002_Powerstation.jpg +0 -0
- data/spec/sandbox/public/spree/products/15/large/DEMO_003_ror_mug.jpeg +0 -0
- data/spec/sandbox/public/spree/products/15/mini/DEMO_003_ror_mug.jpeg +0 -0
- data/spec/sandbox/public/spree/products/15/original/DEMO_003_ror_mug.jpeg +0 -0
- data/spec/sandbox/public/spree/products/15/product/DEMO_003_ror_mug.jpeg +0 -0
- data/spec/sandbox/public/spree/products/15/small/DEMO_003_ror_mug.jpeg +0 -0
- data/spec/sandbox/public/spree/products/16/large/DEMO_001_ror_bag.jpeg +0 -0
- data/spec/sandbox/public/spree/products/16/mini/DEMO_001_ror_bag.jpeg +0 -0
- data/spec/sandbox/public/spree/products/16/original/DEMO_001_ror_bag.jpeg +0 -0
- data/spec/sandbox/public/spree/products/16/product/DEMO_001_ror_bag.jpeg +0 -0
- data/spec/sandbox/public/spree/products/16/small/DEMO_001_ror_bag.jpeg +0 -0
- data/spec/sandbox/public/spree/products/17/large/DEMO_002_Powerstation.jpg +0 -0
- data/spec/sandbox/public/spree/products/17/mini/DEMO_002_Powerstation.jpg +0 -0
- data/spec/sandbox/public/spree/products/17/original/DEMO_002_Powerstation.jpg +0 -0
- data/spec/sandbox/public/spree/products/17/product/DEMO_002_Powerstation.jpg +0 -0
- data/spec/sandbox/public/spree/products/17/small/DEMO_002_Powerstation.jpg +0 -0
- data/spec/sandbox/public/spree/products/18/large/DEMO_003_ror_mug.jpeg +0 -0
- data/spec/sandbox/public/spree/products/18/mini/DEMO_003_ror_mug.jpeg +0 -0
- data/spec/sandbox/public/spree/products/18/original/DEMO_003_ror_mug.jpeg +0 -0
- data/spec/sandbox/public/spree/products/18/product/DEMO_003_ror_mug.jpeg +0 -0
- data/spec/sandbox/public/spree/products/18/small/DEMO_003_ror_mug.jpeg +0 -0
- data/spec/sandbox/public/spree/products/19/large/DEMO_001_ror_bag.jpeg +0 -0
- data/spec/sandbox/public/spree/products/19/mini/DEMO_001_ror_bag.jpeg +0 -0
- data/spec/sandbox/public/spree/products/19/original/DEMO_001_ror_bag.jpeg +0 -0
- data/spec/sandbox/public/spree/products/19/product/DEMO_001_ror_bag.jpeg +0 -0
- data/spec/sandbox/public/spree/products/19/small/DEMO_001_ror_bag.jpeg +0 -0
- data/spec/sandbox/public/spree/products/2/large/DEMO_002_Powerstation.jpg +0 -0
- data/spec/sandbox/public/spree/products/2/mini/DEMO_002_Powerstation.jpg +0 -0
- data/spec/sandbox/public/spree/products/2/original/DEMO_002_Powerstation.jpg +0 -0
- data/spec/sandbox/public/spree/products/2/product/DEMO_002_Powerstation.jpg +0 -0
- data/spec/sandbox/public/spree/products/2/small/DEMO_002_Powerstation.jpg +0 -0
- data/spec/sandbox/public/spree/products/20/large/DEMO_002_Powerstation.jpg +0 -0
- data/spec/sandbox/public/spree/products/20/mini/DEMO_002_Powerstation.jpg +0 -0
- data/spec/sandbox/public/spree/products/20/original/DEMO_002_Powerstation.jpg +0 -0
- data/spec/sandbox/public/spree/products/20/product/DEMO_002_Powerstation.jpg +0 -0
- data/spec/sandbox/public/spree/products/20/small/DEMO_002_Powerstation.jpg +0 -0
- data/spec/sandbox/public/spree/products/21/large/DEMO_003_ror_mug.jpeg +0 -0
- data/spec/sandbox/public/spree/products/21/mini/DEMO_003_ror_mug.jpeg +0 -0
- data/spec/sandbox/public/spree/products/21/original/DEMO_003_ror_mug.jpeg +0 -0
- data/spec/sandbox/public/spree/products/21/product/DEMO_003_ror_mug.jpeg +0 -0
- data/spec/sandbox/public/spree/products/21/small/DEMO_003_ror_mug.jpeg +0 -0
- data/spec/sandbox/public/spree/products/22/large/DEMO_001_ror_bag.jpeg +0 -0
- data/spec/sandbox/public/spree/products/22/mini/DEMO_001_ror_bag.jpeg +0 -0
- data/spec/sandbox/public/spree/products/22/original/DEMO_001_ror_bag.jpeg +0 -0
- data/spec/sandbox/public/spree/products/22/product/DEMO_001_ror_bag.jpeg +0 -0
- data/spec/sandbox/public/spree/products/22/small/DEMO_001_ror_bag.jpeg +0 -0
- data/spec/sandbox/public/spree/products/23/large/DEMO_002_Powerstation.jpg +0 -0
- data/spec/sandbox/public/spree/products/23/mini/DEMO_002_Powerstation.jpg +0 -0
- data/spec/sandbox/public/spree/products/23/original/DEMO_002_Powerstation.jpg +0 -0
- data/spec/sandbox/public/spree/products/23/product/DEMO_002_Powerstation.jpg +0 -0
- data/spec/sandbox/public/spree/products/23/small/DEMO_002_Powerstation.jpg +0 -0
- data/spec/sandbox/public/spree/products/24/large/DEMO_003_ror_mug.jpeg +0 -0
- data/spec/sandbox/public/spree/products/24/mini/DEMO_003_ror_mug.jpeg +0 -0
- data/spec/sandbox/public/spree/products/24/original/DEMO_003_ror_mug.jpeg +0 -0
- data/spec/sandbox/public/spree/products/24/product/DEMO_003_ror_mug.jpeg +0 -0
- data/spec/sandbox/public/spree/products/24/small/DEMO_003_ror_mug.jpeg +0 -0
- data/spec/sandbox/public/spree/products/25/large/DEMO_001_ror_bag.jpeg +0 -0
- data/spec/sandbox/public/spree/products/25/mini/DEMO_001_ror_bag.jpeg +0 -0
- data/spec/sandbox/public/spree/products/25/original/DEMO_001_ror_bag.jpeg +0 -0
- data/spec/sandbox/public/spree/products/25/product/DEMO_001_ror_bag.jpeg +0 -0
- data/spec/sandbox/public/spree/products/25/small/DEMO_001_ror_bag.jpeg +0 -0
- data/spec/sandbox/public/spree/products/26/large/DEMO_002_Powerstation.jpg +0 -0
- data/spec/sandbox/public/spree/products/26/mini/DEMO_002_Powerstation.jpg +0 -0
- data/spec/sandbox/public/spree/products/26/original/DEMO_002_Powerstation.jpg +0 -0
- data/spec/sandbox/public/spree/products/26/product/DEMO_002_Powerstation.jpg +0 -0
- data/spec/sandbox/public/spree/products/26/small/DEMO_002_Powerstation.jpg +0 -0
- data/spec/sandbox/public/spree/products/27/large/DEMO_003_ror_mug.jpeg +0 -0
- data/spec/sandbox/public/spree/products/27/mini/DEMO_003_ror_mug.jpeg +0 -0
- data/spec/sandbox/public/spree/products/27/original/DEMO_003_ror_mug.jpeg +0 -0
- data/spec/sandbox/public/spree/products/27/product/DEMO_003_ror_mug.jpeg +0 -0
- data/spec/sandbox/public/spree/products/27/small/DEMO_003_ror_mug.jpeg +0 -0
- data/spec/sandbox/public/spree/products/28/large/DEMO_001_ror_bag.jpeg +0 -0
- data/spec/sandbox/public/spree/products/28/mini/DEMO_001_ror_bag.jpeg +0 -0
- data/spec/sandbox/public/spree/products/28/original/DEMO_001_ror_bag.jpeg +0 -0
- data/spec/sandbox/public/spree/products/28/product/DEMO_001_ror_bag.jpeg +0 -0
- data/spec/sandbox/public/spree/products/28/small/DEMO_001_ror_bag.jpeg +0 -0
- data/spec/sandbox/public/spree/products/29/large/DEMO_002_Powerstation.jpg +0 -0
- data/spec/sandbox/public/spree/products/29/mini/DEMO_002_Powerstation.jpg +0 -0
- data/spec/sandbox/public/spree/products/29/original/DEMO_002_Powerstation.jpg +0 -0
- data/spec/sandbox/public/spree/products/29/product/DEMO_002_Powerstation.jpg +0 -0
- data/spec/sandbox/public/spree/products/29/small/DEMO_002_Powerstation.jpg +0 -0
- data/spec/sandbox/public/spree/products/3/large/DEMO_003_ror_mug.jpeg +0 -0
- data/spec/sandbox/public/spree/products/3/mini/DEMO_003_ror_mug.jpeg +0 -0
- data/spec/sandbox/public/spree/products/3/original/DEMO_003_ror_mug.jpeg +0 -0
- data/spec/sandbox/public/spree/products/3/product/DEMO_003_ror_mug.jpeg +0 -0
- data/spec/sandbox/public/spree/products/3/small/DEMO_003_ror_mug.jpeg +0 -0
- data/spec/sandbox/public/spree/products/30/large/DEMO_003_ror_mug.jpeg +0 -0
- data/spec/sandbox/public/spree/products/30/mini/DEMO_003_ror_mug.jpeg +0 -0
- data/spec/sandbox/public/spree/products/30/original/DEMO_003_ror_mug.jpeg +0 -0
- data/spec/sandbox/public/spree/products/30/product/DEMO_003_ror_mug.jpeg +0 -0
- data/spec/sandbox/public/spree/products/30/small/DEMO_003_ror_mug.jpeg +0 -0
- data/spec/sandbox/public/spree/products/31/large/DEMO_001_ror_bag.jpeg +0 -0
- data/spec/sandbox/public/spree/products/31/mini/DEMO_001_ror_bag.jpeg +0 -0
- data/spec/sandbox/public/spree/products/31/original/DEMO_001_ror_bag.jpeg +0 -0
- data/spec/sandbox/public/spree/products/31/product/DEMO_001_ror_bag.jpeg +0 -0
- data/spec/sandbox/public/spree/products/31/small/DEMO_001_ror_bag.jpeg +0 -0
- data/spec/sandbox/public/spree/products/32/large/DEMO_002_Powerstation.jpg +0 -0
- data/spec/sandbox/public/spree/products/32/mini/DEMO_002_Powerstation.jpg +0 -0
- data/spec/sandbox/public/spree/products/32/original/DEMO_002_Powerstation.jpg +0 -0
- data/spec/sandbox/public/spree/products/32/product/DEMO_002_Powerstation.jpg +0 -0
- data/spec/sandbox/public/spree/products/32/small/DEMO_002_Powerstation.jpg +0 -0
- data/spec/sandbox/public/spree/products/33/large/DEMO_003_ror_mug.jpeg +0 -0
- data/spec/sandbox/public/spree/products/33/mini/DEMO_003_ror_mug.jpeg +0 -0
- data/spec/sandbox/public/spree/products/33/original/DEMO_003_ror_mug.jpeg +0 -0
- data/spec/sandbox/public/spree/products/33/product/DEMO_003_ror_mug.jpeg +0 -0
- data/spec/sandbox/public/spree/products/33/small/DEMO_003_ror_mug.jpeg +0 -0
- data/spec/sandbox/public/spree/products/34/large/DEMO_001_ror_bag.jpeg +0 -0
- data/spec/sandbox/public/spree/products/34/mini/DEMO_001_ror_bag.jpeg +0 -0
- data/spec/sandbox/public/spree/products/34/original/DEMO_001_ror_bag.jpeg +0 -0
- data/spec/sandbox/public/spree/products/34/product/DEMO_001_ror_bag.jpeg +0 -0
- data/spec/sandbox/public/spree/products/34/small/DEMO_001_ror_bag.jpeg +0 -0
- data/spec/sandbox/public/spree/products/35/large/DEMO_002_Powerstation.jpg +0 -0
- data/spec/sandbox/public/spree/products/35/mini/DEMO_002_Powerstation.jpg +0 -0
- data/spec/sandbox/public/spree/products/35/original/DEMO_002_Powerstation.jpg +0 -0
- data/spec/sandbox/public/spree/products/35/product/DEMO_002_Powerstation.jpg +0 -0
- data/spec/sandbox/public/spree/products/35/small/DEMO_002_Powerstation.jpg +0 -0
- data/spec/sandbox/public/spree/products/36/large/DEMO_003_ror_mug.jpeg +0 -0
- data/spec/sandbox/public/spree/products/36/mini/DEMO_003_ror_mug.jpeg +0 -0
- data/spec/sandbox/public/spree/products/36/original/DEMO_003_ror_mug.jpeg +0 -0
- data/spec/sandbox/public/spree/products/36/product/DEMO_003_ror_mug.jpeg +0 -0
- data/spec/sandbox/public/spree/products/36/small/DEMO_003_ror_mug.jpeg +0 -0
- data/spec/sandbox/public/spree/products/37/large/DEMO_001_ror_bag.jpeg +0 -0
- data/spec/sandbox/public/spree/products/37/mini/DEMO_001_ror_bag.jpeg +0 -0
- data/spec/sandbox/public/spree/products/37/original/DEMO_001_ror_bag.jpeg +0 -0
- data/spec/sandbox/public/spree/products/37/product/DEMO_001_ror_bag.jpeg +0 -0
- data/spec/sandbox/public/spree/products/37/small/DEMO_001_ror_bag.jpeg +0 -0
- data/spec/sandbox/public/spree/products/38/large/DEMO_002_Powerstation.jpg +0 -0
- data/spec/sandbox/public/spree/products/38/mini/DEMO_002_Powerstation.jpg +0 -0
- data/spec/sandbox/public/spree/products/38/original/DEMO_002_Powerstation.jpg +0 -0
- data/spec/sandbox/public/spree/products/38/product/DEMO_002_Powerstation.jpg +0 -0
- data/spec/sandbox/public/spree/products/38/small/DEMO_002_Powerstation.jpg +0 -0
- data/spec/sandbox/public/spree/products/39/large/DEMO_003_ror_mug.jpeg +0 -0
- data/spec/sandbox/public/spree/products/39/mini/DEMO_003_ror_mug.jpeg +0 -0
- data/spec/sandbox/public/spree/products/39/original/DEMO_003_ror_mug.jpeg +0 -0
- data/spec/sandbox/public/spree/products/39/product/DEMO_003_ror_mug.jpeg +0 -0
- data/spec/sandbox/public/spree/products/39/small/DEMO_003_ror_mug.jpeg +0 -0
- data/spec/sandbox/public/spree/products/4/large/DEMO_001_ror_bag.jpeg +0 -0
- data/spec/sandbox/public/spree/products/4/mini/DEMO_001_ror_bag.jpeg +0 -0
- data/spec/sandbox/public/spree/products/4/original/DEMO_001_ror_bag.jpeg +0 -0
- data/spec/sandbox/public/spree/products/4/product/DEMO_001_ror_bag.jpeg +0 -0
- data/spec/sandbox/public/spree/products/4/small/DEMO_001_ror_bag.jpeg +0 -0
- data/spec/sandbox/public/spree/products/40/large/DEMO_001_ror_bag.jpeg +0 -0
- data/spec/sandbox/public/spree/products/40/mini/DEMO_001_ror_bag.jpeg +0 -0
- data/spec/sandbox/public/spree/products/40/original/DEMO_001_ror_bag.jpeg +0 -0
- data/spec/sandbox/public/spree/products/40/product/DEMO_001_ror_bag.jpeg +0 -0
- data/spec/sandbox/public/spree/products/40/small/DEMO_001_ror_bag.jpeg +0 -0
- data/spec/sandbox/public/spree/products/41/large/DEMO_002_Powerstation.jpg +0 -0
- data/spec/sandbox/public/spree/products/41/mini/DEMO_002_Powerstation.jpg +0 -0
- data/spec/sandbox/public/spree/products/41/original/DEMO_002_Powerstation.jpg +0 -0
- data/spec/sandbox/public/spree/products/41/product/DEMO_002_Powerstation.jpg +0 -0
- data/spec/sandbox/public/spree/products/41/small/DEMO_002_Powerstation.jpg +0 -0
- data/spec/sandbox/public/spree/products/42/large/DEMO_003_ror_mug.jpeg +0 -0
- data/spec/sandbox/public/spree/products/42/mini/DEMO_003_ror_mug.jpeg +0 -0
- data/spec/sandbox/public/spree/products/42/original/DEMO_003_ror_mug.jpeg +0 -0
- data/spec/sandbox/public/spree/products/42/product/DEMO_003_ror_mug.jpeg +0 -0
- data/spec/sandbox/public/spree/products/42/small/DEMO_003_ror_mug.jpeg +0 -0
- data/spec/sandbox/public/spree/products/43/large/DEMO_001_ror_bag.jpeg +0 -0
- data/spec/sandbox/public/spree/products/43/mini/DEMO_001_ror_bag.jpeg +0 -0
- data/spec/sandbox/public/spree/products/43/original/DEMO_001_ror_bag.jpeg +0 -0
- data/spec/sandbox/public/spree/products/43/product/DEMO_001_ror_bag.jpeg +0 -0
- data/spec/sandbox/public/spree/products/43/small/DEMO_001_ror_bag.jpeg +0 -0
- data/spec/sandbox/public/spree/products/44/large/DEMO_002_Powerstation.jpg +0 -0
- data/spec/sandbox/public/spree/products/44/mini/DEMO_002_Powerstation.jpg +0 -0
- data/spec/sandbox/public/spree/products/44/original/DEMO_002_Powerstation.jpg +0 -0
- data/spec/sandbox/public/spree/products/44/product/DEMO_002_Powerstation.jpg +0 -0
- data/spec/sandbox/public/spree/products/44/small/DEMO_002_Powerstation.jpg +0 -0
- data/spec/sandbox/public/spree/products/45/large/DEMO_003_ror_mug.jpeg +0 -0
- data/spec/sandbox/public/spree/products/45/mini/DEMO_003_ror_mug.jpeg +0 -0
- data/spec/sandbox/public/spree/products/45/original/DEMO_003_ror_mug.jpeg +0 -0
- data/spec/sandbox/public/spree/products/45/product/DEMO_003_ror_mug.jpeg +0 -0
- data/spec/sandbox/public/spree/products/45/small/DEMO_003_ror_mug.jpeg +0 -0
- data/spec/sandbox/public/spree/products/46/large/DEMO_001_ror_bag.jpeg +0 -0
- data/spec/sandbox/public/spree/products/46/mini/DEMO_001_ror_bag.jpeg +0 -0
- data/spec/sandbox/public/spree/products/46/original/DEMO_001_ror_bag.jpeg +0 -0
- data/spec/sandbox/public/spree/products/46/product/DEMO_001_ror_bag.jpeg +0 -0
- data/spec/sandbox/public/spree/products/46/small/DEMO_001_ror_bag.jpeg +0 -0
- data/spec/sandbox/public/spree/products/47/large/DEMO_002_Powerstation.jpg +0 -0
- data/spec/sandbox/public/spree/products/47/mini/DEMO_002_Powerstation.jpg +0 -0
- data/spec/sandbox/public/spree/products/47/original/DEMO_002_Powerstation.jpg +0 -0
- data/spec/sandbox/public/spree/products/47/product/DEMO_002_Powerstation.jpg +0 -0
- data/spec/sandbox/public/spree/products/47/small/DEMO_002_Powerstation.jpg +0 -0
- data/spec/sandbox/public/spree/products/48/large/DEMO_003_ror_mug.jpeg +0 -0
- data/spec/sandbox/public/spree/products/48/mini/DEMO_003_ror_mug.jpeg +0 -0
- data/spec/sandbox/public/spree/products/48/original/DEMO_003_ror_mug.jpeg +0 -0
- data/spec/sandbox/public/spree/products/48/product/DEMO_003_ror_mug.jpeg +0 -0
- data/spec/sandbox/public/spree/products/48/small/DEMO_003_ror_mug.jpeg +0 -0
- data/spec/sandbox/public/spree/products/49/large/DEMO_001_ror_bag.jpeg +0 -0
- data/spec/sandbox/public/spree/products/49/mini/DEMO_001_ror_bag.jpeg +0 -0
- data/spec/sandbox/public/spree/products/49/original/DEMO_001_ror_bag.jpeg +0 -0
- data/spec/sandbox/public/spree/products/49/product/DEMO_001_ror_bag.jpeg +0 -0
- data/spec/sandbox/public/spree/products/49/small/DEMO_001_ror_bag.jpeg +0 -0
- data/spec/sandbox/public/spree/products/5/large/DEMO_002_Powerstation.jpg +0 -0
- data/spec/sandbox/public/spree/products/5/mini/DEMO_002_Powerstation.jpg +0 -0
- data/spec/sandbox/public/spree/products/5/original/DEMO_002_Powerstation.jpg +0 -0
- data/spec/sandbox/public/spree/products/5/product/DEMO_002_Powerstation.jpg +0 -0
- data/spec/sandbox/public/spree/products/5/small/DEMO_002_Powerstation.jpg +0 -0
- data/spec/sandbox/public/spree/products/50/large/DEMO_002_Powerstation.jpg +0 -0
- data/spec/sandbox/public/spree/products/50/mini/DEMO_002_Powerstation.jpg +0 -0
- data/spec/sandbox/public/spree/products/50/original/DEMO_002_Powerstation.jpg +0 -0
- data/spec/sandbox/public/spree/products/50/product/DEMO_002_Powerstation.jpg +0 -0
- data/spec/sandbox/public/spree/products/50/small/DEMO_002_Powerstation.jpg +0 -0
- data/spec/sandbox/public/spree/products/51/large/DEMO_003_ror_mug.jpeg +0 -0
- data/spec/sandbox/public/spree/products/51/mini/DEMO_003_ror_mug.jpeg +0 -0
- data/spec/sandbox/public/spree/products/51/original/DEMO_003_ror_mug.jpeg +0 -0
- data/spec/sandbox/public/spree/products/51/product/DEMO_003_ror_mug.jpeg +0 -0
- data/spec/sandbox/public/spree/products/51/small/DEMO_003_ror_mug.jpeg +0 -0
- data/spec/sandbox/public/spree/products/52/large/DEMO_001_ror_bag.jpeg +0 -0
- data/spec/sandbox/public/spree/products/52/mini/DEMO_001_ror_bag.jpeg +0 -0
- data/spec/sandbox/public/spree/products/52/original/DEMO_001_ror_bag.jpeg +0 -0
- data/spec/sandbox/public/spree/products/52/product/DEMO_001_ror_bag.jpeg +0 -0
- data/spec/sandbox/public/spree/products/52/small/DEMO_001_ror_bag.jpeg +0 -0
- data/spec/sandbox/public/spree/products/53/large/DEMO_002_Powerstation.jpg +0 -0
- data/spec/sandbox/public/spree/products/53/mini/DEMO_002_Powerstation.jpg +0 -0
- data/spec/sandbox/public/spree/products/53/original/DEMO_002_Powerstation.jpg +0 -0
- data/spec/sandbox/public/spree/products/53/product/DEMO_002_Powerstation.jpg +0 -0
- data/spec/sandbox/public/spree/products/53/small/DEMO_002_Powerstation.jpg +0 -0
- data/spec/sandbox/public/spree/products/54/large/DEMO_003_ror_mug.jpeg +0 -0
- data/spec/sandbox/public/spree/products/54/mini/DEMO_003_ror_mug.jpeg +0 -0
- data/spec/sandbox/public/spree/products/54/original/DEMO_003_ror_mug.jpeg +0 -0
- data/spec/sandbox/public/spree/products/54/product/DEMO_003_ror_mug.jpeg +0 -0
- data/spec/sandbox/public/spree/products/54/small/DEMO_003_ror_mug.jpeg +0 -0
- data/spec/sandbox/public/spree/products/55/large/DEMO_001_ror_bag.jpeg +0 -0
- data/spec/sandbox/public/spree/products/55/mini/DEMO_001_ror_bag.jpeg +0 -0
- data/spec/sandbox/public/spree/products/55/original/DEMO_001_ror_bag.jpeg +0 -0
- data/spec/sandbox/public/spree/products/55/product/DEMO_001_ror_bag.jpeg +0 -0
- data/spec/sandbox/public/spree/products/55/small/DEMO_001_ror_bag.jpeg +0 -0
- data/spec/sandbox/public/spree/products/56/large/DEMO_002_Powerstation.jpg +0 -0
- data/spec/sandbox/public/spree/products/56/mini/DEMO_002_Powerstation.jpg +0 -0
- data/spec/sandbox/public/spree/products/56/original/DEMO_002_Powerstation.jpg +0 -0
- data/spec/sandbox/public/spree/products/56/product/DEMO_002_Powerstation.jpg +0 -0
- data/spec/sandbox/public/spree/products/56/small/DEMO_002_Powerstation.jpg +0 -0
- data/spec/sandbox/public/spree/products/57/large/DEMO_003_ror_mug.jpeg +0 -0
- data/spec/sandbox/public/spree/products/57/mini/DEMO_003_ror_mug.jpeg +0 -0
- data/spec/sandbox/public/spree/products/57/original/DEMO_003_ror_mug.jpeg +0 -0
- data/spec/sandbox/public/spree/products/57/product/DEMO_003_ror_mug.jpeg +0 -0
- data/spec/sandbox/public/spree/products/57/small/DEMO_003_ror_mug.jpeg +0 -0
- data/spec/sandbox/public/spree/products/58/large/DEMO_001_ror_bag.jpeg +0 -0
- data/spec/sandbox/public/spree/products/58/mini/DEMO_001_ror_bag.jpeg +0 -0
- data/spec/sandbox/public/spree/products/58/original/DEMO_001_ror_bag.jpeg +0 -0
- data/spec/sandbox/public/spree/products/58/product/DEMO_001_ror_bag.jpeg +0 -0
- data/spec/sandbox/public/spree/products/58/small/DEMO_001_ror_bag.jpeg +0 -0
- data/spec/sandbox/public/spree/products/59/large/DEMO_002_Powerstation.jpg +0 -0
- data/spec/sandbox/public/spree/products/59/mini/DEMO_002_Powerstation.jpg +0 -0
- data/spec/sandbox/public/spree/products/59/original/DEMO_002_Powerstation.jpg +0 -0
- data/spec/sandbox/public/spree/products/59/product/DEMO_002_Powerstation.jpg +0 -0
- data/spec/sandbox/public/spree/products/59/small/DEMO_002_Powerstation.jpg +0 -0
- data/spec/sandbox/public/spree/products/6/large/DEMO_003_ror_mug.jpeg +0 -0
- data/spec/sandbox/public/spree/products/6/mini/DEMO_003_ror_mug.jpeg +0 -0
- data/spec/sandbox/public/spree/products/6/original/DEMO_003_ror_mug.jpeg +0 -0
- data/spec/sandbox/public/spree/products/6/product/DEMO_003_ror_mug.jpeg +0 -0
- data/spec/sandbox/public/spree/products/6/small/DEMO_003_ror_mug.jpeg +0 -0
- data/spec/sandbox/public/spree/products/60/large/DEMO_003_ror_mug.jpeg +0 -0
- data/spec/sandbox/public/spree/products/60/mini/DEMO_003_ror_mug.jpeg +0 -0
- data/spec/sandbox/public/spree/products/60/original/DEMO_003_ror_mug.jpeg +0 -0
- data/spec/sandbox/public/spree/products/60/product/DEMO_003_ror_mug.jpeg +0 -0
- data/spec/sandbox/public/spree/products/60/small/DEMO_003_ror_mug.jpeg +0 -0
- data/spec/sandbox/public/spree/products/61/large/DEMO_001_ror_bag.jpeg +0 -0
- data/spec/sandbox/public/spree/products/61/mini/DEMO_001_ror_bag.jpeg +0 -0
- data/spec/sandbox/public/spree/products/61/original/DEMO_001_ror_bag.jpeg +0 -0
- data/spec/sandbox/public/spree/products/61/product/DEMO_001_ror_bag.jpeg +0 -0
- data/spec/sandbox/public/spree/products/61/small/DEMO_001_ror_bag.jpeg +0 -0
- data/spec/sandbox/public/spree/products/62/large/DEMO_002_Powerstation.jpg +0 -0
- data/spec/sandbox/public/spree/products/62/mini/DEMO_002_Powerstation.jpg +0 -0
- data/spec/sandbox/public/spree/products/62/original/DEMO_002_Powerstation.jpg +0 -0
- data/spec/sandbox/public/spree/products/62/product/DEMO_002_Powerstation.jpg +0 -0
- data/spec/sandbox/public/spree/products/62/small/DEMO_002_Powerstation.jpg +0 -0
- data/spec/sandbox/public/spree/products/63/large/DEMO_003_ror_mug.jpeg +0 -0
- data/spec/sandbox/public/spree/products/63/mini/DEMO_003_ror_mug.jpeg +0 -0
- data/spec/sandbox/public/spree/products/63/original/DEMO_003_ror_mug.jpeg +0 -0
- data/spec/sandbox/public/spree/products/63/product/DEMO_003_ror_mug.jpeg +0 -0
- data/spec/sandbox/public/spree/products/63/small/DEMO_003_ror_mug.jpeg +0 -0
- data/spec/sandbox/public/spree/products/64/large/DEMO_001_ror_bag.jpeg +0 -0
- data/spec/sandbox/public/spree/products/64/mini/DEMO_001_ror_bag.jpeg +0 -0
- data/spec/sandbox/public/spree/products/64/original/DEMO_001_ror_bag.jpeg +0 -0
- data/spec/sandbox/public/spree/products/64/product/DEMO_001_ror_bag.jpeg +0 -0
- data/spec/sandbox/public/spree/products/64/small/DEMO_001_ror_bag.jpeg +0 -0
- data/spec/sandbox/public/spree/products/65/large/DEMO_002_Powerstation.jpg +0 -0
- data/spec/sandbox/public/spree/products/65/mini/DEMO_002_Powerstation.jpg +0 -0
- data/spec/sandbox/public/spree/products/65/original/DEMO_002_Powerstation.jpg +0 -0
- data/spec/sandbox/public/spree/products/65/product/DEMO_002_Powerstation.jpg +0 -0
- data/spec/sandbox/public/spree/products/65/small/DEMO_002_Powerstation.jpg +0 -0
- data/spec/sandbox/public/spree/products/66/large/DEMO_003_ror_mug.jpeg +0 -0
- data/spec/sandbox/public/spree/products/66/mini/DEMO_003_ror_mug.jpeg +0 -0
- data/spec/sandbox/public/spree/products/66/original/DEMO_003_ror_mug.jpeg +0 -0
- data/spec/sandbox/public/spree/products/66/product/DEMO_003_ror_mug.jpeg +0 -0
- data/spec/sandbox/public/spree/products/66/small/DEMO_003_ror_mug.jpeg +0 -0
- data/spec/sandbox/public/spree/products/7/large/DEMO_001_ror_bag.jpeg +0 -0
- data/spec/sandbox/public/spree/products/7/mini/DEMO_001_ror_bag.jpeg +0 -0
- data/spec/sandbox/public/spree/products/7/original/DEMO_001_ror_bag.jpeg +0 -0
- data/spec/sandbox/public/spree/products/7/product/DEMO_001_ror_bag.jpeg +0 -0
- data/spec/sandbox/public/spree/products/7/small/DEMO_001_ror_bag.jpeg +0 -0
- data/spec/sandbox/public/spree/products/8/large/DEMO_002_Powerstation.jpg +0 -0
- data/spec/sandbox/public/spree/products/8/mini/DEMO_002_Powerstation.jpg +0 -0
- data/spec/sandbox/public/spree/products/8/original/DEMO_002_Powerstation.jpg +0 -0
- data/spec/sandbox/public/spree/products/8/product/DEMO_002_Powerstation.jpg +0 -0
- data/spec/sandbox/public/spree/products/8/small/DEMO_002_Powerstation.jpg +0 -0
- data/spec/sandbox/public/spree/products/9/large/DEMO_003_ror_mug.jpeg +0 -0
- data/spec/sandbox/public/spree/products/9/mini/DEMO_003_ror_mug.jpeg +0 -0
- data/spec/sandbox/public/spree/products/9/original/DEMO_003_ror_mug.jpeg +0 -0
- data/spec/sandbox/public/spree/products/9/product/DEMO_003_ror_mug.jpeg +0 -0
- data/spec/sandbox/public/spree/products/9/small/DEMO_003_ror_mug.jpeg +0 -0
- data/spec/sandbox/script/rails +6 -0
- data/spec/sandbox/test/performance/browsing_test.rb +12 -0
- data/spec/sandbox/test/test_helper.rb +13 -0
- data/spec/sandbox/tmp/cache/assets/BDA/8A0/sprockets%2F05967796558429515381c4b5d86808c2 +29 -0
- data/spec/sandbox/tmp/cache/assets/C48/7D0/sprockets%2Fe0032828783157c117b48022df3e444e +11807 -0
- data/spec/sandbox/tmp/cache/assets/C7F/DF0/sprockets%2Fe656661206c7722b1c5512e36d9e64f0 +30 -0
- data/spec/sandbox/tmp/cache/assets/C8A/0A0/sprockets%2F26199d9652c1a334e195719ba8541dd8 +155 -0
- data/spec/sandbox/tmp/cache/assets/C9C/800/sprockets%2F0810329ee389187374ea7987e2bb9f77 +33 -0
- data/spec/sandbox/tmp/cache/assets/C9D/E90/sprockets%2Fa84ac59c0d9b39b3975951119999d917 +29 -0
- data/spec/sandbox/tmp/cache/assets/CAD/FE0/sprockets%2F3270cd94654e1c2d81fc580911900fa9 +93 -0
- data/spec/sandbox/tmp/cache/assets/CAE/1D0/sprockets%2F03dd1f063179d32c35b917edf3784163 +21 -0
- data/spec/sandbox/tmp/cache/assets/CBA/9D0/sprockets%2F2493926b475d6e62d7d1376e334c2dd6 +93 -0
- data/spec/sandbox/tmp/cache/assets/CBA/E50/sprockets%2F4e833190fdff066c72ea67164195192f +18 -0
- data/spec/sandbox/tmp/cache/assets/CC6/940/sprockets%2F381b881e222cd6d38f39965b4896b19e +209 -0
- data/spec/sandbox/tmp/cache/assets/CD0/A60/sprockets%2F47f7f8654e1b0830c06df21b1a2040e7 +33 -0
- data/spec/sandbox/tmp/cache/assets/CD7/C60/sprockets%2F07d4a437a6755702af3647c235dab26e +19 -0
- data/spec/sandbox/tmp/cache/assets/CE1/440/sprockets%2Fbf1f9f069ace2a75097338f013470d72 +412 -0
- data/spec/sandbox/tmp/cache/assets/CEF/5E0/sprockets%2F459ef82f805ce1977ee2aa452760d528 +11807 -0
- data/spec/sandbox/tmp/cache/assets/CF0/DA0/sprockets%2Fd7d5b37686831d37c4dd75e645f5e016 +3 -0
- data/spec/sandbox/tmp/cache/assets/D00/7B0/sprockets%2F2511eac4c5f8330291b2bf1326549afe +19 -0
- data/spec/sandbox/tmp/cache/assets/D04/270/sprockets%2F635ace50c8c35cab803205496eed2146 +41 -0
- data/spec/sandbox/tmp/cache/assets/D08/C70/sprockets%2F02f4cf94f805b4ee70a1aa776602355c +9 -0
- data/spec/sandbox/tmp/cache/assets/D0B/730/sprockets%2Fd63ee64122f213e93626f25be4a35d5d +6 -0
- data/spec/sandbox/tmp/cache/assets/D0F/110/sprockets%2F71ce77fd5231e5d0d705a8e085a0f871 +0 -0
- data/spec/sandbox/tmp/cache/assets/D0F/370/sprockets%2F65b590581acb0df661ea37d37c9f5152 +53 -0
- data/spec/sandbox/tmp/cache/assets/D10/370/sprockets%2Fc2793084fa0c48df282862bc45f72b2c +13 -0
- data/spec/sandbox/tmp/cache/assets/D13/4C0/sprockets%2F19b5a44963a45f1cab789db441e599a0 +412 -0
- data/spec/sandbox/tmp/cache/assets/D1A/150/sprockets%2Fe3180c81cf520cc7e5b9a2885ec98923 +19 -0
- data/spec/sandbox/tmp/cache/assets/D1B/D20/sprockets%2Fdedb93098f94d41370a4c9be4a959630 +4549 -0
- data/spec/sandbox/tmp/cache/assets/D28/190/sprockets%2F4eaae424d2725d30da3cb8245d8350c0 +6 -0
- data/spec/sandbox/tmp/cache/assets/D31/730/sprockets%2F3dfd818703e12cb1e1aff167a135571c +41 -0
- data/spec/sandbox/tmp/cache/assets/D34/B60/sprockets%2Fec323a4a5a3373a8293b3e8d66a7e4a1 +13 -0
- data/spec/sandbox/tmp/cache/assets/D34/D40/sprockets%2Fca3e3c106373aa947a80add2925a9f26 +27 -0
- data/spec/sandbox/tmp/cache/assets/D3A/BE0/sprockets%2F8fb5690b22562e324ea931f258cfa2ad +27 -0
- data/spec/sandbox/tmp/cache/assets/D3E/870/sprockets%2Fb76db487306db3e3e1dc3b3070e95d94 +4549 -0
- data/spec/sandbox/tmp/cache/assets/D43/7B0/sprockets%2F5e356ecdd6439806589c9898d9fde97d +53 -0
- data/spec/sandbox/tmp/cache/assets/D45/470/sprockets%2F6cd19fc744a481edb66691c29410fd4d +14 -0
- data/spec/sandbox/tmp/cache/assets/D46/6C0/sprockets%2F9e6ad6159bd63f648ee8a2f036b4a721 +53 -0
- data/spec/sandbox/tmp/cache/assets/D47/0D0/sprockets%2Fa1679da4467bfc1eb40c9e6e91e35555 +9409 -0
- data/spec/sandbox/tmp/cache/assets/D62/890/sprockets%2F73c3856d24a200d57f0b7ba6fe164afa +865 -0
- data/spec/sandbox/tmp/cache/assets/D6C/350/sprockets%2F9827e04e3cac800a854fd2ec0b288bf4 +0 -0
- data/spec/sandbox/tmp/cache/assets/D6D/A50/sprockets%2Ff7ded4a6bfd410172459cf4710a6c74e +3 -0
- data/spec/sandbox/tmp/cache/assets/D6F/920/sprockets%2Fd5417b2f1926be13bbd689d1e5fcc526 +14 -0
- data/spec/sandbox/tmp/cache/assets/D71/7E0/sprockets%2Fe71663bff3967b08bf6bc0fe01507db7 +865 -0
- data/spec/sandbox/tmp/cache/assets/D72/350/sprockets%2Ff1fa7173161fbe2d4d4c5e7c5741c69e +209 -0
- data/spec/sandbox/tmp/cache/assets/D73/480/sprockets%2F1fe4d21884c4db06ee089b5da298f32d +306 -0
- data/spec/sandbox/tmp/cache/assets/D74/F00/sprockets%2Ff4fbdd38742160ad3db7a76c938e83d1 +45 -0
- data/spec/sandbox/tmp/cache/assets/D78/860/sprockets%2F339f9afd4dbcbf97d0647817d343a71b +3 -0
- data/spec/sandbox/tmp/cache/assets/D79/1F0/sprockets%2F8275f49b8bab7b12a384e4ee8e09c7e1 +40 -0
- data/spec/sandbox/tmp/cache/assets/D7A/620/sprockets%2F59d4faa69df49cb38043c522eb78f19a +45 -0
- data/spec/sandbox/tmp/cache/assets/D7B/850/sprockets%2Fe1aeffb9bb8d70056596c37932ed6f42 +0 -0
- data/spec/sandbox/tmp/cache/assets/D90/C90/sprockets%2F070fb0a8b408f5b313840eaf5fcba77c +155 -0
- data/spec/sandbox/tmp/cache/assets/DA4/270/sprockets%2F501c395ed23e58949bba4f543cf6aebf +9409 -0
- data/spec/sandbox/tmp/cache/assets/DA8/E00/sprockets%2F74af3c8bd250fbfc4d98fe9551441df3 +0 -0
- data/spec/sandbox/tmp/cache/assets/DB5/B30/sprockets%2Fac3cabc1f3a1c6dea21b5968c2830b07 +306 -0
- data/spec/sandbox/tmp/cache/assets/DC9/EE0/sprockets%2Fd73a6d912e56561bc3aef7e8adcc1d40 +0 -0
- data/spec/sandbox/tmp/cache/assets/DCF/0B0/sprockets%2F17171de28f3e5db9a23ceeeceb64d355 +19 -0
- data/spec/sandbox/tmp/cache/assets/DE0/9B0/sprockets%2F98b10e39eeb69f8cb419f5114eec8ffa +239 -0
- data/spec/sandbox/tmp/cache/assets/DE8/0E0/sprockets%2Fcd07d79e6b93c6eec93f854ffff0f334 +0 -0
- data/spec/sandbox/tmp/cache/assets/DFA/D70/sprockets%2F4ad1da8bda1b38077c809f3ebacf964c +239 -0
- data/spec/sandbox/tmp/cache/assets/DFE/AA0/sprockets%2Fc127e6e63f95c0fc53ee4a12febd82af +30 -0
- data/spec/sandbox/tmp/cache/assets/E00/B50/sprockets%2F3a2feeb54bb2c9e8a360f8f8f2a9e1b4 +53 -0
- data/spec/sandbox/tmp/cache/assets/E08/C20/sprockets%2F0ad8fbc5a986d12b73b4fecc98e70ef5 +18 -0
- data/spec/sandbox/tmp/cache/assets/E09/160/sprockets%2F28fd19d52fa996bd5bc0b1cf8efc2f74 +40 -0
- data/spec/sandbox/tmp/cache/assets/E25/4C0/sprockets%2Fde2fd9fd11c04a582cdbbe3d84a35ae6 +3 -0
- data/spec/sandbox/tmp/cache/assets/E32/490/sprockets%2F78aadee343f7b9923ca5bceede46be05 +21 -0
- data/spec/sandbox/tmp/cache/assets/E5A/810/sprockets%2Fbc9acd6ef9418cbacd83015fc46ead3c +9 -0
- data/spec/spec_helper.rb +345 -0
- data/spec/spree_exporter_spec.rb +64 -0
- data/spec/spree_generator_spec.rb +91 -0
- data/spec/spree_images_loader_spec.rb +102 -0
- data/spec/spree_loader_spec.rb +237 -0
- data/spec/spree_method_mapping_spec.rb +222 -0
- data/spec/spree_taxons_loader_spec.rb +282 -0
- data/spec/spree_variants_loader_spec.rb +186 -0
- data/spec/thor_spec.rb +61 -0
- metadata +681 -0
Binary file
|
@@ -0,0 +1,239 @@
|
|
1
|
+
o: ActiveSupport::Cache::Entry :@compressedF:@created_atf1347956163.696:@expires_in0:@value"� {"
|
2
|
+
class"ProcessedAsset"logical_path"#jquery.alerts/jquery.alerts.js"
|
3
|
+
mtime"2012-08-05T17:45:12+01:00"lengthi�"digest"%df15df45c36cb89e544372db230f177a"source"�// jQuery Alert Dialogs Plugin
|
4
|
+
//
|
5
|
+
// Version 1.1
|
6
|
+
//
|
7
|
+
// Cory S.N. LaViska
|
8
|
+
// A Beautiful Site (http://abeautifulsite.net/)
|
9
|
+
// 14 May 2009
|
10
|
+
//
|
11
|
+
// Visit http://abeautifulsite.net/notebook/87 for more information
|
12
|
+
//
|
13
|
+
// Usage:
|
14
|
+
// jAlert( message, [title, callback] )
|
15
|
+
// jConfirm( message, [title, callback] )
|
16
|
+
// jPrompt( message, [value, title, callback] )
|
17
|
+
//
|
18
|
+
// History:
|
19
|
+
//
|
20
|
+
// 1.00 - Released (29 December 2008)
|
21
|
+
//
|
22
|
+
// 1.01 - Fixed bug where unbinding would destroy all resize events
|
23
|
+
//
|
24
|
+
// License:
|
25
|
+
//
|
26
|
+
// This plugin is dual-licensed under the GNU General Public License and the MIT License and
|
27
|
+
// is copyright 2008 A Beautiful Site, LLC.
|
28
|
+
//
|
29
|
+
(function($) {
|
30
|
+
|
31
|
+
$.alerts = {
|
32
|
+
|
33
|
+
// These properties can be read/written by accessing $.alerts.propertyName from your scripts at any time
|
34
|
+
|
35
|
+
verticalOffset: -75, // vertical offset of the dialog from center screen, in pixels
|
36
|
+
horizontalOffset: 0, // horizontal offset of the dialog from center screen, in pixels/
|
37
|
+
repositionOnResize: true, // re-centers the dialog on window resize
|
38
|
+
overlayOpacity: .01, // transparency level of overlay
|
39
|
+
overlayColor: '#FFF', // base color of overlay
|
40
|
+
draggable: true, // make the dialogs draggable (requires UI Draggables plugin)
|
41
|
+
okButton: ' OK ', // text for the OK button
|
42
|
+
cancelButton: ' Cancel ', // text for the Cancel button
|
43
|
+
dialogClass: null, // if specified, this class will be applied to all dialogs
|
44
|
+
|
45
|
+
// Public methods
|
46
|
+
|
47
|
+
alert: function(message, title, callback) {
|
48
|
+
if( title == null ) title = 'Alert';
|
49
|
+
$.alerts._show(title, message, null, 'alert', function(result) {
|
50
|
+
if( callback ) callback(result);
|
51
|
+
});
|
52
|
+
},
|
53
|
+
|
54
|
+
confirm: function(message, title, callback) {
|
55
|
+
if( title == null ) title = 'Confirm';
|
56
|
+
$.alerts._show(title, message, null, 'confirm', function(result) {
|
57
|
+
if( callback ) callback(result);
|
58
|
+
});
|
59
|
+
},
|
60
|
+
|
61
|
+
prompt: function(message, value, title, callback) {
|
62
|
+
if( title == null ) title = 'Prompt';
|
63
|
+
$.alerts._show(title, message, value, 'prompt', function(result) {
|
64
|
+
if( callback ) callback(result);
|
65
|
+
});
|
66
|
+
},
|
67
|
+
|
68
|
+
// Private methods
|
69
|
+
|
70
|
+
_show: function(title, msg, value, type, callback) {
|
71
|
+
|
72
|
+
$.alerts._hide();
|
73
|
+
$.alerts._overlay('show');
|
74
|
+
|
75
|
+
$("BODY").append(
|
76
|
+
'<div id="popup_container">' +
|
77
|
+
'<h1 id="popup_title"></h1>' +
|
78
|
+
'<div id="popup_content">' +
|
79
|
+
'<div id="popup_message"></div>' +
|
80
|
+
'</div>' +
|
81
|
+
'</div>');
|
82
|
+
|
83
|
+
if( $.alerts.dialogClass ) $("#popup_container").addClass($.alerts.dialogClass);
|
84
|
+
|
85
|
+
// IE6 Fix
|
86
|
+
var pos = ($.browser.msie && parseInt($.browser.version) <= 6 ) ? 'absolute' : 'fixed';
|
87
|
+
|
88
|
+
$("#popup_container").css({
|
89
|
+
position: pos,
|
90
|
+
zIndex: 99999,
|
91
|
+
padding: 0,
|
92
|
+
margin: 0
|
93
|
+
});
|
94
|
+
|
95
|
+
$("#popup_title").text(title);
|
96
|
+
$("#popup_content").addClass(type);
|
97
|
+
$("#popup_message").text(msg);
|
98
|
+
$("#popup_message").html( $("#popup_message").text().replace(/\n/g, '<br />') );
|
99
|
+
|
100
|
+
$("#popup_container").css({
|
101
|
+
minWidth: $("#popup_container").outerWidth(),
|
102
|
+
maxWidth: $("#popup_container").outerWidth()
|
103
|
+
});
|
104
|
+
|
105
|
+
$.alerts._reposition();
|
106
|
+
$.alerts._maintainPosition(true);
|
107
|
+
|
108
|
+
switch( type ) {
|
109
|
+
case 'alert':
|
110
|
+
$("#popup_message").after('<div id="popup_panel"><input type="button" value="' + $.alerts.okButton + '" id="popup_ok" /></div>');
|
111
|
+
$("#popup_ok").click( function() {
|
112
|
+
$.alerts._hide();
|
113
|
+
callback(true);
|
114
|
+
});
|
115
|
+
$("#popup_ok").focus().keypress( function(e) {
|
116
|
+
if( e.keyCode == 13 || e.keyCode == 27 ) $("#popup_ok").trigger('click');
|
117
|
+
});
|
118
|
+
break;
|
119
|
+
case 'confirm':
|
120
|
+
$("#popup_message").after('<div id="popup_panel"><input type="button" value="' + $.alerts.okButton + '" id="popup_ok" /> <input type="button" value="' + $.alerts.cancelButton + '" id="popup_cancel" /></div>');
|
121
|
+
$("#popup_ok").click( function() {
|
122
|
+
$.alerts._hide();
|
123
|
+
if( callback ) callback(true);
|
124
|
+
});
|
125
|
+
$("#popup_cancel").click( function() {
|
126
|
+
$.alerts._hide();
|
127
|
+
if( callback ) callback(false);
|
128
|
+
});
|
129
|
+
$("#popup_ok").focus();
|
130
|
+
$("#popup_ok, #popup_cancel").keypress( function(e) {
|
131
|
+
if( e.keyCode == 13 ) $("#popup_ok").trigger('click');
|
132
|
+
if( e.keyCode == 27 ) $("#popup_cancel").trigger('click');
|
133
|
+
});
|
134
|
+
break;
|
135
|
+
case 'prompt':
|
136
|
+
$("#popup_message").append('<br /><input type="text" size="30" id="popup_prompt" />').after('<div id="popup_panel"><input type="button" value="' + $.alerts.okButton + '" id="popup_ok" /> <input type="button" value="' + $.alerts.cancelButton + '" id="popup_cancel" /></div>');
|
137
|
+
$("#popup_prompt").width( $("#popup_message").width() );
|
138
|
+
$("#popup_ok").click( function() {
|
139
|
+
var val = $("#popup_prompt").val();
|
140
|
+
$.alerts._hide();
|
141
|
+
if( callback ) callback( val );
|
142
|
+
});
|
143
|
+
$("#popup_cancel").click( function() {
|
144
|
+
$.alerts._hide();
|
145
|
+
if( callback ) callback( null );
|
146
|
+
});
|
147
|
+
$("#popup_prompt, #popup_ok, #popup_cancel").keypress( function(e) {
|
148
|
+
if( e.keyCode == 13 ) $("#popup_ok").trigger('click');
|
149
|
+
if( e.keyCode == 27 ) $("#popup_cancel").trigger('click');
|
150
|
+
});
|
151
|
+
if( value ) $("#popup_prompt").val(value);
|
152
|
+
$("#popup_prompt").focus().select();
|
153
|
+
break;
|
154
|
+
}
|
155
|
+
|
156
|
+
// Make draggable
|
157
|
+
if( $.alerts.draggable ) {
|
158
|
+
try {
|
159
|
+
$("#popup_container").draggable({ handle: $("#popup_title") });
|
160
|
+
$("#popup_title").css({ cursor: 'move' });
|
161
|
+
} catch(e) { /* requires jQuery UI draggables */ }
|
162
|
+
}
|
163
|
+
},
|
164
|
+
|
165
|
+
_hide: function() {
|
166
|
+
$("#popup_container").remove();
|
167
|
+
$.alerts._overlay('hide');
|
168
|
+
$.alerts._maintainPosition(false);
|
169
|
+
},
|
170
|
+
|
171
|
+
_overlay: function(status) {
|
172
|
+
switch( status ) {
|
173
|
+
case 'show':
|
174
|
+
$.alerts._overlay('hide');
|
175
|
+
$("BODY").append('<div id="popup_overlay"></div>');
|
176
|
+
$("#popup_overlay").css({
|
177
|
+
position: 'absolute',
|
178
|
+
zIndex: 99998,
|
179
|
+
top: '0px',
|
180
|
+
left: '0px',
|
181
|
+
width: '100%',
|
182
|
+
height: $(document).height(),
|
183
|
+
background: $.alerts.overlayColor,
|
184
|
+
opacity: $.alerts.overlayOpacity
|
185
|
+
});
|
186
|
+
break;
|
187
|
+
case 'hide':
|
188
|
+
$("#popup_overlay").remove();
|
189
|
+
break;
|
190
|
+
}
|
191
|
+
},
|
192
|
+
|
193
|
+
_reposition: function() {
|
194
|
+
var top = (($(window).height() / 2) - ($("#popup_container").outerHeight() / 2)) + $.alerts.verticalOffset;
|
195
|
+
var left = (($(window).width() / 2) - ($("#popup_container").outerWidth() / 2)) + $.alerts.horizontalOffset;
|
196
|
+
if( top < 0 ) top = 0;
|
197
|
+
if( left < 0 ) left = 0;
|
198
|
+
|
199
|
+
// IE6 fix
|
200
|
+
if( $.browser.msie && parseInt($.browser.version) <= 6 ) top = top + $(window).scrollTop();
|
201
|
+
|
202
|
+
$("#popup_container").css({
|
203
|
+
top: top + 'px',
|
204
|
+
left: left + 'px'
|
205
|
+
});
|
206
|
+
$("#popup_overlay").height( $(document).height() );
|
207
|
+
},
|
208
|
+
|
209
|
+
_maintainPosition: function(status) {
|
210
|
+
if( $.alerts.repositionOnResize ) {
|
211
|
+
switch(status) {
|
212
|
+
case true:
|
213
|
+
$(window).bind('resize', $.alerts._reposition);
|
214
|
+
break;
|
215
|
+
case false:
|
216
|
+
$(window).unbind('resize', $.alerts._reposition);
|
217
|
+
break;
|
218
|
+
}
|
219
|
+
}
|
220
|
+
}
|
221
|
+
|
222
|
+
}
|
223
|
+
|
224
|
+
// Shortuct functions
|
225
|
+
jAlert = function(message, title, callback) {
|
226
|
+
$.alerts.alert(message, title, callback);
|
227
|
+
}
|
228
|
+
|
229
|
+
jConfirm = function(message, title, callback) {
|
230
|
+
$.alerts.confirm(message, title, callback);
|
231
|
+
};
|
232
|
+
|
233
|
+
jPrompt = function(message, value, title, callback) {
|
234
|
+
$.alerts.prompt(message, value, title, callback);
|
235
|
+
};
|
236
|
+
|
237
|
+
})(jQuery);
|
238
|
+
"dependency_digest"%d41751411751c9a97a3c55828972090f"required_paths["x/home/stattert/.rvm/gems/jruby-1.6.7/gems/spree_core-1.1.3/vendor/assets/javascripts/jquery.alerts/jquery.alerts.js"dependency_paths[{" path"x/home/stattert/.rvm/gems/jruby-1.6.7/gems/spree_core-1.1.3/vendor/assets/javascripts/jquery.alerts/jquery.alerts.js"
|
239
|
+
mtime"2012-08-05T17:45:12+01:00"digest"%abf3d9bba3c739f17f9ae8b9e454abdf"
|
@@ -0,0 +1,30 @@
|
|
1
|
+
o: ActiveSupport::Cache::Entry :@compressedF:@created_atf1347956164.601:@expires_in0:@value"�){"
|
2
|
+
class"ProcessedAsset"logical_path"admin/underscore-min.js"
|
3
|
+
mtime"2012-08-05T17:45:12+01:00"lengthi�&"digest"%b46d10ed70c2cd20faffacc28fe43a8c"source"�&// Underscore.js 1.1.6
|
4
|
+
// (c) 2011 Jeremy Ashkenas, DocumentCloud Inc.
|
5
|
+
// Underscore is freely distributable under the MIT license.
|
6
|
+
// Portions of Underscore are inspired or borrowed from Prototype,
|
7
|
+
// Oliver Steele's Functional, and John Resig's Micro-Templating.
|
8
|
+
// For all details and documentation:
|
9
|
+
// http://documentcloud.github.com/underscore
|
10
|
+
(function(){var p=this,C=p._,m={},i=Array.prototype,n=Object.prototype,f=i.slice,D=i.unshift,E=n.toString,l=n.hasOwnProperty,s=i.forEach,t=i.map,u=i.reduce,v=i.reduceRight,w=i.filter,x=i.every,y=i.some,o=i.indexOf,z=i.lastIndexOf;n=Array.isArray;var F=Object.keys,q=Function.prototype.bind,b=function(a){return new j(a)};typeof module!=="undefined"&&module.exports?(module.exports=b,b._=b):p._=b;b.VERSION="1.1.6";var h=b.each=b.forEach=function(a,c,d){if(a!=null)if(s&&a.forEach===s)a.forEach(c,d);else if(b.isNumber(a.length))for(var e=
|
11
|
+
0,k=a.length;e<k;e++){if(c.call(d,a[e],e,a)===m)break}else for(e in a)if(l.call(a,e)&&c.call(d,a[e],e,a)===m)break};b.map=function(a,c,b){var e=[];if(a==null)return e;if(t&&a.map===t)return a.map(c,b);h(a,function(a,g,G){e[e.length]=c.call(b,a,g,G)});return e};b.reduce=b.foldl=b.inject=function(a,c,d,e){var k=d!==void 0;a==null&&(a=[]);if(u&&a.reduce===u)return e&&(c=b.bind(c,e)),k?a.reduce(c,d):a.reduce(c);h(a,function(a,b,f){!k&&b===0?(d=a,k=!0):d=c.call(e,d,a,b,f)});if(!k)throw new TypeError("Reduce of empty array with no initial value");
|
12
|
+
return d};b.reduceRight=b.foldr=function(a,c,d,e){a==null&&(a=[]);if(v&&a.reduceRight===v)return e&&(c=b.bind(c,e)),d!==void 0?a.reduceRight(c,d):a.reduceRight(c);a=(b.isArray(a)?a.slice():b.toArray(a)).reverse();return b.reduce(a,c,d,e)};b.find=b.detect=function(a,c,b){var e;A(a,function(a,g,f){if(c.call(b,a,g,f))return e=a,!0});return e};b.filter=b.select=function(a,c,b){var e=[];if(a==null)return e;if(w&&a.filter===w)return a.filter(c,b);h(a,function(a,g,f){c.call(b,a,g,f)&&(e[e.length]=a)});return e};
|
13
|
+
b.reject=function(a,c,b){var e=[];if(a==null)return e;h(a,function(a,g,f){c.call(b,a,g,f)||(e[e.length]=a)});return e};b.every=b.all=function(a,c,b){var e=!0;if(a==null)return e;if(x&&a.every===x)return a.every(c,b);h(a,function(a,g,f){if(!(e=e&&c.call(b,a,g,f)))return m});return e};var A=b.some=b.any=function(a,c,d){c||(c=b.identity);var e=!1;if(a==null)return e;if(y&&a.some===y)return a.some(c,d);h(a,function(a,b,f){if(e=c.call(d,a,b,f))return m});return e};b.include=b.contains=function(a,c){var b=
|
14
|
+
!1;if(a==null)return b;if(o&&a.indexOf===o)return a.indexOf(c)!=-1;A(a,function(a){if(b=a===c)return!0});return b};b.invoke=function(a,c){var d=f.call(arguments,2);return b.map(a,function(a){return(c.call?c||a:a[c]).apply(a,d)})};b.pluck=function(a,c){return b.map(a,function(a){return a[c]})};b.max=function(a,c,d){if(!c&&b.isArray(a))return Math.max.apply(Math,a);var e={computed:-Infinity};h(a,function(a,b,f){b=c?c.call(d,a,b,f):a;b>=e.computed&&(e={value:a,computed:b})});return e.value};b.min=function(a,
|
15
|
+
c,d){if(!c&&b.isArray(a))return Math.min.apply(Math,a);var e={computed:Infinity};h(a,function(a,b,f){b=c?c.call(d,a,b,f):a;b<e.computed&&(e={value:a,computed:b})});return e.value};b.sortBy=function(a,c,d){return b.pluck(b.map(a,function(a,b,f){return{value:a,criteria:c.call(d,a,b,f)}}).sort(function(a,b){var c=a.criteria,d=b.criteria;return c<d?-1:c>d?1:0}),"value")};b.sortedIndex=function(a,c,d){d||(d=b.identity);for(var e=0,f=a.length;e<f;){var g=e+f>>1;d(a[g])<d(c)?e=g+1:f=g}return e};b.toArray=
|
16
|
+
function(a){if(!a)return[];if(a.toArray)return a.toArray();if(b.isArray(a))return a;if(b.isArguments(a))return f.call(a);return b.values(a)};b.size=function(a){return b.toArray(a).length};b.first=b.head=function(a,b,d){return b!=null&&!d?f.call(a,0,b):a[0]};b.rest=b.tail=function(a,b,d){return f.call(a,b==null||d?1:b)};b.last=function(a){return a[a.length-1]};b.compact=function(a){return b.filter(a,function(a){return!!a})};b.flatten=function(a){return b.reduce(a,function(a,d){if(b.isArray(d))return a.concat(b.flatten(d));
|
17
|
+
a[a.length]=d;return a},[])};b.without=function(a){var c=f.call(arguments,1);return b.filter(a,function(a){return!b.include(c,a)})};b.uniq=b.unique=function(a,c){return b.reduce(a,function(a,e,f){if(0==f||(c===!0?b.last(a)!=e:!b.include(a,e)))a[a.length]=e;return a},[])};b.intersect=function(a){var c=f.call(arguments,1);return b.filter(b.uniq(a),function(a){return b.every(c,function(c){return b.indexOf(c,a)>=0})})};b.zip=function(){for(var a=f.call(arguments),c=b.max(b.pluck(a,"length")),d=Array(c),
|
18
|
+
e=0;e<c;e++)d[e]=b.pluck(a,""+e);return d};b.indexOf=function(a,c,d){if(a==null)return-1;var e;if(d)return d=b.sortedIndex(a,c),a[d]===c?d:-1;if(o&&a.indexOf===o)return a.indexOf(c);d=0;for(e=a.length;d<e;d++)if(a[d]===c)return d;return-1};b.lastIndexOf=function(a,b){if(a==null)return-1;if(z&&a.lastIndexOf===z)return a.lastIndexOf(b);for(var d=a.length;d--;)if(a[d]===b)return d;return-1};b.range=function(a,b,d){arguments.length<=1&&(b=a||0,a=0);d=arguments[2]||1;for(var e=Math.max(Math.ceil((b-a)/
|
19
|
+
d),0),f=0,g=Array(e);f<e;)g[f++]=a,a+=d;return g};b.bind=function(a,b){if(a.bind===q&&q)return q.apply(a,f.call(arguments,1));var d=f.call(arguments,2);return function(){return a.apply(b,d.concat(f.call(arguments)))}};b.bindAll=function(a){var c=f.call(arguments,1);c.length==0&&(c=b.functions(a));h(c,function(c){a[c]=b.bind(a[c],a)});return a};b.memoize=function(a,c){var d={};c||(c=b.identity);return function(){var b=c.apply(this,arguments);return l.call(d,b)?d[b]:d[b]=a.apply(this,arguments)}};b.delay=
|
20
|
+
function(a,b){var d=f.call(arguments,2);return setTimeout(function(){return a.apply(a,d)},b)};b.defer=function(a){return b.delay.apply(b,[a,1].concat(f.call(arguments,1)))};var B=function(a,b,d){var e;return function(){var f=this,g=arguments,h=function(){e=null;a.apply(f,g)};d&&clearTimeout(e);if(d||!e)e=setTimeout(h,b)}};b.throttle=function(a,b){return B(a,b,!1)};b.debounce=function(a,b){return B(a,b,!0)};b.once=function(a){var b=!1,d;return function(){if(b)return d;b=!0;return d=a.apply(this,arguments)}};
|
21
|
+
b.wrap=function(a,b){return function(){var d=[a].concat(f.call(arguments));return b.apply(this,d)}};b.compose=function(){var a=f.call(arguments);return function(){for(var b=f.call(arguments),d=a.length-1;d>=0;d--)b=[a[d].apply(this,b)];return b[0]}};b.after=function(a,b){return function(){if(--a<1)return b.apply(this,arguments)}};b.keys=F||function(a){if(a!==Object(a))throw new TypeError("Invalid object");var b=[],d;for(d in a)l.call(a,d)&&(b[b.length]=d);return b};b.values=function(a){return b.map(a,
|
22
|
+
b.identity)};b.functions=b.methods=function(a){return b.filter(b.keys(a),function(c){return b.isFunction(a[c])}).sort()};b.extend=function(a){h(f.call(arguments,1),function(b){for(var d in b)b[d]!==void 0&&(a[d]=b[d])});return a};b.defaults=function(a){h(f.call(arguments,1),function(b){for(var d in b)a[d]==null&&(a[d]=b[d])});return a};b.clone=function(a){return b.isArray(a)?a.slice():b.extend({},a)};b.tap=function(a,b){b(a);return a};b.isEqual=function(a,c){if(a===c)return!0;var d=typeof a;if(d!=
|
23
|
+
typeof c)return!1;if(a==c)return!0;if(!a&&c||a&&!c)return!1;if(a._chain)a=a._wrapped;if(c._chain)c=c._wrapped;if(a.isEqual)return a.isEqual(c);if(b.isDate(a)&&b.isDate(c))return a.getTime()===c.getTime();if(b.isNaN(a)&&b.isNaN(c))return!1;if(b.isRegExp(a)&&b.isRegExp(c))return a.source===c.source&&a.global===c.global&&a.ignoreCase===c.ignoreCase&&a.multiline===c.multiline;if(d!=="object")return!1;if(a.length&&a.length!==c.length)return!1;d=b.keys(a);var e=b.keys(c);if(d.length!=e.length)return!1;
|
24
|
+
for(var f in a)if(!(f in c)||!b.isEqual(a[f],c[f]))return!1;return!0};b.isEmpty=function(a){if(b.isArray(a)||b.isString(a))return a.length===0;for(var c in a)if(l.call(a,c))return!1;return!0};b.isElement=function(a){return!!(a&&a.nodeType==1)};b.isArray=n||function(a){return E.call(a)==="[object Array]"};b.isArguments=function(a){return!(!a||!l.call(a,"callee"))};b.isFunction=function(a){return!(!a||!a.constructor||!a.call||!a.apply)};b.isString=function(a){return!!(a===""||a&&a.charCodeAt&&a.substr)};
|
25
|
+
b.isNumber=function(a){return!!(a===0||a&&a.toExponential&&a.toFixed)};b.isNaN=function(a){return a!==a};b.isBoolean=function(a){return a===!0||a===!1};b.isDate=function(a){return!(!a||!a.getTimezoneOffset||!a.setUTCFullYear)};b.isRegExp=function(a){return!(!a||!a.test||!a.exec||!(a.ignoreCase||a.ignoreCase===!1))};b.isNull=function(a){return a===null};b.isUndefined=function(a){return a===void 0};b.noConflict=function(){p._=C;return this};b.identity=function(a){return a};b.times=function(a,b,d){for(var e=
|
26
|
+
0;e<a;e++)b.call(d,e)};b.mixin=function(a){h(b.functions(a),function(c){H(c,b[c]=a[c])})};var I=0;b.uniqueId=function(a){var b=I++;return a?a+b:b};b.templateSettings={evaluate:/<%([\s\S]+?)%>/g,interpolate:/<%=([\s\S]+?)%>/g};b.template=function(a,c){var d=b.templateSettings;d="var __p=[],print=function(){__p.push.apply(__p,arguments);};with(obj||{}){__p.push('"+a.replace(/\\/g,"\\\\").replace(/'/g,"\\'").replace(d.interpolate,function(a,b){return"',"+b.replace(/\\'/g,"'")+",'"}).replace(d.evaluate||
|
27
|
+
null,function(a,b){return"');"+b.replace(/\\'/g,"'").replace(/[\r\n\t]/g," ")+"__p.push('"}).replace(/\r/g,"\\r").replace(/\n/g,"\\n").replace(/\t/g,"\\t")+"');}return __p.join('');";d=new Function("obj",d);return c?d(c):d};var j=function(a){this._wrapped=a};b.prototype=j.prototype;var r=function(a,c){return c?b(a).chain():a},H=function(a,c){j.prototype[a]=function(){var a=f.call(arguments);D.call(a,this._wrapped);return r(c.apply(b,a),this._chain)}};b.mixin(b);h(["pop","push","reverse","shift","sort",
|
28
|
+
"splice","unshift"],function(a){var b=i[a];j.prototype[a]=function(){b.apply(this._wrapped,arguments);return r(this._wrapped,this._chain)}});h(["concat","join","slice"],function(a){var b=i[a];j.prototype[a]=function(){return r(b.apply(this._wrapped,arguments),this._chain)}});j.prototype.chain=function(){this._chain=!0;return this};j.prototype.value=function(){return this._wrapped}})();
|
29
|
+
"dependency_digest"%0322a7da3ac9e88b4dda4196ab7c9c03"required_paths["n/home/stattert/.rvm/gems/jruby-1.6.7/gems/spree_core-1.1.3/app/assets/javascripts/admin/underscore-min.js"dependency_paths[{" path"n/home/stattert/.rvm/gems/jruby-1.6.7/gems/spree_core-1.1.3/app/assets/javascripts/admin/underscore-min.js"
|
30
|
+
mtime"2012-08-05T17:45:12+01:00"digest"%b46d10ed70c2cd20faffacc28fe43a8c"
|
@@ -0,0 +1,53 @@
|
|
1
|
+
o: ActiveSupport::Cache::Entry :@compressedF:@created_atf1347956164.069:@expires_in0:@value"0 {"
|
2
|
+
class"ProcessedAsset"logical_path"admin/image_settings.js"
|
3
|
+
mtime"2012-08-05T17:45:12+01:00"lengthi>"digest"%f38c8ad8b23533a8338d3b6833b290c2"source">$(document).ready(function() {
|
4
|
+
|
5
|
+
if ($('input#preferences_use_s3[type="checkbox"]:checked').length > 0)
|
6
|
+
$('#s3_settings').show();
|
7
|
+
|
8
|
+
// Toggle display of S3 settings based on value of use_s3 checkbox
|
9
|
+
$('input#preferences_use_s3[type="checkbox"]').click(function() {
|
10
|
+
$('#s3_settings').toggle();
|
11
|
+
});
|
12
|
+
|
13
|
+
$('.destroy_style').on("click", function() {
|
14
|
+
$(this).parent().remove();
|
15
|
+
});
|
16
|
+
|
17
|
+
$('.destroy_header').on("click", function() {
|
18
|
+
$(this).parent().remove();
|
19
|
+
});
|
20
|
+
|
21
|
+
// Handle adding new styles
|
22
|
+
var styles_hash_index = 1;
|
23
|
+
$('.add_style').click(function() {
|
24
|
+
$('#styles_list').append(generate_html_for_hash("new_attachment_styles", styles_hash_index));
|
25
|
+
});
|
26
|
+
|
27
|
+
// Handle adding new headers
|
28
|
+
var headers_hash_index = 1;
|
29
|
+
$('.add_header').click(function() {
|
30
|
+
$('#headers_list').append(generate_html_for_hash("new_s3_headers", headers_hash_index));
|
31
|
+
});
|
32
|
+
|
33
|
+
// Generates html for new paperclip styles form fields
|
34
|
+
generate_html_for_hash = function(hash_name, index) {
|
35
|
+
var html = '<li>';
|
36
|
+
html += '<label for="' + hash_name + '_' + index + '_name">';
|
37
|
+
html += 'Name</label>';
|
38
|
+
html += '<input id="' + hash_name + '_' + index + '_name" name="' + hash_name + '[' + index + '][name]" type="text">';
|
39
|
+
html += '<label for="' + hash_name + '_' + index + '_value">';
|
40
|
+
html += 'Value</label>';
|
41
|
+
html += '<input id="' + hash_name + '_' + index + '_value" name="' + hash_name + '[' + index + '][value]" type="text">';
|
42
|
+
html += '<a href="#" alt="Destroy" class="destroy_style"> x</a>';
|
43
|
+
html += '</li>';
|
44
|
+
|
45
|
+
index += 1;
|
46
|
+
return html;
|
47
|
+
};
|
48
|
+
|
49
|
+
|
50
|
+
|
51
|
+
});
|
52
|
+
"dependency_digest"%96743364cf028cc3d163e8c45a89d0f6"required_paths["n/home/stattert/.rvm/gems/jruby-1.6.7/gems/spree_core-1.1.3/app/assets/javascripts/admin/image_settings.js"dependency_paths[{" path"n/home/stattert/.rvm/gems/jruby-1.6.7/gems/spree_core-1.1.3/app/assets/javascripts/admin/image_settings.js"
|
53
|
+
mtime"2012-08-05T17:45:12+01:00"digest"%f38c8ad8b23533a8338d3b6833b290c2"
|
@@ -0,0 +1,18 @@
|
|
1
|
+
o: ActiveSupport::Cache::Entry :@compressedF:@created_atf1347956164.003:@expires_in0:@value"�{"
|
2
|
+
class"ProcessedAsset"logical_path"admin/gateway.js"
|
3
|
+
mtime"2012-08-05T17:45:12+01:00"lengthi�"digest"%9d7e222ce0e5ddccacd1714ae9808b6c"source"�$(function() {
|
4
|
+
var original_gtwy_type = $('#gtwy-type').attr('value');
|
5
|
+
$('div#gateway-settings-warning').hide();
|
6
|
+
$('#gtwy-type').change(function() {
|
7
|
+
if ($('#gtwy-type').attr('value') == original_gtwy_type) {
|
8
|
+
$('div.gateway-settings').show();
|
9
|
+
$('div#gateway-settings-warning').hide();
|
10
|
+
} else {
|
11
|
+
$('div.gateway-settings').hide();
|
12
|
+
$('div#gateway-settings-warning').show();
|
13
|
+
}
|
14
|
+
});
|
15
|
+
})
|
16
|
+
;
|
17
|
+
"dependency_digest"%a30d0e1478cca2aeea9be5d71cec36ff"required_paths["g/home/stattert/.rvm/gems/jruby-1.6.7/gems/spree_core-1.1.3/app/assets/javascripts/admin/gateway.js"dependency_paths[{" path"g/home/stattert/.rvm/gems/jruby-1.6.7/gems/spree_core-1.1.3/app/assets/javascripts/admin/gateway.js"
|
18
|
+
mtime"2012-08-05T17:45:12+01:00"digest"%624e012afc83da5191893b1dbe56c66f"
|
@@ -0,0 +1,40 @@
|
|
1
|
+
o: ActiveSupport::Cache::Entry :@compressedF:@created_atf1347956163.608:@expires_in0:@value"�{"
|
2
|
+
class"ProcessedAsset"logical_path"jquery.delayedobserver.js"
|
3
|
+
mtime"2012-08-05T17:45:12+01:00"lengthi�"digest"%f0937e18c84c223820af1c774e1f681a"source"�/*
|
4
|
+
jQuery delayed observer - 0.8
|
5
|
+
http://code.google.com/p/jquery-utils/
|
6
|
+
|
7
|
+
(c) Maxime Haineault <haineault@gmail.com>
|
8
|
+
http://haineault.com
|
9
|
+
|
10
|
+
MIT License (http://www.opensource.org/licenses/mit-license.php)
|
11
|
+
|
12
|
+
*/
|
13
|
+
|
14
|
+
|
15
|
+
(function($){
|
16
|
+
$.extend($.fn, {
|
17
|
+
delayedObserver: function(callback, delay, options){
|
18
|
+
return this.each(function(){
|
19
|
+
var el = $(this);
|
20
|
+
var op = options || {};
|
21
|
+
el.data('oldval', el.val())
|
22
|
+
.data('delay', delay || 0.5)
|
23
|
+
.data('condition', op.condition || function() { return ($(this).data('oldval') == $(this).val()); })
|
24
|
+
.data('callback', callback)
|
25
|
+
[(op.event||'keyup')](function(){
|
26
|
+
if (el.data('condition').apply(el)) { return; }
|
27
|
+
else {
|
28
|
+
if (el.data('timer')) { clearTimeout(el.data('timer')); }
|
29
|
+
el.data('timer', setTimeout(function(){
|
30
|
+
el.data('callback').apply(el);
|
31
|
+
}, el.data('delay') * 1000));
|
32
|
+
el.data('oldval', el.val());
|
33
|
+
}
|
34
|
+
});
|
35
|
+
});
|
36
|
+
}
|
37
|
+
});
|
38
|
+
})(jQuery);
|
39
|
+
"dependency_digest"%1310a1914ac5a2fbf357ad506feb5057"required_paths["s/home/stattert/.rvm/gems/jruby-1.6.7/gems/spree_core-1.1.3/vendor/assets/javascripts/jquery.delayedobserver.js"dependency_paths[{" path"s/home/stattert/.rvm/gems/jruby-1.6.7/gems/spree_core-1.1.3/vendor/assets/javascripts/jquery.delayedobserver.js"
|
40
|
+
mtime"2012-08-05T17:45:12+01:00"digest"%4b56df1fc0dda713069e744aa57d86ee"
|
@@ -0,0 +1,21 @@
|
|
1
|
+
o: ActiveSupport::Cache::Entry :@compressedF:@created_atf1347956163.906:@expires_in0:@value"L{"
|
2
|
+
class"ProcessedAsset"logical_path"admin/calculator.js"
|
3
|
+
mtime"2012-08-05T17:45:12+01:00"lengthij"digest"%4311c841f71daf38d99a5f0de3f7c532"source"j$(function() {
|
4
|
+
var calculator_select = $('select#calc_type')
|
5
|
+
var original_calc_type = calculator_select.attr('value');
|
6
|
+
$('div#calculator-settings-warning').hide();
|
7
|
+
calculator_select.change(function() {
|
8
|
+
if (calculator_select.attr('value') == original_calc_type) {
|
9
|
+
$('div.calculator-settings').show();
|
10
|
+
$('div#calculator-settings-warning').hide();
|
11
|
+
$('.calculator-settings input').prop("disabled", false);
|
12
|
+
} else {
|
13
|
+
$('div.calculator-settings').hide();
|
14
|
+
$('div#calculator-settings-warning').show();
|
15
|
+
$('.calculator-settings input').prop("disabled", true);
|
16
|
+
}
|
17
|
+
});
|
18
|
+
})
|
19
|
+
;
|
20
|
+
"dependency_digest"%fe68fe1725e454f6af5bcccea0eda81e"required_paths["j/home/stattert/.rvm/gems/jruby-1.6.7/gems/spree_core-1.1.3/app/assets/javascripts/admin/calculator.js"dependency_paths[{" path"j/home/stattert/.rvm/gems/jruby-1.6.7/gems/spree_core-1.1.3/app/assets/javascripts/admin/calculator.js"
|
21
|
+
mtime"2012-08-05T17:45:12+01:00"digest"%83d8d1e75adcc65454a38dc3f42a3242"
|
@@ -0,0 +1,9 @@
|
|
1
|
+
o: ActiveSupport::Cache::Entry :@compressedF:@created_atf1347956164.144:@expires_in0:@value"a{"
|
2
|
+
class"ProcessedAsset"logical_path"admin/images/new.js"
|
3
|
+
mtime"2012-08-05T17:45:12+01:00"lengthi�"digest"%12645a7d8191f969fb88e9b57127ff89"source"�$('#cancel_link').click(function (event) {
|
4
|
+
event.preventDefault();
|
5
|
+
$('#new_image_link').show();
|
6
|
+
$('#images').html('');
|
7
|
+
});
|
8
|
+
"dependency_digest"%23dc7bcfbba0907dc46f4196b1d09a90"required_paths["j/home/stattert/.rvm/gems/jruby-1.6.7/gems/spree_core-1.1.3/app/assets/javascripts/admin/images/new.js"dependency_paths[{" path"j/home/stattert/.rvm/gems/jruby-1.6.7/gems/spree_core-1.1.3/app/assets/javascripts/admin/images/new.js"
|
9
|
+
mtime"2012-08-05T17:45:12+01:00"digest"%18aafacff5380b0da9eeadcee90d2c3f"
|
data/spec/spec_helper.rb
ADDED
@@ -0,0 +1,345 @@
|
|
1
|
+
# Copyright:: (c) Autotelik Media Ltd 2011
|
2
|
+
# Author :: Tom Statter
|
3
|
+
# Date :: Aug 2011
|
4
|
+
# License:: MIT
|
5
|
+
#
|
6
|
+
# Details:: Spec Helper for Active Record Loader
|
7
|
+
#
|
8
|
+
#
|
9
|
+
# We are not setup as a Rails project so need to mimic an active record database setup so
|
10
|
+
# we have some AR models to test against. Create an in memory database from scratch.
|
11
|
+
#
|
12
|
+
require 'active_record'
|
13
|
+
require 'thor/actions'
|
14
|
+
require 'bundler'
|
15
|
+
require 'stringio'
|
16
|
+
|
17
|
+
require 'datashift'
|
18
|
+
require 'datashift_spree'
|
19
|
+
|
20
|
+
require 'spree_helper'
|
21
|
+
|
22
|
+
RSpec.configure do |config|
|
23
|
+
config.before do
|
24
|
+
ARGV.replace []
|
25
|
+
end
|
26
|
+
|
27
|
+
include Thor::Actions
|
28
|
+
|
29
|
+
def run_in(dir )
|
30
|
+
puts "RSpec .. running test in path [#{dir}]"
|
31
|
+
original_dir = Dir.pwd
|
32
|
+
begin
|
33
|
+
Dir.chdir dir
|
34
|
+
yield
|
35
|
+
ensure
|
36
|
+
Dir.chdir original_dir
|
37
|
+
end
|
38
|
+
end
|
39
|
+
|
40
|
+
def capture(stream)
|
41
|
+
begin
|
42
|
+
stream = stream.to_s
|
43
|
+
eval "$#{stream} = StringIO.new"
|
44
|
+
yield
|
45
|
+
result = eval("$#{stream}").string
|
46
|
+
ensure
|
47
|
+
eval("$#{stream} = #{stream.upcase}")
|
48
|
+
end
|
49
|
+
|
50
|
+
result
|
51
|
+
end
|
52
|
+
|
53
|
+
alias :silence :capture
|
54
|
+
|
55
|
+
def fixtures_path()
|
56
|
+
File.expand_path(File.dirname(__FILE__) + '/fixtures')
|
57
|
+
end
|
58
|
+
|
59
|
+
def ifixture_file( name )
|
60
|
+
File.join(fixtures_path(), name)
|
61
|
+
end
|
62
|
+
|
63
|
+
def results_path
|
64
|
+
File.join(fixtures_path(), 'results')
|
65
|
+
end
|
66
|
+
|
67
|
+
def negative_fixture_path
|
68
|
+
File.join(fixtures_path, 'negative')
|
69
|
+
end
|
70
|
+
|
71
|
+
def negative_fixture_file( source )
|
72
|
+
File.join(negative_fixture_path, source)
|
73
|
+
end
|
74
|
+
|
75
|
+
# Return location of an expected results file and ensure tree clean before test
|
76
|
+
def result_file( name )
|
77
|
+
expect = File.join(results_path, name)
|
78
|
+
|
79
|
+
begin FileUtils.rm(expect); rescue; end
|
80
|
+
|
81
|
+
expect
|
82
|
+
end
|
83
|
+
|
84
|
+
def results_clear
|
85
|
+
begin FileUtils.rm_rf(results_path); rescue; end
|
86
|
+
|
87
|
+
FileUtils.mkdir(results_path) unless File.exists?(results_path);
|
88
|
+
end
|
89
|
+
|
90
|
+
|
91
|
+
|
92
|
+
def spree_fixture( source)
|
93
|
+
ifixture_file(source)
|
94
|
+
end
|
95
|
+
|
96
|
+
def bundler_setup(gemfile)
|
97
|
+
ENV['BUNDLE_GEMFILE'] = gemfile
|
98
|
+
|
99
|
+
begin
|
100
|
+
Bundler.setup(:default, :development)
|
101
|
+
rescue Bundler::BundlerError => e
|
102
|
+
$stderr.puts e.message
|
103
|
+
$stderr.puts "Run `bundle install` to install missing gems"
|
104
|
+
exit e.status_code
|
105
|
+
end
|
106
|
+
end
|
107
|
+
|
108
|
+
# SPREE
|
109
|
+
def spree_sandbox_path
|
110
|
+
File.join(File.dirname(__FILE__), 'sandbox')
|
111
|
+
end
|
112
|
+
|
113
|
+
def before_all_spree
|
114
|
+
|
115
|
+
# We are not a Spree project, so we implement a spree application of our own
|
116
|
+
if(DataShift::SpreeHelper::is_namespace_version )
|
117
|
+
spree_boot
|
118
|
+
else
|
119
|
+
boot('test_spree_standalone') # key to YAML db e.g test_memory, test_mysql
|
120
|
+
end
|
121
|
+
|
122
|
+
puts "Testing Spree standalone - version #{DataShift::SpreeHelper::version}"
|
123
|
+
|
124
|
+
set_spree_class_helpers
|
125
|
+
|
126
|
+
end
|
127
|
+
|
128
|
+
def before_each_spree
|
129
|
+
|
130
|
+
# Reset main tables - TODO should really purge properly, or roll back a transaction
|
131
|
+
@Product_klass.delete_all
|
132
|
+
|
133
|
+
@spree_klass_list.each do |k| z = DataShift::SpreeHelper::get_spree_class(k);
|
134
|
+
if(z.nil?)
|
135
|
+
puts "WARNING: Failed to find expected Spree CLASS #{k}"
|
136
|
+
else
|
137
|
+
DataShift::SpreeHelper::get_spree_class(k).delete_all
|
138
|
+
end
|
139
|
+
end
|
140
|
+
end
|
141
|
+
|
142
|
+
def set_logger( name = 'datashift_spree_spec.log')
|
143
|
+
|
144
|
+
require 'logger'
|
145
|
+
logdir = File.dirname(__FILE__) + '/logs'
|
146
|
+
FileUtils.mkdir_p(logdir) unless File.exists?(logdir)
|
147
|
+
ActiveRecord::Base.logger = Logger.new( File.join(logdir, name) )
|
148
|
+
|
149
|
+
# Anyway to direct one logger to another ????? ... Logger.new(STDOUT)
|
150
|
+
|
151
|
+
@dslog = ActiveRecord::Base.logger
|
152
|
+
end
|
153
|
+
|
154
|
+
def db_connect( env = 'development' )
|
155
|
+
# Some active record stuff seems to rely on the RAILS_ENV being set ?
|
156
|
+
|
157
|
+
ENV['RAILS_ENV'] = env
|
158
|
+
|
159
|
+
configuration = {}
|
160
|
+
|
161
|
+
database_yml_path = File.join(spree_sandbox_path, 'config', 'database.yml')
|
162
|
+
|
163
|
+
configuration[:database_configuration] = YAML::load( ERB.new( IO.read(database_yml_path) ).result )
|
164
|
+
db = configuration[:database_configuration][ env ]
|
165
|
+
|
166
|
+
puts "Setting DB Config:", db.inspect
|
167
|
+
ActiveRecord::Base.configurations = db
|
168
|
+
|
169
|
+
puts "Connecting to DB"
|
170
|
+
|
171
|
+
ActiveRecord::Base.establish_connection( db )
|
172
|
+
|
173
|
+
puts "Connected to DB"
|
174
|
+
end
|
175
|
+
|
176
|
+
# Datashift is usually included and tasks pulled in by a parent/host application.
|
177
|
+
# So here we are hacking our way around the fact that datashift is not a Rails/Spree app/engine
|
178
|
+
# so that we can ** run our specs ** directly in datashift library
|
179
|
+
# i.e without ever having to install datashift in a host application
|
180
|
+
#
|
181
|
+
# NOTES:
|
182
|
+
# => Will chdir into the sandbox to load environment as need to mimic being at root of a rails project
|
183
|
+
# chdir back after environment loaded
|
184
|
+
|
185
|
+
def spree_boot()
|
186
|
+
|
187
|
+
spree_sandbox_app_path = spree_sandbox_path
|
188
|
+
|
189
|
+
unless(File.exists?(spree_sandbox_app_path))
|
190
|
+
puts "Creating new Rails sandbox for Spree : #{spree_sandbox_app_path}"
|
191
|
+
|
192
|
+
run_in(File.expand_path( "#{spree_sandbox_app_path}/..")) {
|
193
|
+
system('rails new sandbox')
|
194
|
+
}
|
195
|
+
|
196
|
+
run_in(spree_sandbox_app_path) {
|
197
|
+
system('spree install')
|
198
|
+
|
199
|
+
# add in User model if new 1.2 version which splits out Auth from spree core
|
200
|
+
if(DataShift::SpreeHelper::version.to_f >= 1.2)
|
201
|
+
append_file('Gemfile', "gem 'spree_auth_devise', :git => \"git://github.com/spree/spree_auth_devise\"" )
|
202
|
+
|
203
|
+
system('bundle install')
|
204
|
+
end
|
205
|
+
}
|
206
|
+
end
|
207
|
+
|
208
|
+
puts "Using Rails sandbox for Spree : #{spree_sandbox_app_path}"
|
209
|
+
|
210
|
+
run_in(spree_sandbox_app_path) {
|
211
|
+
|
212
|
+
db_connect
|
213
|
+
|
214
|
+
begin
|
215
|
+
require 'config/environment.rb'
|
216
|
+
rescue => e
|
217
|
+
#somethign in deface seems to blow up suddenly on 1.1
|
218
|
+
puts "Warning - Potential issue initializing Spree sandbox:"
|
219
|
+
puts e.backtrace
|
220
|
+
puts "#{e.inspect}"
|
221
|
+
end
|
222
|
+
|
223
|
+
set_logger( 'spree_sandbox.log' )
|
224
|
+
|
225
|
+
}
|
226
|
+
|
227
|
+
@dslog.info "Booted Spree using version #{DataShift::SpreeHelper::version}"
|
228
|
+
end
|
229
|
+
|
230
|
+
include Thor::Actions
|
231
|
+
|
232
|
+
def set_spree_class_helpers
|
233
|
+
@spree_klass_list = %w{Image OptionType OptionValue Property ProductProperty Variant Taxon Taxonomy Zone}
|
234
|
+
|
235
|
+
@Product_klass = DataShift::SpreeHelper::get_product_class
|
236
|
+
|
237
|
+
@spree_klass_list.each do |k|
|
238
|
+
instance_variable_set("@#{k}_klass", DataShift::SpreeHelper::get_spree_class(k))
|
239
|
+
end
|
240
|
+
end
|
241
|
+
|
242
|
+
def self.boot( database_env)
|
243
|
+
|
244
|
+
ActiveRecord::Base.clear_active_connections!()
|
245
|
+
|
246
|
+
unless(DataShift::SpreeHelper::is_namespace_version)
|
247
|
+
|
248
|
+
DataShift::SpreeHelper::load()
|
249
|
+
|
250
|
+
db_connect( database_env )
|
251
|
+
@dslog.info "Booting Spree using pre 1.0.0 version"
|
252
|
+
boot_pre_1
|
253
|
+
@dslog.info "Booted Spree using pre 1.0.0 version"
|
254
|
+
|
255
|
+
migrate_up # create an sqlite Spree database on the fly
|
256
|
+
end
|
257
|
+
end
|
258
|
+
|
259
|
+
def self.boot_pre_1
|
260
|
+
|
261
|
+
require 'rake'
|
262
|
+
require 'rubygems/package_task'
|
263
|
+
require 'thor/group'
|
264
|
+
|
265
|
+
require 'spree_core/preferences/model_hooks'
|
266
|
+
#
|
267
|
+
# Initialize preference system
|
268
|
+
ActiveRecord::Base.class_eval do
|
269
|
+
include Spree::Preferences
|
270
|
+
include Spree::Preferences::ModelHooks
|
271
|
+
end
|
272
|
+
|
273
|
+
gem 'paperclip'
|
274
|
+
gem 'nested_set'
|
275
|
+
|
276
|
+
require 'nested_set'
|
277
|
+
require 'paperclip'
|
278
|
+
require 'acts_as_list'
|
279
|
+
|
280
|
+
CollectiveIdea::Acts::NestedSet::Railtie.extend_active_record
|
281
|
+
ActiveRecord::Base.send(:include, Paperclip::Glue)
|
282
|
+
|
283
|
+
gem 'activemerchant'
|
284
|
+
require 'active_merchant'
|
285
|
+
require 'active_merchant/billing/gateway'
|
286
|
+
|
287
|
+
ActiveRecord::Base.send(:include, ActiveMerchant::Billing)
|
288
|
+
|
289
|
+
require 'scopes'
|
290
|
+
|
291
|
+
# Not sure how Rails manages this seems lots of circular dependencies so
|
292
|
+
# keep trying stuff till no more errors
|
293
|
+
|
294
|
+
Dir[lib_root + '/*.rb'].each do |r|
|
295
|
+
begin
|
296
|
+
require r if File.file?(r)
|
297
|
+
rescue => e
|
298
|
+
end
|
299
|
+
end
|
300
|
+
|
301
|
+
Dir[lib_root + '/**/*.rb'].each do |r|
|
302
|
+
begin
|
303
|
+
require r if File.file?(r) && ! r.include?('testing') && ! r.include?('generators')
|
304
|
+
rescue => e
|
305
|
+
end
|
306
|
+
end
|
307
|
+
|
308
|
+
load_models( true )
|
309
|
+
|
310
|
+
Dir[lib_root + '/*.rb'].each do |r|
|
311
|
+
begin
|
312
|
+
require r if File.file?(r)
|
313
|
+
rescue => e
|
314
|
+
end
|
315
|
+
end
|
316
|
+
|
317
|
+
Dir[lib_root + '/**/*.rb'].each do |r|
|
318
|
+
begin
|
319
|
+
require r if File.file?(r) && ! r.include?('testing') && ! r.include?('generators')
|
320
|
+
rescue => e
|
321
|
+
end
|
322
|
+
end
|
323
|
+
|
324
|
+
# require 'lib/product_filters'
|
325
|
+
|
326
|
+
load_models( true )
|
327
|
+
|
328
|
+
end
|
329
|
+
|
330
|
+
def self.load_models( report_errors = nil )
|
331
|
+
puts 'Loading Spree models from', DataShift::SpreeHelper::root
|
332
|
+
Dir[DataShift::SpreeHelper::root + '/app/models/**/*.rb'].each {|r|
|
333
|
+
begin
|
334
|
+
require r if File.file?(r)
|
335
|
+
rescue => e
|
336
|
+
puts("WARNING failed to load #{r}", e.inspect) if(report_errors == true)
|
337
|
+
end
|
338
|
+
}
|
339
|
+
end
|
340
|
+
|
341
|
+
def self.migrate_up
|
342
|
+
ActiveRecord::Migrator.up( File.join(DataShift::SpreeHelper::root, 'db/migrate') )
|
343
|
+
end
|
344
|
+
|
345
|
+
end
|