spree_core 3.1.10 → 3.1.11

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: b00892d10335665967c6339896226cb6b16c8e71
4
- data.tar.gz: 8dba8567c04b333b2a0f5597aa961dba8cb7b225
3
+ metadata.gz: 270e63acb2ee4007b6bea2044c6d983e308c0e9e
4
+ data.tar.gz: 6d048ddd8484553b669a1e38ecae1c82a323add5
5
5
  SHA512:
6
- metadata.gz: 90ccdba9b15892cf42697e827dcbb085e57d9dc3eecc88a0999b7028e2c665b4cd1c8b294dca19b078fd36622fa983cd9ac5c14cfee0692086819348e0743526
7
- data.tar.gz: 48ed45d5883aa09e875f3952afa4be11410371257fb78618d447770e6a36a96c830fb38b0a9b504853cc088cb1b1797abaaaffb1ca096658ce0bff821d359c0b
6
+ metadata.gz: b8da7ac191edc6933febe5cd2006d8ea31a96d3fc1be13a7043644b0ba7afcd17c33399847a277d88a6eea4d75ad0c94ef83029fdf2ddfaf563a6751f1d008fe
7
+ data.tar.gz: defab635ca53f329c9539dd6b36835e24b9e9e88080f5cc006818f93f8b4bbcfdd928f996baf28b0508140104f255c7466cdf56568c0d07bedf8353701a6a973
@@ -62,7 +62,7 @@ module Spree
62
62
 
63
63
  event :return do
64
64
  transition to: :returned,
65
- from: [:complete, :awaiting_return, :canceled],
65
+ from: [:complete, :awaiting_return, :canceled, :returned],
66
66
  if: :all_inventory_units_returned?
67
67
  end
68
68
 
@@ -272,8 +272,8 @@ module Spree
272
272
  self.user = user
273
273
  self.email = user.email if override_email
274
274
  self.created_by ||= user
275
- self.bill_address ||= user.bill_address
276
- self.ship_address ||= user.ship_address
275
+ self.bill_address ||= user.bill_address.try(:clone)
276
+ self.ship_address ||= user.ship_address.try(:clone)
277
277
 
278
278
  changes = slice(:user_id, :email, :created_by_id, :bill_address_id, :ship_address_id)
279
279
 
@@ -20,9 +20,9 @@ module Spree
20
20
  def perform
21
21
  @shipment.inventory_units.each &:ship!
22
22
  @shipment.process_order_payments if Spree::Config[:auto_capture_on_dispatch]
23
- send_shipped_email
24
23
  @shipment.touch :shipped_at
25
24
  update_order_shipment_state
25
+ send_shipped_email
26
26
  end
27
27
 
28
28
  private
@@ -0,0 +1,3 @@
1
+ if Gem.loaded_specs['premailer-rails'].version >= Gem::Version.create('1.10.0')
2
+ Premailer::Rails.config[:strategies] = [:filesystem, :network, :asset_pipeline]
3
+ end
@@ -1,5 +1,5 @@
1
1
  module Spree
2
2
  def self.version
3
- "3.1.10"
3
+ "3.1.11"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: spree_core
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.1.10
4
+ version: 3.1.11
5
5
  platform: ruby
6
6
  authors:
7
7
  - Sean Schofield
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-09-22 00:00:00.000000000 Z
11
+ date: 2017-12-08 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activemerchant
@@ -584,6 +584,7 @@ files:
584
584
  - config/initializers/assets.rb
585
585
  - config/initializers/friendly_id.rb
586
586
  - config/initializers/premailer_assets.rb
587
+ - config/initializers/premailer_rails.rb
587
588
  - config/initializers/user_class_extensions.rb
588
589
  - config/locales/en.yml
589
590
  - config/routes.rb