shoppy 0.9.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +7 -0
- data/MIT-LICENSE +20 -0
- data/README.rdoc +3 -0
- data/Rakefile +34 -0
- data/app/.DS_Store +0 -0
- data/app/api/apihelpers/api_auth.rb +50 -0
- data/app/api/base.rb +7 -0
- data/app/api/v1/auth.rb +57 -0
- data/app/api/v1/test.rb +15 -0
- data/app/api/v1/users.rb +50 -0
- data/app/api/v1/v1_api.rb +15 -0
- data/app/api/vo/user_vo.rb +7 -0
- data/app/assets/fonts/.DS_Store +0 -0
- data/app/assets/fonts/glyphicons-halflings-regular.eot +0 -0
- data/app/assets/fonts/glyphicons-halflings-regular.svg +229 -0
- data/app/assets/fonts/glyphicons-halflings-regular.ttf +0 -0
- data/app/assets/fonts/glyphicons-halflings-regular.woff +0 -0
- data/app/assets/images/.DS_Store +0 -0
- data/app/assets/images/Sorting icons.psd +0 -0
- data/app/assets/images/back_disabled.png +0 -0
- data/app/assets/images/back_enabled.png +0 -0
- data/app/assets/images/back_enabled_hover.png +0 -0
- data/app/assets/images/favicon.ico +0 -0
- data/app/assets/images/forward_disabled.png +0 -0
- data/app/assets/images/forward_enabled.png +0 -0
- data/app/assets/images/forward_enabled_hover.png +0 -0
- data/app/assets/images/shoppy.svg +34 -0
- data/app/assets/images/sort_asc.png +0 -0
- data/app/assets/images/sort_asc_disabled.png +0 -0
- data/app/assets/images/sort_both.png +0 -0
- data/app/assets/images/sort_desc.png +0 -0
- data/app/assets/images/sort_desc_disabled.png +0 -0
- data/app/assets/images/spritemap.png +0 -0
- data/app/assets/images/spritemap@2x.png +0 -0
- data/app/assets/javascripts/.DS_Store +0 -0
- data/app/assets/javascripts/bootstrap.js +2114 -0
- data/app/assets/javascripts/bootstrap.min.js +6 -0
- data/app/assets/javascripts/jasny-bootstrap.min.js +6 -0
- data/app/assets/javascripts/jquery.dataTables.min.js +155 -0
- data/app/assets/javascripts/main.js +29 -0
- data/app/assets/javascripts/shoppy.js +31 -0
- data/app/assets/stylesheets/.DS_Store +0 -0
- data/app/assets/stylesheets/bootstrap.css +6203 -0
- data/app/assets/stylesheets/jasny-bootstrap.css +621 -0
- data/app/assets/stylesheets/jquery.dataTables.min.css +1 -0
- data/app/assets/stylesheets/jquery.dataTables_themeroller.css +330 -0
- data/app/assets/stylesheets/shoppy.css +23 -0
- data/app/assets/stylesheets/style.sass +79 -0
- data/app/controllers/.DS_Store +0 -0
- data/app/controllers/shoppy/accounts_controller.rb +102 -0
- data/app/controllers/shoppy/application_controller.rb +23 -0
- data/app/controllers/shoppy/brands_controller.rb +60 -0
- data/app/controllers/shoppy/cart_controller.rb +46 -0
- data/app/controllers/shoppy/categories_controller.rb +72 -0
- data/app/controllers/shoppy/concerns/.keep +0 -0
- data/app/controllers/shoppy/customer_addresses_controller.rb +90 -0
- data/app/controllers/shoppy/home_controller.rb +9 -0
- data/app/controllers/shoppy/inventories_controller.rb +62 -0
- data/app/controllers/shoppy/locations_controller.rb +80 -0
- data/app/controllers/shoppy/logs_controller.rb +9 -0
- data/app/controllers/shoppy/manufacturers_controller.rb +77 -0
- data/app/controllers/shoppy/options_controller.rb +63 -0
- data/app/controllers/shoppy/orders_controller.rb +130 -0
- data/app/controllers/shoppy/products_controller.rb +98 -0
- data/app/controllers/shoppy/reviews_controller.rb +70 -0
- data/app/controllers/shoppy/sessions_controller.rb +5 -0
- data/app/controllers/shoppy/settings_controller.rb +26 -0
- data/app/controllers/shoppy/shipments_controller.rb +125 -0
- data/app/controllers/shoppy/variants_controller.rb +104 -0
- data/app/helpers/shoppy/accounts_helper.rb +5 -0
- data/app/helpers/shoppy/application_helper.rb +19 -0
- data/app/helpers/shoppy/brands_helper.rb +4 -0
- data/app/helpers/shoppy/cart_helper.rb +66 -0
- data/app/helpers/shoppy/categories_helper.rb +4 -0
- data/app/helpers/shoppy/customer_addresses_helper.rb +4 -0
- data/app/helpers/shoppy/home_helper.rb +5 -0
- data/app/helpers/shoppy/inventories_helper.rb +53 -0
- data/app/helpers/shoppy/locations_helper.rb +4 -0
- data/app/helpers/shoppy/logs_helper.rb +4 -0
- data/app/helpers/shoppy/manufacturers_helper.rb +4 -0
- data/app/helpers/shoppy/options_helper.rb +43 -0
- data/app/helpers/shoppy/orders_helper.rb +61 -0
- data/app/helpers/shoppy/products_helper.rb +65 -0
- data/app/helpers/shoppy/reviews_helper.rb +4 -0
- data/app/helpers/shoppy/settings_helper.rb +5 -0
- data/app/helpers/shoppy/shipments_helper.rb +43 -0
- data/app/helpers/shoppy/variants_helper.rb +4 -0
- data/app/models/shoppy/.DS_Store +0 -0
- data/app/models/shoppy/admin.rb +5 -0
- data/app/models/shoppy/brand.rb +23 -0
- data/app/models/shoppy/cart_item.rb +13 -0
- data/app/models/shoppy/category.rb +50 -0
- data/app/models/shoppy/concerns/.DS_Store +0 -0
- data/app/models/shoppy/concerns/models/api_token_authenticatable.rb +36 -0
- data/app/models/shoppy/concerns/models/hashable.rb +60 -0
- data/app/models/shoppy/concerns/models/optionable.rb +60 -0
- data/app/models/shoppy/concerns/models/promotional.rb +36 -0
- data/app/models/shoppy/concerns/models/taggable.rb +44 -0
- data/app/models/shoppy/customer.rb +10 -0
- data/app/models/shoppy/customer_address.rb +44 -0
- data/app/models/shoppy/inventory.rb +18 -0
- data/app/models/shoppy/log.rb +8 -0
- data/app/models/shoppy/manufacturer.rb +35 -0
- data/app/models/shoppy/options_group.rb +57 -0
- data/app/models/shoppy/options_item.rb +18 -0
- data/app/models/shoppy/order.rb +15 -0
- data/app/models/shoppy/order_line.rb +16 -0
- data/app/models/shoppy/payment_method.rb +19 -0
- data/app/models/shoppy/product.rb +43 -0
- data/app/models/shoppy/review.rb +12 -0
- data/app/models/shoppy/setting.rb +11 -0
- data/app/models/shoppy/shipment.rb +11 -0
- data/app/models/shoppy/stock_location.rb +47 -0
- data/app/models/shoppy/user.rb +37 -0
- data/app/models/shoppy/variant.rb +48 -0
- data/app/views/.DS_Store +0 -0
- data/app/views/accounts/admins.html.erb +104 -0
- data/app/views/accounts/customers.html.erb +106 -0
- data/app/views/accounts/show.html.erb +50 -0
- data/app/views/brands/index.html.erb +85 -0
- data/app/views/brands/show.html.erb +31 -0
- data/app/views/cart/index.html.erb +52 -0
- data/app/views/categories/index.html.erb +84 -0
- data/app/views/categories/show.html.erb +29 -0
- data/app/views/customer_addresses/index.html.erb +112 -0
- data/app/views/customer_addresses/show.html.erb +50 -0
- data/app/views/devise/confirmations/new.html.erb +12 -0
- data/app/views/devise/mailer/confirmation_instructions.html.erb +5 -0
- data/app/views/devise/mailer/reset_password_instructions.html.erb +8 -0
- data/app/views/devise/mailer/unlock_instructions.html.erb +7 -0
- data/app/views/devise/passwords/edit.html.erb +16 -0
- data/app/views/devise/passwords/new.html.erb +12 -0
- data/app/views/devise/registrations/edit.html.erb +29 -0
- data/app/views/devise/registrations/new.html.erb +23 -0
- data/app/views/devise/sessions/new.html.erb +33 -0
- data/app/views/devise/shared/_links.erb +25 -0
- data/app/views/devise/unlocks/new.html.erb +12 -0
- data/app/views/home/index.html.erb +4 -0
- data/app/views/inventories/.DS_Store +0 -0
- data/app/views/inventories/index.html.erb +119 -0
- data/app/views/layouts/.DS_Store +0 -0
- data/app/views/layouts/shoppy.html.erb +27 -0
- data/app/views/locations/index.html.erb +120 -0
- data/app/views/locations/show.html.erb +58 -0
- data/app/views/logs/index.html.erb +49 -0
- data/app/views/manufacturers/index.html.erb +119 -0
- data/app/views/manufacturers/show.html.erb +62 -0
- data/app/views/options/index.html.erb +90 -0
- data/app/views/options/show.html.erb +32 -0
- data/app/views/orders/index.html.erb +174 -0
- data/app/views/orders/show.html.erb +74 -0
- data/app/views/products/index.html.erb +102 -0
- data/app/views/products/show.html.erb +112 -0
- data/app/views/reviews/index.html.erb +58 -0
- data/app/views/reviews/show.html.erb +46 -0
- data/app/views/settings/show.html.erb +50 -0
- data/app/views/shared/_custom_file_input.html.erb +12 -0
- data/app/views/shared/_flashes.html.erb +21 -0
- data/app/views/shared/_navigation.html.erb +66 -0
- data/app/views/shipments/index.html.erb +97 -0
- data/app/views/shipments/show.html.erb +84 -0
- data/app/views/variants/index.html.erb +119 -0
- data/app/views/variants/show.html.erb +114 -0
- data/bin/shoppy +183 -0
- data/config/routes.rb +124 -0
- data/db/.DS_Store +0 -0
- data/db/migrate/001__setup_hstore.rb +9 -0
- data/db/migrate/002__create_logs.rb +11 -0
- data/db/migrate/003__devise_create_users.rb +49 -0
- data/db/migrate/004__add_personal_info_to_user.rb +8 -0
- data/db/migrate/005__create_user_addresses.rb +16 -0
- data/db/migrate/006__create_categories.rb +11 -0
- data/db/migrate/007__create_brands.rb +10 -0
- data/db/migrate/008__create_manufacturers.rb +19 -0
- data/db/migrate/009__create_options_groups.rb +10 -0
- data/db/migrate/010__create_options_items.rb +10 -0
- data/db/migrate/011__create_products.rb +14 -0
- data/db/migrate/012__create_product_options_joint_table.rb +9 -0
- data/db/migrate/013__create_stock_locations.rb +18 -0
- data/db/migrate/014__create_variants.rb +12 -0
- data/db/migrate/015__add_promotional_to_variant.rb +8 -0
- data/db/migrate/016__create_inventories.rb +12 -0
- data/db/migrate/017__create_payment_methods.rb +9 -0
- data/db/migrate/018__create_cart_items.rb +12 -0
- data/db/migrate/019__create_orders.rb +11 -0
- data/db/migrate/020__create_order_lines.rb +14 -0
- data/db/migrate/021__add_type_to_user.rb +5 -0
- data/db/migrate/022__rename_user_address_to_customer_address.rb +5 -0
- data/db/migrate/023__create_shipments.rb +12 -0
- data/db/migrate/024__add_shipment_id_to_order_line.rb +5 -0
- data/db/migrate/025__change_user_gender_to_not_nullable.rb +5 -0
- data/db/migrate/026__add_category_id_to_product.rb +5 -0
- data/db/migrate/027__add_attachment_brand_image_to_brands.rb +11 -0
- data/db/migrate/028__add_delivery_date_to_shipment.rb +5 -0
- data/db/migrate/029__add_customer_info_to_order.rb +13 -0
- data/db/migrate/030__add_status_to_order.rb +5 -0
- data/db/migrate/031__add_default_address_to_user.rb +5 -0
- data/db/migrate/032__add_options_to_variant.rb +5 -0
- data/db/migrate/033__add_display_to_options_groups.rb +5 -0
- data/db/migrate/034__add_points_to_variant.rb +5 -0
- data/db/migrate/035__add_points_to_user.rb +5 -0
- data/db/migrate/036__define_ids.rb +25 -0
- data/db/migrate/037__create_seed_users.rb +13 -0
- data/db/migrate/038__add_name_to_customer_address.rb +5 -0
- data/db/migrate/039__create_reviews.rb +14 -0
- data/db/migrate/040__alter_table_customer_address.rb +5 -0
- data/db/migrate/041__create_settings.rb +23 -0
- data/lib/.DS_Store +0 -0
- data/lib/shoppy.rb +13 -0
- data/lib/shoppy/client.rb +53 -0
- data/lib/shoppy/engine.rb +4 -0
- data/lib/shoppy/version.rb +3 -0
- data/lib/tasks/shoppy_tasks.rake +4 -0
- data/lib/template/.gitignore +20 -0
- data/lib/template/Gemfile +46 -0
- data/lib/template/Gemfile.lock +218 -0
- data/lib/template/Rakefile +6 -0
- data/lib/template/app/assets/images/.keep +0 -0
- data/lib/template/app/assets/javascripts/application.js +13 -0
- data/lib/template/app/assets/stylesheets/application.css +15 -0
- data/lib/template/app/controllers/accounts_controller.rb +3 -0
- data/lib/template/app/controllers/application_controller.rb +3 -0
- data/lib/template/app/controllers/brands_controller.rb +3 -0
- data/lib/template/app/controllers/cart_controller.rb +3 -0
- data/lib/template/app/controllers/categories_controller.rb +3 -0
- data/lib/template/app/controllers/concerns/.keep +0 -0
- data/lib/template/app/controllers/customer_addresses_controller.rb +3 -0
- data/lib/template/app/controllers/home_controller.rb +3 -0
- data/lib/template/app/controllers/inventories_controller.rb +3 -0
- data/lib/template/app/controllers/locations_controller.rb +3 -0
- data/lib/template/app/controllers/logs_controller.rb +3 -0
- data/lib/template/app/controllers/manufacturers_controller.rb +3 -0
- data/lib/template/app/controllers/options_controller.rb +3 -0
- data/lib/template/app/controllers/orders_controller.rb +3 -0
- data/lib/template/app/controllers/products_controller.rb +3 -0
- data/lib/template/app/controllers/reviews_controller.rb +3 -0
- data/lib/template/app/controllers/sessions_controller.rb +3 -0
- data/lib/template/app/controllers/settings_controller.rb +3 -0
- data/lib/template/app/controllers/shipments_controller.rb +3 -0
- data/lib/template/app/controllers/variants_controller.rb +3 -0
- data/lib/template/app/helpers/.keep +0 -0
- data/lib/template/app/helpers/orders_helper.rb +4 -0
- data/lib/template/app/mailers/.keep +0 -0
- data/lib/template/app/models/.keep +0 -0
- data/lib/template/app/models/account.rb +4 -0
- data/lib/template/app/models/admin.rb +4 -0
- data/lib/template/app/models/brand.rb +3 -0
- data/lib/template/app/models/cart_item.rb +3 -0
- data/lib/template/app/models/category.rb +3 -0
- data/lib/template/app/models/concerns/.keep +0 -0
- data/lib/template/app/models/concerns/hashable.rb +4 -0
- data/lib/template/app/models/customer.rb +4 -0
- data/lib/template/app/models/customer_address.rb +3 -0
- data/lib/template/app/models/inventory.rb +3 -0
- data/lib/template/app/models/log.rb +3 -0
- data/lib/template/app/models/manufacturer.rb +3 -0
- data/lib/template/app/models/option_item.rb +3 -0
- data/lib/template/app/models/options_group.rb +3 -0
- data/lib/template/app/models/order.rb +3 -0
- data/lib/template/app/models/order_line.rb +3 -0
- data/lib/template/app/models/payment_method.rb +3 -0
- data/lib/template/app/models/product.rb +3 -0
- data/lib/template/app/models/review.rb +3 -0
- data/lib/template/app/models/setting.rb +3 -0
- data/lib/template/app/models/shipment.rb +3 -0
- data/lib/template/app/models/stock_location.rb +3 -0
- data/lib/template/app/models/variant.rb +3 -0
- data/lib/template/app/views/layouts/.keep +0 -0
- data/lib/template/bin/bundle +3 -0
- data/lib/template/bin/rails +8 -0
- data/lib/template/bin/rake +8 -0
- data/lib/template/bin/spring +18 -0
- data/lib/template/config.ru +4 -0
- data/lib/template/config/application.rb +23 -0
- data/lib/template/config/boot.rb +4 -0
- data/lib/template/config/database.yml +86 -0
- data/lib/template/config/environment.rb +5 -0
- data/lib/template/config/environments/development.rb +37 -0
- data/lib/template/config/environments/production.rb +78 -0
- data/lib/template/config/environments/test.rb +39 -0
- data/lib/template/config/initializers/assets.rb +8 -0
- data/lib/template/config/initializers/backtrace_silencers.rb +7 -0
- data/lib/template/config/initializers/cookies_serializer.rb +3 -0
- data/lib/template/config/initializers/devise.rb +256 -0
- data/lib/template/config/initializers/filter_parameter_logging.rb +4 -0
- data/lib/template/config/initializers/inflections.rb +16 -0
- data/lib/template/config/initializers/mime_types.rb +4 -0
- data/lib/template/config/initializers/session_store.rb +3 -0
- data/lib/template/config/initializers/wrap_parameters.rb +14 -0
- data/lib/template/config/locales/devise.en.yml +59 -0
- data/lib/template/config/locales/en.yml +23 -0
- data/lib/template/config/routes.rb +3 -0
- data/lib/template/config/secrets.yml +22 -0
- data/lib/template/db/migrate/.keep +0 -0
- data/lib/template/db/seeds.rb +7 -0
- data/lib/template/lib/assets/.keep +0 -0
- data/lib/template/lib/tasks/.keep +0 -0
- data/lib/template/log/.keep +0 -0
- data/lib/template/public/404.html +67 -0
- data/lib/template/public/422.html +67 -0
- data/lib/template/public/500.html +66 -0
- data/lib/template/public/favicon.ico +0 -0
- data/lib/template/public/robots.txt +5 -0
- data/lib/template/test/controllers/.keep +0 -0
- data/lib/template/test/fixtures/.keep +0 -0
- data/lib/template/test/helpers/.keep +0 -0
- data/lib/template/test/integration/.keep +0 -0
- data/lib/template/test/mailers/.keep +0 -0
- data/lib/template/test/models/.keep +0 -0
- data/lib/template/test/test_helper.rb +10 -0
- data/lib/template/vendor/assets/javascripts/.keep +0 -0
- data/lib/template/vendor/assets/stylesheets/.keep +0 -0
- data/test/dummy/README.rdoc +28 -0
- data/test/dummy/Rakefile +6 -0
- data/test/dummy/app/assets/javascripts/application.js +13 -0
- data/test/dummy/app/assets/stylesheets/application.css +15 -0
- data/test/dummy/app/controllers/application_controller.rb +5 -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/bin/bundle +3 -0
- data/test/dummy/bin/rails +4 -0
- data/test/dummy/bin/rake +4 -0
- data/test/dummy/config.ru +4 -0
- data/test/dummy/config/application.rb +23 -0
- data/test/dummy/config/boot.rb +5 -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 +78 -0
- data/test/dummy/config/environments/test.rb +39 -0
- data/test/dummy/config/initializers/assets.rb +8 -0
- data/test/dummy/config/initializers/backtrace_silencers.rb +7 -0
- data/test/dummy/config/initializers/cookies_serializer.rb +3 -0
- data/test/dummy/config/initializers/filter_parameter_logging.rb +4 -0
- data/test/dummy/config/initializers/inflections.rb +16 -0
- data/test/dummy/config/initializers/mime_types.rb +4 -0
- data/test/dummy/config/initializers/session_store.rb +3 -0
- data/test/dummy/config/initializers/wrap_parameters.rb +14 -0
- data/test/dummy/config/locales/en.yml +23 -0
- data/test/dummy/config/routes.rb +56 -0
- data/test/dummy/config/secrets.yml +22 -0
- data/test/dummy/public/404.html +67 -0
- data/test/dummy/public/422.html +67 -0
- data/test/dummy/public/500.html +66 -0
- data/test/dummy/public/favicon.ico +0 -0
- data/test/integration/navigation_test.rb +10 -0
- data/test/shoppy/Users/alybadawy/exp/shoppy/lib/template/Gemfile.lock +217 -0
- data/test/shoppy/Users/alybadawy/exp/shoppy/lib/template/README.rdoc +28 -0
- data/test/shoppy/Users/alybadawy/exp/shoppy/lib/template/config.ru +4 -0
- data/test/shoppy_test.rb +7 -0
- data/test/test_helper.rb +15 -0
- metadata +495 -0
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
<!DOCTYPE html>
|
|
2
|
+
<html>
|
|
3
|
+
<head>
|
|
4
|
+
<title>The page you were looking for doesn't exist (404)</title>
|
|
5
|
+
<meta name="viewport" content="width=device-width,initial-scale=1">
|
|
6
|
+
<style>
|
|
7
|
+
body {
|
|
8
|
+
background-color: #EFEFEF;
|
|
9
|
+
color: #2E2F30;
|
|
10
|
+
text-align: center;
|
|
11
|
+
font-family: arial, sans-serif;
|
|
12
|
+
margin: 0;
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
div.dialog {
|
|
16
|
+
width: 95%;
|
|
17
|
+
max-width: 33em;
|
|
18
|
+
margin: 4em auto 0;
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
div.dialog > div {
|
|
22
|
+
border: 1px solid #CCC;
|
|
23
|
+
border-right-color: #999;
|
|
24
|
+
border-left-color: #999;
|
|
25
|
+
border-bottom-color: #BBB;
|
|
26
|
+
border-top: #B00100 solid 4px;
|
|
27
|
+
border-top-left-radius: 9px;
|
|
28
|
+
border-top-right-radius: 9px;
|
|
29
|
+
background-color: white;
|
|
30
|
+
padding: 7px 12% 0;
|
|
31
|
+
box-shadow: 0 3px 8px rgba(50, 50, 50, 0.17);
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
h1 {
|
|
35
|
+
font-size: 100%;
|
|
36
|
+
color: #730E15;
|
|
37
|
+
line-height: 1.5em;
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
div.dialog > p {
|
|
41
|
+
margin: 0 0 1em;
|
|
42
|
+
padding: 1em;
|
|
43
|
+
background-color: #F7F7F7;
|
|
44
|
+
border: 1px solid #CCC;
|
|
45
|
+
border-right-color: #999;
|
|
46
|
+
border-left-color: #999;
|
|
47
|
+
border-bottom-color: #999;
|
|
48
|
+
border-bottom-left-radius: 4px;
|
|
49
|
+
border-bottom-right-radius: 4px;
|
|
50
|
+
border-top-color: #DADADA;
|
|
51
|
+
color: #666;
|
|
52
|
+
box-shadow: 0 3px 8px rgba(50, 50, 50, 0.17);
|
|
53
|
+
}
|
|
54
|
+
</style>
|
|
55
|
+
</head>
|
|
56
|
+
|
|
57
|
+
<body>
|
|
58
|
+
<!-- This file lives in public/404.html -->
|
|
59
|
+
<div class="dialog">
|
|
60
|
+
<div>
|
|
61
|
+
<h1>The page you were looking for doesn't exist.</h1>
|
|
62
|
+
<p>You may have mistyped the address or the page may have moved.</p>
|
|
63
|
+
</div>
|
|
64
|
+
<p>If you are the application owner check the logs for more information.</p>
|
|
65
|
+
</div>
|
|
66
|
+
</body>
|
|
67
|
+
</html>
|
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
<!DOCTYPE html>
|
|
2
|
+
<html>
|
|
3
|
+
<head>
|
|
4
|
+
<title>The change you wanted was rejected (422)</title>
|
|
5
|
+
<meta name="viewport" content="width=device-width,initial-scale=1">
|
|
6
|
+
<style>
|
|
7
|
+
body {
|
|
8
|
+
background-color: #EFEFEF;
|
|
9
|
+
color: #2E2F30;
|
|
10
|
+
text-align: center;
|
|
11
|
+
font-family: arial, sans-serif;
|
|
12
|
+
margin: 0;
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
div.dialog {
|
|
16
|
+
width: 95%;
|
|
17
|
+
max-width: 33em;
|
|
18
|
+
margin: 4em auto 0;
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
div.dialog > div {
|
|
22
|
+
border: 1px solid #CCC;
|
|
23
|
+
border-right-color: #999;
|
|
24
|
+
border-left-color: #999;
|
|
25
|
+
border-bottom-color: #BBB;
|
|
26
|
+
border-top: #B00100 solid 4px;
|
|
27
|
+
border-top-left-radius: 9px;
|
|
28
|
+
border-top-right-radius: 9px;
|
|
29
|
+
background-color: white;
|
|
30
|
+
padding: 7px 12% 0;
|
|
31
|
+
box-shadow: 0 3px 8px rgba(50, 50, 50, 0.17);
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
h1 {
|
|
35
|
+
font-size: 100%;
|
|
36
|
+
color: #730E15;
|
|
37
|
+
line-height: 1.5em;
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
div.dialog > p {
|
|
41
|
+
margin: 0 0 1em;
|
|
42
|
+
padding: 1em;
|
|
43
|
+
background-color: #F7F7F7;
|
|
44
|
+
border: 1px solid #CCC;
|
|
45
|
+
border-right-color: #999;
|
|
46
|
+
border-left-color: #999;
|
|
47
|
+
border-bottom-color: #999;
|
|
48
|
+
border-bottom-left-radius: 4px;
|
|
49
|
+
border-bottom-right-radius: 4px;
|
|
50
|
+
border-top-color: #DADADA;
|
|
51
|
+
color: #666;
|
|
52
|
+
box-shadow: 0 3px 8px rgba(50, 50, 50, 0.17);
|
|
53
|
+
}
|
|
54
|
+
</style>
|
|
55
|
+
</head>
|
|
56
|
+
|
|
57
|
+
<body>
|
|
58
|
+
<!-- This file lives in public/422.html -->
|
|
59
|
+
<div class="dialog">
|
|
60
|
+
<div>
|
|
61
|
+
<h1>The change you wanted was rejected.</h1>
|
|
62
|
+
<p>Maybe you tried to change something you didn't have access to.</p>
|
|
63
|
+
</div>
|
|
64
|
+
<p>If you are the application owner check the logs for more information.</p>
|
|
65
|
+
</div>
|
|
66
|
+
</body>
|
|
67
|
+
</html>
|
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
<!DOCTYPE html>
|
|
2
|
+
<html>
|
|
3
|
+
<head>
|
|
4
|
+
<title>We're sorry, but something went wrong (500)</title>
|
|
5
|
+
<meta name="viewport" content="width=device-width,initial-scale=1">
|
|
6
|
+
<style>
|
|
7
|
+
body {
|
|
8
|
+
background-color: #EFEFEF;
|
|
9
|
+
color: #2E2F30;
|
|
10
|
+
text-align: center;
|
|
11
|
+
font-family: arial, sans-serif;
|
|
12
|
+
margin: 0;
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
div.dialog {
|
|
16
|
+
width: 95%;
|
|
17
|
+
max-width: 33em;
|
|
18
|
+
margin: 4em auto 0;
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
div.dialog > div {
|
|
22
|
+
border: 1px solid #CCC;
|
|
23
|
+
border-right-color: #999;
|
|
24
|
+
border-left-color: #999;
|
|
25
|
+
border-bottom-color: #BBB;
|
|
26
|
+
border-top: #B00100 solid 4px;
|
|
27
|
+
border-top-left-radius: 9px;
|
|
28
|
+
border-top-right-radius: 9px;
|
|
29
|
+
background-color: white;
|
|
30
|
+
padding: 7px 12% 0;
|
|
31
|
+
box-shadow: 0 3px 8px rgba(50, 50, 50, 0.17);
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
h1 {
|
|
35
|
+
font-size: 100%;
|
|
36
|
+
color: #730E15;
|
|
37
|
+
line-height: 1.5em;
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
div.dialog > p {
|
|
41
|
+
margin: 0 0 1em;
|
|
42
|
+
padding: 1em;
|
|
43
|
+
background-color: #F7F7F7;
|
|
44
|
+
border: 1px solid #CCC;
|
|
45
|
+
border-right-color: #999;
|
|
46
|
+
border-left-color: #999;
|
|
47
|
+
border-bottom-color: #999;
|
|
48
|
+
border-bottom-left-radius: 4px;
|
|
49
|
+
border-bottom-right-radius: 4px;
|
|
50
|
+
border-top-color: #DADADA;
|
|
51
|
+
color: #666;
|
|
52
|
+
box-shadow: 0 3px 8px rgba(50, 50, 50, 0.17);
|
|
53
|
+
}
|
|
54
|
+
</style>
|
|
55
|
+
</head>
|
|
56
|
+
|
|
57
|
+
<body>
|
|
58
|
+
<!-- This file lives in public/500.html -->
|
|
59
|
+
<div class="dialog">
|
|
60
|
+
<div>
|
|
61
|
+
<h1>We're sorry, but something went wrong.</h1>
|
|
62
|
+
</div>
|
|
63
|
+
<p>If you are the application owner check the logs for more information.</p>
|
|
64
|
+
</div>
|
|
65
|
+
</body>
|
|
66
|
+
</html>
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
ENV['RAILS_ENV'] ||= 'test'
|
|
2
|
+
require File.expand_path('../../config/environment', __FILE__)
|
|
3
|
+
require 'rails/test_help'
|
|
4
|
+
|
|
5
|
+
class ActiveSupport::TestCase
|
|
6
|
+
# Setup all fixtures in test/fixtures/*.yml for all tests in alphabetical order.
|
|
7
|
+
fixtures :all
|
|
8
|
+
|
|
9
|
+
# Add more helper methods to be used by all tests here...
|
|
10
|
+
end
|
|
File without changes
|
|
File without changes
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
== README
|
|
2
|
+
|
|
3
|
+
This README would normally document whatever steps are necessary to get the
|
|
4
|
+
application up and running.
|
|
5
|
+
|
|
6
|
+
Things you may want to cover:
|
|
7
|
+
|
|
8
|
+
* Ruby version
|
|
9
|
+
|
|
10
|
+
* System dependencies
|
|
11
|
+
|
|
12
|
+
* Configuration
|
|
13
|
+
|
|
14
|
+
* Database creation
|
|
15
|
+
|
|
16
|
+
* Database initialization
|
|
17
|
+
|
|
18
|
+
* How to run the test suite
|
|
19
|
+
|
|
20
|
+
* Services (job queues, cache servers, search engines, etc.)
|
|
21
|
+
|
|
22
|
+
* Deployment instructions
|
|
23
|
+
|
|
24
|
+
* ...
|
|
25
|
+
|
|
26
|
+
|
|
27
|
+
Please feel free to use a different markup language if you do not plan to run
|
|
28
|
+
<tt>rake doc:app</tt>.
|
data/test/dummy/Rakefile
ADDED
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
// This is a manifest file that'll be compiled into application.js, which will include all the files
|
|
2
|
+
// listed below.
|
|
3
|
+
//
|
|
4
|
+
// Any JavaScript/Coffee file within this directory, lib/assets/javascripts, vendor/assets/javascripts,
|
|
5
|
+
// or vendor/assets/javascripts of plugins, if any, can be referenced here using a relative path.
|
|
6
|
+
//
|
|
7
|
+
// It's not advisable to add code directly here, but if you do, it'll appear at the bottom of the
|
|
8
|
+
// compiled file.
|
|
9
|
+
//
|
|
10
|
+
// Read Sprockets README (https://github.com/sstephenson/sprockets#sprockets-directives) for details
|
|
11
|
+
// about supported directives.
|
|
12
|
+
//
|
|
13
|
+
//= require_tree .
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* This is a manifest file that'll be compiled into application.css, which will include all the files
|
|
3
|
+
* listed below.
|
|
4
|
+
*
|
|
5
|
+
* Any CSS and SCSS file within this directory, lib/assets/stylesheets, vendor/assets/stylesheets,
|
|
6
|
+
* or vendor/assets/stylesheets of plugins, if any, can be referenced here using a relative path.
|
|
7
|
+
*
|
|
8
|
+
* You're free to add application-wide styles to this file and they'll appear at the bottom of the
|
|
9
|
+
* compiled file so the styles you add here take precedence over styles defined in any styles
|
|
10
|
+
* defined in the other CSS/SCSS files in this directory. It is generally better to create a new
|
|
11
|
+
* file per style scope.
|
|
12
|
+
*
|
|
13
|
+
*= require_tree .
|
|
14
|
+
*= require_self
|
|
15
|
+
*/
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
<!DOCTYPE html>
|
|
2
|
+
<html>
|
|
3
|
+
<head>
|
|
4
|
+
<title>Dummy</title>
|
|
5
|
+
<%= stylesheet_link_tag 'application', media: 'all', 'data-turbolinks-track' => true %>
|
|
6
|
+
<%= javascript_include_tag 'application', 'data-turbolinks-track' => true %>
|
|
7
|
+
<%= csrf_meta_tags %>
|
|
8
|
+
</head>
|
|
9
|
+
<body>
|
|
10
|
+
|
|
11
|
+
<%= yield %>
|
|
12
|
+
|
|
13
|
+
</body>
|
|
14
|
+
</html>
|
data/test/dummy/bin/rake
ADDED
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
require File.expand_path('../boot', __FILE__)
|
|
2
|
+
|
|
3
|
+
require 'rails/all'
|
|
4
|
+
|
|
5
|
+
Bundler.require(*Rails.groups)
|
|
6
|
+
require "shoppy"
|
|
7
|
+
|
|
8
|
+
module Dummy
|
|
9
|
+
class Application < Rails::Application
|
|
10
|
+
# Settings in config/environments/* take precedence over those specified here.
|
|
11
|
+
# Application configuration should go into files in config/initializers
|
|
12
|
+
# -- all .rb files in that directory are automatically loaded.
|
|
13
|
+
|
|
14
|
+
# Set Time.zone default to the specified zone and make Active Record auto-convert to this zone.
|
|
15
|
+
# Run "rake -D time" for a list of tasks for finding time zone names. Default is UTC.
|
|
16
|
+
# config.time_zone = 'Central Time (US & Canada)'
|
|
17
|
+
|
|
18
|
+
# The default locale is :en and all translations from config/locales/*.rb,yml are auto loaded.
|
|
19
|
+
# config.i18n.load_path += Dir[Rails.root.join('my', 'locales', '*.{rb,yml}').to_s]
|
|
20
|
+
# config.i18n.default_locale = :de
|
|
21
|
+
end
|
|
22
|
+
end
|
|
23
|
+
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
# SQLite version 3.x
|
|
2
|
+
# gem install sqlite3
|
|
3
|
+
#
|
|
4
|
+
# Ensure the SQLite 3 gem is defined in your Gemfile
|
|
5
|
+
# gem 'sqlite3'
|
|
6
|
+
#
|
|
7
|
+
default: &default
|
|
8
|
+
adapter: sqlite3
|
|
9
|
+
pool: 5
|
|
10
|
+
timeout: 5000
|
|
11
|
+
|
|
12
|
+
development:
|
|
13
|
+
<<: *default
|
|
14
|
+
database: db/development.sqlite3
|
|
15
|
+
|
|
16
|
+
# Warning: The database defined as "test" will be erased and
|
|
17
|
+
# re-generated from your development database when you run "rake".
|
|
18
|
+
# Do not set this db to the same as development or production.
|
|
19
|
+
test:
|
|
20
|
+
<<: *default
|
|
21
|
+
database: db/test.sqlite3
|
|
22
|
+
|
|
23
|
+
production:
|
|
24
|
+
<<: *default
|
|
25
|
+
database: db/production.sqlite3
|
|
@@ -0,0 +1,37 @@
|
|
|
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
|
+
# Adds additional error checking when serving assets at runtime.
|
|
31
|
+
# Checks for improperly declared sprockets dependencies.
|
|
32
|
+
# Raises helpful error messages.
|
|
33
|
+
config.assets.raise_runtime_errors = true
|
|
34
|
+
|
|
35
|
+
# Raises error for missing translations
|
|
36
|
+
# config.action_view.raise_on_missing_translations = true
|
|
37
|
+
end
|