spree_order_reporting 0.0.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/LICENSE +26 -0
- data/README.md +100 -0
- data/Rakefile +38 -0
- data/app/assets/javascripts/spree/backend/order_reporting.js +2 -0
- data/app/assets/javascripts/spree/frontend/order_reporting.js +2 -0
- data/app/assets/stylesheets/spree/backend/order_reporting.css +4 -0
- data/app/assets/stylesheets/spree/frontend/order_reporting.css +4 -0
- data/app/jobs/order_reporting/recurring_report_delayed_job.rb +11 -0
- data/config/locales/en.yml +5 -0
- data/config/routes.rb +3 -0
- data/lib/generators/order_reporting/install/install_generator.rb +30 -0
- data/lib/order_reporting.rb +27 -0
- data/lib/order_reporting/engine.rb +20 -0
- data/lib/order_reporting/factories.rb +6 -0
- data/lib/order_reporting/queries/latest_orders_query.rb +7 -0
- data/lib/order_reporting/report.rb +25 -0
- data/lib/order_reporting/schedulers/delayed_job_scheduler.rb +8 -0
- data/lib/order_reporting/version.rb +3 -0
- data/lib/solidus_order_reporting.rb +2 -0
- data/lib/spree_order_reporting.rb +2 -0
- data/spec/dummy/README.rdoc +28 -0
- data/spec/dummy/Rakefile +6 -0
- data/spec/dummy/app/assets/stylesheets/application.css +15 -0
- data/spec/dummy/app/controllers/application_controller.rb +5 -0
- data/spec/dummy/app/helpers/application_helper.rb +2 -0
- data/spec/dummy/app/views/layouts/application.html.erb +14 -0
- data/spec/dummy/bin/bundle +3 -0
- data/spec/dummy/bin/delayed_job +5 -0
- data/spec/dummy/bin/rails +4 -0
- data/spec/dummy/bin/rake +4 -0
- data/spec/dummy/bin/setup +29 -0
- data/spec/dummy/config.ru +4 -0
- data/spec/dummy/config/application.rb +59 -0
- data/spec/dummy/config/boot.rb +6 -0
- data/spec/dummy/config/database.yml +12 -0
- data/spec/dummy/config/environment.rb +5 -0
- data/spec/dummy/config/environments/development.rb +41 -0
- data/spec/dummy/config/environments/production.rb +79 -0
- data/spec/dummy/config/environments/test.rb +34 -0
- data/spec/dummy/config/initializers/assets.rb +11 -0
- data/spec/dummy/config/initializers/backtrace_silencers.rb +7 -0
- data/spec/dummy/config/initializers/cookies_serializer.rb +3 -0
- data/spec/dummy/config/initializers/custom_user.rb +1 -0
- data/spec/dummy/config/initializers/devise.rb +3 -0
- data/spec/dummy/config/initializers/filter_parameter_logging.rb +4 -0
- data/spec/dummy/config/initializers/inflections.rb +16 -0
- data/spec/dummy/config/initializers/mime_types.rb +4 -0
- data/spec/dummy/config/initializers/session_store.rb +3 -0
- data/spec/dummy/config/initializers/spree.rb +57 -0
- data/spec/dummy/config/initializers/wrap_parameters.rb +14 -0
- data/spec/dummy/config/locales/en.yml +23 -0
- data/spec/dummy/config/routes.rb +9 -0
- data/spec/dummy/config/secrets.yml +22 -0
- data/spec/dummy/db/migrate/20160706112305_spree_one_two.spree.rb +482 -0
- data/spec/dummy/db/migrate/20160706112306_spree_promo_one_two.spree.rb +46 -0
- data/spec/dummy/db/migrate/20160706112307_add_tax_rate_label.spree.rb +6 -0
- data/spec/dummy/db/migrate/20160706112308_add_toggle_tax_rate_display.spree.rb +6 -0
- data/spec/dummy/db/migrate/20160706112309_remove_unused_preference_columns.spree.rb +9 -0
- data/spec/dummy/db/migrate/20160706112310_add_lock_version_to_variant.spree.rb +6 -0
- data/spec/dummy/db/migrate/20160706112311_add_states_required_to_countries.spree.rb +6 -0
- data/spec/dummy/db/migrate/20160706112312_add_on_demand_to_product_and_variant.spree.rb +7 -0
- data/spec/dummy/db/migrate/20160706112313_remove_not_null_constraint_from_products_on_hand.spree.rb +12 -0
- data/spec/dummy/db/migrate/20160706112314_split_prices_from_variants.spree.rb +32 -0
- data/spec/dummy/db/migrate/20160706112315_remove_not_null_from_spree_prices_amount.spree.rb +10 -0
- data/spec/dummy/db/migrate/20160706112316_add_currency_to_line_items.spree.rb +6 -0
- data/spec/dummy/db/migrate/20160706112317_add_currency_to_orders.spree.rb +6 -0
- data/spec/dummy/db/migrate/20160706112318_add_cost_currency_to_variants.spree.rb +6 -0
- data/spec/dummy/db/migrate/20160706112319_remove_display_on_from_payment_methods.spree.rb +6 -0
- data/spec/dummy/db/migrate/20160706112320_add_position_to_taxonomies.spree.rb +6 -0
- data/spec/dummy/db/migrate/20160706112321_add_last_ip_to_spree_orders.spree.rb +6 -0
- data/spec/dummy/db/migrate/20160706112322_add_state_to_spree_adjustments.spree.rb +7 -0
- data/spec/dummy/db/migrate/20160706112323_add_display_on_to_spree_payment_methods.spree.rb +10 -0
- data/spec/dummy/db/migrate/20160706112324_add_position_to_product_properties.spree.rb +7 -0
- data/spec/dummy/db/migrate/20160706112325_add_identifier_to_spree_payments.spree.rb +6 -0
- data/spec/dummy/db/migrate/20160706112326_add_order_id_index_to_payments.spree.rb +10 -0
- data/spec/dummy/db/migrate/20160706112327_add_primary_to_spree_products_taxons.spree.rb +6 -0
- data/spec/dummy/db/migrate/20160706112328_create_spree_stock_items.spree.rb +15 -0
- data/spec/dummy/db/migrate/20160706112329_create_spree_stock_locations.spree.rb +12 -0
- data/spec/dummy/db/migrate/20160706112330_create_default_stock.spree.rb +35 -0
- data/spec/dummy/db/migrate/20160706112331_add_order_id_index_to_shipments.spree.rb +6 -0
- data/spec/dummy/db/migrate/20160706112332_change_meta_description_on_spree_products_to_text.spree.rb +6 -0
- data/spec/dummy/db/migrate/20160706112333_add_stock_location_id_to_spree_shipments.spree.rb +6 -0
- data/spec/dummy/db/migrate/20160706112334_add_pending_to_inventory_unit.spree.rb +7 -0
- data/spec/dummy/db/migrate/20160706112335_remove_on_demand_from_product_and_variant.spree.rb +7 -0
- data/spec/dummy/db/migrate/20160706112336_create_shipping_method_zone.spree.rb +22 -0
- data/spec/dummy/db/migrate/20160706112337_remove_shipping_category_id_from_shipping_method.spree.rb +6 -0
- data/spec/dummy/db/migrate/20160706112338_create_shipping_method_categories.spree.rb +14 -0
- data/spec/dummy/db/migrate/20160706112339_add_tracking_url_to_spree_shipping_methods.spree.rb +6 -0
- data/spec/dummy/db/migrate/20160706112340_create_spree_shipping_rates.spree.rb +25 -0
- data/spec/dummy/db/migrate/20160706112341_remove_category_match_attributes_from_shipping_method.spree.rb +8 -0
- data/spec/dummy/db/migrate/20160706112342_create_stock_movements.spree.rb +13 -0
- data/spec/dummy/db/migrate/20160706112343_add_address_fields_to_stock_location.spree.rb +23 -0
- data/spec/dummy/db/migrate/20160706112344_add_active_field_to_stock_locations.spree.rb +6 -0
- data/spec/dummy/db/migrate/20160706112345_add_backorderable_to_stock_item.spree.rb +6 -0
- data/spec/dummy/db/migrate/20160706112346_add_default_quantity_to_stock_movement.spree.rb +6 -0
- data/spec/dummy/db/migrate/20160706112347_add_source_and_destination_to_stock_movements.spree.rb +9 -0
- data/spec/dummy/db/migrate/20160706112348_change_orders_total_precision.spree.rb +9 -0
- data/spec/dummy/db/migrate/20160706112349_change_spree_payments_amount_precision.spree.rb +8 -0
- data/spec/dummy/db/migrate/20160706112350_change_spree_return_authorization_amount_precision.spree.rb +8 -0
- data/spec/dummy/db/migrate/20160706112351_change_adjustments_amount_precision.spree.rb +8 -0
- data/spec/dummy/db/migrate/20160706112352_add_originator_to_stock_movement.spree.rb +8 -0
- data/spec/dummy/db/migrate/20160706112353_drop_source_and_destination_from_stock_movement.spree.rb +16 -0
- data/spec/dummy/db/migrate/20160706112354_migrate_inventory_unit_sold_to_on_hand.spree.rb +10 -0
- data/spec/dummy/db/migrate/20160706112355_add_stock_location_to_rma.spree.rb +6 -0
- data/spec/dummy/db/migrate/20160706112356_update_shipment_state_for_canceled_orders.spree.rb +16 -0
- data/spec/dummy/db/migrate/20160706112357_add_seo_metas_to_taxons.spree.rb +10 -0
- data/spec/dummy/db/migrate/20160706112358_remove_stock_item_and_variant_lock.spree.rb +15 -0
- data/spec/dummy/db/migrate/20160706112359_add_name_to_spree_credit_cards.spree.rb +6 -0
- data/spec/dummy/db/migrate/20160706112360_update_name_fields_on_spree_credit_cards.spree.rb +14 -0
- data/spec/dummy/db/migrate/20160706112361_add_index_to_source_columns_on_adjustments.spree.rb +6 -0
- data/spec/dummy/db/migrate/20160706112362_update_adjustment_states.spree.rb +17 -0
- data/spec/dummy/db/migrate/20160706112363_add_shipping_rates_to_shipments.spree.rb +16 -0
- data/spec/dummy/db/migrate/20160706112364_create_spree_stock_transfers.spree.rb +15 -0
- data/spec/dummy/db/migrate/20160706112365_drop_products_count_on_hand.spree.rb +6 -0
- data/spec/dummy/db/migrate/20160706112366_set_default_shipping_rate_cost.spree.rb +6 -0
- data/spec/dummy/db/migrate/20160706112367_add_number_to_stock_transfer.spree.rb +24 -0
- data/spec/dummy/db/migrate/20160706112368_add_sku_index_to_spree_variants.spree.rb +6 -0
- data/spec/dummy/db/migrate/20160706112369_add_backorderable_default_to_spree_stock_location.spree.rb +6 -0
- data/spec/dummy/db/migrate/20160706112370_add_propage_all_variants_to_spree_stock_location.spree.rb +6 -0
- data/spec/dummy/db/migrate/20160706112371_rename_shipping_methods_zones_to_spree_shipping_methods_zones.spree.rb +6 -0
- data/spec/dummy/db/migrate/20160706112372_add_user_id_index_to_spree_orders.spree.rb +6 -0
- data/spec/dummy/db/migrate/20160706112373_add_updated_at_to_spree_countries.spree.rb +10 -0
- data/spec/dummy/db/migrate/20160706112374_add_updated_at_to_spree_states.spree.rb +10 -0
- data/spec/dummy/db/migrate/20160706112375_add_cvv_result_code_and_cvv_result_message_to_spree_payments.spree.rb +7 -0
- data/spec/dummy/db/migrate/20160706112376_add_unique_index_to_permalink_on_spree_products.spree.rb +6 -0
- data/spec/dummy/db/migrate/20160706112377_add_unique_index_to_orders_shipments_and_stock_transfers.spree.rb +8 -0
- data/spec/dummy/db/migrate/20160706112378_add_deleted_at_to_spree_tax_rates.spree.rb +6 -0
- data/spec/dummy/db/migrate/20160706112379_remove_lock_version_from_inventory_units.spree.rb +7 -0
- data/spec/dummy/db/migrate/20160706112380_add_cost_price_to_line_item.spree.rb +6 -0
- data/spec/dummy/db/migrate/20160706112381_set_backorderable_to_default_to_false.spree.rb +7 -0
- data/spec/dummy/db/migrate/20160706112382_add_created_by_id_to_spree_orders.spree.rb +6 -0
- data/spec/dummy/db/migrate/20160706112383_index_completed_at_on_spree_orders.spree.rb +6 -0
- data/spec/dummy/db/migrate/20160706112384_add_tax_category_id_to_spree_line_items.spree.rb +6 -0
- data/spec/dummy/db/migrate/20160706112385_migrate_tax_categories_to_line_items.spree.rb +11 -0
- data/spec/dummy/db/migrate/20160706112386_drop_spree_mail_methods.spree.rb +13 -0
- data/spec/dummy/db/migrate/20160706112387_set_default_stock_location_on_shipments.spree.rb +9 -0
- data/spec/dummy/db/migrate/20160706112388_upgrade_adjustments.spree.rb +41 -0
- data/spec/dummy/db/migrate/20160706112389_rename_adjustment_fields.spree.rb +15 -0
- data/spec/dummy/db/migrate/20160706112390_add_admin_name_column_to_spree_shipping_methods.spree.rb +6 -0
- data/spec/dummy/db/migrate/20160706112391_add_admin_name_column_to_spree_stock_locations.spree.rb +6 -0
- data/spec/dummy/db/migrate/20160706112392_add_shipment_total_to_spree_orders.spree.rb +6 -0
- data/spec/dummy/db/migrate/20160706112393_expand_order_number_size.spree.rb +10 -0
- data/spec/dummy/db/migrate/20160706112394_rename_activators_to_promotions.spree.rb +6 -0
- data/spec/dummy/db/migrate/20160706112395_add_adjustment_total_to_line_items.spree.rb +6 -0
- data/spec/dummy/db/migrate/20160706112396_add_adjustment_total_to_shipments.spree.rb +6 -0
- data/spec/dummy/db/migrate/20160706112397_add_depth_to_spree_taxons.spree.rb +17 -0
- data/spec/dummy/db/migrate/20160706112398_add_tax_total_to_line_items_shipments_and_orders.spree.rb +9 -0
- data/spec/dummy/db/migrate/20160706112399_add_shipping_category_to_shipping_methods_and_products.spree.rb +16 -0
- data/spec/dummy/db/migrate/20160706112400_migrate_old_shipping_calculators.spree.rb +20 -0
- data/spec/dummy/db/migrate/20160706112401_add_code_to_spree_promotion_rules.spree.rb +6 -0
- data/spec/dummy/db/migrate/20160706112402_change_states_required_for_countries.spree.rb +10 -0
- data/spec/dummy/db/migrate/20160706112403_add_deleted_at_to_spree_stock_items.spree.rb +6 -0
- data/spec/dummy/db/migrate/20160706112404_remove_promotions_event_name_field.spree.rb +6 -0
- data/spec/dummy/db/migrate/20160706112405_add_promo_total_to_line_items_and_shipments_and_orders.spree.rb +8 -0
- data/spec/dummy/db/migrate/20160706112406_remove_unused_credit_card_fields.spree.rb +17 -0
- data/spec/dummy/db/migrate/20160706112407_add_track_inventory_to_variant.spree.rb +6 -0
- data/spec/dummy/db/migrate/20160706112408_add_tax_category_to_variants.spree.rb +7 -0
- data/spec/dummy/db/migrate/20160706112409_add_channel_to_spree_orders.spree.rb +6 -0
- data/spec/dummy/db/migrate/20160706112410_add_included_to_adjustments.spree.rb +6 -0
- data/spec/dummy/db/migrate/20160706112411_rename_tax_total_fields.spree.rb +12 -0
- data/spec/dummy/db/migrate/20160706112412_add_line_item_id_to_spree_inventory_units.spree.rb +22 -0
- data/spec/dummy/db/migrate/20160706112413_add_updated_at_to_variants.spree.rb +6 -0
- data/spec/dummy/db/migrate/20160706112414_add_position_to_classifications.spree.rb +6 -0
- data/spec/dummy/db/migrate/20160706112415_create_spree_orders_promotions.spree.rb +9 -0
- data/spec/dummy/db/migrate/20160706112416_unique_shipping_method_categories.spree.rb +25 -0
- data/spec/dummy/db/migrate/20160706112417_add_item_count_to_spree_orders.spree.rb +6 -0
- data/spec/dummy/db/migrate/20160706112418_remove_value_type_from_spree_preferences.spree.rb +9 -0
- data/spec/dummy/db/migrate/20160706112419_rename_permalink_to_slug_for_products.spree.rb +6 -0
- data/spec/dummy/db/migrate/20160706112420_add_index_to_variant_id_and_currency_on_prices.spree.rb +6 -0
- data/spec/dummy/db/migrate/20160706112421_rename_activator_id_in_rules_and_actions_to_promotion_id.spree.rb +7 -0
- data/spec/dummy/db/migrate/20160706112422_add_deleted_at_to_spree_prices.spree.rb +6 -0
- data/spec/dummy/db/migrate/20160706112423_add_approver_id_and_approved_at_to_orders.spree.rb +7 -0
- data/spec/dummy/db/migrate/20160706112424_add_confirmation_delivered_to_spree_orders.spree.rb +6 -0
- data/spec/dummy/db/migrate/20160706112425_add_auto_capture_to_payment_methods.spree.rb +6 -0
- data/spec/dummy/db/migrate/20160706112426_create_spree_payment_capture_events.spree.rb +13 -0
- data/spec/dummy/db/migrate/20160706112427_add_uncaptured_amount_to_payments.spree.rb +6 -0
- data/spec/dummy/db/migrate/20160706112428_default_variant_weight_to_zero.spree.rb +12 -0
- data/spec/dummy/db/migrate/20160706112429_add_tax_category_id_to_shipping_methods.spree.rb +6 -0
- data/spec/dummy/db/migrate/20160706112430_add_tax_rate_id_to_shipping_rates.spree.rb +6 -0
- data/spec/dummy/db/migrate/20160706112431_add_pre_tax_amount_to_line_items_and_shipments.spree.rb +7 -0
- data/spec/dummy/db/migrate/20160706112432_add_more_indexes.spree.rb +14 -0
- data/spec/dummy/db/migrate/20160706112433_add_considered_risky_to_orders.spree.rb +6 -0
- data/spec/dummy/db/migrate/20160706112434_add_preference_store_to_everything.spree.rb +9 -0
- data/spec/dummy/db/migrate/20160706112435_add_user_id_to_spree_credit_cards.spree.rb +14 -0
- data/spec/dummy/db/migrate/20160706112436_migrate_old_preferences.spree.rb +52 -0
- data/spec/dummy/db/migrate/20160706112437_create_spree_stores.spree.rb +26 -0
- data/spec/dummy/db/migrate/20160706112438_create_store_from_preferences.spree.rb +34 -0
- data/spec/dummy/db/migrate/20160706112439_add_timestamps_to_spree_assets.spree.rb +7 -0
- data/spec/dummy/db/migrate/20160706112440_create_spree_taxons_promotion_rules.spree.rb +9 -0
- data/spec/dummy/db/migrate/20160706112441_add_additional_store_fields.spree.rb +9 -0
- data/spec/dummy/db/migrate/20160706112442_add_many_missing_indexes.spree.rb +20 -0
- data/spec/dummy/db/migrate/20160706112443_correct_some_polymorphic_index_and_add_more_missing.spree.rb +66 -0
- data/spec/dummy/db/migrate/20160706112444_add_user_id_created_by_id_index_to_order.spree.rb +6 -0
- data/spec/dummy/db/migrate/20160706112445_change_spree_price_amount_precision.spree.rb +9 -0
- data/spec/dummy/db/migrate/20160706112446_add_token_to_spree_orders.spree.rb +6 -0
- data/spec/dummy/db/migrate/20160706112447_move_order_token_from_tokenized_permission.spree.rb +30 -0
- data/spec/dummy/db/migrate/20160706112448_set_shipment_total_for_users_upgrading.spree.rb +11 -0
- data/spec/dummy/db/migrate/20160706112449_drop_credit_card_first_name_and_last_name.spree.rb +7 -0
- data/spec/dummy/db/migrate/20160706112450_add_deleted_at_to_spree_promotion_actions.spree.rb +7 -0
- data/spec/dummy/db/migrate/20160706112451_remove_uncaptured_amount_from_spree_payments.spree.rb +6 -0
- data/spec/dummy/db/migrate/20160706112452_create_spree_refunds.spree.rb +13 -0
- data/spec/dummy/db/migrate/20160706112453_create_spree_return_authorization_inventory_unit.spree.rb +13 -0
- data/spec/dummy/db/migrate/20160706112454_rename_return_authorization_inventory_unit_to_return_items.spree.rb +6 -0
- data/spec/dummy/db/migrate/20160706112455_create_order_mutex.spree.rb +12 -0
- data/spec/dummy/db/migrate/20160706112456_backfill_line_item_pre_tax_amount.spree.rb +11 -0
- data/spec/dummy/db/migrate/20160706112457_recreate_spree_return_authorizations.spree.rb +56 -0
- data/spec/dummy/db/migrate/20160706112458_add_amount_fields_to_return_items.spree.rb +8 -0
- data/spec/dummy/db/migrate/20160706112459_drop_return_authorization_amount.spree.rb +6 -0
- data/spec/dummy/db/migrate/20160706112460_create_spree_return_authorization_reasons.spree.rb +33 -0
- data/spec/dummy/db/migrate/20160706112461_create_spree_refund_reasons.spree.rb +15 -0
- data/spec/dummy/db/migrate/20160706112462_rename_return_authorization_reason.spree.rb +6 -0
- data/spec/dummy/db/migrate/20160706112463_create_spree_promotion_categories.spree.rb +12 -0
- data/spec/dummy/db/migrate/20160706112464_drop_received_at_on_return_items.spree.rb +10 -0
- data/spec/dummy/db/migrate/20160706112465_add_reception_and_acceptance_status_to_return_items.spree.rb +7 -0
- data/spec/dummy/db/migrate/20160706112466_create_default_refund_reason.spree.rb +10 -0
- data/spec/dummy/db/migrate/20160706112467_add_default_to_spree_stock_locations.spree.rb +8 -0
- data/spec/dummy/db/migrate/20160706112468_create_spree_customer_returns.spree.rb +10 -0
- data/spec/dummy/db/migrate/20160706112469_add_customer_return_id_to_return_item.spree.rb +7 -0
- data/spec/dummy/db/migrate/20160706112470_create_friendly_id_slugs.spree.rb +16 -0
- data/spec/dummy/db/migrate/20160706112471_rename_spree_refund_return_authorization_id.spree.rb +6 -0
- data/spec/dummy/db/migrate/20160706112472_increase_return_item_pre_tax_amount_precision.spree.rb +14 -0
- data/spec/dummy/db/migrate/20160706112473_copy_product_slugs_to_slug_history.spree.rb +16 -0
- data/spec/dummy/db/migrate/20160706112474_create_spree_reimbursements.spree.rb +22 -0
- data/spec/dummy/db/migrate/20160706112475_add_promotionable_to_spree_products.spree.rb +6 -0
- data/spec/dummy/db/migrate/20160706112476_add_exchange_inventory_unit_foreign_keys.spree.rb +8 -0
- data/spec/dummy/db/migrate/20160706112477_add_acceptance_status_errors_to_return_item.spree.rb +6 -0
- data/spec/dummy/db/migrate/20160706112478_create_spree_reimbursement_types.spree.rb +21 -0
- data/spec/dummy/db/migrate/20160706112479_add_default_to_shipment_cost.spree.rb +11 -0
- data/spec/dummy/db/migrate/20160706112480_add_default_to_spree_credit_cards.spree.rb +6 -0
- data/spec/dummy/db/migrate/20160706112481_make_existing_credit_cards_default.spree.rb +11 -0
- data/spec/dummy/db/migrate/20160706112482_add_type_to_reimbursement_type.spree.rb +10 -0
- data/spec/dummy/db/migrate/20160706112483_create_spree_reimbursement_credits.spree.rb +11 -0
- data/spec/dummy/db/migrate/20160706112484_add_meta_title_to_spree_products.spree.rb +8 -0
- data/spec/dummy/db/migrate/20160706112485_add_code_to_spree_tax_categories.spree.rb +6 -0
- data/spec/dummy/db/migrate/20160706112486_default_pre_tax_amount_should_be_zero.spree.rb +7 -0
- data/spec/dummy/db/migrate/20160706112487_add_code_to_spree_shipping_methods.spree.rb +6 -0
- data/spec/dummy/db/migrate/20160706112488_add_cancel_audit_fields_to_spree_orders.spree.rb +7 -0
- data/spec/dummy/db/migrate/20160706112489_add_store_id_to_orders.spree.rb +13 -0
- data/spec/dummy/db/migrate/20160706112490_create_spree_taxons_prototypes.spree.rb +9 -0
- data/spec/dummy/db/migrate/20160706112491_add_counter_cache_from_spree_variants_to_spree_stock_items.spree.rb +9 -0
- data/spec/dummy/db/migrate/20160706112492_fix_adjustment_order_presence.spree.rb +14 -0
- data/spec/dummy/db/migrate/20160706112493_update_classifications_positions.spree.rb +10 -0
- data/spec/dummy/db/migrate/20160706112494_add_guest_token_index_to_spree_orders.spree.rb +6 -0
- data/spec/dummy/db/migrate/20160706112495_remove_extra_products_slug_index.spree.rb +6 -0
- data/spec/dummy/db/migrate/20160706112496_update_product_slug_index.spree.rb +9 -0
- data/spec/dummy/db/migrate/20160706112497_add_default_column_to_price.spree.rb +6 -0
- data/spec/dummy/db/migrate/20160706112498_add_position_to_stock_location.spree.rb +6 -0
- data/spec/dummy/db/migrate/20160706112499_create_spree_promotion_codes.spree.rb +14 -0
- data/spec/dummy/db/migrate/20160706112500_create_adjustment_promotion_code_association.spree.rb +7 -0
- data/spec/dummy/db/migrate/20160706112501_remove_environment_from_payment_method.spree.rb +7 -0
- data/spec/dummy/db/migrate/20160706112502_add_restock_inventory_to_stock_location.spree.rb +6 -0
- data/spec/dummy/db/migrate/20160706112503_add_code_to_spree_promotion_categories.spree.rb +6 -0
- data/spec/dummy/db/migrate/20160706112504_create_order_stock_locations.spree.rb +13 -0
- data/spec/dummy/db/migrate/20160706112505_remove_environment_from_tracker.spree.rb +7 -0
- data/spec/dummy/db/migrate/20160706112506_add_fulfillable_to_stock_location.spree.rb +6 -0
- data/spec/dummy/db/migrate/20160706112507_add_code_to_refund_reason.spree.rb +6 -0
- data/spec/dummy/db/migrate/20160706112508_add_promotion_code_id_to_orders_promotions.spree.rb +8 -0
- data/spec/dummy/db/migrate/20160706112509_add_approver_name_to_spree_orders.spree.rb +6 -0
- data/spec/dummy/db/migrate/20160706112510_move_promotion_code_to_promotion_code_value.spree.rb +66 -0
- data/spec/dummy/db/migrate/20160706112511_downcase_promotion_codes_values.spree.rb +12 -0
- data/spec/dummy/db/migrate/20160706112512_add_order_ids_to_adjustments_where_missing.spree.rb +10 -0
- data/spec/dummy/db/migrate/20160706112513_add_per_code_usage_limit_to_promotions.spree.rb +6 -0
- data/spec/dummy/db/migrate/20160706112514_remove_usage_limit_from_promotion_codes.spree.rb +6 -0
- data/spec/dummy/db/migrate/20160706112515_add_timestamps_to_order_promotions.spree.rb +7 -0
- data/spec/dummy/db/migrate/20160706112516_create_spree_cartons.spree.rb +25 -0
- data/spec/dummy/db/migrate/20160706112517_add_timestamps_to_spree_roles_users.spree.rb +8 -0
- data/spec/dummy/db/migrate/20160706112518_remove_considered_risky_from_spree_orders.spree.rb +6 -0
- data/spec/dummy/db/migrate/20160706112519_add_index_to_inventory_units_carton_id.spree.rb +6 -0
- data/spec/dummy/db/migrate/20160706112520_add_imported_from_shipment_id_to_cartons.spree.rb +9 -0
- data/spec/dummy/db/migrate/20160706112521_copy_shipped_shipments_to_cartons.spree.rb +14 -0
- data/spec/dummy/db/migrate/20160706112522_create_spree_user_stock_locations.spree.rb +11 -0
- data/spec/dummy/db/migrate/20160706112523_add_stock_location_code.spree.rb +6 -0
- data/spec/dummy/db/migrate/20160706112524_create_unit_cancels.spree.rb +11 -0
- data/spec/dummy/db/migrate/20160706112525_add_fields_to_stock_transfer.spree.rb +13 -0
- data/spec/dummy/db/migrate/20160706112526_create_transfer_items.spree.rb +15 -0
- data/spec/dummy/db/migrate/20160706112527_drop_stock_transfer_type.spree.rb +11 -0
- data/spec/dummy/db/migrate/20160706112528_add_stock_transfer_finalized_at.spree.rb +9 -0
- data/spec/dummy/db/migrate/20160706112529_rename_stock_transfer_reference.spree.rb +6 -0
- data/spec/dummy/db/migrate/20160706112530_create_line_item_actions.spree.rb +11 -0
- data/spec/dummy/db/migrate/20160706112531_create_spree_store_credit_categories.spree.rb +11 -0
- data/spec/dummy/db/migrate/20160706112532_create_spree_store_credits.spree.rb +20 -0
- data/spec/dummy/db/migrate/20160706112533_create_spree_store_credit_events.spree.rb +18 -0
- data/spec/dummy/db/migrate/20160706112534_create_spree_store_credit_payment_method.spree.rb +22 -0
- data/spec/dummy/db/migrate/20160706112535_create_store_credit_types.spree.rb +18 -0
- data/spec/dummy/db/migrate/20160706112536_create_store_credit_reimbursement_type.spree.rb +6 -0
- data/spec/dummy/db/migrate/20160706112537_add_resellable_to_return_items.spree.rb +6 -0
- data/spec/dummy/db/migrate/20160706112538_add_invalidated_at_to_spree_store_credits.spree.rb +6 -0
- data/spec/dummy/db/migrate/20160706112539_migrate_deleted_store_credits_to_invalidated.spree.rb +14 -0
- data/spec/dummy/db/migrate/20160706112540_add_check_stock_on_transfer.spree.rb +6 -0
- data/spec/dummy/db/migrate/20160706112541_fix_adjustment_order_id.spree.rb +81 -0
- data/spec/dummy/db/migrate/20160706112542_delete_inventory_units_without_shipment.spree.rb +26 -0
- data/spec/dummy/db/migrate/20160706112543_add_deleted_at_to_stock_transfers.spree.rb +6 -0
- data/spec/dummy/db/migrate/20160706112544_add_deleted_at_to_transfer_items.spree.rb +6 -0
- data/spec/dummy/db/migrate/20160706112545_increase_scale_on_pre_tax_amounts.spree.rb +27 -0
- data/spec/dummy/db/migrate/20160706112546_add_preferences_to_promotion_actions.spree.rb +6 -0
- data/spec/dummy/db/migrate/20160706112547_add_id_to_spree_option_values_variants.spree.rb +6 -0
- data/spec/dummy/db/migrate/20160706112548_add_frontend_viewable_to_spree_orders.spree.rb +6 -0
- data/spec/dummy/db/migrate/20160706112549_remove_spree_configurations.spree.rb +16 -0
- data/spec/dummy/db/migrate/20160706112550_add_preference_source_to_spree_payment_methods.spree.rb +6 -0
- data/spec/dummy/db/migrate/20160706112551_remove_credit_card_address_id.spree.rb +8 -0
- data/spec/dummy/db/migrate/20160706112552_create_spree_store_credit_update_reasons.spree.rb +9 -0
- data/spec/dummy/db/migrate/20160706112553_create_adjustment_reason.spree.rb +19 -0
- data/spec/dummy/db/migrate/20160706112554_add_update_reason_to_store_credit_events.spree.rb +6 -0
- data/spec/dummy/db/migrate/20160706112555_add_return_authorization_reason_id_to_return_items.spree.rb +8 -0
- data/spec/dummy/db/migrate/20160706112556_seed_store_credit_update_reasons.spree.rb +10 -0
- data/spec/dummy/db/migrate/20160706112557_remove_shipping_method_id_from_spree_orders.spree.rb +10 -0
- data/spec/dummy/db/migrate/20160706112558_remove_counter_cache_from_spree_variants_to_spree_stock_items.spree.rb +11 -0
- data/spec/dummy/db/migrate/20160706112559_add_address_id_to_credit_card.spree.rb +6 -0
- data/spec/dummy/db/migrate/20160706112560_copy_order_bill_address_to_credit_card.spree.rb +13 -0
- data/spec/dummy/db/migrate/20160706112561_remove_unnecessary_indexes.spree.rb +65 -0
- data/spec/dummy/db/migrate/20160706112562_remove_state_lock_version_from_order.spree.rb +12 -0
- data/spec/dummy/db/migrate/20160706112563_add_spree_user_addresses.spree.rb +17 -0
- data/spec/dummy/db/migrate/20160706112564_add_id_and_timestamp_to_promotion_rule_user.spree.rb +14 -0
- data/spec/dummy/db/migrate/20160706112565_remove_mandatory_from_adjustments.spree.rb +6 -0
- data/spec/dummy/db/migrate/20160706112566_add_finalized_to_spree_adjustments.spree.rb +12 -0
- data/spec/dummy/db/migrate/20160706112567_add_store_payment_methods.spree.rb +11 -0
- data/spec/dummy/db/migrate/20160706112568_convert_habtm_to_hmt_for_shipping_methods_zones.spree.rb +18 -0
- data/spec/dummy/db/migrate/20160706112569_convert_habtm_to_hmt_for_products_promotion_rules.spree.rb +18 -0
- data/spec/dummy/db/migrate/20160706112570_drop_spree_gateways.spree.rb +21 -0
- data/spec/dummy/db/migrate/20160706112571_convert_habtm_to_hmt_for_taxon_prototypes.spree.rb +16 -0
- data/spec/dummy/db/migrate/20160706112572_create_variant_properties_and_rules.spree.rb +29 -0
- data/spec/dummy/db/migrate/20160706112573_add_foreign_keys_for_taxons_prototypes.spree.rb +7 -0
- data/spec/dummy/db/migrate/20160706112574_remove_token_permissions_table.spree.rb +17 -0
- data/spec/dummy/db/migrate/20160706112575_rename_identifier_to_number_for_payment.spree.rb +8 -0
- data/spec/dummy/db/migrate/20160706112576_add_foreign_keys_for_product_promotion_rules.spree.rb +10 -0
- data/spec/dummy/db/migrate/20160706112577_add_sale_to_spree_promotions.spree.rb +7 -0
- data/spec/dummy/db/migrate/20160706112578_convert_sale_promotions.spree.rb +29 -0
- data/spec/dummy/db/migrate/20160706112579_convert_habtm_to_hmt_for_properties_prototypes.spree.rb +18 -0
- data/spec/dummy/db/migrate/20160706112580_convert_habtm_to_hmt_for_option_type_prototypes.spree.rb +18 -0
- data/spec/dummy/db/migrate/20160706112581_convert_habtm_to_hmt_for_taxons_promotion_rules.spree.rb +16 -0
- data/spec/dummy/db/migrate/20160706112582_add_stock_item_unique_index.spree.rb +10 -0
- data/spec/dummy/db/migrate/20160706112583_add_api_key_to_spree_users.spree_api.rb +8 -0
- data/spec/dummy/db/migrate/20160706112584_resize_api_key_field.spree_api.rb +8 -0
- data/spec/dummy/db/migrate/20160706112585_rename_api_key_to_spree_api_key.spree_api.rb +8 -0
- data/spec/dummy/db/migrate/20160706112586_add_index_to_user_spree_api_key.spree_api.rb +8 -0
- data/spec/dummy/db/migrate/20160706112587_create_users.solidus_auth.rb +30 -0
- data/spec/dummy/db/migrate/20160706112588_rename_columns_for_devise.solidus_auth.rb +38 -0
- data/spec/dummy/db/migrate/20160706112589_convert_user_remember_field.solidus_auth.rb +12 -0
- data/spec/dummy/db/migrate/20160706112590_add_reset_password_sent_at_to_spree_users.solidus_auth.rb +9 -0
- data/spec/dummy/db/migrate/20160706112591_make_users_email_index_unique.solidus_auth.rb +10 -0
- data/spec/dummy/db/migrate/20160706112592_add_deleted_at_to_users.solidus_auth.rb +7 -0
- data/spec/dummy/db/migrate/20160706112593_add_confirmable_to_users.solidus_auth.rb +8 -0
- data/spec/dummy/db/migrate/20160706112594_create_delayed_jobs.rb +22 -0
- data/spec/dummy/db/schema.rb +1206 -0
- data/spec/dummy/db/seeds.rb +11 -0
- data/spec/dummy/db/spree_test.sqlite3 +0 -0
- data/spec/dummy/log/test.log +15214 -0
- data/spec/dummy/public/404.html +67 -0
- data/spec/dummy/public/422.html +67 -0
- data/spec/dummy/public/500.html +66 -0
- data/spec/dummy/public/favicon.ico +0 -0
- data/spec/dummy/tmp/cache/F65/550/spree%2Fauth_configuration%2Fconfirmable +1 -0
- data/spec/dummy/vendor/assets/javascripts/spree/backend/all.js +10 -0
- data/spec/dummy/vendor/assets/javascripts/spree/frontend/all.js +10 -0
- data/spec/dummy/vendor/assets/stylesheets/spree/backend/all.css +9 -0
- data/spec/dummy/vendor/assets/stylesheets/spree/frontend/all.css +9 -0
- data/spec/features/recurring_reports_spec.rb +23 -0
- data/spec/features/specifying_criteria_spec.rb +21 -0
- data/spec/spec_helper.rb +88 -0
- data/spec/unit/lib/order_reporting/delayed_job_scheduler_spec.rb +18 -0
- metadata +925 -0
data/spec/dummy/bin/rake
ADDED
@@ -0,0 +1,29 @@
|
|
1
|
+
#!/usr/bin/env ruby
|
2
|
+
require 'pathname'
|
3
|
+
|
4
|
+
# path to your application root.
|
5
|
+
APP_ROOT = Pathname.new File.expand_path('../../', __FILE__)
|
6
|
+
|
7
|
+
Dir.chdir APP_ROOT do
|
8
|
+
# This script is a starting point to setup your application.
|
9
|
+
# Add necessary setup steps to this file:
|
10
|
+
|
11
|
+
puts "== Installing dependencies =="
|
12
|
+
system "gem install bundler --conservative"
|
13
|
+
system "bundle check || bundle install"
|
14
|
+
|
15
|
+
# puts "\n== Copying sample files =="
|
16
|
+
# unless File.exist?("config/database.yml")
|
17
|
+
# system "cp config/database.yml.sample config/database.yml"
|
18
|
+
# end
|
19
|
+
|
20
|
+
puts "\n== Preparing database =="
|
21
|
+
system "bin/rake db:setup"
|
22
|
+
|
23
|
+
puts "\n== Removing old logs and tempfiles =="
|
24
|
+
system "rm -f log/*"
|
25
|
+
system "rm -rf tmp/cache"
|
26
|
+
|
27
|
+
puts "\n== Restarting application server =="
|
28
|
+
system "touch tmp/restart.txt"
|
29
|
+
end
|
@@ -0,0 +1,59 @@
|
|
1
|
+
require File.expand_path('../boot', __FILE__)
|
2
|
+
|
3
|
+
require 'rails/all'
|
4
|
+
|
5
|
+
Bundler.require(*Rails.groups(:assets => %w(development test)))
|
6
|
+
|
7
|
+
|
8
|
+
begin
|
9
|
+
require 'spree_frontend'
|
10
|
+
rescue LoadError
|
11
|
+
# spree_frontend is not available.
|
12
|
+
end
|
13
|
+
|
14
|
+
begin
|
15
|
+
require 'spree_backend'
|
16
|
+
rescue LoadError
|
17
|
+
# spree_backend is not available.
|
18
|
+
end
|
19
|
+
|
20
|
+
begin
|
21
|
+
require 'spree_api'
|
22
|
+
rescue LoadError
|
23
|
+
# spree_api is not available.
|
24
|
+
end
|
25
|
+
require 'solidus_order_reporting'
|
26
|
+
|
27
|
+
module Dummy
|
28
|
+
class Application < Rails::Application
|
29
|
+
|
30
|
+
config.to_prepare do
|
31
|
+
# Load application's model / class decorators
|
32
|
+
Dir.glob(File.join(File.dirname(__FILE__), "../app/**/*_decorator*.rb")) do |c|
|
33
|
+
Rails.configuration.cache_classes ? require(c) : load(c)
|
34
|
+
end
|
35
|
+
|
36
|
+
# Load application's view overrides
|
37
|
+
Dir.glob(File.join(File.dirname(__FILE__), "../app/overrides/*.rb")) do |c|
|
38
|
+
Rails.configuration.cache_classes ? require(c) : load(c)
|
39
|
+
end
|
40
|
+
end
|
41
|
+
|
42
|
+
# Settings in config/environments/* take precedence over those specified here.
|
43
|
+
# Application configuration should go into files in config/initializers
|
44
|
+
# -- all .rb files in that directory are automatically loaded.
|
45
|
+
|
46
|
+
# Set Time.zone default to the specified zone and make Active Record auto-convert to this zone.
|
47
|
+
# Run "rake -D time" for a list of tasks for finding time zone names. Default is UTC.
|
48
|
+
# config.time_zone = 'Central Time (US & Canada)'
|
49
|
+
|
50
|
+
# The default locale is :en and all translations from config/locales/*.rb,yml are auto loaded.
|
51
|
+
# config.i18n.load_path += Dir[Rails.root.join('my', 'locales', '*.{rb,yml}').to_s]
|
52
|
+
# config.i18n.default_locale = :de
|
53
|
+
|
54
|
+
# Do not swallow errors in after_commit/after_rollback callbacks.
|
55
|
+
config.active_record.raise_in_transactional_callbacks = true
|
56
|
+
end
|
57
|
+
end
|
58
|
+
|
59
|
+
|
@@ -0,0 +1,41 @@
|
|
1
|
+
Rails.application.configure do
|
2
|
+
# Settings specified here will take precedence over those in config/application.rb.
|
3
|
+
|
4
|
+
# In the development environment your application's code is reloaded on
|
5
|
+
# every request. This slows down response time but is perfect for development
|
6
|
+
# since you don't have to restart the web server when you make code changes.
|
7
|
+
config.cache_classes = false
|
8
|
+
|
9
|
+
# Do not eager load code on boot.
|
10
|
+
config.eager_load = false
|
11
|
+
|
12
|
+
# Show full error reports and disable caching.
|
13
|
+
config.consider_all_requests_local = true
|
14
|
+
config.action_controller.perform_caching = false
|
15
|
+
|
16
|
+
# Don't care if the mailer can't send.
|
17
|
+
config.action_mailer.raise_delivery_errors = false
|
18
|
+
|
19
|
+
# Print deprecation notices to the Rails logger.
|
20
|
+
config.active_support.deprecation = :log
|
21
|
+
|
22
|
+
# Raise an error on page load if there are pending migrations.
|
23
|
+
config.active_record.migration_error = :page_load
|
24
|
+
|
25
|
+
# Debug mode disables concatenation and preprocessing of assets.
|
26
|
+
# This option may cause significant delays in view rendering with a large
|
27
|
+
# number of complex assets.
|
28
|
+
config.assets.debug = true
|
29
|
+
|
30
|
+
# Asset digests allow you to set far-future HTTP expiration dates on all assets,
|
31
|
+
# yet still be able to expire them through the digest params.
|
32
|
+
config.assets.digest = true
|
33
|
+
|
34
|
+
# Adds additional error checking when serving assets at runtime.
|
35
|
+
# Checks for improperly declared sprockets dependencies.
|
36
|
+
# Raises helpful error messages.
|
37
|
+
config.assets.raise_runtime_errors = true
|
38
|
+
|
39
|
+
# Raises error for missing translations
|
40
|
+
# config.action_view.raise_on_missing_translations = true
|
41
|
+
end
|
@@ -0,0 +1,79 @@
|
|
1
|
+
Rails.application.configure do
|
2
|
+
# Settings specified here will take precedence over those in config/application.rb.
|
3
|
+
|
4
|
+
# Code is not reloaded between requests.
|
5
|
+
config.cache_classes = true
|
6
|
+
|
7
|
+
# Eager load code on boot. This eager loads most of Rails and
|
8
|
+
# your application in memory, allowing both threaded web servers
|
9
|
+
# and those relying on copy on write to perform better.
|
10
|
+
# Rake tasks automatically ignore this option for performance.
|
11
|
+
config.eager_load = true
|
12
|
+
|
13
|
+
# Full error reports are disabled and caching is turned on.
|
14
|
+
config.consider_all_requests_local = false
|
15
|
+
config.action_controller.perform_caching = true
|
16
|
+
|
17
|
+
# Enable Rack::Cache to put a simple HTTP cache in front of your application
|
18
|
+
# Add `rack-cache` to your Gemfile before enabling this.
|
19
|
+
# For large-scale production use, consider using a caching reverse proxy like
|
20
|
+
# NGINX, varnish or squid.
|
21
|
+
# config.action_dispatch.rack_cache = true
|
22
|
+
|
23
|
+
# Disable serving static files from the `/public` folder by default since
|
24
|
+
# Apache or NGINX already handles this.
|
25
|
+
config.serve_static_files = ENV['RAILS_SERVE_STATIC_FILES'].present?
|
26
|
+
|
27
|
+
# Compress JavaScripts and CSS.
|
28
|
+
config.assets.js_compressor = :uglifier
|
29
|
+
# config.assets.css_compressor = :sass
|
30
|
+
|
31
|
+
# Do not fallback to assets pipeline if a precompiled asset is missed.
|
32
|
+
config.assets.compile = false
|
33
|
+
|
34
|
+
# Asset digests allow you to set far-future HTTP expiration dates on all assets,
|
35
|
+
# yet still be able to expire them through the digest params.
|
36
|
+
config.assets.digest = true
|
37
|
+
|
38
|
+
# `config.assets.precompile` and `config.assets.version` have moved to config/initializers/assets.rb
|
39
|
+
|
40
|
+
# Specifies the header that your server uses for sending files.
|
41
|
+
# config.action_dispatch.x_sendfile_header = 'X-Sendfile' # for Apache
|
42
|
+
# config.action_dispatch.x_sendfile_header = 'X-Accel-Redirect' # for NGINX
|
43
|
+
|
44
|
+
# Force all access to the app over SSL, use Strict-Transport-Security, and use secure cookies.
|
45
|
+
# config.force_ssl = true
|
46
|
+
|
47
|
+
# Use the lowest log level to ensure availability of diagnostic information
|
48
|
+
# when problems arise.
|
49
|
+
config.log_level = :debug
|
50
|
+
|
51
|
+
# Prepend all log lines with the following tags.
|
52
|
+
# config.log_tags = [ :subdomain, :uuid ]
|
53
|
+
|
54
|
+
# Use a different logger for distributed setups.
|
55
|
+
# config.logger = ActiveSupport::TaggedLogging.new(SyslogLogger.new)
|
56
|
+
|
57
|
+
# Use a different cache store in production.
|
58
|
+
# config.cache_store = :mem_cache_store
|
59
|
+
|
60
|
+
# Enable serving of images, stylesheets, and JavaScripts from an asset server.
|
61
|
+
# config.action_controller.asset_host = 'http://assets.example.com'
|
62
|
+
|
63
|
+
# Ignore bad email addresses and do not raise email delivery errors.
|
64
|
+
# Set this to true and configure the email server for immediate delivery to raise delivery errors.
|
65
|
+
# config.action_mailer.raise_delivery_errors = false
|
66
|
+
|
67
|
+
# Enable locale fallbacks for I18n (makes lookups for any locale fall back to
|
68
|
+
# the I18n.default_locale when a translation cannot be found).
|
69
|
+
config.i18n.fallbacks = true
|
70
|
+
|
71
|
+
# Send deprecation notices to registered listeners.
|
72
|
+
config.active_support.deprecation = :notify
|
73
|
+
|
74
|
+
# Use default logging formatter so that PID and timestamp are not suppressed.
|
75
|
+
config.log_formatter = ::Logger::Formatter.new
|
76
|
+
|
77
|
+
# Do not dump schema after migrations.
|
78
|
+
config.active_record.dump_schema_after_migration = false
|
79
|
+
end
|
@@ -0,0 +1,34 @@
|
|
1
|
+
Dummy::Application.configure do
|
2
|
+
# Settings specified here will take precedence over those in config/application.rb
|
3
|
+
|
4
|
+
# The test environment is used exclusively to run your application's
|
5
|
+
# test suite. You never need to work with it otherwise. Remember that
|
6
|
+
# your test database is "scratch space" for the test suite and is wiped
|
7
|
+
# and recreated between test runs. Don't rely on the data there!
|
8
|
+
config.cache_classes = true
|
9
|
+
|
10
|
+
# Configure static asset server for tests with Cache-Control for performance
|
11
|
+
config.serve_static_files = true
|
12
|
+
config.static_cache_control = "public, max-age=3600"
|
13
|
+
|
14
|
+
# Show full error reports and disable caching
|
15
|
+
config.consider_all_requests_local = true
|
16
|
+
config.action_controller.perform_caching = false
|
17
|
+
|
18
|
+
config.eager_load = false
|
19
|
+
|
20
|
+
# Raise exceptions instead of rendering exception templates
|
21
|
+
config.action_dispatch.show_exceptions = false
|
22
|
+
|
23
|
+
# Disable request forgery protection in test environment
|
24
|
+
config.action_controller.allow_forgery_protection = false
|
25
|
+
|
26
|
+
# Tell Action Mailer not to deliver emails to the real world.
|
27
|
+
# The :test delivery method accumulates sent emails in the
|
28
|
+
# ActionMailer::Base.deliveries array.
|
29
|
+
config.action_mailer.delivery_method = :test
|
30
|
+
ActionMailer::Base.default :from => "spree@example.com"
|
31
|
+
|
32
|
+
# Print deprecation notices to the stderr
|
33
|
+
config.active_support.deprecation = :stderr
|
34
|
+
end
|
@@ -0,0 +1,11 @@
|
|
1
|
+
# Be sure to restart your server when you modify this file.
|
2
|
+
|
3
|
+
# Version of your assets, change this if you want to expire all your assets.
|
4
|
+
Rails.application.config.assets.version = '1.0'
|
5
|
+
|
6
|
+
# Add additional assets to the asset load path
|
7
|
+
# Rails.application.config.assets.paths << Emoji.images_path
|
8
|
+
|
9
|
+
# Precompile additional assets.
|
10
|
+
# application.js, application.css, and all non-JS/CSS in app/assets folder are already added.
|
11
|
+
# Rails.application.config.assets.precompile += %w( search.js )
|
@@ -0,0 +1,7 @@
|
|
1
|
+
# Be sure to restart your server when you modify this file.
|
2
|
+
|
3
|
+
# You can add backtrace silencers for libraries that you're using but don't wish to see in your backtraces.
|
4
|
+
# Rails.backtrace_cleaner.add_silencer { |line| line =~ /my_noisy_library/ }
|
5
|
+
|
6
|
+
# You can also remove all the silencers if you're trying to debug a problem that might stem from framework code.
|
7
|
+
# Rails.backtrace_cleaner.remove_silencers!
|
@@ -0,0 +1 @@
|
|
1
|
+
# Spree.user_class = "User"
|
@@ -0,0 +1,16 @@
|
|
1
|
+
# Be sure to restart your server when you modify this file.
|
2
|
+
|
3
|
+
# Add new inflection rules using the following format. Inflections
|
4
|
+
# are locale specific, and you may define rules for as many different
|
5
|
+
# locales as you wish. All of these examples are active by default:
|
6
|
+
# ActiveSupport::Inflector.inflections(:en) do |inflect|
|
7
|
+
# inflect.plural /^(ox)$/i, '\1en'
|
8
|
+
# inflect.singular /^(ox)en/i, '\1'
|
9
|
+
# inflect.irregular 'person', 'people'
|
10
|
+
# inflect.uncountable %w( fish sheep )
|
11
|
+
# end
|
12
|
+
|
13
|
+
# These inflection rules are supported but not enabled by default:
|
14
|
+
# ActiveSupport::Inflector.inflections(:en) do |inflect|
|
15
|
+
# inflect.acronym 'RESTful'
|
16
|
+
# end
|
@@ -0,0 +1,57 @@
|
|
1
|
+
# Configure Solidus Preferences
|
2
|
+
# See http://docs.solidus.io/Spree/AppConfiguration.html for details
|
3
|
+
|
4
|
+
Spree.config do |config|
|
5
|
+
# Without this preferences are loaded and persisted to the database. This
|
6
|
+
# changes them to be stored in memory.
|
7
|
+
# This will be the default in a future version.
|
8
|
+
config.use_static_preferences!
|
9
|
+
|
10
|
+
# Core:
|
11
|
+
|
12
|
+
# Default currency for new sites
|
13
|
+
config.currency = "USD"
|
14
|
+
|
15
|
+
# from address for transactional emails
|
16
|
+
config.mails_from = "store@example.com"
|
17
|
+
|
18
|
+
# Uncomment to stop tracking inventory levels in the application
|
19
|
+
# config.track_inventory_levels = false
|
20
|
+
|
21
|
+
# When set, product caches are only invalidated when they fall below or rise
|
22
|
+
# above the inventory_cache_threshold that is set. Default is to invalidate cache on
|
23
|
+
# any inventory changes.
|
24
|
+
# config.inventory_cache_threshold = 3
|
25
|
+
|
26
|
+
|
27
|
+
# Frontend:
|
28
|
+
|
29
|
+
# Custom logo for the frontend
|
30
|
+
# config.logo = "logo/solidus_logo.png"
|
31
|
+
|
32
|
+
# Template to use when rendering layout
|
33
|
+
# config.layout = "spree/layouts/spree_application"
|
34
|
+
|
35
|
+
|
36
|
+
# Admin:
|
37
|
+
|
38
|
+
# Custom logo for the admin
|
39
|
+
# config.admin_interface_logo = "logo/solidus_logo.png"
|
40
|
+
|
41
|
+
# Gateway credentials can be configured statically here and referenced from
|
42
|
+
# the admin. They can also be fully configured from the admin.
|
43
|
+
#
|
44
|
+
# config.static_model_preferences.add(
|
45
|
+
# Spree::Gateway::StripeGateway,
|
46
|
+
# 'stripe_env_credentials',
|
47
|
+
# secret_key: ENV['STRIPE_SECRET_KEY'],
|
48
|
+
# publishable_key: ENV['STRIPE_PUBLISHABLE_KEY'],
|
49
|
+
# server: Rails.env.production? ? 'production' : 'test',
|
50
|
+
# test_mode: !Rails.env.production?
|
51
|
+
# )
|
52
|
+
end
|
53
|
+
|
54
|
+
|
55
|
+
|
56
|
+
|
57
|
+
Spree.user_class = "Spree::LegacyUser"
|
@@ -0,0 +1,14 @@
|
|
1
|
+
# Be sure to restart your server when you modify this file.
|
2
|
+
|
3
|
+
# This file contains settings for ActionController::ParamsWrapper which
|
4
|
+
# is enabled by default.
|
5
|
+
|
6
|
+
# Enable parameter wrapping for JSON. You can disable this by setting :format to an empty array.
|
7
|
+
ActiveSupport.on_load(:action_controller) do
|
8
|
+
wrap_parameters format: [:json] if respond_to?(:wrap_parameters)
|
9
|
+
end
|
10
|
+
|
11
|
+
# To enable root element in JSON for ActiveRecord objects.
|
12
|
+
# ActiveSupport.on_load(:active_record) do
|
13
|
+
# self.include_root_in_json = true
|
14
|
+
# end
|