spina-shop 0.1.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/MIT-LICENSE +20 -0
- data/README.md +28 -0
- data/Rakefile +37 -0
- data/app/assets/config/spina_shop_manifest.js +0 -0
- data/app/assets/fonts/montserrat-bold.ttf +0 -0
- data/app/assets/fonts/montserrat-italic.ttf +0 -0
- data/app/assets/fonts/montserrat-medium.ttf +0 -0
- data/app/assets/fonts/montserrat-regular.ttf +0 -0
- data/app/assets/fonts/montserrat-semibold.ttf +0 -0
- data/app/assets/images/spina/shop/delete-big-confirm.png +0 -0
- data/app/assets/images/spina/shop/delete-big.png +0 -0
- data/app/assets/javascripts/spina/shop/admin/app.infinitescroll.js.coffee +23 -0
- data/app/assets/javascripts/spina/shop/admin/customers.coffee +27 -0
- data/app/assets/javascripts/spina/shop/admin/orders.coffee +18 -0
- data/app/assets/javascripts/spina/shop/admin/product_bundles.coffee +15 -0
- data/app/assets/javascripts/spina/shop/admin/product_categories.coffee +15 -0
- data/app/assets/javascripts/spina/shop/admin/products.coffee +88 -0
- data/app/assets/javascripts/spina/shop/admin/shop.js +10 -0
- data/app/assets/stylesheets/spina/shop/admin/_customers.sass +10 -0
- data/app/assets/stylesheets/spina/shop/admin/_forms.sass +191 -0
- data/app/assets/stylesheets/spina/shop/admin/_product_bundles.sass +12 -0
- data/app/assets/stylesheets/spina/shop/admin/_status_dots.sass +16 -0
- data/app/assets/stylesheets/spina/shop/admin/_tables.sass +2 -0
- data/app/assets/stylesheets/spina/shop/admin/_tooltips.sass +31 -0
- data/app/assets/stylesheets/spina/shop/admin/shop.css.sass +11 -0
- data/app/controllers/spina/shop/admin/admin_controller.rb +8 -0
- data/app/controllers/spina/shop/admin/customer_accounts_controller.rb +38 -0
- data/app/controllers/spina/shop/admin/customers_controller.rb +67 -0
- data/app/controllers/spina/shop/admin/discounts_controller.rb +65 -0
- data/app/controllers/spina/shop/admin/gift_cards_controller.rb +65 -0
- data/app/controllers/spina/shop/admin/invoices_controller.rb +12 -0
- data/app/controllers/spina/shop/admin/order_items_controller.rb +36 -0
- data/app/controllers/spina/shop/admin/orders/packing_slips_controller.rb +27 -0
- data/app/controllers/spina/shop/admin/orders/shipping_labels_controller.rb +19 -0
- data/app/controllers/spina/shop/admin/orders_controller.rb +123 -0
- data/app/controllers/spina/shop/admin/product_reviews_controller.rb +17 -0
- data/app/controllers/spina/shop/admin/products/product_bundles_controller.rb +62 -0
- data/app/controllers/spina/shop/admin/products/stock_forecasts_controller.rb +15 -0
- data/app/controllers/spina/shop/admin/products/stock_level_adjustments_controller.rb +33 -0
- data/app/controllers/spina/shop/admin/products_controller.rb +135 -0
- data/app/controllers/spina/shop/admin/reports_controller.rb +33 -0
- data/app/controllers/spina/shop/admin/settings/product_categories_controller.rb +45 -0
- data/app/controllers/spina/shop/admin/settings/product_category_properties_controller.rb +49 -0
- data/app/controllers/spina/shop/admin/settings/sales_categories_controller.rb +14 -0
- data/app/controllers/spina/shop/admin/settings/shop_controller.rb +9 -0
- data/app/controllers/spina/shop/admin/settings/tax_groups_controller.rb +47 -0
- data/app/controllers/spina/shop/admin/variants_controller.rb +8 -0
- data/app/jobs/spina/shop/in_stock_reminder_job.rb +17 -0
- data/app/jobs/spina/shop/invoice_report_job.rb +23 -0
- data/app/jobs/spina/shop/payments_report_job.rb +23 -0
- data/app/mailers/spina/shop/customer_account_mailer.rb +32 -0
- data/app/mailers/spina/shop/export_mailer.rb +22 -0
- data/app/mailers/spina/shop/in_stock_reminder_mailer.rb +22 -0
- data/app/mailers/spina/shop/order_mailer.rb +32 -0
- data/app/models/concerns/spina/shop/preferable.rb +27 -0
- data/app/models/concerns/spina/shop/tax_rateable.rb +11 -0
- data/app/models/spina/shop/address.rb +19 -0
- data/app/models/spina/shop/application_record.rb +5 -0
- data/app/models/spina/shop/bundled_product.rb +6 -0
- data/app/models/spina/shop/campaign.rb +4 -0
- data/app/models/spina/shop/collectable.rb +8 -0
- data/app/models/spina/shop/country.rb +5 -0
- data/app/models/spina/shop/customer.rb +60 -0
- data/app/models/spina/shop/customer_account.rb +15 -0
- data/app/models/spina/shop/customer_group.rb +9 -0
- data/app/models/spina/shop/delivery_option.rb +27 -0
- data/app/models/spina/shop/discount.rb +39 -0
- data/app/models/spina/shop/discount_action.rb +16 -0
- data/app/models/spina/shop/discount_rule.rb +17 -0
- data/app/models/spina/shop/discounts/actions/percent_off.rb +17 -0
- data/app/models/spina/shop/discounts/rules/all_orders.rb +13 -0
- data/app/models/spina/shop/discounts/rules/collection.rb +14 -0
- data/app/models/spina/shop/discounts/rules/order_total.rb +17 -0
- data/app/models/spina/shop/discounts_order.rb +6 -0
- data/app/models/spina/shop/favorite.rb +8 -0
- data/app/models/spina/shop/gift_card.rb +53 -0
- data/app/models/spina/shop/gift_cards_order.rb +6 -0
- data/app/models/spina/shop/in_stock_reminder.rb +7 -0
- data/app/models/spina/shop/invoice.rb +49 -0
- data/app/models/spina/shop/invoice_line.rb +13 -0
- data/app/models/spina/shop/number_sequence.rb +19 -0
- data/app/models/spina/shop/order.rb +222 -0
- data/app/models/spina/shop/order/billing.rb +85 -0
- data/app/models/spina/shop/order/state_machine_transitions.rb +106 -0
- data/app/models/spina/shop/order_attachment.rb +9 -0
- data/app/models/spina/shop/order_item.rb +101 -0
- data/app/models/spina/shop/order_transition.rb +5 -0
- data/app/models/spina/shop/product.rb +227 -0
- data/app/models/spina/shop/product_bundle.rb +51 -0
- data/app/models/spina/shop/product_bundle_part.rb +13 -0
- data/app/models/spina/shop/product_category.rb +18 -0
- data/app/models/spina/shop/product_category_property.rb +14 -0
- data/app/models/spina/shop/product_collection.rb +8 -0
- data/app/models/spina/shop/product_image.rb +18 -0
- data/app/models/spina/shop/product_item.rb +93 -0
- data/app/models/spina/shop/product_part.rb +13 -0
- data/app/models/spina/shop/product_relation.rb +6 -0
- data/app/models/spina/shop/product_review.rb +22 -0
- data/app/models/spina/shop/property_option.rb +16 -0
- data/app/models/spina/shop/sales_category.rb +43 -0
- data/app/models/spina/shop/sales_category_code.rb +20 -0
- data/app/models/spina/shop/shop_review.rb +19 -0
- data/app/models/spina/shop/stock_level_adjustment.rb +17 -0
- data/app/models/spina/shop/tax_group.rb +62 -0
- data/app/models/spina/shop/tax_rate.rb +20 -0
- data/app/models/spina/shop/zone.rb +11 -0
- data/app/pdfs/spina/shop/invoice_pdf.rb +114 -0
- data/app/pdfs/spina/shop/packing_slip_pdf.rb +74 -0
- data/app/presenters/spina/shop/invoice_presenter.rb +30 -0
- data/app/services/spina/shop/allocate_stock.rb +42 -0
- data/app/services/spina/shop/cache_order.rb +47 -0
- data/app/services/spina/shop/change_stock_level.rb +38 -0
- data/app/services/spina/shop/country_importer.rb +14 -0
- data/app/services/spina/shop/customer_generator.rb +32 -0
- data/app/services/spina/shop/deallocate_stock.rb +17 -0
- data/app/services/spina/shop/invoice_generator.rb +72 -0
- data/app/services/spina/shop/invoice_number_generator.rb +10 -0
- data/app/services/spina/shop/invoices_pdfs_exporter.rb +22 -0
- data/app/services/spina/shop/order_number_generator.rb +10 -0
- data/app/services/spina/shop/payments_excel_exporter.rb +41 -0
- data/app/services/spina/shop/store_address.rb +23 -0
- data/app/state_machines/spina/shop/order_state_machine.rb +116 -0
- data/app/uploaders/spina/shop/exports_uploader.rb +9 -0
- data/app/views/layouts/spina/shop/admin/settings/shop.html.haml +16 -0
- data/app/views/layouts/spina/shop/mail.html.erb +1 -0
- data/app/views/spina/admin/hooks/shop/_head.html.haml +2 -0
- data/app/views/spina/admin/hooks/shop/_primary_navigation.html.haml +31 -0
- data/app/views/spina/admin/hooks/shop/_settings_secondary_navigation.html.haml +2 -0
- data/app/views/spina/admin/page_partables/shop/product_bundle_parts/_form.html.haml +6 -0
- data/app/views/spina/admin/page_partables/shop/product_parts/_form.html.haml +6 -0
- data/app/views/spina/admin/structure_partables/shop/product_parts/_form.html.haml +3 -0
- data/app/views/spina/shop/admin/customer_accounts/_form.html.haml +32 -0
- data/app/views/spina/shop/admin/customer_accounts/edit.html.haml +1 -0
- data/app/views/spina/shop/admin/customers/_address_fields.html.haml +46 -0
- data/app/views/spina/shop/admin/customers/_customer.html.haml +11 -0
- data/app/views/spina/shop/admin/customers/_form.html.haml +67 -0
- data/app/views/spina/shop/admin/customers/edit.html.haml +1 -0
- data/app/views/spina/shop/admin/customers/index.html.haml +52 -0
- data/app/views/spina/shop/admin/customers/index.js.erb +4 -0
- data/app/views/spina/shop/admin/customers/new.html.haml +1 -0
- data/app/views/spina/shop/admin/customers/show.html.haml +121 -0
- data/app/views/spina/shop/admin/discounts/_form.html.haml +60 -0
- data/app/views/spina/shop/admin/discounts/edit.html.haml +1 -0
- data/app/views/spina/shop/admin/discounts/fields/_all_orders.html.haml +0 -0
- data/app/views/spina/shop/admin/discounts/fields/_discount_action_fields.html.haml +8 -0
- data/app/views/spina/shop/admin/discounts/fields/_discount_rule_fields.html.haml +0 -0
- data/app/views/spina/shop/admin/discounts/index.html.haml +36 -0
- data/app/views/spina/shop/admin/discounts/new.html.haml +1 -0
- data/app/views/spina/shop/admin/gift_cards/_form.html.haml +28 -0
- data/app/views/spina/shop/admin/gift_cards/_gift_card.html.haml +17 -0
- data/app/views/spina/shop/admin/gift_cards/index.html.haml +37 -0
- data/app/views/spina/shop/admin/gift_cards/index.js.erb +4 -0
- data/app/views/spina/shop/admin/gift_cards/new.html.haml +1 -0
- data/app/views/spina/shop/admin/gift_cards/show.html.haml +46 -0
- data/app/views/spina/shop/admin/order_items/_modal.html.haml +18 -0
- data/app/views/spina/shop/admin/order_items/new.js.erb +2 -0
- data/app/views/spina/shop/admin/orders/_form.html.haml +159 -0
- data/app/views/spina/shop/admin/orders/_order.html.haml +22 -0
- data/app/views/spina/shop/admin/orders/edit.html.haml +1 -0
- data/app/views/spina/shop/admin/orders/index.html.haml +78 -0
- data/app/views/spina/shop/admin/orders/index.js.erb +4 -0
- data/app/views/spina/shop/admin/orders/new.html.haml +1 -0
- data/app/views/spina/shop/admin/orders/show.html.haml +338 -0
- data/app/views/spina/shop/admin/product_reviews/_product_review.html.haml +22 -0
- data/app/views/spina/shop/admin/product_reviews/index.html.haml +29 -0
- data/app/views/spina/shop/admin/product_reviews/index.js.erb +4 -0
- data/app/views/spina/shop/admin/products/_form.html.haml +259 -0
- data/app/views/spina/shop/admin/products/_new_product_modal.html.haml +15 -0
- data/app/views/spina/shop/admin/products/_price_exception_fields.html.haml +11 -0
- data/app/views/spina/shop/admin/products/_product.html.haml +36 -0
- data/app/views/spina/shop/admin/products/edit.html.haml +1 -0
- data/app/views/spina/shop/admin/products/index.html.haml +73 -0
- data/app/views/spina/shop/admin/products/index.js.erb +4 -0
- data/app/views/spina/shop/admin/products/new.html.haml +1 -0
- data/app/views/spina/shop/admin/products/new_by_category.js.erb +1 -0
- data/app/views/spina/shop/admin/products/product_bundles/_bundled_products_fields.html.haml +11 -0
- data/app/views/spina/shop/admin/products/product_bundles/_form.html.haml +64 -0
- data/app/views/spina/shop/admin/products/product_bundles/edit.html.haml +1 -0
- data/app/views/spina/shop/admin/products/product_bundles/index.html.haml +42 -0
- data/app/views/spina/shop/admin/products/product_bundles/new.html.haml +1 -0
- data/app/views/spina/shop/admin/products/properties/_property_fields.html.haml +37 -0
- data/app/views/spina/shop/admin/products/stock_forecasts/_product.html.haml +49 -0
- data/app/views/spina/shop/admin/products/stock_forecasts/show.html.haml +47 -0
- data/app/views/spina/shop/admin/products/stock_forecasts/show.js.erb +4 -0
- data/app/views/spina/shop/admin/products/stock_level_adjustments/_form.html.haml +37 -0
- data/app/views/spina/shop/admin/products/stock_level_adjustments/_history.html.haml +30 -0
- data/app/views/spina/shop/admin/products/stock_level_adjustments/index.js.erb +1 -0
- data/app/views/spina/shop/admin/products/stock_level_adjustments/new.js.erb +1 -0
- data/app/views/spina/shop/admin/reports/index.html.haml +23 -0
- data/app/views/spina/shop/admin/settings/product_categories/_form.html.haml +18 -0
- data/app/views/spina/shop/admin/settings/product_categories/_product_category.html.haml +3 -0
- data/app/views/spina/shop/admin/settings/product_categories/_property_fields.html.haml +77 -0
- data/app/views/spina/shop/admin/settings/product_categories/edit.html.haml +1 -0
- data/app/views/spina/shop/admin/settings/product_categories/index.html.haml +3 -0
- data/app/views/spina/shop/admin/settings/product_categories/show.html.haml +24 -0
- data/app/views/spina/shop/admin/settings/product_category_properties/_property_options_fields.html.haml +11 -0
- data/app/views/spina/shop/admin/settings/product_category_properties/edit_options.html.haml +16 -0
- data/app/views/spina/shop/admin/settings/sales_categories/_sales_category.html.haml +17 -0
- data/app/views/spina/shop/admin/settings/sales_categories/index.html.haml +1 -0
- data/app/views/spina/shop/admin/settings/tax_groups/_form.html.haml +19 -0
- data/app/views/spina/shop/admin/settings/tax_groups/_tax_group.html.haml +21 -0
- data/app/views/spina/shop/admin/settings/tax_groups/index.html.haml +1 -0
- data/app/views/spina/shop/admin/settings/tax_groups/new.js.erb +1 -0
- data/app/views/spina/shop/admin/shared/_locale_switcher.html.haml +9 -0
- data/app/views/spina/shop/customer_account_mailer/forgot_password.html.erb +1 -0
- data/app/views/spina/shop/customer_account_mailer/forgot_password.txt.erb +1 -0
- data/app/views/spina/shop/export_mailer/exported.html.erb +2 -0
- data/app/views/spina/shop/in_stock_reminder_mailer/reminder.html.erb +1 -0
- data/app/views/spina/shop/in_stock_reminder_mailer/reminder.txt.erb +1 -0
- data/app/views/spina/shop/order_mailer/confirmation.html.erb +5 -0
- data/app/views/spina/shop/order_mailer/confirmation.txt.erb +5 -0
- data/app/views/spina/shop/order_mailer/shipped.html.erb +1 -0
- data/app/views/spina/shop/order_mailer/shipped.txt.erb +1 -0
- data/config/initializers/kaminari_monkey_patch.rb +15 -0
- data/config/locales/en.yml +214 -0
- data/config/locales/nl.yml +452 -0
- data/config/routes.rb +92 -0
- data/db/countries.txt +252 -0
- data/db/migrate/10_create_spina_shop_products_without_items.rb +23 -0
- data/db/migrate/1_create_spina_shop_tables.rb +518 -0
- data/db/migrate/20170701135207_create_spina_shop_bundled_products.rb +11 -0
- data/db/migrate/20170717125930_add_stock_enabled_to_spina_shop_products.rb +5 -0
- data/db/migrate/20170718084146_add_editable_sku_to_spina_shop_products.rb +5 -0
- data/db/migrate/20170718084626_add_deletable_to_spina_shop_products.rb +5 -0
- data/db/migrate/20170719082531_rename_column_order_picked_at_in_spina_shop_orders.rb +5 -0
- data/db/migrate/20170719112920_create_spina_shop_order_attachments.rb +15 -0
- data/db/migrate/20170719184125_add_price_exceptions_to_spina_shop_products.rb +5 -0
- data/db/migrate/20170720133304_add_vat_id_to_spina_shop_customers.rb +5 -0
- data/db/migrate/20170731082027_add_price_includes_tax_to_spina_shop_products.rb +5 -0
- data/db/migrate/20170731132620_add_reverse_charge_vat_to_spina_shop_tax_rates.rb +5 -0
- data/db/migrate/20170731150630_add_vat_id_to_spina_shop_invoices.rb +5 -0
- data/db/migrate/20170801093935_add_price_includes_tax_to_spina_shop_delivery_options.rb +5 -0
- data/db/migrate/20170814092924_add_business_to_spina_shop_orders.rb +6 -0
- data/db/migrate/20170815080839_rename_vat_reverse_charge_column_on_tax_rates.rb +5 -0
- data/db/migrate/20170815081018_add_business_to_spina_shop_tax_rates.rb +5 -0
- data/db/migrate/20170817075706_add_archived_to_spina_shop_products.rb +5 -0
- data/db/migrate/20170824175231_add_metadata_to_photos.rb +7 -0
- data/db/migrate/20170829085402_add_business_to_spina_shop_sales_category_codes.rb +5 -0
- data/db/migrate/20170911121034_add_trend_to_spina_shop_products.rb +5 -0
- data/db/migrate/20171106122225_add_editable_fields_to_spina_shop_product_category_properties.rb +6 -0
- data/db/migrate/20171106122537_create_property_options.rb +19 -0
- data/db/migrate/20171118110256_add_promotional_price_to_spina_shop_products.rb +6 -0
- data/db/migrate/2_create_spina_shop_tax_rates.rb +15 -0
- data/db/migrate/3_create_spina_shop_zones.rb +9 -0
- data/db/migrate/4_add_tax_rateable_to_spina_shop_tax_rates.rb +9 -0
- data/db/migrate/5_add_type_to_spina_shop_zones.rb +5 -0
- data/db/migrate/6_add_code_to_spina_shop_zones.rb +5 -0
- data/db/migrate/7_create_spina_shop_product_collections.rb +16 -0
- data/db/migrate/8_create_spina_shop_sales_category_codes.rb +13 -0
- data/db/migrate/9_create_spina_shop_customer_groups.rb +11 -0
- data/lib/generators/spina/shop/install_generator.rb +44 -0
- data/lib/spina/shop.rb +24 -0
- data/lib/spina/shop/admin_helpers.rb +49 -0
- data/lib/spina/shop/engine.rb +27 -0
- data/lib/spina/shop/errors/empty_order.rb +6 -0
- data/lib/spina/shop/errors/order_already_received.rb +6 -0
- data/lib/spina/shop/railtie.rb +31 -0
- data/lib/spina/shop/simple_linear_regression.rb +36 -0
- data/lib/spina/shop/version.rb +5 -0
- data/lib/spina/shop/view_helpers.rb +11 -0
- data/lib/tasks/spina/shop.rake +32 -0
- metadata +627 -0
@@ -0,0 +1,31 @@
|
|
1
|
+
require 'spina/shop/view_helpers'
|
2
|
+
require 'spina/shop/admin_helpers'
|
3
|
+
require 'spina/shop/simple_linear_regression'
|
4
|
+
require 'spina/shop/errors/empty_order'
|
5
|
+
require 'spina/shop/errors/order_already_received'
|
6
|
+
|
7
|
+
module Spina
|
8
|
+
module Shop
|
9
|
+
class Railtie < Rails::Railtie
|
10
|
+
|
11
|
+
initializer "spina_shop.view_helpers" do
|
12
|
+
ActiveSupport.on_load(:action_view) do
|
13
|
+
include Spina::Shop::ViewHelpers
|
14
|
+
include Spina::Shop::AdminHelpers
|
15
|
+
end
|
16
|
+
end
|
17
|
+
|
18
|
+
initializer "spina_shop.register_plugin" do
|
19
|
+
Spina::Plugin.register do |plugin|
|
20
|
+
plugin.name = "Shop"
|
21
|
+
plugin.namespace = "shop"
|
22
|
+
end
|
23
|
+
end
|
24
|
+
|
25
|
+
initializer "spina_shop.assets.precompile" do |app|
|
26
|
+
app.config.assets.precompile += %w(spina/shop/admin/shop.js spina/shop/admin/shop.css spina/shop/delete-big.png spina/shop/delete-big-confirm.png)
|
27
|
+
end
|
28
|
+
|
29
|
+
end
|
30
|
+
end
|
31
|
+
end
|
@@ -0,0 +1,36 @@
|
|
1
|
+
module Spina
|
2
|
+
module Shop
|
3
|
+
class SimpleLinearRegression
|
4
|
+
def initialize(xs, ys)
|
5
|
+
@xs, @ys = xs, ys
|
6
|
+
if @xs.length != @ys.length
|
7
|
+
raise "Unbalanced data. xs need to be same length as ys"
|
8
|
+
end
|
9
|
+
end
|
10
|
+
|
11
|
+
def y_intercept
|
12
|
+
mean(@ys) - (slope * mean(@xs))
|
13
|
+
end
|
14
|
+
|
15
|
+
def slope
|
16
|
+
x_mean = mean(@xs)
|
17
|
+
y_mean = mean(@ys)
|
18
|
+
|
19
|
+
numerator = (0...@xs.length).reduce(0) do |sum, i|
|
20
|
+
sum + ((@xs[i] - x_mean) * (@ys[i] - y_mean))
|
21
|
+
end
|
22
|
+
|
23
|
+
denominator = @xs.reduce(0) do |sum, x|
|
24
|
+
sum + ((x - x_mean) ** 2)
|
25
|
+
end
|
26
|
+
|
27
|
+
(numerator / denominator)
|
28
|
+
end
|
29
|
+
|
30
|
+
def mean(values)
|
31
|
+
total = values.reduce(0) { |sum, x| x + sum }
|
32
|
+
Float(total) / Float(values.length)
|
33
|
+
end
|
34
|
+
end
|
35
|
+
end
|
36
|
+
end
|
@@ -0,0 +1,32 @@
|
|
1
|
+
namespace :spina_shop do
|
2
|
+
task import_countries: :environment do
|
3
|
+
Spina::Shop::CountryImporter.import
|
4
|
+
end
|
5
|
+
|
6
|
+
task calculate_trend: :environment do
|
7
|
+
products = Spina::Shop::Product.where(stock_enabled: true)
|
8
|
+
products.each do |product|
|
9
|
+
adjustments = product.stock_level_adjustments.sales.where('spina_shop_stock_level_adjustments.created_at > ?', 90.days.ago).order(:created_at)
|
10
|
+
|
11
|
+
if adjustments.any?
|
12
|
+
total = 0
|
13
|
+
first_date = adjustments.first.created_at.to_date
|
14
|
+
|
15
|
+
sum_array = adjustments.map do |adjustment|
|
16
|
+
total += adjustment.adjustment * -1
|
17
|
+
[(adjustment.created_at.to_date - first_date).to_i, total]
|
18
|
+
end
|
19
|
+
|
20
|
+
r = Spina::Shop::SimpleLinearRegression.new(sum_array.map(&:first), sum_array.map(&:last))
|
21
|
+
|
22
|
+
unless r.slope.nan?
|
23
|
+
product.update_column(:trend, r.slope)
|
24
|
+
else
|
25
|
+
product.update_column(:trend, 0)
|
26
|
+
end
|
27
|
+
else
|
28
|
+
product.update_column(:trend, 0)
|
29
|
+
end
|
30
|
+
end
|
31
|
+
end
|
32
|
+
end
|
metadata
ADDED
@@ -0,0 +1,627 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: spina-shop
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.1.0
|
5
|
+
platform: ruby
|
6
|
+
authors:
|
7
|
+
- Bram Jetten
|
8
|
+
autorequire:
|
9
|
+
bindir: bin
|
10
|
+
cert_chain: []
|
11
|
+
date: 2017-11-28 00:00:00.000000000 Z
|
12
|
+
dependencies:
|
13
|
+
- !ruby/object:Gem::Dependency
|
14
|
+
name: rails
|
15
|
+
requirement: !ruby/object:Gem::Requirement
|
16
|
+
requirements:
|
17
|
+
- - ">="
|
18
|
+
- !ruby/object:Gem::Version
|
19
|
+
version: '5.1'
|
20
|
+
type: :runtime
|
21
|
+
prerelease: false
|
22
|
+
version_requirements: !ruby/object:Gem::Requirement
|
23
|
+
requirements:
|
24
|
+
- - ">="
|
25
|
+
- !ruby/object:Gem::Version
|
26
|
+
version: '5.1'
|
27
|
+
- !ruby/object:Gem::Dependency
|
28
|
+
name: spina
|
29
|
+
requirement: !ruby/object:Gem::Requirement
|
30
|
+
requirements:
|
31
|
+
- - ">="
|
32
|
+
- !ruby/object:Gem::Version
|
33
|
+
version: '0'
|
34
|
+
type: :runtime
|
35
|
+
prerelease: false
|
36
|
+
version_requirements: !ruby/object:Gem::Requirement
|
37
|
+
requirements:
|
38
|
+
- - ">="
|
39
|
+
- !ruby/object:Gem::Version
|
40
|
+
version: '0'
|
41
|
+
- !ruby/object:Gem::Dependency
|
42
|
+
name: pg
|
43
|
+
requirement: !ruby/object:Gem::Requirement
|
44
|
+
requirements:
|
45
|
+
- - ">="
|
46
|
+
- !ruby/object:Gem::Version
|
47
|
+
version: '0'
|
48
|
+
type: :runtime
|
49
|
+
prerelease: false
|
50
|
+
version_requirements: !ruby/object:Gem::Requirement
|
51
|
+
requirements:
|
52
|
+
- - ">="
|
53
|
+
- !ruby/object:Gem::Version
|
54
|
+
version: '0'
|
55
|
+
- !ruby/object:Gem::Dependency
|
56
|
+
name: refile
|
57
|
+
requirement: !ruby/object:Gem::Requirement
|
58
|
+
requirements:
|
59
|
+
- - ">="
|
60
|
+
- !ruby/object:Gem::Version
|
61
|
+
version: '0'
|
62
|
+
type: :runtime
|
63
|
+
prerelease: false
|
64
|
+
version_requirements: !ruby/object:Gem::Requirement
|
65
|
+
requirements:
|
66
|
+
- - ">="
|
67
|
+
- !ruby/object:Gem::Version
|
68
|
+
version: '0'
|
69
|
+
- !ruby/object:Gem::Dependency
|
70
|
+
name: ransack
|
71
|
+
requirement: !ruby/object:Gem::Requirement
|
72
|
+
requirements:
|
73
|
+
- - ">="
|
74
|
+
- !ruby/object:Gem::Version
|
75
|
+
version: '0'
|
76
|
+
type: :runtime
|
77
|
+
prerelease: false
|
78
|
+
version_requirements: !ruby/object:Gem::Requirement
|
79
|
+
requirements:
|
80
|
+
- - ">="
|
81
|
+
- !ruby/object:Gem::Version
|
82
|
+
version: '0'
|
83
|
+
- !ruby/object:Gem::Dependency
|
84
|
+
name: statesman
|
85
|
+
requirement: !ruby/object:Gem::Requirement
|
86
|
+
requirements:
|
87
|
+
- - ">="
|
88
|
+
- !ruby/object:Gem::Version
|
89
|
+
version: '0'
|
90
|
+
type: :runtime
|
91
|
+
prerelease: false
|
92
|
+
version_requirements: !ruby/object:Gem::Requirement
|
93
|
+
requirements:
|
94
|
+
- - ">="
|
95
|
+
- !ruby/object:Gem::Version
|
96
|
+
version: '0'
|
97
|
+
- !ruby/object:Gem::Dependency
|
98
|
+
name: email_validator
|
99
|
+
requirement: !ruby/object:Gem::Requirement
|
100
|
+
requirements:
|
101
|
+
- - ">="
|
102
|
+
- !ruby/object:Gem::Version
|
103
|
+
version: '0'
|
104
|
+
type: :runtime
|
105
|
+
prerelease: false
|
106
|
+
version_requirements: !ruby/object:Gem::Requirement
|
107
|
+
requirements:
|
108
|
+
- - ">="
|
109
|
+
- !ruby/object:Gem::Version
|
110
|
+
version: '0'
|
111
|
+
- !ruby/object:Gem::Dependency
|
112
|
+
name: delocalize
|
113
|
+
requirement: !ruby/object:Gem::Requirement
|
114
|
+
requirements:
|
115
|
+
- - ">="
|
116
|
+
- !ruby/object:Gem::Version
|
117
|
+
version: '0'
|
118
|
+
type: :runtime
|
119
|
+
prerelease: false
|
120
|
+
version_requirements: !ruby/object:Gem::Requirement
|
121
|
+
requirements:
|
122
|
+
- - ">="
|
123
|
+
- !ruby/object:Gem::Version
|
124
|
+
version: '0'
|
125
|
+
- !ruby/object:Gem::Dependency
|
126
|
+
name: bourbon
|
127
|
+
requirement: !ruby/object:Gem::Requirement
|
128
|
+
requirements:
|
129
|
+
- - ">="
|
130
|
+
- !ruby/object:Gem::Version
|
131
|
+
version: '0'
|
132
|
+
type: :runtime
|
133
|
+
prerelease: false
|
134
|
+
version_requirements: !ruby/object:Gem::Requirement
|
135
|
+
requirements:
|
136
|
+
- - ">="
|
137
|
+
- !ruby/object:Gem::Version
|
138
|
+
version: '0'
|
139
|
+
- !ruby/object:Gem::Dependency
|
140
|
+
name: prawn
|
141
|
+
requirement: !ruby/object:Gem::Requirement
|
142
|
+
requirements:
|
143
|
+
- - ">="
|
144
|
+
- !ruby/object:Gem::Version
|
145
|
+
version: '0'
|
146
|
+
type: :runtime
|
147
|
+
prerelease: false
|
148
|
+
version_requirements: !ruby/object:Gem::Requirement
|
149
|
+
requirements:
|
150
|
+
- - ">="
|
151
|
+
- !ruby/object:Gem::Version
|
152
|
+
version: '0'
|
153
|
+
- !ruby/object:Gem::Dependency
|
154
|
+
name: prawn-table
|
155
|
+
requirement: !ruby/object:Gem::Requirement
|
156
|
+
requirements:
|
157
|
+
- - ">="
|
158
|
+
- !ruby/object:Gem::Version
|
159
|
+
version: '0'
|
160
|
+
type: :runtime
|
161
|
+
prerelease: false
|
162
|
+
version_requirements: !ruby/object:Gem::Requirement
|
163
|
+
requirements:
|
164
|
+
- - ">="
|
165
|
+
- !ruby/object:Gem::Version
|
166
|
+
version: '0'
|
167
|
+
- !ruby/object:Gem::Dependency
|
168
|
+
name: ruby-measurement
|
169
|
+
requirement: !ruby/object:Gem::Requirement
|
170
|
+
requirements:
|
171
|
+
- - ">="
|
172
|
+
- !ruby/object:Gem::Version
|
173
|
+
version: '0'
|
174
|
+
type: :runtime
|
175
|
+
prerelease: false
|
176
|
+
version_requirements: !ruby/object:Gem::Requirement
|
177
|
+
requirements:
|
178
|
+
- - ">="
|
179
|
+
- !ruby/object:Gem::Version
|
180
|
+
version: '0'
|
181
|
+
- !ruby/object:Gem::Dependency
|
182
|
+
name: valvat
|
183
|
+
requirement: !ruby/object:Gem::Requirement
|
184
|
+
requirements:
|
185
|
+
- - ">="
|
186
|
+
- !ruby/object:Gem::Version
|
187
|
+
version: '0'
|
188
|
+
type: :runtime
|
189
|
+
prerelease: false
|
190
|
+
version_requirements: !ruby/object:Gem::Requirement
|
191
|
+
requirements:
|
192
|
+
- - ">="
|
193
|
+
- !ruby/object:Gem::Version
|
194
|
+
version: '0'
|
195
|
+
- !ruby/object:Gem::Dependency
|
196
|
+
name: rubyzip
|
197
|
+
requirement: !ruby/object:Gem::Requirement
|
198
|
+
requirements:
|
199
|
+
- - ">="
|
200
|
+
- !ruby/object:Gem::Version
|
201
|
+
version: '0'
|
202
|
+
type: :runtime
|
203
|
+
prerelease: false
|
204
|
+
version_requirements: !ruby/object:Gem::Requirement
|
205
|
+
requirements:
|
206
|
+
- - ">="
|
207
|
+
- !ruby/object:Gem::Version
|
208
|
+
version: '0'
|
209
|
+
- !ruby/object:Gem::Dependency
|
210
|
+
name: simple_xlsx_writer
|
211
|
+
requirement: !ruby/object:Gem::Requirement
|
212
|
+
requirements:
|
213
|
+
- - ">="
|
214
|
+
- !ruby/object:Gem::Version
|
215
|
+
version: '0'
|
216
|
+
type: :runtime
|
217
|
+
prerelease: false
|
218
|
+
version_requirements: !ruby/object:Gem::Requirement
|
219
|
+
requirements:
|
220
|
+
- - ">="
|
221
|
+
- !ruby/object:Gem::Version
|
222
|
+
version: '0'
|
223
|
+
- !ruby/object:Gem::Dependency
|
224
|
+
name: zip-zip
|
225
|
+
requirement: !ruby/object:Gem::Requirement
|
226
|
+
requirements:
|
227
|
+
- - ">="
|
228
|
+
- !ruby/object:Gem::Version
|
229
|
+
version: '0'
|
230
|
+
type: :runtime
|
231
|
+
prerelease: false
|
232
|
+
version_requirements: !ruby/object:Gem::Requirement
|
233
|
+
requirements:
|
234
|
+
- - ">="
|
235
|
+
- !ruby/object:Gem::Version
|
236
|
+
version: '0'
|
237
|
+
- !ruby/object:Gem::Dependency
|
238
|
+
name: factory_girl
|
239
|
+
requirement: !ruby/object:Gem::Requirement
|
240
|
+
requirements:
|
241
|
+
- - "~>"
|
242
|
+
- !ruby/object:Gem::Version
|
243
|
+
version: '4.0'
|
244
|
+
type: :development
|
245
|
+
prerelease: false
|
246
|
+
version_requirements: !ruby/object:Gem::Requirement
|
247
|
+
requirements:
|
248
|
+
- - "~>"
|
249
|
+
- !ruby/object:Gem::Version
|
250
|
+
version: '4.0'
|
251
|
+
- !ruby/object:Gem::Dependency
|
252
|
+
name: minitest-reporters
|
253
|
+
requirement: !ruby/object:Gem::Requirement
|
254
|
+
requirements:
|
255
|
+
- - ">="
|
256
|
+
- !ruby/object:Gem::Version
|
257
|
+
version: '0'
|
258
|
+
type: :development
|
259
|
+
prerelease: false
|
260
|
+
version_requirements: !ruby/object:Gem::Requirement
|
261
|
+
requirements:
|
262
|
+
- - ">="
|
263
|
+
- !ruby/object:Gem::Version
|
264
|
+
version: '0'
|
265
|
+
- !ruby/object:Gem::Dependency
|
266
|
+
name: guard
|
267
|
+
requirement: !ruby/object:Gem::Requirement
|
268
|
+
requirements:
|
269
|
+
- - ">="
|
270
|
+
- !ruby/object:Gem::Version
|
271
|
+
version: '0'
|
272
|
+
type: :development
|
273
|
+
prerelease: false
|
274
|
+
version_requirements: !ruby/object:Gem::Requirement
|
275
|
+
requirements:
|
276
|
+
- - ">="
|
277
|
+
- !ruby/object:Gem::Version
|
278
|
+
version: '0'
|
279
|
+
- !ruby/object:Gem::Dependency
|
280
|
+
name: guard-minitest
|
281
|
+
requirement: !ruby/object:Gem::Requirement
|
282
|
+
requirements:
|
283
|
+
- - ">="
|
284
|
+
- !ruby/object:Gem::Version
|
285
|
+
version: '0'
|
286
|
+
type: :development
|
287
|
+
prerelease: false
|
288
|
+
version_requirements: !ruby/object:Gem::Requirement
|
289
|
+
requirements:
|
290
|
+
- - ">="
|
291
|
+
- !ruby/object:Gem::Version
|
292
|
+
version: '0'
|
293
|
+
- !ruby/object:Gem::Dependency
|
294
|
+
name: capybara
|
295
|
+
requirement: !ruby/object:Gem::Requirement
|
296
|
+
requirements:
|
297
|
+
- - ">="
|
298
|
+
- !ruby/object:Gem::Version
|
299
|
+
version: '0'
|
300
|
+
type: :development
|
301
|
+
prerelease: false
|
302
|
+
version_requirements: !ruby/object:Gem::Requirement
|
303
|
+
requirements:
|
304
|
+
- - ">="
|
305
|
+
- !ruby/object:Gem::Version
|
306
|
+
version: '0'
|
307
|
+
- !ruby/object:Gem::Dependency
|
308
|
+
name: selenium-webdriver
|
309
|
+
requirement: !ruby/object:Gem::Requirement
|
310
|
+
requirements:
|
311
|
+
- - ">="
|
312
|
+
- !ruby/object:Gem::Version
|
313
|
+
version: '0'
|
314
|
+
type: :development
|
315
|
+
prerelease: false
|
316
|
+
version_requirements: !ruby/object:Gem::Requirement
|
317
|
+
requirements:
|
318
|
+
- - ">="
|
319
|
+
- !ruby/object:Gem::Version
|
320
|
+
version: '0'
|
321
|
+
- !ruby/object:Gem::Dependency
|
322
|
+
name: puma
|
323
|
+
requirement: !ruby/object:Gem::Requirement
|
324
|
+
requirements:
|
325
|
+
- - ">="
|
326
|
+
- !ruby/object:Gem::Version
|
327
|
+
version: '0'
|
328
|
+
type: :development
|
329
|
+
prerelease: false
|
330
|
+
version_requirements: !ruby/object:Gem::Requirement
|
331
|
+
requirements:
|
332
|
+
- - ">="
|
333
|
+
- !ruby/object:Gem::Version
|
334
|
+
version: '0'
|
335
|
+
description: Building webshops with Spina
|
336
|
+
email:
|
337
|
+
- mail@bramjetten.nl
|
338
|
+
executables: []
|
339
|
+
extensions: []
|
340
|
+
extra_rdoc_files: []
|
341
|
+
files:
|
342
|
+
- MIT-LICENSE
|
343
|
+
- README.md
|
344
|
+
- Rakefile
|
345
|
+
- app/assets/config/spina_shop_manifest.js
|
346
|
+
- app/assets/fonts/montserrat-bold.ttf
|
347
|
+
- app/assets/fonts/montserrat-italic.ttf
|
348
|
+
- app/assets/fonts/montserrat-medium.ttf
|
349
|
+
- app/assets/fonts/montserrat-regular.ttf
|
350
|
+
- app/assets/fonts/montserrat-semibold.ttf
|
351
|
+
- app/assets/images/spina/shop/delete-big-confirm.png
|
352
|
+
- app/assets/images/spina/shop/delete-big.png
|
353
|
+
- app/assets/javascripts/spina/shop/admin/app.infinitescroll.js.coffee
|
354
|
+
- app/assets/javascripts/spina/shop/admin/customers.coffee
|
355
|
+
- app/assets/javascripts/spina/shop/admin/orders.coffee
|
356
|
+
- app/assets/javascripts/spina/shop/admin/product_bundles.coffee
|
357
|
+
- app/assets/javascripts/spina/shop/admin/product_categories.coffee
|
358
|
+
- app/assets/javascripts/spina/shop/admin/products.coffee
|
359
|
+
- app/assets/javascripts/spina/shop/admin/shop.js
|
360
|
+
- app/assets/stylesheets/spina/shop/admin/_customers.sass
|
361
|
+
- app/assets/stylesheets/spina/shop/admin/_forms.sass
|
362
|
+
- app/assets/stylesheets/spina/shop/admin/_product_bundles.sass
|
363
|
+
- app/assets/stylesheets/spina/shop/admin/_status_dots.sass
|
364
|
+
- app/assets/stylesheets/spina/shop/admin/_tables.sass
|
365
|
+
- app/assets/stylesheets/spina/shop/admin/_tooltips.sass
|
366
|
+
- app/assets/stylesheets/spina/shop/admin/shop.css.sass
|
367
|
+
- app/controllers/spina/shop/admin/admin_controller.rb
|
368
|
+
- app/controllers/spina/shop/admin/customer_accounts_controller.rb
|
369
|
+
- app/controllers/spina/shop/admin/customers_controller.rb
|
370
|
+
- app/controllers/spina/shop/admin/discounts_controller.rb
|
371
|
+
- app/controllers/spina/shop/admin/gift_cards_controller.rb
|
372
|
+
- app/controllers/spina/shop/admin/invoices_controller.rb
|
373
|
+
- app/controllers/spina/shop/admin/order_items_controller.rb
|
374
|
+
- app/controllers/spina/shop/admin/orders/packing_slips_controller.rb
|
375
|
+
- app/controllers/spina/shop/admin/orders/shipping_labels_controller.rb
|
376
|
+
- app/controllers/spina/shop/admin/orders_controller.rb
|
377
|
+
- app/controllers/spina/shop/admin/product_reviews_controller.rb
|
378
|
+
- app/controllers/spina/shop/admin/products/product_bundles_controller.rb
|
379
|
+
- app/controllers/spina/shop/admin/products/stock_forecasts_controller.rb
|
380
|
+
- app/controllers/spina/shop/admin/products/stock_level_adjustments_controller.rb
|
381
|
+
- app/controllers/spina/shop/admin/products_controller.rb
|
382
|
+
- app/controllers/spina/shop/admin/reports_controller.rb
|
383
|
+
- app/controllers/spina/shop/admin/settings/product_categories_controller.rb
|
384
|
+
- app/controllers/spina/shop/admin/settings/product_category_properties_controller.rb
|
385
|
+
- app/controllers/spina/shop/admin/settings/sales_categories_controller.rb
|
386
|
+
- app/controllers/spina/shop/admin/settings/shop_controller.rb
|
387
|
+
- app/controllers/spina/shop/admin/settings/tax_groups_controller.rb
|
388
|
+
- app/controllers/spina/shop/admin/variants_controller.rb
|
389
|
+
- app/jobs/spina/shop/in_stock_reminder_job.rb
|
390
|
+
- app/jobs/spina/shop/invoice_report_job.rb
|
391
|
+
- app/jobs/spina/shop/payments_report_job.rb
|
392
|
+
- app/mailers/spina/shop/customer_account_mailer.rb
|
393
|
+
- app/mailers/spina/shop/export_mailer.rb
|
394
|
+
- app/mailers/spina/shop/in_stock_reminder_mailer.rb
|
395
|
+
- app/mailers/spina/shop/order_mailer.rb
|
396
|
+
- app/models/concerns/spina/shop/preferable.rb
|
397
|
+
- app/models/concerns/spina/shop/tax_rateable.rb
|
398
|
+
- app/models/spina/shop/address.rb
|
399
|
+
- app/models/spina/shop/application_record.rb
|
400
|
+
- app/models/spina/shop/bundled_product.rb
|
401
|
+
- app/models/spina/shop/campaign.rb
|
402
|
+
- app/models/spina/shop/collectable.rb
|
403
|
+
- app/models/spina/shop/country.rb
|
404
|
+
- app/models/spina/shop/customer.rb
|
405
|
+
- app/models/spina/shop/customer_account.rb
|
406
|
+
- app/models/spina/shop/customer_group.rb
|
407
|
+
- app/models/spina/shop/delivery_option.rb
|
408
|
+
- app/models/spina/shop/discount.rb
|
409
|
+
- app/models/spina/shop/discount_action.rb
|
410
|
+
- app/models/spina/shop/discount_rule.rb
|
411
|
+
- app/models/spina/shop/discounts/actions/percent_off.rb
|
412
|
+
- app/models/spina/shop/discounts/rules/all_orders.rb
|
413
|
+
- app/models/spina/shop/discounts/rules/collection.rb
|
414
|
+
- app/models/spina/shop/discounts/rules/order_total.rb
|
415
|
+
- app/models/spina/shop/discounts_order.rb
|
416
|
+
- app/models/spina/shop/favorite.rb
|
417
|
+
- app/models/spina/shop/gift_card.rb
|
418
|
+
- app/models/spina/shop/gift_cards_order.rb
|
419
|
+
- app/models/spina/shop/in_stock_reminder.rb
|
420
|
+
- app/models/spina/shop/invoice.rb
|
421
|
+
- app/models/spina/shop/invoice_line.rb
|
422
|
+
- app/models/spina/shop/number_sequence.rb
|
423
|
+
- app/models/spina/shop/order.rb
|
424
|
+
- app/models/spina/shop/order/billing.rb
|
425
|
+
- app/models/spina/shop/order/state_machine_transitions.rb
|
426
|
+
- app/models/spina/shop/order_attachment.rb
|
427
|
+
- app/models/spina/shop/order_item.rb
|
428
|
+
- app/models/spina/shop/order_transition.rb
|
429
|
+
- app/models/spina/shop/product.rb
|
430
|
+
- app/models/spina/shop/product_bundle.rb
|
431
|
+
- app/models/spina/shop/product_bundle_part.rb
|
432
|
+
- app/models/spina/shop/product_category.rb
|
433
|
+
- app/models/spina/shop/product_category_property.rb
|
434
|
+
- app/models/spina/shop/product_collection.rb
|
435
|
+
- app/models/spina/shop/product_image.rb
|
436
|
+
- app/models/spina/shop/product_item.rb
|
437
|
+
- app/models/spina/shop/product_part.rb
|
438
|
+
- app/models/spina/shop/product_relation.rb
|
439
|
+
- app/models/spina/shop/product_review.rb
|
440
|
+
- app/models/spina/shop/property_option.rb
|
441
|
+
- app/models/spina/shop/sales_category.rb
|
442
|
+
- app/models/spina/shop/sales_category_code.rb
|
443
|
+
- app/models/spina/shop/shop_review.rb
|
444
|
+
- app/models/spina/shop/stock_level_adjustment.rb
|
445
|
+
- app/models/spina/shop/tax_group.rb
|
446
|
+
- app/models/spina/shop/tax_rate.rb
|
447
|
+
- app/models/spina/shop/zone.rb
|
448
|
+
- app/pdfs/spina/shop/invoice_pdf.rb
|
449
|
+
- app/pdfs/spina/shop/packing_slip_pdf.rb
|
450
|
+
- app/presenters/spina/shop/invoice_presenter.rb
|
451
|
+
- app/services/spina/shop/allocate_stock.rb
|
452
|
+
- app/services/spina/shop/cache_order.rb
|
453
|
+
- app/services/spina/shop/change_stock_level.rb
|
454
|
+
- app/services/spina/shop/country_importer.rb
|
455
|
+
- app/services/spina/shop/customer_generator.rb
|
456
|
+
- app/services/spina/shop/deallocate_stock.rb
|
457
|
+
- app/services/spina/shop/invoice_generator.rb
|
458
|
+
- app/services/spina/shop/invoice_number_generator.rb
|
459
|
+
- app/services/spina/shop/invoices_pdfs_exporter.rb
|
460
|
+
- app/services/spina/shop/order_number_generator.rb
|
461
|
+
- app/services/spina/shop/payments_excel_exporter.rb
|
462
|
+
- app/services/spina/shop/store_address.rb
|
463
|
+
- app/state_machines/spina/shop/order_state_machine.rb
|
464
|
+
- app/uploaders/spina/shop/exports_uploader.rb
|
465
|
+
- app/views/layouts/spina/shop/admin/settings/shop.html.haml
|
466
|
+
- app/views/layouts/spina/shop/mail.html.erb
|
467
|
+
- app/views/spina/admin/hooks/shop/_head.html.haml
|
468
|
+
- app/views/spina/admin/hooks/shop/_primary_navigation.html.haml
|
469
|
+
- app/views/spina/admin/hooks/shop/_settings_secondary_navigation.html.haml
|
470
|
+
- app/views/spina/admin/page_partables/shop/product_bundle_parts/_form.html.haml
|
471
|
+
- app/views/spina/admin/page_partables/shop/product_parts/_form.html.haml
|
472
|
+
- app/views/spina/admin/structure_partables/shop/product_parts/_form.html.haml
|
473
|
+
- app/views/spina/shop/admin/customer_accounts/_form.html.haml
|
474
|
+
- app/views/spina/shop/admin/customer_accounts/edit.html.haml
|
475
|
+
- app/views/spina/shop/admin/customers/_address_fields.html.haml
|
476
|
+
- app/views/spina/shop/admin/customers/_customer.html.haml
|
477
|
+
- app/views/spina/shop/admin/customers/_form.html.haml
|
478
|
+
- app/views/spina/shop/admin/customers/edit.html.haml
|
479
|
+
- app/views/spina/shop/admin/customers/index.html.haml
|
480
|
+
- app/views/spina/shop/admin/customers/index.js.erb
|
481
|
+
- app/views/spina/shop/admin/customers/new.html.haml
|
482
|
+
- app/views/spina/shop/admin/customers/show.html.haml
|
483
|
+
- app/views/spina/shop/admin/discounts/_form.html.haml
|
484
|
+
- app/views/spina/shop/admin/discounts/edit.html.haml
|
485
|
+
- app/views/spina/shop/admin/discounts/fields/_all_orders.html.haml
|
486
|
+
- app/views/spina/shop/admin/discounts/fields/_discount_action_fields.html.haml
|
487
|
+
- app/views/spina/shop/admin/discounts/fields/_discount_rule_fields.html.haml
|
488
|
+
- app/views/spina/shop/admin/discounts/index.html.haml
|
489
|
+
- app/views/spina/shop/admin/discounts/new.html.haml
|
490
|
+
- app/views/spina/shop/admin/gift_cards/_form.html.haml
|
491
|
+
- app/views/spina/shop/admin/gift_cards/_gift_card.html.haml
|
492
|
+
- app/views/spina/shop/admin/gift_cards/index.html.haml
|
493
|
+
- app/views/spina/shop/admin/gift_cards/index.js.erb
|
494
|
+
- app/views/spina/shop/admin/gift_cards/new.html.haml
|
495
|
+
- app/views/spina/shop/admin/gift_cards/show.html.haml
|
496
|
+
- app/views/spina/shop/admin/order_items/_modal.html.haml
|
497
|
+
- app/views/spina/shop/admin/order_items/new.js.erb
|
498
|
+
- app/views/spina/shop/admin/orders/_form.html.haml
|
499
|
+
- app/views/spina/shop/admin/orders/_order.html.haml
|
500
|
+
- app/views/spina/shop/admin/orders/edit.html.haml
|
501
|
+
- app/views/spina/shop/admin/orders/index.html.haml
|
502
|
+
- app/views/spina/shop/admin/orders/index.js.erb
|
503
|
+
- app/views/spina/shop/admin/orders/new.html.haml
|
504
|
+
- app/views/spina/shop/admin/orders/show.html.haml
|
505
|
+
- app/views/spina/shop/admin/product_reviews/_product_review.html.haml
|
506
|
+
- app/views/spina/shop/admin/product_reviews/index.html.haml
|
507
|
+
- app/views/spina/shop/admin/product_reviews/index.js.erb
|
508
|
+
- app/views/spina/shop/admin/products/_form.html.haml
|
509
|
+
- app/views/spina/shop/admin/products/_new_product_modal.html.haml
|
510
|
+
- app/views/spina/shop/admin/products/_price_exception_fields.html.haml
|
511
|
+
- app/views/spina/shop/admin/products/_product.html.haml
|
512
|
+
- app/views/spina/shop/admin/products/edit.html.haml
|
513
|
+
- app/views/spina/shop/admin/products/index.html.haml
|
514
|
+
- app/views/spina/shop/admin/products/index.js.erb
|
515
|
+
- app/views/spina/shop/admin/products/new.html.haml
|
516
|
+
- app/views/spina/shop/admin/products/new_by_category.js.erb
|
517
|
+
- app/views/spina/shop/admin/products/product_bundles/_bundled_products_fields.html.haml
|
518
|
+
- app/views/spina/shop/admin/products/product_bundles/_form.html.haml
|
519
|
+
- app/views/spina/shop/admin/products/product_bundles/edit.html.haml
|
520
|
+
- app/views/spina/shop/admin/products/product_bundles/index.html.haml
|
521
|
+
- app/views/spina/shop/admin/products/product_bundles/new.html.haml
|
522
|
+
- app/views/spina/shop/admin/products/properties/_property_fields.html.haml
|
523
|
+
- app/views/spina/shop/admin/products/stock_forecasts/_product.html.haml
|
524
|
+
- app/views/spina/shop/admin/products/stock_forecasts/show.html.haml
|
525
|
+
- app/views/spina/shop/admin/products/stock_forecasts/show.js.erb
|
526
|
+
- app/views/spina/shop/admin/products/stock_level_adjustments/_form.html.haml
|
527
|
+
- app/views/spina/shop/admin/products/stock_level_adjustments/_history.html.haml
|
528
|
+
- app/views/spina/shop/admin/products/stock_level_adjustments/index.js.erb
|
529
|
+
- app/views/spina/shop/admin/products/stock_level_adjustments/new.js.erb
|
530
|
+
- app/views/spina/shop/admin/reports/index.html.haml
|
531
|
+
- app/views/spina/shop/admin/settings/product_categories/_form.html.haml
|
532
|
+
- app/views/spina/shop/admin/settings/product_categories/_product_category.html.haml
|
533
|
+
- app/views/spina/shop/admin/settings/product_categories/_property_fields.html.haml
|
534
|
+
- app/views/spina/shop/admin/settings/product_categories/edit.html.haml
|
535
|
+
- app/views/spina/shop/admin/settings/product_categories/index.html.haml
|
536
|
+
- app/views/spina/shop/admin/settings/product_categories/show.html.haml
|
537
|
+
- app/views/spina/shop/admin/settings/product_category_properties/_property_options_fields.html.haml
|
538
|
+
- app/views/spina/shop/admin/settings/product_category_properties/edit_options.html.haml
|
539
|
+
- app/views/spina/shop/admin/settings/sales_categories/_sales_category.html.haml
|
540
|
+
- app/views/spina/shop/admin/settings/sales_categories/index.html.haml
|
541
|
+
- app/views/spina/shop/admin/settings/tax_groups/_form.html.haml
|
542
|
+
- app/views/spina/shop/admin/settings/tax_groups/_tax_group.html.haml
|
543
|
+
- app/views/spina/shop/admin/settings/tax_groups/index.html.haml
|
544
|
+
- app/views/spina/shop/admin/settings/tax_groups/new.js.erb
|
545
|
+
- app/views/spina/shop/admin/shared/_locale_switcher.html.haml
|
546
|
+
- app/views/spina/shop/customer_account_mailer/forgot_password.html.erb
|
547
|
+
- app/views/spina/shop/customer_account_mailer/forgot_password.txt.erb
|
548
|
+
- app/views/spina/shop/export_mailer/exported.html.erb
|
549
|
+
- app/views/spina/shop/in_stock_reminder_mailer/reminder.html.erb
|
550
|
+
- app/views/spina/shop/in_stock_reminder_mailer/reminder.txt.erb
|
551
|
+
- app/views/spina/shop/order_mailer/confirmation.html.erb
|
552
|
+
- app/views/spina/shop/order_mailer/confirmation.txt.erb
|
553
|
+
- app/views/spina/shop/order_mailer/shipped.html.erb
|
554
|
+
- app/views/spina/shop/order_mailer/shipped.txt.erb
|
555
|
+
- config/initializers/kaminari_monkey_patch.rb
|
556
|
+
- config/locales/en.yml
|
557
|
+
- config/locales/nl.yml
|
558
|
+
- config/routes.rb
|
559
|
+
- db/countries.txt
|
560
|
+
- db/migrate/10_create_spina_shop_products_without_items.rb
|
561
|
+
- db/migrate/1_create_spina_shop_tables.rb
|
562
|
+
- db/migrate/20170701135207_create_spina_shop_bundled_products.rb
|
563
|
+
- db/migrate/20170717125930_add_stock_enabled_to_spina_shop_products.rb
|
564
|
+
- db/migrate/20170718084146_add_editable_sku_to_spina_shop_products.rb
|
565
|
+
- db/migrate/20170718084626_add_deletable_to_spina_shop_products.rb
|
566
|
+
- db/migrate/20170719082531_rename_column_order_picked_at_in_spina_shop_orders.rb
|
567
|
+
- db/migrate/20170719112920_create_spina_shop_order_attachments.rb
|
568
|
+
- db/migrate/20170719184125_add_price_exceptions_to_spina_shop_products.rb
|
569
|
+
- db/migrate/20170720133304_add_vat_id_to_spina_shop_customers.rb
|
570
|
+
- db/migrate/20170731082027_add_price_includes_tax_to_spina_shop_products.rb
|
571
|
+
- db/migrate/20170731132620_add_reverse_charge_vat_to_spina_shop_tax_rates.rb
|
572
|
+
- db/migrate/20170731150630_add_vat_id_to_spina_shop_invoices.rb
|
573
|
+
- db/migrate/20170801093935_add_price_includes_tax_to_spina_shop_delivery_options.rb
|
574
|
+
- db/migrate/20170814092924_add_business_to_spina_shop_orders.rb
|
575
|
+
- db/migrate/20170815080839_rename_vat_reverse_charge_column_on_tax_rates.rb
|
576
|
+
- db/migrate/20170815081018_add_business_to_spina_shop_tax_rates.rb
|
577
|
+
- db/migrate/20170817075706_add_archived_to_spina_shop_products.rb
|
578
|
+
- db/migrate/20170824175231_add_metadata_to_photos.rb
|
579
|
+
- db/migrate/20170829085402_add_business_to_spina_shop_sales_category_codes.rb
|
580
|
+
- db/migrate/20170911121034_add_trend_to_spina_shop_products.rb
|
581
|
+
- db/migrate/20171106122225_add_editable_fields_to_spina_shop_product_category_properties.rb
|
582
|
+
- db/migrate/20171106122537_create_property_options.rb
|
583
|
+
- db/migrate/20171118110256_add_promotional_price_to_spina_shop_products.rb
|
584
|
+
- db/migrate/2_create_spina_shop_tax_rates.rb
|
585
|
+
- db/migrate/3_create_spina_shop_zones.rb
|
586
|
+
- db/migrate/4_add_tax_rateable_to_spina_shop_tax_rates.rb
|
587
|
+
- db/migrate/5_add_type_to_spina_shop_zones.rb
|
588
|
+
- db/migrate/6_add_code_to_spina_shop_zones.rb
|
589
|
+
- db/migrate/7_create_spina_shop_product_collections.rb
|
590
|
+
- db/migrate/8_create_spina_shop_sales_category_codes.rb
|
591
|
+
- db/migrate/9_create_spina_shop_customer_groups.rb
|
592
|
+
- lib/generators/spina/shop/install_generator.rb
|
593
|
+
- lib/spina/shop.rb
|
594
|
+
- lib/spina/shop/admin_helpers.rb
|
595
|
+
- lib/spina/shop/engine.rb
|
596
|
+
- lib/spina/shop/errors/empty_order.rb
|
597
|
+
- lib/spina/shop/errors/order_already_received.rb
|
598
|
+
- lib/spina/shop/railtie.rb
|
599
|
+
- lib/spina/shop/simple_linear_regression.rb
|
600
|
+
- lib/spina/shop/version.rb
|
601
|
+
- lib/spina/shop/view_helpers.rb
|
602
|
+
- lib/tasks/spina/shop.rake
|
603
|
+
homepage: https://www.spinacms.com
|
604
|
+
licenses:
|
605
|
+
- MIT
|
606
|
+
metadata: {}
|
607
|
+
post_install_message:
|
608
|
+
rdoc_options: []
|
609
|
+
require_paths:
|
610
|
+
- lib
|
611
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
612
|
+
requirements:
|
613
|
+
- - ">="
|
614
|
+
- !ruby/object:Gem::Version
|
615
|
+
version: '0'
|
616
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
617
|
+
requirements:
|
618
|
+
- - ">="
|
619
|
+
- !ruby/object:Gem::Version
|
620
|
+
version: '0'
|
621
|
+
requirements: []
|
622
|
+
rubyforge_project:
|
623
|
+
rubygems_version: 2.6.13
|
624
|
+
signing_key:
|
625
|
+
specification_version: 4
|
626
|
+
summary: Spina eCommerce
|
627
|
+
test_files: []
|