solidus_core 1.0.0.rc2 → 1.0.0
Sign up to get free protection for your applications and to get access to all the features.
Potentially problematic release.
This version of solidus_core might be problematic. Click here for more details.
- checksums.yaml +4 -4
- data/app/models/spree/order/checkout.rb +6 -1
- metadata +4 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 50bd29de10c7232c6a5dce938b456b7e50b272f0
|
4
|
+
data.tar.gz: b0def8e0cf515c431e8ce61d81b1cb19d5853d76
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 30a7433f3c995f231a8ecfca3196b6798229242c5684563deed7aa3ca8b942ead7307802c448da218168089e82d0d9fd87b307a947f9e428c1be0e8d62f12e8f
|
7
|
+
data.tar.gz: e99212264483a442793e58b83010a2e8169a21af85ae8f90d02233e35991206ee11517fa77299e3d43690aff0ce810f2cc26cdc39fd1034afe30721c8e9bd461
|
@@ -72,7 +72,6 @@ module Spree
|
|
72
72
|
transition to: :payment, from: :confirm
|
73
73
|
end
|
74
74
|
|
75
|
-
before_transition to: :complete, do: :process_payments_before_complete
|
76
75
|
after_transition to: :complete, do: :persist_user_credit_card
|
77
76
|
before_transition to: :payment, do: :set_shipments_cost
|
78
77
|
before_transition to: :payment, do: :create_tax_charge!
|
@@ -80,6 +79,9 @@ module Spree
|
|
80
79
|
|
81
80
|
before_transition to: :confirm, do: :add_store_credit_payments
|
82
81
|
|
82
|
+
# see also process_payments_before_complete below which needs to
|
83
|
+
# be added in the correct sequence.
|
84
|
+
|
83
85
|
event :complete do
|
84
86
|
transition to: :complete, from: :confirm
|
85
87
|
transition to: :complete, from: :payment
|
@@ -113,6 +115,9 @@ module Spree
|
|
113
115
|
before_transition to: :complete, do: :ensure_promotions_eligible
|
114
116
|
before_transition to: :complete, do: :ensure_line_item_variants_are_not_deleted
|
115
117
|
before_transition to: :complete, do: :ensure_inventory_units, unless: :unreturned_exchange?
|
118
|
+
if states[:payment]
|
119
|
+
before_transition to: :complete, do: :process_payments_before_complete
|
120
|
+
end
|
116
121
|
|
117
122
|
after_transition to: :complete, do: :finalize!
|
118
123
|
after_transition to: :resumed, do: :after_resume
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: solidus_core
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.0
|
4
|
+
version: 1.0.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Solidus Team
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-08-
|
11
|
+
date: 2015-08-11 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activemerchant
|
@@ -1019,9 +1019,9 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
1019
1019
|
version: 2.1.0
|
1020
1020
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
1021
1021
|
requirements:
|
1022
|
-
- - "
|
1022
|
+
- - ">="
|
1023
1023
|
- !ruby/object:Gem::Version
|
1024
|
-
version:
|
1024
|
+
version: '0'
|
1025
1025
|
requirements: []
|
1026
1026
|
rubyforge_project:
|
1027
1027
|
rubygems_version: 2.4.5
|