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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 09e11d086ed1dd97b17e5c5cf72d546d5a80fc0d
4
- data.tar.gz: 1b3f4c7bc481f39eeb4555e1f07b3017dfb33e45
3
+ metadata.gz: 50bd29de10c7232c6a5dce938b456b7e50b272f0
4
+ data.tar.gz: b0def8e0cf515c431e8ce61d81b1cb19d5853d76
5
5
  SHA512:
6
- metadata.gz: ecc25b96d2b0ab0d4c44ff369544c13bd59c3ab71f62007b3be308b826615cc031ab766d650171e78a105007ecad763df4ab7daacbf7b702930fb20a90f34a7c
7
- data.tar.gz: 8786ed0bc75a690a6f57741f05039c4063f8e7ec9d61e79d8cfd3355dbd0206b20e43f7204153a2589d0cdab36da0a38c50fa5a7888e0ef14cb9c557cc4a7aef
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.rc2
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-07 00:00:00.000000000 Z
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: 1.3.1
1024
+ version: '0'
1025
1025
  requirements: []
1026
1026
  rubyforge_project:
1027
1027
  rubygems_version: 2.4.5