gems spree 2.0.4
Version 2.0.4

latest releases: 4.10.1, 4.10.0, 4.9.0...
11 years ago

Core

  • Sandbox generator and installer now use the correct 2-0-stable branch of spree_auth_devise
    3179a7a & 759fa34.

  • Product requires shipping_category_id on create #3188.

    Jeff Dutil

  • No longer set ActiveRecord::Base.include_root_in_json = true during install.
    Originally set to false back in 2011 according to convention. After
    https://groups.google.com/forum/#!topic/spree-user/D9dZQayC4z, it
    was changed. Applications should now decide their own setting for this value.

John Dyer and Sean Schofield

  • Revert bump of Rubygems required version which made Spree 2.0.0 unusable on Heroku. 77103dc

    @actven

  • Improve performance of Order#payment_required? by not updating the totals every time. #3040 #3086

    Washington Luiz

  • Remove after_save callback for stock items backorders processing and
    fixes count on hand updates when there are backordered units #3066

    Washington Luiz

  • InventoryUnit#backordered_for_stock_item no longer returns readonly objects
    neither return an ActiveRecored::Association. It returns only an array of
    writable backordered units for a given stock item #3066

    Washington Luiz

  • Scope shipping rates as per shipping method display_on #3119
    e.g. Shipping methods set to back_end only should not be displayed on frontend too

    Washington Luiz

  • Translation for admin tabs are now located under the spree.admin.tab key. Previously, they were on the top-level, which lead to conflicts when users wanted to override view translations, like this:

en:
  spree:
    orders:
      show:
        thank_you: "Thanks, buddy!"

See #3133 for more information.

  • Change order.promotion_credit_exists? api. Now it receives an adjustment
    originator (PromotionAction instance) instead of a promotion. Allowing
    multiple adjustments being created for the same promotion as the current
    PromotionAction / Promotion api suggests #3262

  • Washington Luiz *

  • CreditCard model now validates that the card is not expired.

    Ryan Bigg

  • Payment model will now no longer provide a vague error message for when the source is invalid. Instead, it will provide error messages like "Credit Card Number can't be blank"

    Ryan Bigg

  • Calling #destroy on any PaymentMethod, Product, TaxCategory, TaxRate or Variant object will now no longer delete that object. Instead, the deleted_at attribute on that object will be set to the current time. Attempting to find that object again using something such as Spree::Product.find(1) will fail because there is now a default scope to only find non-deleted records on these models. To remove this scope, use Spree::Product.unscoped.find(1). #3321

    Ryan Bigg

  • Removed variants_including_master_and_deleted, in favour of using the Paranoia gem. This scope would now be achieved using variants_including_master.with_deleted.

    Ryan Bigg

  • You can now find the total amount on hand of a variant by calling Variant#total_on_hand. #3427

    Ruben Ascencio

  • Tax categories are now stored on line items. This should make tax calculations slightly faster. #3481

    Ryan Bigg

API

  • PUT requests to Checkouts API endpoints now require authorization to alter an order.

    Ryan Bigg

  • The Products API endpoint now returns an additional key called shipping_category_id, and also requires shipping_category_id on create.

    Jeff Dutil

  • Checkouts API's update action will now correctly process line item attributes (either line_items or line_item_attributes)

    • Ryan Bigg*
  • Checkouts API now correctly processes incoming payment data during the payment step.

    Ryan Bigg

  • Fix issue where set_current_order before filter would be called when CheckoutsController actions were run, causing the order object to be deleted. #3306

    Ryan Bigg

  • An order can no longer transition past the "cart" state without first having a line item. #3312

    Ryan Bigg

  • Attributes other than "quantity" and "variant_id" will be added to a line item when creating along with an order. #3404

    Alex Marles & Ryan Bigg

Backend

  • Symbolize attachment style keys on ImageSettingController otherwise users
    would get undefined method `processors' for "48x48>":String> since
    paperclip can't handle key strings.

Washington Luiz

  • Fix bug where taxonomy URL was incorrect when Spree was mounted at a non-root path 50ac165.

    Washington Luiz

  • Fixed issue where selecting an existing user in the customer details step would not associate them with an order.

    Ryan Bigg and dan-ding

Frontend

  • Fix issue where "Use Billing Address" checkbox was unticked when certain
    browsers autocompleted the checkout form. #3068 #3085

Washington Luiz

Don't miss a new spree release

NewReleases is sending notifications on new releases.