spree 0.10.2 → 0.11.0
Sign up to get free protection for your applications and to get access to all the features.
Potentially problematic release.
This version of spree might be problematic. Click here for more details.
- data/CHANGELOG +81 -4
- data/CONTRIBUTORS +18 -10
- data/Rakefile +5 -4
- data/app/controllers/admin/adjustments_controller.rb +17 -3
- data/app/controllers/admin/base_controller.rb +2 -2
- data/app/controllers/admin/checkouts_controller.rb +43 -34
- data/app/controllers/admin/line_items_controller.rb +32 -18
- data/app/controllers/admin/option_types_controller.rb +1 -1
- data/app/controllers/admin/orders_controller.rb +28 -7
- data/app/controllers/admin/payments_controller.rb +7 -7
- data/app/controllers/admin/products_controller.rb +12 -23
- data/app/controllers/admin/reports_controller.rb +19 -7
- data/app/controllers/admin/return_authorizations_controller.rb +1 -1
- data/app/controllers/admin/shipments_controller.rb +9 -9
- data/app/controllers/admin/users_controller.rb +3 -1
- data/app/controllers/admin/variants_controller.rb +2 -2
- data/app/controllers/checkouts_controller.rb +29 -18
- data/app/controllers/content_controller.rb +1 -1
- data/{vendor/extensions/localization/app → app}/controllers/locale_controller.rb +1 -1
- data/app/controllers/orders_controller.rb +33 -30
- data/app/controllers/password_resets_controller.rb +4 -4
- data/app/controllers/products_controller.rb +0 -6
- data/app/controllers/spree/base_controller.rb +9 -2
- data/app/controllers/user_sessions_controller.rb +18 -18
- data/app/controllers/users_controller.rb +2 -2
- data/app/helpers/admin/base_helper.rb +5 -2
- data/app/helpers/admin/navigation_helper.rb +1 -1
- data/app/helpers/admin/orders_helper.rb +0 -13
- data/app/helpers/admin/products_helper.rb +0 -8
- data/app/helpers/checkouts_helper.rb +5 -5
- data/app/helpers/products_helper.rb +0 -12
- data/app/helpers/spree/base_helper.rb +10 -39
- data/app/helpers/taxons_helper.rb +1 -0
- data/app/models/address.rb +6 -1
- data/app/models/app_configuration.rb +15 -14
- data/app/models/calculator/flexi_rate.rb +2 -1
- data/app/models/calculator/vat.rb +1 -1
- data/app/models/checkout.rb +1 -1
- data/app/models/creditcard.rb +26 -20
- data/app/models/inventory_unit.rb +70 -21
- data/app/models/line_item.rb +25 -11
- data/app/models/order.rb +16 -10
- data/app/models/payment.rb +4 -1
- data/app/models/payment_method.rb +14 -5
- data/app/models/product.rb +12 -4
- data/app/models/role.rb +2 -2
- data/app/models/shipment.rb +21 -2
- data/app/models/tax_category.rb +8 -0
- data/app/models/taxon.rb +8 -0
- data/app/models/user.rb +2 -3
- data/app/models/variant.rb +18 -13
- data/config/boot.rb +1 -5
- data/config/cucumber.yml +7 -0
- data/config/database.yml +20 -37
- data/config/database.yml.example +5 -6
- data/config/environment.rb +6 -5
- data/config/environments/cucumber.rb +30 -0
- data/config/environments/production.rb +1 -4
- data/config/environments/staging.rb +3 -0
- data/config/environments/test.rb +1 -1
- data/config/initializers/cookie_verification_secret.rb +7 -0
- data/config/initializers/locales.rb +4 -2
- data/config/initializers/new_rails_defaults.rb +2 -0
- data/config/initializers/spree.rb +1 -0
- data/config/initializers/workarounds_for_ruby19.rb +0 -25
- data/config/locales/{en-US.yml → en_spree.yml} +18 -4
- data/config/routes.rb +2 -1
- data/db/migrate/20100317120946_add_alt_text_to_images.rb +9 -0
- data/db/migrate/20100427121301_add_display_to_payment_methods.rb +9 -0
- data/db/migrate/20100504142133_add_addresses_checkouts_indexes.rb +16 -0
- data/db/migrate/20100506180619_add_icon_to_taxons.rb +18 -0
- data/db/migrate/20100506185838_add_description_to_taxons.rb +11 -0
- data/db/migrate/20100528155333_index_for_shipments_number.rb +9 -0
- data/db/migrate/20100528185820_add_index_on_users_persistence_token.rb +9 -0
- data/db/migrate/20100605152042_add_default_to_tax_categories.rb +9 -0
- data/db/sample/payment_methods.yml +8 -1
- data/db/sample/shipments.yml +2 -2
- data/db/schema.rb +54 -21
- data/features/checkout.feature +98 -0
- data/features/create_admin_user.feature +18 -0
- data/features/search.feature +35 -0
- data/features/sign_in.feature +25 -0
- data/features/sign_out.feature +12 -0
- data/features/sign_up.feature +20 -0
- data/features/step_definitions/error_steps.rb +3 -0
- data/features/step_definitions/model_steps.rb +3 -0
- data/features/step_definitions/pickle_steps.rb +73 -0
- data/features/step_definitions/role_steps.rb +8 -0
- data/features/step_definitions/session_steps.rb +14 -0
- data/features/step_definitions/user_steps.rb +67 -0
- data/features/step_definitions/web_steps.rb +197 -0
- data/features/support/create_admin_user.rb +6 -0
- data/features/support/env.rb +89 -0
- data/features/support/paths.rb +32 -0
- data/features/support/pickle.rb +24 -0
- data/features/work_with_cart.feature +41 -0
- data/lib/generators/extension_model/extension_model_generator.rb +10 -10
- data/lib/generators/instance/templates/databases/mysql.yml +11 -0
- data/lib/scopes/variant.rb +10 -0
- data/lib/spree.rb +3 -3
- data/lib/spree/extensions.rb +1 -1
- data/lib/tasks/cucumber.rake +47 -0
- data/lib/tasks/database.rake +29 -29
- data/public/images/admin/bg/spree_50.png +0 -0
- data/public/images/tile-header.png +0 -0
- data/public/images/tile-slider.png +0 -0
- data/public/javascripts/admin/checkouts/edit.js +33 -0
- data/public/javascripts/dashboard.js +2 -2
- data/public/javascripts/taxonomy.js +2 -2
- data/public/stylesheets/admin/admin-tables.css +4 -0
- data/public/stylesheets/admin/admin.css +31 -16
- data/public/stylesheets/screen.css +16 -3
- data/script/about +3 -2
- data/script/console +2 -2
- data/script/cucumber +10 -0
- data/script/dbconsole +1 -1
- data/script/destroy +2 -2
- data/script/generate +2 -2
- data/script/performance/benchmarker +1 -1
- data/script/performance/profiler +1 -1
- data/script/plugin +2 -2
- data/script/runner +2 -2
- data/script/server +2 -2
- data/test/fixtures/payment_methods.yml +12 -0
- data/test/functional/admin/checkouts_controller_test.rb +0 -2
- data/test/functional/admin/line_items_controller_test.rb +78 -39
- data/test/functional/admin/products_controller_test.rb +4 -5
- data/test/integration/checkout_test.rb +1 -0
- data/test/test_helper.rb +114 -86
- data/test/unit/creditcard_test.rb +28 -7
- data/test/unit/flexi_rate_calculator_test.rb +75 -0
- data/test/unit/helpers/products_helper_test.rb +4 -4
- data/test/unit/inventory_unit_test.rb +39 -5
- data/test/unit/line_item_test.rb +60 -1
- data/test/unit/order_state_test.rb +85 -58
- data/test/unit/order_test.rb +144 -123
- data/test/unit/product_test.rb +21 -0
- data/test/unit/return_authorization_test.rb +22 -28
- data/test/unit/shipment_test.rb +19 -7
- data/test/unit/variant_test.rb +100 -24
- data/vendor/extensions/api/api_extension.rb +2 -2
- data/vendor/extensions/api/app/controllers/api/base_controller.rb +14 -6
- data/vendor/extensions/api/app/controllers/api/countries_controller.rb +4 -0
- data/vendor/extensions/api/app/controllers/api/orders_controller.rb +4 -4
- data/vendor/extensions/api/app/controllers/api/products_controller.rb +5 -1
- data/vendor/extensions/api/app/controllers/api/shipments_controller.rb +7 -7
- data/vendor/extensions/api/app/controllers/api/states_controller.rb +5 -0
- data/vendor/extensions/api/config/locales/{en-US.yml → en.yml} +2 -2
- data/vendor/extensions/api/config/routes.rb +5 -0
- data/vendor/extensions/api/test/integration/orders_api_test.rb +4 -4
- data/vendor/extensions/overview_dashboard/app/views/admin/overview/index.html.erb +1 -1
- data/vendor/extensions/payment_gateway/app/models/gateway.rb +1 -1
- data/vendor/extensions/payment_gateway/app/models/gateway/authorize_net_cim.rb +41 -29
- data/vendor/extensions/payment_gateway/app/models/gateway/bogus.rb +3 -3
- data/vendor/extensions/payment_gateway/app/models/gateway/eway.rb +11 -0
- data/vendor/extensions/payment_gateway/app/models/gateway/sage_pay.rb +9 -0
- data/vendor/extensions/payment_gateway/config/locales/{en-US.yml → en.yml} +1 -1
- data/vendor/extensions/payment_gateway/lib/spree/payment_gateway.rb +46 -56
- data/vendor/extensions/payment_gateway/payment_gateway_extension.rb +9 -10
- data/vendor/extensions/payment_gateway/test/unit/authorize_net_cim_test.rb +7 -6
- data/vendor/extensions/theme_default/app/stylesheets/_checkout.less +10 -3
- data/vendor/extensions/theme_default/app/views/admin/adjustments/index.html.erb +1 -1
- data/vendor/extensions/theme_default/app/views/admin/checkouts/_form.html.erb +31 -5
- data/vendor/extensions/theme_default/app/views/admin/checkouts/show.html.erb +27 -16
- data/vendor/extensions/theme_default/app/views/admin/images/_form.html.erb +4 -0
- data/vendor/extensions/theme_default/app/views/admin/images/index.html.erb +16 -13
- data/vendor/extensions/theme_default/app/views/admin/orders/_add_product.html.erb +1 -1
- data/vendor/extensions/theme_default/app/views/admin/orders/_form.html.erb +7 -0
- data/vendor/extensions/theme_default/app/views/admin/orders/index.html.erb +5 -5
- data/vendor/extensions/theme_default/app/views/admin/payment_methods/_form.html.erb +12 -6
- data/vendor/extensions/theme_default/app/views/admin/payment_methods/index.html.erb +22 -11
- data/vendor/extensions/theme_default/app/views/admin/product_groups/update.js.erb +2 -2
- data/vendor/extensions/theme_default/app/views/admin/products/_form.html.erb +6 -4
- data/vendor/extensions/theme_default/app/views/admin/shared/_address_form.html.erb +64 -55
- data/vendor/extensions/theme_default/app/views/admin/shared/_configuration_menu.html.erb +1 -1
- data/vendor/extensions/theme_default/app/views/admin/shared/_order_tabs.html.erb +11 -3
- data/vendor/extensions/theme_default/app/views/admin/shared/_product_tabs.html.erb +1 -1
- data/vendor/extensions/theme_default/app/views/admin/shipments/_form.html.erb +32 -29
- data/vendor/extensions/theme_default/app/views/admin/shipments/index.html.erb +2 -1
- data/vendor/extensions/theme_default/app/views/admin/tax_categories/_form.html.erb +6 -3
- data/vendor/extensions/theme_default/app/views/admin/tax_categories/index.html.erb +4 -2
- data/vendor/extensions/theme_default/app/views/admin/taxonomies/_taxon.html.erb +2 -2
- data/vendor/extensions/theme_default/app/views/admin/taxons/_form.html.erb +11 -1
- data/vendor/extensions/theme_default/app/views/admin/taxons/edit.html.erb +2 -2
- data/vendor/extensions/theme_default/app/views/admin/users/_form.html.erb +1 -1
- data/vendor/extensions/theme_default/app/views/admin/variants/_form.html.erb +4 -2
- data/vendor/extensions/theme_default/app/views/checkouts/_confirm.html.erb +1 -1
- data/vendor/extensions/theme_default/app/views/checkouts/_delivery.html.erb +1 -1
- data/vendor/extensions/theme_default/app/views/checkouts/_summary.html.erb +6 -6
- data/vendor/extensions/theme_default/app/views/checkouts/edit.html.erb +3 -3
- data/vendor/extensions/theme_default/app/views/layouts/admin.html.erb +7 -5
- data/vendor/extensions/theme_default/app/views/layouts/spree_application.html.erb +8 -4
- data/vendor/extensions/theme_default/app/views/orders/_line_item.html.erb +1 -1
- data/vendor/extensions/theme_default/app/views/products/index.html.erb +0 -1
- data/vendor/extensions/theme_default/app/views/shared/_footer.html.erb +4 -2
- data/vendor/extensions/theme_default/app/views/shared/_products.html.erb +3 -1
- data/vendor/extensions/theme_default/app/views/shared/_user_form.html.erb +1 -1
- data/vendor/extensions/theme_default/public/images/admin/bg/spree_50.png +0 -0
- data/vendor/extensions/theme_default/public/images/tile-header.png +0 -0
- data/vendor/extensions/theme_default/public/images/tile-slider.png +0 -0
- data/vendor/extensions/theme_default/public/javascripts/admin/checkouts/edit.js +50 -0
- data/vendor/extensions/theme_default/public/javascripts/taxonomy.js +2 -2
- data/vendor/extensions/theme_default/public/stylesheets/admin/admin-tables.css +8 -0
- data/vendor/extensions/theme_default/public/stylesheets/admin/admin.css +31 -16
- data/vendor/extensions/theme_default/public/stylesheets/screen.css +16 -3
- data/vendor/plugins/attribute_fu/{tasks → lib/tasks}/attribute_fu_tasks.rake +0 -0
- data/vendor/plugins/enumerable_constants/{tasks → lib/tasks}/enumerable_constants_tasks.rake +0 -0
- data/vendor/plugins/find_by_param/lib/find_by_param.rb +9 -5
- data/vendor/plugins/find_by_param/{tasks → lib/tasks}/find_by_param_tasks.rake +0 -0
- data/vendor/plugins/jrails/{tasks → lib/tasks}/jrails.rake +0 -0
- data/vendor/plugins/jrails_auto_complete/{tasks → lib/tasks}/jrails_auto_complete_tasks.rake +0 -0
- data/vendor/plugins/mail_queue/{tasks → lib/tasks}/mailer_queue_tasks.rake +0 -0
- data/vendor/plugins/open_id_authentication/{tasks → lib/tasks}/open_id_authentication_tasks.rake +0 -0
- data/vendor/plugins/resource_controller/lib/resource_controller/helpers/internal.rb +2 -2
- data/vendor/plugins/ssl_requirement/lib/ssl_requirement.rb +7 -7
- data/vendor/plugins/unobtrusive_date_picker/{tasks → lib/tasks}/datepicker_tasks.rake +0 -0
- metadata +82 -342
- data/app/helpers/admin/adjustments_helper.rb +0 -2
- data/app/helpers/admin/checkouts_helper.rb +0 -2
- data/app/helpers/admin/line_items_helper.rb +0 -2
- data/app/helpers/admin/properties_helper.rb +0 -9
- data/app/helpers/admin/prototypes_helper.rb +0 -18
- data/app/helpers/admin/return_authorizations_helper.rb +0 -2
- data/config/locales/cs-CZ.yml +0 -924
- data/config/locales/cs-CZ_rails.yml +0 -202
- data/config/locales/da.yml +0 -924
- data/config/locales/da_rails.yml +0 -197
- data/config/locales/de-CH.yml +0 -924
- data/config/locales/de-CH_rails.yml +0 -142
- data/config/locales/de.yml +0 -924
- data/config/locales/de_rails.yml +0 -140
- data/config/locales/en-AU.yml +0 -924
- data/config/locales/en-AU_rails.yml +0 -202
- data/config/locales/en-GB.yml +0 -924
- data/config/locales/en-GB_rails.yml +0 -196
- data/config/locales/en-US_rails.yml +0 -200
- data/config/locales/es.yml +0 -924
- data/config/locales/es_rails.yml +0 -173
- data/config/locales/fi.yml +0 -924
- data/config/locales/fi_rails.yml +0 -143
- data/config/locales/fr-FR.yml +0 -924
- data/config/locales/fr-FR_rails.yml +0 -123
- data/config/locales/il.yml +0 -924
- data/config/locales/il_rails.yml +0 -103
- data/config/locales/it.yml +0 -924
- data/config/locales/it_rails.yml +0 -146
- data/config/locales/jp.yml +0 -924
- data/config/locales/jp_rails.yml +0 -135
- data/config/locales/mx.yml +0 -924
- data/config/locales/mx_rails.yml +0 -181
- data/config/locales/nb-NO.yml +0 -924
- data/config/locales/nb-NO_rails.yml +0 -105
- data/config/locales/nl-BE.yml +0 -924
- data/config/locales/nl-BE_rails.yml +0 -155
- data/config/locales/nl-NL.yml +0 -924
- data/config/locales/nl-NL_rails.yml +0 -172
- data/config/locales/pl.yml +0 -924
- data/config/locales/pl_rails.yml +0 -118
- data/config/locales/pt-BR.yml +0 -924
- data/config/locales/pt-BR_rails.yml +0 -138
- data/config/locales/pt-PT.yml +0 -924
- data/config/locales/pt-PT_rails.yml +0 -133
- data/config/locales/ru-RU.yml +0 -924
- data/config/locales/ru-RU_rails.yml +0 -206
- data/config/locales/th.yml +0 -924
- data/config/locales/th_rails.yml +0 -195
- data/config/locales/vn.yml +0 -924
- data/config/locales/vn_rails.yml +0 -202
- data/lib/tasks/translation.rake +0 -102
- data/vendor/extensions/localization/README.rdoc +0 -5
- data/vendor/extensions/localization/Rakefile +0 -120
- data/vendor/extensions/localization/app/controllers/admin/localization_controller.rb +0 -2
- data/vendor/extensions/localization/app/helpers/locale_helper.rb +0 -2
- data/vendor/extensions/localization/app/helpers/localization_helper.rb +0 -2
- data/vendor/extensions/localization/app/views/shared/_language_bar.html.erb +0 -8
- data/vendor/extensions/localization/config/routes.rb +0 -4
- data/vendor/extensions/localization/lib/localization/user_preferences.rb +0 -9
- data/vendor/extensions/localization/lib/tasks/localization_extension_tasks.rake +0 -17
- data/vendor/extensions/localization/localization_extension.rb +0 -21
- data/vendor/extensions/localization/public/images/flags/ad.png +0 -0
- data/vendor/extensions/localization/public/images/flags/ae.png +0 -0
- data/vendor/extensions/localization/public/images/flags/af.png +0 -0
- data/vendor/extensions/localization/public/images/flags/ag.png +0 -0
- data/vendor/extensions/localization/public/images/flags/ai.png +0 -0
- data/vendor/extensions/localization/public/images/flags/al.png +0 -0
- data/vendor/extensions/localization/public/images/flags/am.png +0 -0
- data/vendor/extensions/localization/public/images/flags/an.png +0 -0
- data/vendor/extensions/localization/public/images/flags/ao.png +0 -0
- data/vendor/extensions/localization/public/images/flags/ar.png +0 -0
- data/vendor/extensions/localization/public/images/flags/as.png +0 -0
- data/vendor/extensions/localization/public/images/flags/at.png +0 -0
- data/vendor/extensions/localization/public/images/flags/au.png +0 -0
- data/vendor/extensions/localization/public/images/flags/aw.png +0 -0
- data/vendor/extensions/localization/public/images/flags/ax.png +0 -0
- data/vendor/extensions/localization/public/images/flags/az.png +0 -0
- data/vendor/extensions/localization/public/images/flags/ba.png +0 -0
- data/vendor/extensions/localization/public/images/flags/bb.png +0 -0
- data/vendor/extensions/localization/public/images/flags/bd.png +0 -0
- data/vendor/extensions/localization/public/images/flags/be.png +0 -0
- data/vendor/extensions/localization/public/images/flags/bf.png +0 -0
- data/vendor/extensions/localization/public/images/flags/bg.png +0 -0
- data/vendor/extensions/localization/public/images/flags/bh.png +0 -0
- data/vendor/extensions/localization/public/images/flags/bi.png +0 -0
- data/vendor/extensions/localization/public/images/flags/bj.png +0 -0
- data/vendor/extensions/localization/public/images/flags/bm.png +0 -0
- data/vendor/extensions/localization/public/images/flags/bn.png +0 -0
- data/vendor/extensions/localization/public/images/flags/bo.png +0 -0
- data/vendor/extensions/localization/public/images/flags/br.png +0 -0
- data/vendor/extensions/localization/public/images/flags/bs.png +0 -0
- data/vendor/extensions/localization/public/images/flags/bt.png +0 -0
- data/vendor/extensions/localization/public/images/flags/bv.png +0 -0
- data/vendor/extensions/localization/public/images/flags/bw.png +0 -0
- data/vendor/extensions/localization/public/images/flags/by.png +0 -0
- data/vendor/extensions/localization/public/images/flags/bz.png +0 -0
- data/vendor/extensions/localization/public/images/flags/ca.png +0 -0
- data/vendor/extensions/localization/public/images/flags/catalonia.png +0 -0
- data/vendor/extensions/localization/public/images/flags/cc.png +0 -0
- data/vendor/extensions/localization/public/images/flags/cd.png +0 -0
- data/vendor/extensions/localization/public/images/flags/cf.png +0 -0
- data/vendor/extensions/localization/public/images/flags/cg.png +0 -0
- data/vendor/extensions/localization/public/images/flags/ch.png +0 -0
- data/vendor/extensions/localization/public/images/flags/ci.png +0 -0
- data/vendor/extensions/localization/public/images/flags/ck.png +0 -0
- data/vendor/extensions/localization/public/images/flags/cl.png +0 -0
- data/vendor/extensions/localization/public/images/flags/cm.png +0 -0
- data/vendor/extensions/localization/public/images/flags/cn.png +0 -0
- data/vendor/extensions/localization/public/images/flags/co.png +0 -0
- data/vendor/extensions/localization/public/images/flags/cr.png +0 -0
- data/vendor/extensions/localization/public/images/flags/cs.png +0 -0
- data/vendor/extensions/localization/public/images/flags/cu.png +0 -0
- data/vendor/extensions/localization/public/images/flags/cv.png +0 -0
- data/vendor/extensions/localization/public/images/flags/cx.png +0 -0
- data/vendor/extensions/localization/public/images/flags/cy.png +0 -0
- data/vendor/extensions/localization/public/images/flags/cz.png +0 -0
- data/vendor/extensions/localization/public/images/flags/da.png +0 -0
- data/vendor/extensions/localization/public/images/flags/de.png +0 -0
- data/vendor/extensions/localization/public/images/flags/de_CH.png +0 -0
- data/vendor/extensions/localization/public/images/flags/dj.png +0 -0
- data/vendor/extensions/localization/public/images/flags/dm.png +0 -0
- data/vendor/extensions/localization/public/images/flags/do.png +0 -0
- data/vendor/extensions/localization/public/images/flags/dz.png +0 -0
- data/vendor/extensions/localization/public/images/flags/ec.png +0 -0
- data/vendor/extensions/localization/public/images/flags/ee.png +0 -0
- data/vendor/extensions/localization/public/images/flags/eg.png +0 -0
- data/vendor/extensions/localization/public/images/flags/eh.png +0 -0
- data/vendor/extensions/localization/public/images/flags/england.png +0 -0
- data/vendor/extensions/localization/public/images/flags/er.png +0 -0
- data/vendor/extensions/localization/public/images/flags/es.png +0 -0
- data/vendor/extensions/localization/public/images/flags/et.png +0 -0
- data/vendor/extensions/localization/public/images/flags/europeanunion.png +0 -0
- data/vendor/extensions/localization/public/images/flags/fam.png +0 -0
- data/vendor/extensions/localization/public/images/flags/fi.png +0 -0
- data/vendor/extensions/localization/public/images/flags/fj.png +0 -0
- data/vendor/extensions/localization/public/images/flags/fk.png +0 -0
- data/vendor/extensions/localization/public/images/flags/fm.png +0 -0
- data/vendor/extensions/localization/public/images/flags/fo.png +0 -0
- data/vendor/extensions/localization/public/images/flags/fr.png +0 -0
- data/vendor/extensions/localization/public/images/flags/ga.png +0 -0
- data/vendor/extensions/localization/public/images/flags/gb.png +0 -0
- data/vendor/extensions/localization/public/images/flags/gd.png +0 -0
- data/vendor/extensions/localization/public/images/flags/ge.png +0 -0
- data/vendor/extensions/localization/public/images/flags/gf.png +0 -0
- data/vendor/extensions/localization/public/images/flags/gh.png +0 -0
- data/vendor/extensions/localization/public/images/flags/gi.png +0 -0
- data/vendor/extensions/localization/public/images/flags/gl.png +0 -0
- data/vendor/extensions/localization/public/images/flags/gm.png +0 -0
- data/vendor/extensions/localization/public/images/flags/gn.png +0 -0
- data/vendor/extensions/localization/public/images/flags/gp.png +0 -0
- data/vendor/extensions/localization/public/images/flags/gq.png +0 -0
- data/vendor/extensions/localization/public/images/flags/gr.png +0 -0
- data/vendor/extensions/localization/public/images/flags/gs.png +0 -0
- data/vendor/extensions/localization/public/images/flags/gt.png +0 -0
- data/vendor/extensions/localization/public/images/flags/gu.png +0 -0
- data/vendor/extensions/localization/public/images/flags/gw.png +0 -0
- data/vendor/extensions/localization/public/images/flags/gy.png +0 -0
- data/vendor/extensions/localization/public/images/flags/hk.png +0 -0
- data/vendor/extensions/localization/public/images/flags/hm.png +0 -0
- data/vendor/extensions/localization/public/images/flags/hn.png +0 -0
- data/vendor/extensions/localization/public/images/flags/hr.png +0 -0
- data/vendor/extensions/localization/public/images/flags/ht.png +0 -0
- data/vendor/extensions/localization/public/images/flags/hu.png +0 -0
- data/vendor/extensions/localization/public/images/flags/id.png +0 -0
- data/vendor/extensions/localization/public/images/flags/ie.png +0 -0
- data/vendor/extensions/localization/public/images/flags/il.png +0 -0
- data/vendor/extensions/localization/public/images/flags/in.png +0 -0
- data/vendor/extensions/localization/public/images/flags/io.png +0 -0
- data/vendor/extensions/localization/public/images/flags/iq.png +0 -0
- data/vendor/extensions/localization/public/images/flags/ir.png +0 -0
- data/vendor/extensions/localization/public/images/flags/is.png +0 -0
- data/vendor/extensions/localization/public/images/flags/it.png +0 -0
- data/vendor/extensions/localization/public/images/flags/jm.png +0 -0
- data/vendor/extensions/localization/public/images/flags/jo.png +0 -0
- data/vendor/extensions/localization/public/images/flags/jp.png +0 -0
- data/vendor/extensions/localization/public/images/flags/ke.png +0 -0
- data/vendor/extensions/localization/public/images/flags/kg.png +0 -0
- data/vendor/extensions/localization/public/images/flags/kh.png +0 -0
- data/vendor/extensions/localization/public/images/flags/ki.png +0 -0
- data/vendor/extensions/localization/public/images/flags/km.png +0 -0
- data/vendor/extensions/localization/public/images/flags/kn.png +0 -0
- data/vendor/extensions/localization/public/images/flags/kp.png +0 -0
- data/vendor/extensions/localization/public/images/flags/kr.png +0 -0
- data/vendor/extensions/localization/public/images/flags/kw.png +0 -0
- data/vendor/extensions/localization/public/images/flags/ky.png +0 -0
- data/vendor/extensions/localization/public/images/flags/kz.png +0 -0
- data/vendor/extensions/localization/public/images/flags/la.png +0 -0
- data/vendor/extensions/localization/public/images/flags/lb.png +0 -0
- data/vendor/extensions/localization/public/images/flags/lc.png +0 -0
- data/vendor/extensions/localization/public/images/flags/li.png +0 -0
- data/vendor/extensions/localization/public/images/flags/lk.png +0 -0
- data/vendor/extensions/localization/public/images/flags/lr.png +0 -0
- data/vendor/extensions/localization/public/images/flags/ls.png +0 -0
- data/vendor/extensions/localization/public/images/flags/lt.png +0 -0
- data/vendor/extensions/localization/public/images/flags/lu.png +0 -0
- data/vendor/extensions/localization/public/images/flags/lv.png +0 -0
- data/vendor/extensions/localization/public/images/flags/ly.png +0 -0
- data/vendor/extensions/localization/public/images/flags/ma.png +0 -0
- data/vendor/extensions/localization/public/images/flags/mc.png +0 -0
- data/vendor/extensions/localization/public/images/flags/md.png +0 -0
- data/vendor/extensions/localization/public/images/flags/me.png +0 -0
- data/vendor/extensions/localization/public/images/flags/mg.png +0 -0
- data/vendor/extensions/localization/public/images/flags/mh.png +0 -0
- data/vendor/extensions/localization/public/images/flags/mk.png +0 -0
- data/vendor/extensions/localization/public/images/flags/ml.png +0 -0
- data/vendor/extensions/localization/public/images/flags/mm.png +0 -0
- data/vendor/extensions/localization/public/images/flags/mn.png +0 -0
- data/vendor/extensions/localization/public/images/flags/mo.png +0 -0
- data/vendor/extensions/localization/public/images/flags/mp.png +0 -0
- data/vendor/extensions/localization/public/images/flags/mq.png +0 -0
- data/vendor/extensions/localization/public/images/flags/mr.png +0 -0
- data/vendor/extensions/localization/public/images/flags/ms.png +0 -0
- data/vendor/extensions/localization/public/images/flags/mt.png +0 -0
- data/vendor/extensions/localization/public/images/flags/mu.png +0 -0
- data/vendor/extensions/localization/public/images/flags/mv.png +0 -0
- data/vendor/extensions/localization/public/images/flags/mw.png +0 -0
- data/vendor/extensions/localization/public/images/flags/mx.png +0 -0
- data/vendor/extensions/localization/public/images/flags/my.png +0 -0
- data/vendor/extensions/localization/public/images/flags/mz.png +0 -0
- data/vendor/extensions/localization/public/images/flags/na.png +0 -0
- data/vendor/extensions/localization/public/images/flags/nc.png +0 -0
- data/vendor/extensions/localization/public/images/flags/ne.png +0 -0
- data/vendor/extensions/localization/public/images/flags/nf.png +0 -0
- data/vendor/extensions/localization/public/images/flags/ng.png +0 -0
- data/vendor/extensions/localization/public/images/flags/ni.png +0 -0
- data/vendor/extensions/localization/public/images/flags/nl.png +0 -0
- data/vendor/extensions/localization/public/images/flags/no.png +0 -0
- data/vendor/extensions/localization/public/images/flags/np.png +0 -0
- data/vendor/extensions/localization/public/images/flags/nr.png +0 -0
- data/vendor/extensions/localization/public/images/flags/nu.png +0 -0
- data/vendor/extensions/localization/public/images/flags/nz.png +0 -0
- data/vendor/extensions/localization/public/images/flags/om.png +0 -0
- data/vendor/extensions/localization/public/images/flags/pa.png +0 -0
- data/vendor/extensions/localization/public/images/flags/pe.png +0 -0
- data/vendor/extensions/localization/public/images/flags/pf.png +0 -0
- data/vendor/extensions/localization/public/images/flags/pg.png +0 -0
- data/vendor/extensions/localization/public/images/flags/ph.png +0 -0
- data/vendor/extensions/localization/public/images/flags/pk.png +0 -0
- data/vendor/extensions/localization/public/images/flags/pl.png +0 -0
- data/vendor/extensions/localization/public/images/flags/pm.png +0 -0
- data/vendor/extensions/localization/public/images/flags/pn.png +0 -0
- data/vendor/extensions/localization/public/images/flags/pr.png +0 -0
- data/vendor/extensions/localization/public/images/flags/ps.png +0 -0
- data/vendor/extensions/localization/public/images/flags/pt.png +0 -0
- data/vendor/extensions/localization/public/images/flags/pw.png +0 -0
- data/vendor/extensions/localization/public/images/flags/py.png +0 -0
- data/vendor/extensions/localization/public/images/flags/qa.png +0 -0
- data/vendor/extensions/localization/public/images/flags/re.png +0 -0
- data/vendor/extensions/localization/public/images/flags/ro.png +0 -0
- data/vendor/extensions/localization/public/images/flags/rs.png +0 -0
- data/vendor/extensions/localization/public/images/flags/ru.png +0 -0
- data/vendor/extensions/localization/public/images/flags/rw.png +0 -0
- data/vendor/extensions/localization/public/images/flags/sa.png +0 -0
- data/vendor/extensions/localization/public/images/flags/sb.png +0 -0
- data/vendor/extensions/localization/public/images/flags/sc.png +0 -0
- data/vendor/extensions/localization/public/images/flags/scotland.png +0 -0
- data/vendor/extensions/localization/public/images/flags/sd.png +0 -0
- data/vendor/extensions/localization/public/images/flags/se.png +0 -0
- data/vendor/extensions/localization/public/images/flags/sg.png +0 -0
- data/vendor/extensions/localization/public/images/flags/sh.png +0 -0
- data/vendor/extensions/localization/public/images/flags/si.png +0 -0
- data/vendor/extensions/localization/public/images/flags/sj.png +0 -0
- data/vendor/extensions/localization/public/images/flags/sk.png +0 -0
- data/vendor/extensions/localization/public/images/flags/sl.png +0 -0
- data/vendor/extensions/localization/public/images/flags/sm.png +0 -0
- data/vendor/extensions/localization/public/images/flags/sn.png +0 -0
- data/vendor/extensions/localization/public/images/flags/so.png +0 -0
- data/vendor/extensions/localization/public/images/flags/sr.png +0 -0
- data/vendor/extensions/localization/public/images/flags/st.png +0 -0
- data/vendor/extensions/localization/public/images/flags/sv.png +0 -0
- data/vendor/extensions/localization/public/images/flags/sy.png +0 -0
- data/vendor/extensions/localization/public/images/flags/sz.png +0 -0
- data/vendor/extensions/localization/public/images/flags/tc.png +0 -0
- data/vendor/extensions/localization/public/images/flags/td.png +0 -0
- data/vendor/extensions/localization/public/images/flags/tf.png +0 -0
- data/vendor/extensions/localization/public/images/flags/tg.png +0 -0
- data/vendor/extensions/localization/public/images/flags/th.png +0 -0
- data/vendor/extensions/localization/public/images/flags/tj.png +0 -0
- data/vendor/extensions/localization/public/images/flags/tk.png +0 -0
- data/vendor/extensions/localization/public/images/flags/tl.png +0 -0
- data/vendor/extensions/localization/public/images/flags/tm.png +0 -0
- data/vendor/extensions/localization/public/images/flags/tn.png +0 -0
- data/vendor/extensions/localization/public/images/flags/to.png +0 -0
- data/vendor/extensions/localization/public/images/flags/tr.png +0 -0
- data/vendor/extensions/localization/public/images/flags/tt.png +0 -0
- data/vendor/extensions/localization/public/images/flags/tv.png +0 -0
- data/vendor/extensions/localization/public/images/flags/tw.png +0 -0
- data/vendor/extensions/localization/public/images/flags/tz.png +0 -0
- data/vendor/extensions/localization/public/images/flags/ua.png +0 -0
- data/vendor/extensions/localization/public/images/flags/ug.png +0 -0
- data/vendor/extensions/localization/public/images/flags/um.png +0 -0
- data/vendor/extensions/localization/public/images/flags/us.png +0 -0
- data/vendor/extensions/localization/public/images/flags/uy.png +0 -0
- data/vendor/extensions/localization/public/images/flags/uz.png +0 -0
- data/vendor/extensions/localization/public/images/flags/va.png +0 -0
- data/vendor/extensions/localization/public/images/flags/vc.png +0 -0
- data/vendor/extensions/localization/public/images/flags/ve.png +0 -0
- data/vendor/extensions/localization/public/images/flags/vg.png +0 -0
- data/vendor/extensions/localization/public/images/flags/vi.png +0 -0
- data/vendor/extensions/localization/public/images/flags/vn.png +0 -0
- data/vendor/extensions/localization/public/images/flags/vu.png +0 -0
- data/vendor/extensions/localization/public/images/flags/wales.png +0 -0
- data/vendor/extensions/localization/public/images/flags/wf.png +0 -0
- data/vendor/extensions/localization/public/images/flags/ws.png +0 -0
- data/vendor/extensions/localization/public/images/flags/ye.png +0 -0
- data/vendor/extensions/localization/public/images/flags/yt.png +0 -0
- data/vendor/extensions/localization/public/images/flags/za.png +0 -0
- data/vendor/extensions/localization/public/images/flags/zm.png +0 -0
- data/vendor/extensions/localization/public/images/flags/zw.png +0 -0
- data/vendor/extensions/localization/spec/controllers/admin/localization_controller_spec.rb +0 -10
- data/vendor/extensions/localization/spec/controllers/locale_controller_spec.rb +0 -35
- data/vendor/extensions/localization/spec/helpers/locale_helper_spec.rb +0 -5
- data/vendor/extensions/localization/spec/helpers/localization_helper_spec.rb +0 -5
- data/vendor/extensions/localization/spec/spec.opts +0 -6
- data/vendor/extensions/localization/spec/spec_helper.rb +0 -37
- data/vendor/extensions/payment_gateway/app/models/gateway/protx.rb +0 -9
- data/vendor/extensions/theme_default/app/views/admin/taxonomies/_manage_products.rhtml +0 -31
- data/vendor/extensions/theme_default/app/views/admin/taxonomies/_success.rhtml +0 -1
data/CHANGELOG
CHANGED
@@ -1,3 +1,80 @@
|
|
1
|
+
== 0.11.0
|
2
|
+
|
3
|
+
* # - 728 ProductsController::change_image method is not in use
|
4
|
+
* # - 1170 Support EWay payment gateway (AU)
|
5
|
+
* # - 1194 Improve confirmation button text for checkout steps
|
6
|
+
* # - 1232 user.has_role? should respect changes to roles and reloads
|
7
|
+
* # - 1235 Explicitly define the @orders collection on which to paginate in the admin/orders/index view
|
8
|
+
* # - 1236 Improve API for products.
|
9
|
+
* # - 1239 Introduce support of Cucumber
|
10
|
+
* # - 1256 Add alternative text to product images
|
11
|
+
* # - 1259 Admin orders shipping method not saving
|
12
|
+
* # - 1266 Ensure CheckoutsController#update uses consistent variable names
|
13
|
+
* # - 1268 Allow disabling of inventory level management
|
14
|
+
* # - 1277 Add "Use Billing Address" tickbox to admin checkouts
|
15
|
+
* # - 1288 Add ruby-openid into gem dependency
|
16
|
+
* # - 1290 missing 'show_active' in translation yml
|
17
|
+
* # - 1294 undefined method `payment_profiles_supported?' for nil:NilClass
|
18
|
+
* # - 1297 Button for applying coupon/discount codes
|
19
|
+
* # - 1299 Wrong usage of I18n in dashboard
|
20
|
+
* # - 1305 Protx gateway needs updating
|
21
|
+
* # - 1307 Do not restrict index action for OrdersController
|
22
|
+
* # - 1311 [patch] Making unit tests faster
|
23
|
+
* # - 1312 Inline Styles in theme_default/app/views/checkouts/edit.html
|
24
|
+
* # - 1313 Taxon rename through admin interface sends wrong new name in ajax request
|
25
|
+
* # - 1314 Potential vulnerability after overriding OrdersController actions
|
26
|
+
* # - 1318 permalink handling of non-unique strings is broken
|
27
|
+
* # - 1321 Address model's checkouts association does not return all checkouts
|
28
|
+
* # - 1325 Coupons with lower-case characters fail - With Fix
|
29
|
+
* # - 1327 Content controller should have option to skip cacheing
|
30
|
+
* # - 1328 Extraneous migration folder with script/generate extension_model
|
31
|
+
* # - 1329 Allow admin to delete shipments
|
32
|
+
* # - 1331 Sample Data
|
33
|
+
* # - 1333 Error in vat calculation
|
34
|
+
* # - 1337 Remove white-space from creditcard fields
|
35
|
+
* # - 1338 States / Countries info should be returned by API
|
36
|
+
* # - 1341 Ensure admin orders are associated to user
|
37
|
+
* # - 1343 Failed cucumber features caused by fixing ticket #1194
|
38
|
+
* # - 1346 Taxons need Description and Image
|
39
|
+
* # - 1352 Bug when Backordering is FALSE and user adds product to cart
|
40
|
+
* # - 1354 Rails scripts are not up-to-date
|
41
|
+
* # - 1358 Move translations into new extension
|
42
|
+
* # - 1361 Wrong translation used to confirm password
|
43
|
+
* # - 1365 Allow specifying where payment methods are displayed
|
44
|
+
* # - 1374 Shipment API calls are not eagerly loading
|
45
|
+
* # - 1376 Searching for user during admin order can be slow with large datasets
|
46
|
+
* # - 1377 Delete shipment does not unassign inventory units
|
47
|
+
* # - 1378 Allow adjustments to be added to new admin orders
|
48
|
+
* # - 1383 Checkout test fails when anonymous checkout is enabled in an extension
|
49
|
+
* # - 1384 [PATCH] Migration that add a description and an icon to taxons created with wrong date
|
50
|
+
* # - 1388 Improve performance of admin order search
|
51
|
+
* # - 1393 Improve GatewayError logging
|
52
|
+
* # - 1394 Inventory can be double counted if order completion fails unexpectedly
|
53
|
+
* # - 1399 Order#cancel is not updating shipments
|
54
|
+
* # - 1403 Completed orders can be incorrectly reassigned
|
55
|
+
* # - 1405 Improved staging environment
|
56
|
+
* # - 1406 Improve product search for admin orders
|
57
|
+
* # - 1409 Inventory units are not created / destroyed on admin order edit
|
58
|
+
* # - 1410 Dates change when searching for orders by date ranges
|
59
|
+
* # - 1412 Document code in app/helpers/admin/base_helper.rb
|
60
|
+
* # - 1413 Upgrade to Rails 2.3.8
|
61
|
+
* # - 1415 Remove RubyGems deprecation warning workaround
|
62
|
+
* # - 1417 Spree could not use AuthLogic 2.1.4
|
63
|
+
* # - 1421 Error while deleting an user in admin backend
|
64
|
+
* # - 1425 Promote new Rails2.3.6 way for Flash alert and notice
|
65
|
+
* # - 1430 Add tags, *.swp and rerun.txt to Gitignore
|
66
|
+
* # - 1432 Error when emptying the cart
|
67
|
+
* # - 1434 Escape issues with Rails 2.3.8
|
68
|
+
* # - 1435 Remove deprecation warnings caused by rake tasks
|
69
|
+
* # - 1436 ruby 1.9.1 i18n wrong argument issue
|
70
|
+
* # - 1438 Cucumber tests can fail with RoR 2.3.8
|
71
|
+
* # - 1443 Escape issues with breadcrumb
|
72
|
+
* # - 1445 Problem when submitting a coupon code
|
73
|
+
* # - 1446 Rake task for i18n:sync not work
|
74
|
+
* # - 1447 Analytics showing incorrect checkout step
|
75
|
+
* # - 1448 Allow setting default tax category for all products via UI
|
76
|
+
|
77
|
+
|
1
78
|
== 0.10.2
|
2
79
|
|
3
80
|
* # - 1215 Update Vietnamese translation
|
@@ -26,7 +103,7 @@
|
|
26
103
|
* # - 16 Add Robots.txt file
|
27
104
|
* # - 188 Allow admin to create new shipments
|
28
105
|
* # - 247 Restrict shipping methods based on order contents
|
29
|
-
* # - 301 Limit billing and shipping
|
106
|
+
* # - 301 Limit billing and shipping address to the same list of countries.
|
30
107
|
* # - 316 Relation between option_types and product_option_types can break
|
31
108
|
* # - 320 Remove all traces of Prototype
|
32
109
|
* # - 361 Drop tlsmail dependency
|
@@ -43,7 +120,7 @@
|
|
43
120
|
* # - 624 link_to_delete, ajax request missing datatype
|
44
121
|
* # - 637 Translation of helpers and confirmation messages
|
45
122
|
* # - 638 Property and Prototype specs fails when spree is running in language other than en-US
|
46
|
-
* # - 651 Use I18n to display order statuses in
|
123
|
+
* # - 651 Use I18n to display order statuses in com bobox.
|
47
124
|
* # - 652 Calls will_paginate helper with wrong attributes.
|
48
125
|
* # - 667 jQuery.validate plugin should support internationalization.
|
49
126
|
* # - 675 Remove calendar_date_select
|
@@ -98,7 +175,7 @@
|
|
98
175
|
* # - 851 Guest account email on registration
|
99
176
|
* # - 852 Missing strings localizations
|
100
177
|
* # - 853 Issue with Shipping Address On Multiple Checkouts From Single User
|
101
|
-
* # - 858 Integration tests failing
|
178
|
+
* # - 858 Integration tests failing because of Metal
|
102
179
|
* # - 860 Checkout can prematurely process creditcard
|
103
180
|
* # - 862 Errors when adding item to order are never displayed
|
104
181
|
* # - 863 Improve performance of displaying of products.
|
@@ -196,7 +273,7 @@
|
|
196
273
|
* # - 1162 rake db:load_file, db:load_dir unnecessarily establishes connection (?)
|
197
274
|
* # - 1166 City and phone not translated in checkout edit address view
|
198
275
|
* # - 1168 Need to recreate reduced BillingIntegration class
|
199
|
-
* # - 1171 Local change
|
276
|
+
* # - 1171 Local change suddenly when browsing into admin overview
|
200
277
|
* # - 1172 Payments admin views should use partials for each payment_method
|
201
278
|
* # - 1173 CSS problem with js-validation of address
|
202
279
|
* # - 1182 Beanstream Secure Payment profile support
|
data/CONTRIBUTORS
CHANGED
@@ -20,7 +20,8 @@ Roman Smirnov
|
|
20
20
|
The following people have submitted changes which have been applied to the
|
21
21
|
core (in alphabetical order by first name):
|
22
22
|
|
23
|
-
Adam Vollrath
|
23
|
+
Adam Vollrath
|
24
|
+
Arek Flinik
|
24
25
|
barbecues
|
25
26
|
Ben Marini
|
26
27
|
Bernd Ahlers
|
@@ -28,24 +29,29 @@ Bo Frederiksen
|
|
28
29
|
Bobby Santiago
|
29
30
|
Bradley Grzesiak and Nick Karpenske
|
30
31
|
brandon
|
31
|
-
Brian Quinn
|
32
|
+
Brian Quinn
|
33
|
+
BrunoGrasselli
|
32
34
|
Bryan Mahoney
|
33
|
-
Caius Durling
|
35
|
+
Caius Durling
|
36
|
+
Carlos Lima
|
34
37
|
Chris Gaskett
|
35
38
|
Chris Jones
|
36
39
|
Christopher Maujean
|
37
40
|
Claudio Perez Gamayo
|
38
41
|
Dale Hofkens
|
39
42
|
David Li
|
40
|
-
David North
|
43
|
+
David North
|
44
|
+
David Peterson
|
41
45
|
Davor Ocelic
|
42
46
|
Dmitry Shaposhnik
|
43
47
|
dru
|
44
48
|
Edmundo Valle Neto
|
45
49
|
Eliot Sykes
|
46
|
-
Eric Budd
|
50
|
+
Eric Budd
|
51
|
+
Eric Pierce
|
47
52
|
Ethan Rowe
|
48
|
-
Fabio Akita
|
53
|
+
Fabio Akita
|
54
|
+
Galen Krumel & Joseph Palermo
|
49
55
|
Gregg Pollack
|
50
56
|
Gustavo Gonzalez
|
51
57
|
Hirotaka Mizutani
|
@@ -70,7 +76,8 @@ mjwall
|
|
70
76
|
mwestover
|
71
77
|
Nate Murray
|
72
78
|
paul
|
73
|
-
Paul Saieg
|
79
|
+
Paul Saieg
|
80
|
+
Patrick Klingemann
|
74
81
|
paulcc
|
75
82
|
Peter Berkenbosch
|
76
83
|
Petri Kivikangas
|
@@ -84,7 +91,9 @@ Robert Kuhr
|
|
84
91
|
Roman Smirnov
|
85
92
|
ron
|
86
93
|
Rune Botten
|
87
|
-
Ryan McGeary
|
94
|
+
Ryan McGeary
|
95
|
+
Sarah Mei & Zach Brock
|
96
|
+
Scott Brooks
|
88
97
|
Scott Jacobsen
|
89
98
|
Sean Schofield
|
90
99
|
Simon Robson
|
@@ -99,9 +108,8 @@ tom
|
|
99
108
|
Tomasz Mazur
|
100
109
|
Tony Pelaez
|
101
110
|
Tor Hovland
|
102
|
-
Torsten
|
111
|
+
Torsten Ruger
|
103
112
|
Trung LE
|
104
|
-
unknown
|
105
113
|
Will Emerson
|
106
114
|
Wynn Netherland
|
107
115
|
yitzhakbg
|
data/Rakefile
CHANGED
@@ -24,10 +24,10 @@ begin
|
|
24
24
|
s.rubyforge_project = 'spree'
|
25
25
|
s.version = Spree::Version
|
26
26
|
s.add_dependency 'rake', '>= 0.7.1'
|
27
|
-
s.add_dependency 'rails', '= 2.3.
|
28
|
-
s.add_dependency 'rack', '>= 1.0
|
27
|
+
s.add_dependency 'rails', '= 2.3.8'
|
28
|
+
s.add_dependency 'rack', '>= 1.1.0'
|
29
29
|
s.add_dependency 'highline', '= 1.5.1'
|
30
|
-
s.add_dependency 'authlogic', '
|
30
|
+
s.add_dependency 'authlogic', '2.1.3'
|
31
31
|
s.add_dependency 'authlogic-oid', "1.0.4"
|
32
32
|
s.add_dependency 'activemerchant', '= 1.5.1'
|
33
33
|
s.add_dependency 'activerecord-tableless', '= 0.1.0'
|
@@ -39,7 +39,8 @@ begin
|
|
39
39
|
s.add_dependency 'will_paginate', "2.3.11"
|
40
40
|
s.add_dependency 'state_machine', "0.8.0"
|
41
41
|
s.add_dependency 'faker', "0.3.1"
|
42
|
-
s.add_dependency 'paperclip', "= 2.3.1.1"
|
42
|
+
s.add_dependency 'paperclip', "= 2.3.1.1"
|
43
|
+
s.add_dependency 'ruby-openid', '>= 2.0.4'
|
43
44
|
|
44
45
|
s.has_rdoc = true
|
45
46
|
rdoc_excludes = Dir["**"].reject { |f| !File.directory? f }
|
@@ -10,15 +10,17 @@ class Admin::AdjustmentsController < Admin::BaseController
|
|
10
10
|
destroy.success.wants.js { render_js_for_destroy }
|
11
11
|
|
12
12
|
create.before :set_type
|
13
|
-
create.after :
|
13
|
+
create.after :update_totals_and_complete_free_order
|
14
14
|
update.after :update_totals
|
15
15
|
destroy.after :update_totals
|
16
16
|
|
17
17
|
private
|
18
18
|
def list_adjustment_types
|
19
|
+
applicable_credits = Credit.subclasses.reject{|c| c.to_s == "CouponCredit" }
|
20
|
+
applicable_charges = Charge.subclasses
|
19
21
|
@adjustment_types ||= [
|
20
|
-
[ 'Credits',
|
21
|
-
[ 'Charges',
|
22
|
+
[ 'Credits', applicable_credits.map {|c| [c.to_s.titleize, c.to_s]} ],
|
23
|
+
[ 'Charges', applicable_charges.map {|c| [c.to_s.titleize, c.to_s]} ]
|
22
24
|
]
|
23
25
|
end
|
24
26
|
|
@@ -29,4 +31,16 @@ class Admin::AdjustmentsController < Admin::BaseController
|
|
29
31
|
def update_totals
|
30
32
|
@order.update_totals!
|
31
33
|
end
|
34
|
+
|
35
|
+
# Automatically complete and order where no payment is necessary because adjustments cancel out the total
|
36
|
+
def update_totals_and_complete_free_order
|
37
|
+
@order.update_totals!
|
38
|
+
if @order.in_progress? and @order.item_total > 0 and @order.total == 0 and @order.payments.total == 0
|
39
|
+
until @order.checkout.complete?
|
40
|
+
@order.checkout.next!
|
41
|
+
end
|
42
|
+
@order.reload.pay!
|
43
|
+
end
|
44
|
+
end
|
45
|
+
|
32
46
|
end
|
@@ -12,8 +12,8 @@ class Admin::BaseController < Spree::BaseController
|
|
12
12
|
end
|
13
13
|
|
14
14
|
def render_js_for_destroy
|
15
|
-
render :js => "$('.flash.notice').html('#{
|
16
|
-
|
15
|
+
render :js => "$('.flash.notice').html('#{self.notice}'); $('.flash.notice').show();"
|
16
|
+
self.notice = nil
|
17
17
|
end
|
18
18
|
|
19
19
|
def require_object_editable_by_current_user
|
@@ -1,41 +1,50 @@
|
|
1
1
|
class Admin::CheckoutsController < Admin::BaseController
|
2
|
-
|
3
|
-
|
4
|
-
|
5
|
-
|
2
|
+
resource_controller :singleton
|
3
|
+
actions :edit, :update, :show
|
4
|
+
belongs_to :order
|
5
|
+
before_filter :load_data
|
6
|
+
ssl_required
|
6
7
|
|
7
|
-
|
8
|
-
|
8
|
+
create.flash nil
|
9
|
+
update.flash nil
|
9
10
|
|
10
|
-
|
11
|
-
|
12
|
-
redirect_to edit_admin_order_shipment_url(@order, @order.shipment)
|
13
|
-
else
|
14
|
-
redirect_to admin_order_checkout_url(@order)
|
15
|
-
end
|
16
|
-
end
|
11
|
+
edit.before :edit_before
|
12
|
+
update.before :update_before
|
17
13
|
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
default_country = Country.find Spree::Config[:default_country_id]
|
26
|
-
end
|
27
|
-
@states = default_country.states.sort
|
28
|
-
end
|
14
|
+
update.wants.html do
|
15
|
+
if @order.in_progress?
|
16
|
+
redirect_to edit_admin_order_shipment_url(@order, @order.shipment)
|
17
|
+
else
|
18
|
+
redirect_to admin_order_checkout_url(@order)
|
19
|
+
end
|
20
|
+
end
|
29
21
|
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
22
|
+
private
|
23
|
+
def load_data
|
24
|
+
@countries = Country.find(:all).sort
|
25
|
+
if params[:checkout] && params[:checkout][:bill_address_attributes]
|
26
|
+
default_country = Country.find params[:checkout][:bill_address_attributes][:country_id]
|
27
|
+
elsif params[:checkout] && params[:checkout][:ship_address_attributes]
|
28
|
+
default_country = Country.find params[:checkout][:ship_address_attributes][:country_id]
|
29
|
+
elsif object.bill_address && object.bill_address.country
|
30
|
+
default_country = object.bill_address.country
|
31
|
+
elsif current_user && current_user.bill_address
|
32
|
+
default_country = current_user.bill_address.country
|
33
|
+
else
|
34
|
+
default_country = Country.find Spree::Config[:default_country_id]
|
35
|
+
end
|
36
|
+
@states = default_country.states.sort
|
37
|
+
end
|
34
38
|
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
|
40
|
-
|
39
|
+
def edit_before
|
40
|
+
@checkout.build_bill_address(:country_id => Spree::Config[:default_country_id]) if @checkout.bill_address.nil?
|
41
|
+
@checkout.build_ship_address(:country_id => Spree::Config[:default_country_id]) if @checkout.ship_address.nil?
|
42
|
+
end
|
43
|
+
|
44
|
+
def update_before
|
45
|
+
@checkout.enable_validation_group(:address)
|
46
|
+
|
47
|
+
#assign order to existing user
|
48
|
+
@checkout.order.update_attribute(:user_id, params[:user_id]) unless params[:user_id].blank?
|
49
|
+
end
|
41
50
|
end
|
@@ -4,9 +4,33 @@ class Admin::LineItemsController < Admin::BaseController
|
|
4
4
|
ssl_required
|
5
5
|
actions :all, :except => :index
|
6
6
|
|
7
|
-
|
7
|
+
create.flash nil
|
8
|
+
update.flash nil
|
9
|
+
destroy.flash nil
|
10
|
+
|
11
|
+
#override r_c create action as we want to use order#add_variant instead of creating line_item
|
12
|
+
def create
|
13
|
+
load_object
|
14
|
+
variant = Variant.find(params[:line_item][:variant_id])
|
15
|
+
|
16
|
+
before :create
|
17
|
+
|
18
|
+
@order.add_variant(variant, params[:line_item][:quantity].to_i)
|
19
|
+
|
20
|
+
if @order.save
|
21
|
+
after :create
|
22
|
+
set_flash :create
|
23
|
+
response_for :create
|
24
|
+
else
|
25
|
+
after :create_fails
|
26
|
+
set_flash :create_fails
|
27
|
+
response_for :create_fails
|
28
|
+
end
|
29
|
+
|
30
|
+
end
|
8
31
|
|
9
32
|
destroy.success.wants.html { render :partial => "admin/orders/form", :locals => {:order => @order}, :layout => false }
|
33
|
+
destroy.failure.wants.html { render :partial => "admin/orders/form", :locals => {:order => @order}, :layout => false }
|
10
34
|
|
11
35
|
new_action.response do |wants|
|
12
36
|
wants.html {render :action => :new, :layout => false}
|
@@ -16,27 +40,14 @@ class Admin::LineItemsController < Admin::BaseController
|
|
16
40
|
wants.html { render :partial => "admin/orders/form", :locals => {:order => @order}, :layout => false}
|
17
41
|
end
|
18
42
|
|
19
|
-
update.
|
20
|
-
|
21
|
-
end
|
43
|
+
update.success.wants.html { render :partial => "admin/orders/form", :locals => {:order => @order}, :layout => false}
|
44
|
+
update.failure.wants.html { render :partial => "admin/orders/form", :locals => {:order => @order}, :layout => false}
|
22
45
|
|
23
46
|
destroy.after :recalulate_totals
|
24
47
|
update.after :recalulate_totals
|
25
48
|
create.after :recalulate_totals
|
26
49
|
|
27
50
|
private
|
28
|
-
def check_order_contains
|
29
|
-
variant = Variant.find(params[:line_item][:variant_id])
|
30
|
-
@order = Order.find_by_number(params[:order_id])
|
31
|
-
|
32
|
-
if @order.contains?(variant)
|
33
|
-
@order.add_variant(variant, params[:line_item][:quantity].to_i)
|
34
|
-
@order.save
|
35
|
-
|
36
|
-
render :partial => "admin/orders/form", :locals => {:order => @order}, :layout => false
|
37
|
-
end
|
38
|
-
end
|
39
|
-
|
40
51
|
def recalulate_totals
|
41
52
|
unless @order.shipping_method.nil?
|
42
53
|
@order.shipping_charges.each do |shipping_charge|
|
@@ -48,8 +59,11 @@ class Admin::LineItemsController < Admin::BaseController
|
|
48
59
|
tax_charge.update_attributes(:amount => tax_charge.calculate_tax_charge)
|
49
60
|
end
|
50
61
|
|
51
|
-
@order.
|
52
|
-
@order.
|
62
|
+
@order.checkout.enable_validation_group(@order.checkout.state.to_sym)
|
63
|
+
@order.update_totals!
|
53
64
|
|
65
|
+
unless @order.in_progress?
|
66
|
+
InventoryUnit.adjust_units(@order)
|
67
|
+
end
|
54
68
|
end
|
55
69
|
end
|
@@ -16,7 +16,7 @@ class Admin::OptionTypesController < Admin::BaseController
|
|
16
16
|
def remove
|
17
17
|
@product.option_types.delete(@option_type)
|
18
18
|
@product.save
|
19
|
-
|
19
|
+
self.notice = I18n.t("notice_messages.option_type_removed")
|
20
20
|
redirect_to selected_admin_product_option_types_url(@product)
|
21
21
|
end
|
22
22
|
|
@@ -4,12 +4,16 @@ class Admin::OrdersController < Admin::BaseController
|
|
4
4
|
before_filter :initialize_txn_partials
|
5
5
|
before_filter :initialize_order_events
|
6
6
|
before_filter :load_object, :only => [:fire, :resend, :history]
|
7
|
+
before_filter :ensure_line_items, :only => [:update]
|
7
8
|
|
8
|
-
update
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
9
|
+
update do
|
10
|
+
flash nil
|
11
|
+
wants.html do
|
12
|
+
if @order.bill_address.nil? || @order.ship_address.nil?
|
13
|
+
redirect_to edit_admin_order_checkout_url(@order)
|
14
|
+
else
|
15
|
+
redirect_to admin_order_url(@order)
|
16
|
+
end
|
13
17
|
end
|
14
18
|
end
|
15
19
|
|
@@ -24,7 +28,7 @@ class Admin::OrdersController < Admin::BaseController
|
|
24
28
|
Order.transaction do
|
25
29
|
@order.send("#{event}!")
|
26
30
|
end
|
27
|
-
|
31
|
+
self.notice = t('order_updated')
|
28
32
|
rescue Spree::GatewayError => ge
|
29
33
|
flash[:error] = "#{ge.message}"
|
30
34
|
ensure
|
@@ -33,7 +37,7 @@ class Admin::OrdersController < Admin::BaseController
|
|
33
37
|
|
34
38
|
def resend
|
35
39
|
OrderMailer.deliver_confirm(@order, true)
|
36
|
-
|
40
|
+
self.notice = t('order_email_resent')
|
37
41
|
redirect_to :back
|
38
42
|
end
|
39
43
|
|
@@ -45,6 +49,14 @@ class Admin::OrdersController < Admin::BaseController
|
|
45
49
|
end
|
46
50
|
|
47
51
|
def collection
|
52
|
+
if params[:search] && !params[:search][:created_at_after].blank?
|
53
|
+
params[:search][:created_at_after] = Time.zone.parse(params[:search][:created_at_after]).beginning_of_day rescue ""
|
54
|
+
end
|
55
|
+
|
56
|
+
if params[:search] && !params[:search][:created_at_before].blank?
|
57
|
+
params[:search][:created_at_before] = Time.zone.parse(params[:search][:created_at_before]).end_of_day rescue ""
|
58
|
+
end
|
59
|
+
|
48
60
|
@search = Order.searchlogic(params[:search])
|
49
61
|
@search.order ||= "descend_by_created_at"
|
50
62
|
|
@@ -71,4 +83,13 @@ class Admin::OrdersController < Admin::BaseController
|
|
71
83
|
@order_events = %w{cancel resume}
|
72
84
|
end
|
73
85
|
|
86
|
+
def ensure_line_items
|
87
|
+
load_object
|
88
|
+
if @order.line_items.empty?
|
89
|
+
@order.errors.add(:line_items, t('activerecord.errors.messages.blank'))
|
90
|
+
@order.update_totals
|
91
|
+
render :edit
|
92
|
+
end
|
93
|
+
end
|
94
|
+
|
74
95
|
end
|