spree_core 5.1.9 → 5.1.10
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/app/models/spree/order/address_book.rb +12 -4
- data/lib/spree/core/version.rb +1 -1
- metadata +4 -4
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 44f1434d47cc7e1656d9368d76904ee3b916dd5daded799f27a058e1c05b8bfd
|
|
4
|
+
data.tar.gz: a2341a9a15be4bc0a58743e707ff1b6e97a4641602695654443770822f66578a
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: fca322e7bec6f19217e04c3a032b20da6693267d564a18bd116362ccce7c704304256ee36bf9556321ebec2f6d616d69562f0d25b6f32df82726d06c009af504
|
|
7
|
+
data.tar.gz: b12a94137d64b9f52f1a2c88153b8a741750dec00a0cf9a7e18ea5ec77b853381e499897e0b32102386d86d054011742e8d0b821b575df52450153fe0fa11747
|
|
@@ -14,13 +14,17 @@ module Spree
|
|
|
14
14
|
end
|
|
15
15
|
|
|
16
16
|
def bill_address_id=(id)
|
|
17
|
+
return if bill_address_id == id
|
|
18
|
+
|
|
17
19
|
address = Spree::Address.find_by(id: id)
|
|
18
|
-
|
|
20
|
+
# rubocop:disable Style/ConditionalAssignment
|
|
21
|
+
if address && user_id.present? && address.user_id == user_id
|
|
19
22
|
self['bill_address_id'] = address.id
|
|
20
|
-
bill_address.reload
|
|
21
23
|
else
|
|
22
24
|
self['bill_address_id'] = nil
|
|
23
25
|
end
|
|
26
|
+
# rubocop:enable Style/ConditionalAssignment
|
|
27
|
+
reset_bill_address
|
|
24
28
|
end
|
|
25
29
|
|
|
26
30
|
def bill_address_attributes=(attributes)
|
|
@@ -29,13 +33,17 @@ module Spree
|
|
|
29
33
|
end
|
|
30
34
|
|
|
31
35
|
def ship_address_id=(id)
|
|
36
|
+
return if ship_address_id == id
|
|
37
|
+
|
|
32
38
|
address = Spree::Address.find_by(id: id)
|
|
33
|
-
|
|
39
|
+
# rubocop:disable Style/ConditionalAssignment
|
|
40
|
+
if address && user_id.present? && address.user_id == user_id
|
|
34
41
|
self['ship_address_id'] = address.id
|
|
35
|
-
ship_address.reload
|
|
36
42
|
else
|
|
37
43
|
self['ship_address_id'] = nil
|
|
38
44
|
end
|
|
45
|
+
# rubocop:enable Style/ConditionalAssignment
|
|
46
|
+
reset_ship_address
|
|
39
47
|
end
|
|
40
48
|
|
|
41
49
|
def ship_address_attributes=(attributes)
|
data/lib/spree/core/version.rb
CHANGED
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: spree_core
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 5.1.
|
|
4
|
+
version: 5.1.10
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Sean Schofield
|
|
@@ -10,7 +10,7 @@ authors:
|
|
|
10
10
|
autorequire:
|
|
11
11
|
bindir: bin
|
|
12
12
|
cert_chain: []
|
|
13
|
-
date: 2026-
|
|
13
|
+
date: 2026-02-05 00:00:00.000000000 Z
|
|
14
14
|
dependencies:
|
|
15
15
|
- !ruby/object:Gem::Dependency
|
|
16
16
|
name: i18n-tasks
|
|
@@ -1383,9 +1383,9 @@ licenses:
|
|
|
1383
1383
|
- BSD-3-Clause
|
|
1384
1384
|
metadata:
|
|
1385
1385
|
bug_tracker_uri: https://github.com/spree/spree/issues
|
|
1386
|
-
changelog_uri: https://github.com/spree/spree/releases/tag/v5.1.
|
|
1386
|
+
changelog_uri: https://github.com/spree/spree/releases/tag/v5.1.10
|
|
1387
1387
|
documentation_uri: https://docs.spreecommerce.org/
|
|
1388
|
-
source_code_uri: https://github.com/spree/spree/tree/v5.1.
|
|
1388
|
+
source_code_uri: https://github.com/spree/spree/tree/v5.1.10
|
|
1389
1389
|
post_install_message:
|
|
1390
1390
|
rdoc_options: []
|
|
1391
1391
|
require_paths:
|