caboose-store 0.0.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +15 -0
- data/MIT-LICENSE +20 -0
- data/README.md +113 -0
- data/Rakefile +38 -0
- data/app/assets/images/caboose_store/caboose_logo_small.png +0 -0
- data/app/assets/images/caboose_store/caboose_nav.png +0 -0
- data/app/assets/images/caboose_store/caboose_nav_black.png +0 -0
- data/app/assets/images/caboose_store/default_user_pic.png +0 -0
- data/app/assets/images/caboose_store/loading_green.gif +0 -0
- data/app/assets/images/caboose_store/loading_small_white_on_black.gif +0 -0
- data/app/assets/images/caboose_store/loading_white_on_black.gif +0 -0
- data/app/assets/javascripts/caboose_store/admin.js +20 -0
- data/app/assets/javascripts/caboose_store/application.js +17 -0
- data/app/assets/javascripts/caboose_store/modal.js +52 -0
- data/app/assets/javascripts/caboose_store/modal_integration.js +25 -0
- data/app/assets/javascripts/caboose_store/model.form.page.js +30 -0
- data/app/assets/javascripts/caboose_store/model.form.user.js +36 -0
- data/app/assets/javascripts/caboose_store/shortcut.js +11 -0
- data/app/assets/javascripts/caboose_store/station.js +60 -0
- data/app/assets/stylesheets/caboose_store/admin.css +100 -0
- data/app/assets/stylesheets/caboose_store/application.css +19 -0
- data/app/assets/stylesheets/caboose_store/bound_input.css +1 -0
- data/app/assets/stylesheets/caboose_store/caboose.css +4 -0
- data/app/assets/stylesheets/caboose_store/fonts/big_noodle_titling.ttf +0 -0
- data/app/assets/stylesheets/caboose_store/fonts/big_noodle_titling_oblique.ttf +0 -0
- data/app/assets/stylesheets/caboose_store/fonts.css +5 -0
- data/app/assets/stylesheets/caboose_store/login.css +23 -0
- data/app/assets/stylesheets/caboose_store/modal.css +240 -0
- data/app/assets/stylesheets/caboose_store/page_bar_generator.css +34 -0
- data/app/assets/stylesheets/caboose_store/register.css +25 -0
- data/app/assets/stylesheets/caboose_store/station_modal.css +104 -0
- data/app/assets/stylesheets/caboose_store/station_sidebar.css +232 -0
- data/app/assets/stylesheets/caboose_store/tinymce.css +25 -0
- data/app/controllers/caboose_store/application_controller.rb +18 -0
- data/app/controllers/caboose_store/cart_controller.rb +59 -0
- data/app/controllers/caboose_store/categories_controller.rb +128 -0
- data/app/controllers/caboose_store/checkout_controller.rb +164 -0
- data/app/controllers/caboose_store/orders_controller.rb +264 -0
- data/app/controllers/caboose_store/product_images_controller.rb +38 -0
- data/app/controllers/caboose_store/products_controller.rb +387 -0
- data/app/controllers/caboose_store/reviews_controller.rb +15 -0
- data/app/controllers/caboose_store/variants_controller.rb +152 -0
- data/app/helpers/caboose_store/application_helper.rb +46 -0
- data/app/helpers/caboose_store/cart_helper.rb +28 -0
- data/app/helpers/caboose_store/categories_helper.rb +38 -0
- data/app/helpers/caboose_store/products_helper.rb +87 -0
- data/app/mailers/caboose_store/orders_mailer.rb +36 -0
- data/app/models/caboose_store/address.rb +30 -0
- data/app/models/caboose_store/caboose_store_plugin.rb +22 -0
- data/app/models/caboose_store/category.rb +63 -0
- data/app/models/caboose_store/category_membership.rb +11 -0
- data/app/models/caboose_store/discount.rb +14 -0
- data/app/models/caboose_store/message.rb +22 -0
- data/app/models/caboose_store/order.rb +97 -0
- data/app/models/caboose_store/order_discount.rb +11 -0
- data/app/models/caboose_store/order_line_item.rb +13 -0
- data/app/models/caboose_store/order_pdf.rb +82 -0
- data/app/models/caboose_store/product.rb +78 -0
- data/app/models/caboose_store/product_image.rb +25 -0
- data/app/models/caboose_store/product_image_variant.rb +10 -0
- data/app/models/caboose_store/review.rb +13 -0
- data/app/models/caboose_store/schema.rb +146 -0
- data/app/models/caboose_store/shipping_calculator.rb +79 -0
- data/app/models/caboose_store/states.rb +60 -0
- data/app/models/caboose_store/tax_calculator.rb +26 -0
- data/app/models/caboose_store/tax_line.rb +12 -0
- data/app/models/caboose_store/variant.rb +42 -0
- data/app/models/caboose_store/vendor.rb +7 -0
- data/app/views/caboose_store/application/_category_thumb.html.erb +6 -0
- data/app/views/caboose_store/application/_product_thumb.html.erb +13 -0
- data/app/views/caboose_store/cart/index.html.erb +19 -0
- data/app/views/caboose_store/categories/admin_edit.html.erb +82 -0
- data/app/views/caboose_store/categories/admin_index.html.erb +13 -0
- data/app/views/caboose_store/categories/admin_new.html.erb +45 -0
- data/app/views/caboose_store/checkout/billing.html.erb +168 -0
- data/app/views/caboose_store/checkout/discount.html.erb +166 -0
- data/app/views/caboose_store/checkout/index.html.erb +113 -0
- data/app/views/caboose_store/checkout/quantity_box.html.erb +39 -0
- data/app/views/caboose_store/checkout/shipping.html.erb +90 -0
- data/app/views/caboose_store/checkout/thank_you.html.erb +36 -0
- data/app/views/caboose_store/layouts/_banner.html.erb +10 -0
- data/app/views/caboose_store/layouts/_banner2.html.erb +10 -0
- data/app/views/caboose_store/layouts/_footer.html.erb +55 -0
- data/app/views/caboose_store/layouts/_header.html.erb +69 -0
- data/app/views/caboose_store/layouts/_sidebar.html.erb +27 -0
- data/app/views/caboose_store/layouts/application.html.erb +33 -0
- data/app/views/caboose_store/layouts/authorize_net.erb +18 -0
- data/app/views/caboose_store/layouts/layout_about.html.erb +42 -0
- data/app/views/caboose_store/layouts/layout_blog.html.erb +159 -0
- data/app/views/caboose_store/layouts/layout_confirm.html.erb +85 -0
- data/app/views/caboose_store/layouts/layout_contact.html.erb +38 -0
- data/app/views/caboose_store/layouts/layout_default.html.erb +10 -0
- data/app/views/caboose_store/layouts/layout_detail.html.erb +114 -0
- data/app/views/caboose_store/layouts/layout_order.html.erb +77 -0
- data/app/views/caboose_store/layouts/layout_pricing.html.erb +182 -0
- data/app/views/caboose_store/layouts/layout_product.html.erb +110 -0
- data/app/views/caboose_store/layouts/layout_profile.html.erb +55 -0
- data/app/views/caboose_store/layouts/layout_single.html.erb +3 -0
- data/app/views/caboose_store/layouts/layout_testimonial.html.erb +110 -0
- data/app/views/caboose_store/layouts/layout_testing.html.erb +4 -0
- data/app/views/caboose_store/orders/_admin_footer.html.erb +2 -0
- data/app/views/caboose_store/orders/_admin_header.html.erb +31 -0
- data/app/views/caboose_store/orders/_quickbooks_order.html.erb +0 -0
- data/app/views/caboose_store/orders/admin_delete_form.html.erb +21 -0
- data/app/views/caboose_store/orders/admin_edit.html.erb +173 -0
- data/app/views/caboose_store/orders/admin_index.html.erb +79 -0
- data/app/views/caboose_store/orders/admin_new.html.erb +42 -0
- data/app/views/caboose_store/orders/admin_print.html.erb +72 -0
- data/app/views/caboose_store/orders_mailer/customer_new_order.html.erb +47 -0
- data/app/views/caboose_store/orders_mailer/customer_status_updated.html.erb +49 -0
- data/app/views/caboose_store/orders_mailer/fulfillment_new_order.html.erb +43 -0
- data/app/views/caboose_store/orders_mailer/shipping_order_ready.html.erb +46 -0
- data/app/views/caboose_store/products/_admin_footer.html.erb +2 -0
- data/app/views/caboose_store/products/_admin_header.html.erb +31 -0
- data/app/views/caboose_store/products/admin_delete_form.html.erb +21 -0
- data/app/views/caboose_store/products/admin_edit_categories.html.erb +73 -0
- data/app/views/caboose_store/products/admin_edit_category_images.html.erb +233 -0
- data/app/views/caboose_store/products/admin_edit_description.html.erb +41 -0
- data/app/views/caboose_store/products/admin_edit_general.html.erb +47 -0
- data/app/views/caboose_store/products/admin_edit_images.html.erb +234 -0
- data/app/views/caboose_store/products/admin_edit_options.html.erb +51 -0
- data/app/views/caboose_store/products/admin_edit_seo.html.erb +37 -0
- data/app/views/caboose_store/products/admin_edit_variant_columns.html.erb +75 -0
- data/app/views/caboose_store/products/admin_edit_variants.html.erb +101 -0
- data/app/views/caboose_store/products/admin_edit_variants_single.html.erb +68 -0
- data/app/views/caboose_store/products/admin_index.html.erb +47 -0
- data/app/views/caboose_store/products/admin_new.html.erb +41 -0
- data/app/views/caboose_store/products/details.html.erb +437 -0
- data/app/views/caboose_store/products/index.html.erb +46 -0
- data/app/views/caboose_store/products/not_available.html.erb +35 -0
- data/app/views/caboose_store/variants/admin_edit.html.erb +80 -0
- data/app/views/caboose_store/variants/admin_new.html.erb +59 -0
- data/config/routes.rb +95 -0
- data/lib/caboose-store/caboose_store_helper.rb +35 -0
- data/lib/caboose-store/engine.rb +8 -0
- data/lib/caboose-store/version.rb +3 -0
- data/lib/caboose-store.rb +9 -0
- data/lib/tasks/caboose-store.rake +17 -0
- data/test/caboose_test.rb +7 -0
- data/test/dummy/README.rdoc +261 -0
- data/test/dummy/Rakefile +7 -0
- data/test/dummy/app/assets/javascripts/application.js +15 -0
- data/test/dummy/app/assets/stylesheets/application.css +13 -0
- data/test/dummy/app/controllers/application_controller.rb +3 -0
- data/test/dummy/app/helpers/application_helper.rb +2 -0
- data/test/dummy/app/views/layouts/application.html.erb +14 -0
- data/test/dummy/config/application.rb +59 -0
- data/test/dummy/config/boot.rb +10 -0
- data/test/dummy/config/database.yml +25 -0
- data/test/dummy/config/environment.rb +5 -0
- data/test/dummy/config/environments/development.rb +37 -0
- data/test/dummy/config/environments/production.rb +67 -0
- data/test/dummy/config/environments/test.rb +37 -0
- data/test/dummy/config/initializers/backtrace_silencers.rb +7 -0
- data/test/dummy/config/initializers/inflections.rb +15 -0
- data/test/dummy/config/initializers/mime_types.rb +5 -0
- data/test/dummy/config/initializers/secret_token.rb +7 -0
- data/test/dummy/config/initializers/session_store.rb +8 -0
- data/test/dummy/config/initializers/wrap_parameters.rb +14 -0
- data/test/dummy/config/locales/en.yml +5 -0
- data/test/dummy/config/routes.rb +4 -0
- data/test/dummy/config.ru +4 -0
- data/test/dummy/db/test.sqlite3 +0 -0
- data/test/dummy/log/test.log +25 -0
- data/test/dummy/public/404.html +26 -0
- data/test/dummy/public/422.html +26 -0
- data/test/dummy/public/500.html +25 -0
- data/test/dummy/public/favicon.ico +0 -0
- data/test/dummy/script/rails +6 -0
- data/test/integration/navigation_test.rb +10 -0
- data/test/test_helper.rb +15 -0
- metadata +260 -0
@@ -0,0 +1,67 @@
|
|
1
|
+
Dummy::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
|
+
# Full error reports are disabled and caching is turned on
|
8
|
+
config.consider_all_requests_local = false
|
9
|
+
config.action_controller.perform_caching = true
|
10
|
+
|
11
|
+
# Disable Rails's static asset server (Apache or nginx will already do this)
|
12
|
+
config.serve_static_assets = false
|
13
|
+
|
14
|
+
# Compress JavaScripts and CSS
|
15
|
+
config.assets.compress = true
|
16
|
+
|
17
|
+
# Don't fallback to assets pipeline if a precompiled asset is missed
|
18
|
+
config.assets.compile = false
|
19
|
+
|
20
|
+
# Generate digests for assets URLs
|
21
|
+
config.assets.digest = true
|
22
|
+
|
23
|
+
# Defaults to nil and saved in location specified by config.assets.prefix
|
24
|
+
# config.assets.manifest = YOUR_PATH
|
25
|
+
|
26
|
+
# Specifies the header that your server uses for sending files
|
27
|
+
# config.action_dispatch.x_sendfile_header = "X-Sendfile" # for apache
|
28
|
+
# config.action_dispatch.x_sendfile_header = 'X-Accel-Redirect' # for nginx
|
29
|
+
|
30
|
+
# Force all access to the app over SSL, use Strict-Transport-Security, and use secure cookies.
|
31
|
+
# config.force_ssl = true
|
32
|
+
|
33
|
+
# See everything in the log (default is :info)
|
34
|
+
# config.log_level = :debug
|
35
|
+
|
36
|
+
# Prepend all log lines with the following tags
|
37
|
+
# config.log_tags = [ :subdomain, :uuid ]
|
38
|
+
|
39
|
+
# Use a different logger for distributed setups
|
40
|
+
# config.logger = ActiveSupport::TaggedLogging.new(SyslogLogger.new)
|
41
|
+
|
42
|
+
# Use a different cache store in production
|
43
|
+
# config.cache_store = :mem_cache_store
|
44
|
+
|
45
|
+
# Enable serving of images, stylesheets, and JavaScripts from an asset server
|
46
|
+
# config.action_controller.asset_host = "http://assets.example.com"
|
47
|
+
|
48
|
+
# Precompile additional assets (application.js, application.css, and all non-JS/CSS are already added)
|
49
|
+
# config.assets.precompile += %w( search.js )
|
50
|
+
|
51
|
+
# Disable delivery errors, bad email addresses will be ignored
|
52
|
+
# config.action_mailer.raise_delivery_errors = false
|
53
|
+
|
54
|
+
# Enable threaded mode
|
55
|
+
# config.threadsafe!
|
56
|
+
|
57
|
+
# Enable locale fallbacks for I18n (makes lookups for any locale fall back to
|
58
|
+
# the I18n.default_locale when a translation can not be found)
|
59
|
+
config.i18n.fallbacks = true
|
60
|
+
|
61
|
+
# Send deprecation notices to registered listeners
|
62
|
+
config.active_support.deprecation = :notify
|
63
|
+
|
64
|
+
# Log the query plan for queries taking more than this (works
|
65
|
+
# with SQLite, MySQL, and PostgreSQL)
|
66
|
+
# config.active_record.auto_explain_threshold_in_seconds = 0.5
|
67
|
+
end
|
@@ -0,0 +1,37 @@
|
|
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_assets = true
|
12
|
+
config.static_cache_control = "public, max-age=3600"
|
13
|
+
|
14
|
+
# Log error messages when you accidentally call methods on nil
|
15
|
+
config.whiny_nils = true
|
16
|
+
|
17
|
+
# Show full error reports and disable caching
|
18
|
+
config.consider_all_requests_local = true
|
19
|
+
config.action_controller.perform_caching = false
|
20
|
+
|
21
|
+
# Raise exceptions instead of rendering exception templates
|
22
|
+
config.action_dispatch.show_exceptions = false
|
23
|
+
|
24
|
+
# Disable request forgery protection in test environment
|
25
|
+
config.action_controller.allow_forgery_protection = false
|
26
|
+
|
27
|
+
# Tell Action Mailer not to deliver emails to the real world.
|
28
|
+
# The :test delivery method accumulates sent emails in the
|
29
|
+
# ActionMailer::Base.deliveries array.
|
30
|
+
config.action_mailer.delivery_method = :test
|
31
|
+
|
32
|
+
# Raise exception on mass assignment protection for Active Record models
|
33
|
+
config.active_record.mass_assignment_sanitizer = :strict
|
34
|
+
|
35
|
+
# Print deprecation notices to the stderr
|
36
|
+
config.active_support.deprecation = :stderr
|
37
|
+
end
|
@@ -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,15 @@
|
|
1
|
+
# Be sure to restart your server when you modify this file.
|
2
|
+
|
3
|
+
# Add new inflection rules using the following format
|
4
|
+
# (all these examples are active by default):
|
5
|
+
# ActiveSupport::Inflector.inflections do |inflect|
|
6
|
+
# inflect.plural /^(ox)$/i, '\1en'
|
7
|
+
# inflect.singular /^(ox)en/i, '\1'
|
8
|
+
# inflect.irregular 'person', 'people'
|
9
|
+
# inflect.uncountable %w( fish sheep )
|
10
|
+
# end
|
11
|
+
#
|
12
|
+
# These inflection rules are supported but not enabled by default:
|
13
|
+
# ActiveSupport::Inflector.inflections do |inflect|
|
14
|
+
# inflect.acronym 'RESTful'
|
15
|
+
# end
|
@@ -0,0 +1,7 @@
|
|
1
|
+
# Be sure to restart your server when you modify this file.
|
2
|
+
|
3
|
+
# Your secret key for verifying the integrity of signed cookies.
|
4
|
+
# If you change this key, all old signed cookies will become invalid!
|
5
|
+
# Make sure the secret is at least 30 characters and all random,
|
6
|
+
# no regular words or you'll be exposed to dictionary attacks.
|
7
|
+
Dummy::Application.config.secret_token = '80d8133eb1abe7ca94719bcbff9222b7043a4d156aeccf6a66be20bd2cab6491265a2efc566e26642e4b8e1a6da418ef15b2673d48d32db2c253ecbb1875f375'
|
@@ -0,0 +1,8 @@
|
|
1
|
+
# Be sure to restart your server when you modify this file.
|
2
|
+
|
3
|
+
Dummy::Application.config.session_store :cookie_store, key: '_dummy_session'
|
4
|
+
|
5
|
+
# Use the database for sessions instead of the cookie-based default,
|
6
|
+
# which shouldn't be used to store highly confidential information
|
7
|
+
# (create the session table with "rails generate session_migration")
|
8
|
+
# Dummy::Application.config.session_store :active_record_store
|
@@ -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]
|
9
|
+
end
|
10
|
+
|
11
|
+
# Disable root element in JSON by default.
|
12
|
+
ActiveSupport.on_load(:active_record) do
|
13
|
+
self.include_root_in_json = false
|
14
|
+
end
|
File without changes
|
@@ -0,0 +1,25 @@
|
|
1
|
+
Connecting to database specified by database.yml
|
2
|
+
Connecting to database specified by database.yml
|
3
|
+
Connecting to database specified by database.yml
|
4
|
+
[1m[36m (4.2ms)[0m [1mbegin transaction[0m
|
5
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
6
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
7
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
8
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
9
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
10
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
11
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
12
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
13
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
14
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
15
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
16
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
17
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
18
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
19
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
20
|
+
Connecting to database specified by database.yml
|
21
|
+
[1m[36m (0.3ms)[0m [1mbegin transaction[0m
|
22
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
23
|
+
Connecting to database specified by database.yml
|
24
|
+
[1m[36m (0.3ms)[0m [1mbegin transaction[0m
|
25
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
@@ -0,0 +1,26 @@
|
|
1
|
+
<!DOCTYPE html>
|
2
|
+
<html>
|
3
|
+
<head>
|
4
|
+
<title>The page you were looking for doesn't exist (404)</title>
|
5
|
+
<style type="text/css">
|
6
|
+
body { background-color: #fff; color: #666; text-align: center; font-family: arial, sans-serif; }
|
7
|
+
div.dialog {
|
8
|
+
width: 25em;
|
9
|
+
padding: 0 4em;
|
10
|
+
margin: 4em auto 0 auto;
|
11
|
+
border: 1px solid #ccc;
|
12
|
+
border-right-color: #999;
|
13
|
+
border-bottom-color: #999;
|
14
|
+
}
|
15
|
+
h1 { font-size: 100%; color: #f00; line-height: 1.5em; }
|
16
|
+
</style>
|
17
|
+
</head>
|
18
|
+
|
19
|
+
<body>
|
20
|
+
<!-- This file lives in public/404.html -->
|
21
|
+
<div class="dialog">
|
22
|
+
<h1>The page you were looking for doesn't exist.</h1>
|
23
|
+
<p>You may have mistyped the address or the page may have moved.</p>
|
24
|
+
</div>
|
25
|
+
</body>
|
26
|
+
</html>
|
@@ -0,0 +1,26 @@
|
|
1
|
+
<!DOCTYPE html>
|
2
|
+
<html>
|
3
|
+
<head>
|
4
|
+
<title>The change you wanted was rejected (422)</title>
|
5
|
+
<style type="text/css">
|
6
|
+
body { background-color: #fff; color: #666; text-align: center; font-family: arial, sans-serif; }
|
7
|
+
div.dialog {
|
8
|
+
width: 25em;
|
9
|
+
padding: 0 4em;
|
10
|
+
margin: 4em auto 0 auto;
|
11
|
+
border: 1px solid #ccc;
|
12
|
+
border-right-color: #999;
|
13
|
+
border-bottom-color: #999;
|
14
|
+
}
|
15
|
+
h1 { font-size: 100%; color: #f00; line-height: 1.5em; }
|
16
|
+
</style>
|
17
|
+
</head>
|
18
|
+
|
19
|
+
<body>
|
20
|
+
<!-- This file lives in public/422.html -->
|
21
|
+
<div class="dialog">
|
22
|
+
<h1>The change you wanted was rejected.</h1>
|
23
|
+
<p>Maybe you tried to change something you didn't have access to.</p>
|
24
|
+
</div>
|
25
|
+
</body>
|
26
|
+
</html>
|
@@ -0,0 +1,25 @@
|
|
1
|
+
<!DOCTYPE html>
|
2
|
+
<html>
|
3
|
+
<head>
|
4
|
+
<title>We're sorry, but something went wrong (500)</title>
|
5
|
+
<style type="text/css">
|
6
|
+
body { background-color: #fff; color: #666; text-align: center; font-family: arial, sans-serif; }
|
7
|
+
div.dialog {
|
8
|
+
width: 25em;
|
9
|
+
padding: 0 4em;
|
10
|
+
margin: 4em auto 0 auto;
|
11
|
+
border: 1px solid #ccc;
|
12
|
+
border-right-color: #999;
|
13
|
+
border-bottom-color: #999;
|
14
|
+
}
|
15
|
+
h1 { font-size: 100%; color: #f00; line-height: 1.5em; }
|
16
|
+
</style>
|
17
|
+
</head>
|
18
|
+
|
19
|
+
<body>
|
20
|
+
<!-- This file lives in public/500.html -->
|
21
|
+
<div class="dialog">
|
22
|
+
<h1>We're sorry, but something went wrong.</h1>
|
23
|
+
</div>
|
24
|
+
</body>
|
25
|
+
</html>
|
File without changes
|
@@ -0,0 +1,6 @@
|
|
1
|
+
#!/usr/bin/env ruby
|
2
|
+
# This command will automatically be run when you run "rails" with Rails 3 gems installed from the root of your application.
|
3
|
+
|
4
|
+
APP_PATH = File.expand_path('../../config/application', __FILE__)
|
5
|
+
require File.expand_path('../../config/boot', __FILE__)
|
6
|
+
require 'rails/commands'
|
data/test/test_helper.rb
ADDED
@@ -0,0 +1,15 @@
|
|
1
|
+
# Configure Rails Environment
|
2
|
+
ENV["RAILS_ENV"] = "test"
|
3
|
+
|
4
|
+
require File.expand_path("../dummy/config/environment.rb", __FILE__)
|
5
|
+
require "rails/test_help"
|
6
|
+
|
7
|
+
Rails.backtrace_cleaner.remove_silencers!
|
8
|
+
|
9
|
+
# Load support files
|
10
|
+
Dir["#{File.dirname(__FILE__)}/support/**/*.rb"].each { |f| require f }
|
11
|
+
|
12
|
+
# Load fixtures from the engine
|
13
|
+
if ActiveSupport::TestCase.method_defined?(:fixture_path=)
|
14
|
+
ActiveSupport::TestCase.fixture_path = File.expand_path("../fixtures", __FILE__)
|
15
|
+
end
|
metadata
ADDED
@@ -0,0 +1,260 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: caboose-store
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.0.2
|
5
|
+
platform: ruby
|
6
|
+
authors:
|
7
|
+
- William Barry
|
8
|
+
autorequire:
|
9
|
+
bindir: bin
|
10
|
+
cert_chain: []
|
11
|
+
date: 2013-12-05 00:00:00.000000000 Z
|
12
|
+
dependencies:
|
13
|
+
- !ruby/object:Gem::Dependency
|
14
|
+
name: caboose-cms
|
15
|
+
requirement: !ruby/object:Gem::Requirement
|
16
|
+
requirements:
|
17
|
+
- - ! '>='
|
18
|
+
- !ruby/object:Gem::Version
|
19
|
+
version: '0'
|
20
|
+
type: :runtime
|
21
|
+
prerelease: false
|
22
|
+
version_requirements: !ruby/object:Gem::Requirement
|
23
|
+
requirements:
|
24
|
+
- - ! '>='
|
25
|
+
- !ruby/object:Gem::Version
|
26
|
+
version: '0'
|
27
|
+
description: Sell products on your site using Caboose.
|
28
|
+
email:
|
29
|
+
- william@nine.is
|
30
|
+
executables: []
|
31
|
+
extensions: []
|
32
|
+
extra_rdoc_files: []
|
33
|
+
files:
|
34
|
+
- app/assets/images/caboose_store/caboose_logo_small.png
|
35
|
+
- app/assets/images/caboose_store/caboose_nav.png
|
36
|
+
- app/assets/images/caboose_store/caboose_nav_black.png
|
37
|
+
- app/assets/images/caboose_store/default_user_pic.png
|
38
|
+
- app/assets/images/caboose_store/loading_green.gif
|
39
|
+
- app/assets/images/caboose_store/loading_small_white_on_black.gif
|
40
|
+
- app/assets/images/caboose_store/loading_white_on_black.gif
|
41
|
+
- app/assets/javascripts/caboose_store/admin.js
|
42
|
+
- app/assets/javascripts/caboose_store/application.js
|
43
|
+
- app/assets/javascripts/caboose_store/modal.js
|
44
|
+
- app/assets/javascripts/caboose_store/modal_integration.js
|
45
|
+
- app/assets/javascripts/caboose_store/model.form.page.js
|
46
|
+
- app/assets/javascripts/caboose_store/model.form.user.js
|
47
|
+
- app/assets/javascripts/caboose_store/shortcut.js
|
48
|
+
- app/assets/javascripts/caboose_store/station.js
|
49
|
+
- app/assets/stylesheets/caboose_store/admin.css
|
50
|
+
- app/assets/stylesheets/caboose_store/application.css
|
51
|
+
- app/assets/stylesheets/caboose_store/bound_input.css
|
52
|
+
- app/assets/stylesheets/caboose_store/caboose.css
|
53
|
+
- app/assets/stylesheets/caboose_store/fonts/big_noodle_titling.ttf
|
54
|
+
- app/assets/stylesheets/caboose_store/fonts/big_noodle_titling_oblique.ttf
|
55
|
+
- app/assets/stylesheets/caboose_store/fonts.css
|
56
|
+
- app/assets/stylesheets/caboose_store/login.css
|
57
|
+
- app/assets/stylesheets/caboose_store/modal.css
|
58
|
+
- app/assets/stylesheets/caboose_store/page_bar_generator.css
|
59
|
+
- app/assets/stylesheets/caboose_store/register.css
|
60
|
+
- app/assets/stylesheets/caboose_store/station_modal.css
|
61
|
+
- app/assets/stylesheets/caboose_store/station_sidebar.css
|
62
|
+
- app/assets/stylesheets/caboose_store/tinymce.css
|
63
|
+
- app/controllers/caboose_store/application_controller.rb
|
64
|
+
- app/controllers/caboose_store/cart_controller.rb
|
65
|
+
- app/controllers/caboose_store/categories_controller.rb
|
66
|
+
- app/controllers/caboose_store/checkout_controller.rb
|
67
|
+
- app/controllers/caboose_store/orders_controller.rb
|
68
|
+
- app/controllers/caboose_store/product_images_controller.rb
|
69
|
+
- app/controllers/caboose_store/products_controller.rb
|
70
|
+
- app/controllers/caboose_store/reviews_controller.rb
|
71
|
+
- app/controllers/caboose_store/variants_controller.rb
|
72
|
+
- app/helpers/caboose_store/application_helper.rb
|
73
|
+
- app/helpers/caboose_store/cart_helper.rb
|
74
|
+
- app/helpers/caboose_store/categories_helper.rb
|
75
|
+
- app/helpers/caboose_store/products_helper.rb
|
76
|
+
- app/mailers/caboose_store/orders_mailer.rb
|
77
|
+
- app/models/caboose_store/address.rb
|
78
|
+
- app/models/caboose_store/caboose_store_plugin.rb
|
79
|
+
- app/models/caboose_store/category.rb
|
80
|
+
- app/models/caboose_store/category_membership.rb
|
81
|
+
- app/models/caboose_store/discount.rb
|
82
|
+
- app/models/caboose_store/message.rb
|
83
|
+
- app/models/caboose_store/order.rb
|
84
|
+
- app/models/caboose_store/order_discount.rb
|
85
|
+
- app/models/caboose_store/order_line_item.rb
|
86
|
+
- app/models/caboose_store/order_pdf.rb
|
87
|
+
- app/models/caboose_store/product.rb
|
88
|
+
- app/models/caboose_store/product_image.rb
|
89
|
+
- app/models/caboose_store/product_image_variant.rb
|
90
|
+
- app/models/caboose_store/review.rb
|
91
|
+
- app/models/caboose_store/schema.rb
|
92
|
+
- app/models/caboose_store/shipping_calculator.rb
|
93
|
+
- app/models/caboose_store/states.rb
|
94
|
+
- app/models/caboose_store/tax_calculator.rb
|
95
|
+
- app/models/caboose_store/tax_line.rb
|
96
|
+
- app/models/caboose_store/variant.rb
|
97
|
+
- app/models/caboose_store/vendor.rb
|
98
|
+
- app/views/caboose_store/application/_category_thumb.html.erb
|
99
|
+
- app/views/caboose_store/application/_product_thumb.html.erb
|
100
|
+
- app/views/caboose_store/cart/index.html.erb
|
101
|
+
- app/views/caboose_store/categories/admin_edit.html.erb
|
102
|
+
- app/views/caboose_store/categories/admin_index.html.erb
|
103
|
+
- app/views/caboose_store/categories/admin_new.html.erb
|
104
|
+
- app/views/caboose_store/checkout/billing.html.erb
|
105
|
+
- app/views/caboose_store/checkout/discount.html.erb
|
106
|
+
- app/views/caboose_store/checkout/index.html.erb
|
107
|
+
- app/views/caboose_store/checkout/quantity_box.html.erb
|
108
|
+
- app/views/caboose_store/checkout/shipping.html.erb
|
109
|
+
- app/views/caboose_store/checkout/thank_you.html.erb
|
110
|
+
- app/views/caboose_store/layouts/_banner.html.erb
|
111
|
+
- app/views/caboose_store/layouts/_banner2.html.erb
|
112
|
+
- app/views/caboose_store/layouts/_footer.html.erb
|
113
|
+
- app/views/caboose_store/layouts/_header.html.erb
|
114
|
+
- app/views/caboose_store/layouts/_sidebar.html.erb
|
115
|
+
- app/views/caboose_store/layouts/application.html.erb
|
116
|
+
- app/views/caboose_store/layouts/authorize_net.erb
|
117
|
+
- app/views/caboose_store/layouts/layout_about.html.erb
|
118
|
+
- app/views/caboose_store/layouts/layout_blog.html.erb
|
119
|
+
- app/views/caboose_store/layouts/layout_confirm.html.erb
|
120
|
+
- app/views/caboose_store/layouts/layout_contact.html.erb
|
121
|
+
- app/views/caboose_store/layouts/layout_default.html.erb
|
122
|
+
- app/views/caboose_store/layouts/layout_detail.html.erb
|
123
|
+
- app/views/caboose_store/layouts/layout_order.html.erb
|
124
|
+
- app/views/caboose_store/layouts/layout_pricing.html.erb
|
125
|
+
- app/views/caboose_store/layouts/layout_product.html.erb
|
126
|
+
- app/views/caboose_store/layouts/layout_profile.html.erb
|
127
|
+
- app/views/caboose_store/layouts/layout_single.html.erb
|
128
|
+
- app/views/caboose_store/layouts/layout_testimonial.html.erb
|
129
|
+
- app/views/caboose_store/layouts/layout_testing.html.erb
|
130
|
+
- app/views/caboose_store/orders/_admin_footer.html.erb
|
131
|
+
- app/views/caboose_store/orders/_admin_header.html.erb
|
132
|
+
- app/views/caboose_store/orders/_quickbooks_order.html.erb
|
133
|
+
- app/views/caboose_store/orders/admin_delete_form.html.erb
|
134
|
+
- app/views/caboose_store/orders/admin_edit.html.erb
|
135
|
+
- app/views/caboose_store/orders/admin_index.html.erb
|
136
|
+
- app/views/caboose_store/orders/admin_new.html.erb
|
137
|
+
- app/views/caboose_store/orders/admin_print.html.erb
|
138
|
+
- app/views/caboose_store/orders_mailer/customer_new_order.html.erb
|
139
|
+
- app/views/caboose_store/orders_mailer/customer_status_updated.html.erb
|
140
|
+
- app/views/caboose_store/orders_mailer/fulfillment_new_order.html.erb
|
141
|
+
- app/views/caboose_store/orders_mailer/shipping_order_ready.html.erb
|
142
|
+
- app/views/caboose_store/products/_admin_footer.html.erb
|
143
|
+
- app/views/caboose_store/products/_admin_header.html.erb
|
144
|
+
- app/views/caboose_store/products/admin_delete_form.html.erb
|
145
|
+
- app/views/caboose_store/products/admin_edit_categories.html.erb
|
146
|
+
- app/views/caboose_store/products/admin_edit_category_images.html.erb
|
147
|
+
- app/views/caboose_store/products/admin_edit_description.html.erb
|
148
|
+
- app/views/caboose_store/products/admin_edit_general.html.erb
|
149
|
+
- app/views/caboose_store/products/admin_edit_images.html.erb
|
150
|
+
- app/views/caboose_store/products/admin_edit_options.html.erb
|
151
|
+
- app/views/caboose_store/products/admin_edit_seo.html.erb
|
152
|
+
- app/views/caboose_store/products/admin_edit_variant_columns.html.erb
|
153
|
+
- app/views/caboose_store/products/admin_edit_variants.html.erb
|
154
|
+
- app/views/caboose_store/products/admin_edit_variants_single.html.erb
|
155
|
+
- app/views/caboose_store/products/admin_index.html.erb
|
156
|
+
- app/views/caboose_store/products/admin_new.html.erb
|
157
|
+
- app/views/caboose_store/products/details.html.erb
|
158
|
+
- app/views/caboose_store/products/index.html.erb
|
159
|
+
- app/views/caboose_store/products/not_available.html.erb
|
160
|
+
- app/views/caboose_store/variants/admin_edit.html.erb
|
161
|
+
- app/views/caboose_store/variants/admin_new.html.erb
|
162
|
+
- config/routes.rb
|
163
|
+
- lib/caboose-store/caboose_store_helper.rb
|
164
|
+
- lib/caboose-store/engine.rb
|
165
|
+
- lib/caboose-store/version.rb
|
166
|
+
- lib/caboose-store.rb
|
167
|
+
- lib/tasks/caboose-store.rake
|
168
|
+
- MIT-LICENSE
|
169
|
+
- Rakefile
|
170
|
+
- README.md
|
171
|
+
- test/caboose_test.rb
|
172
|
+
- test/dummy/app/assets/javascripts/application.js
|
173
|
+
- test/dummy/app/assets/stylesheets/application.css
|
174
|
+
- test/dummy/app/controllers/application_controller.rb
|
175
|
+
- test/dummy/app/helpers/application_helper.rb
|
176
|
+
- test/dummy/app/views/layouts/application.html.erb
|
177
|
+
- test/dummy/config/application.rb
|
178
|
+
- test/dummy/config/boot.rb
|
179
|
+
- test/dummy/config/database.yml
|
180
|
+
- test/dummy/config/environment.rb
|
181
|
+
- test/dummy/config/environments/development.rb
|
182
|
+
- test/dummy/config/environments/production.rb
|
183
|
+
- test/dummy/config/environments/test.rb
|
184
|
+
- test/dummy/config/initializers/backtrace_silencers.rb
|
185
|
+
- test/dummy/config/initializers/inflections.rb
|
186
|
+
- test/dummy/config/initializers/mime_types.rb
|
187
|
+
- test/dummy/config/initializers/secret_token.rb
|
188
|
+
- test/dummy/config/initializers/session_store.rb
|
189
|
+
- test/dummy/config/initializers/wrap_parameters.rb
|
190
|
+
- test/dummy/config/locales/en.yml
|
191
|
+
- test/dummy/config/routes.rb
|
192
|
+
- test/dummy/config.ru
|
193
|
+
- test/dummy/db/test.sqlite3
|
194
|
+
- test/dummy/log/test.log
|
195
|
+
- test/dummy/public/404.html
|
196
|
+
- test/dummy/public/422.html
|
197
|
+
- test/dummy/public/500.html
|
198
|
+
- test/dummy/public/favicon.ico
|
199
|
+
- test/dummy/Rakefile
|
200
|
+
- test/dummy/README.rdoc
|
201
|
+
- test/dummy/script/rails
|
202
|
+
- test/integration/navigation_test.rb
|
203
|
+
- test/test_helper.rb
|
204
|
+
homepage: http://github.com/williambarry007/caboose-store
|
205
|
+
licenses: []
|
206
|
+
metadata: {}
|
207
|
+
post_install_message:
|
208
|
+
rdoc_options: []
|
209
|
+
require_paths:
|
210
|
+
- lib
|
211
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
212
|
+
requirements:
|
213
|
+
- - ! '>='
|
214
|
+
- !ruby/object:Gem::Version
|
215
|
+
version: '0'
|
216
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
217
|
+
requirements:
|
218
|
+
- - ! '>='
|
219
|
+
- !ruby/object:Gem::Version
|
220
|
+
version: '0'
|
221
|
+
requirements: []
|
222
|
+
rubyforge_project:
|
223
|
+
rubygems_version: 2.0.6
|
224
|
+
signing_key:
|
225
|
+
specification_version: 4
|
226
|
+
summary: E-Commerce plugin for Caboose CMS
|
227
|
+
test_files:
|
228
|
+
- test/caboose_test.rb
|
229
|
+
- test/dummy/app/assets/javascripts/application.js
|
230
|
+
- test/dummy/app/assets/stylesheets/application.css
|
231
|
+
- test/dummy/app/controllers/application_controller.rb
|
232
|
+
- test/dummy/app/helpers/application_helper.rb
|
233
|
+
- test/dummy/app/views/layouts/application.html.erb
|
234
|
+
- test/dummy/config/application.rb
|
235
|
+
- test/dummy/config/boot.rb
|
236
|
+
- test/dummy/config/database.yml
|
237
|
+
- test/dummy/config/environment.rb
|
238
|
+
- test/dummy/config/environments/development.rb
|
239
|
+
- test/dummy/config/environments/production.rb
|
240
|
+
- test/dummy/config/environments/test.rb
|
241
|
+
- test/dummy/config/initializers/backtrace_silencers.rb
|
242
|
+
- test/dummy/config/initializers/inflections.rb
|
243
|
+
- test/dummy/config/initializers/mime_types.rb
|
244
|
+
- test/dummy/config/initializers/secret_token.rb
|
245
|
+
- test/dummy/config/initializers/session_store.rb
|
246
|
+
- test/dummy/config/initializers/wrap_parameters.rb
|
247
|
+
- test/dummy/config/locales/en.yml
|
248
|
+
- test/dummy/config/routes.rb
|
249
|
+
- test/dummy/config.ru
|
250
|
+
- test/dummy/db/test.sqlite3
|
251
|
+
- test/dummy/log/test.log
|
252
|
+
- test/dummy/public/404.html
|
253
|
+
- test/dummy/public/422.html
|
254
|
+
- test/dummy/public/500.html
|
255
|
+
- test/dummy/public/favicon.ico
|
256
|
+
- test/dummy/Rakefile
|
257
|
+
- test/dummy/README.rdoc
|
258
|
+
- test/dummy/script/rails
|
259
|
+
- test/integration/navigation_test.rb
|
260
|
+
- test/test_helper.rb
|