solidus_core 4.1.3 → 4.1.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/app/models/spree/reimbursement_tax_calculator.rb +1 -1
- data/app/models/spree/stock_location.rb +1 -1
- data/app/models/spree/variant.rb +1 -1
- data/db/default/spree/states.rb +1 -1
- data/db/migrate/20180710170104_create_spree_store_credit_reasons_table.rb +2 -2
- data/db/migrate/20220317165036_set_promotions_with_any_policy_to_all_if_possible.rb +1 -1
- data/lib/spree/core/controller_helpers/order.rb +1 -1
- data/lib/spree/core/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 145d5f977aa13ad4cfb755cde0001dd95033333ddbfba76867939c80c1d45d6c
|
4
|
+
data.tar.gz: cefd0c49cb7ff79a1173851a22a5cfa155824c537ea8575f6ba26c0ce43661c6
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ca08f277790e62bbc4d38d2987e90eecfe65364da49fbdb149025baa635819e67d8f393f949393fe1d50ecf918a09e7c99235b4404887b4535a7675e3d8309e1
|
7
|
+
data.tar.gz: 9257dce79c75318621786b3d9bd9edcf4e2f3c4f479e6648b20e8d3651739d0a558ae942491ca5ee3342d83190e1a0311c3de710628ff73275ba6ecb906acae2
|
@@ -12,7 +12,7 @@ module Spree
|
|
12
12
|
class ReimbursementTaxCalculator
|
13
13
|
class << self
|
14
14
|
def call(reimbursement)
|
15
|
-
reimbursement.return_items.includes(:inventory_unit).
|
15
|
+
reimbursement.return_items.includes(:inventory_unit).find_each do |return_item|
|
16
16
|
set_tax!(return_item)
|
17
17
|
end
|
18
18
|
end
|
@@ -121,7 +121,7 @@ module Spree
|
|
121
121
|
|
122
122
|
def ensure_one_default
|
123
123
|
if default
|
124
|
-
Spree::StockLocation.where(default: true).where.not(id: id).
|
124
|
+
Spree::StockLocation.where(default: true).where.not(id: id).find_each do |stock_location|
|
125
125
|
stock_location.default = false
|
126
126
|
stock_location.save!
|
127
127
|
end
|
data/app/models/spree/variant.rb
CHANGED
@@ -397,7 +397,7 @@ module Spree
|
|
397
397
|
end
|
398
398
|
|
399
399
|
def create_stock_items
|
400
|
-
StockLocation.where(propagate_all_variants: true).
|
400
|
+
StockLocation.where(propagate_all_variants: true).find_each do |stock_location|
|
401
401
|
stock_location.propagate_variant(self)
|
402
402
|
end
|
403
403
|
end
|
data/db/default/spree/states.rb
CHANGED
@@ -9,7 +9,7 @@ def create_states(subregions, country)
|
|
9
9
|
end
|
10
10
|
|
11
11
|
ActiveRecord::Base.transaction do
|
12
|
-
Spree::Country.all.
|
12
|
+
Spree::Country.all.find_each do |country|
|
13
13
|
carmen_country = Carmen::Country.coded(country.iso)
|
14
14
|
next unless carmen_country.subregions?
|
15
15
|
|
@@ -17,7 +17,7 @@ class CreateSpreeStoreCreditReasonsTable < ActiveRecord::Migration[5.1]
|
|
17
17
|
t.timestamps
|
18
18
|
end
|
19
19
|
|
20
|
-
StoreCreditUpdateReason.all.
|
20
|
+
StoreCreditUpdateReason.all.find_each do |update_reason|
|
21
21
|
StoreCreditReason.create!(name: update_reason.name)
|
22
22
|
end
|
23
23
|
|
@@ -45,7 +45,7 @@ class CreateSpreeStoreCreditReasonsTable < ActiveRecord::Migration[5.1]
|
|
45
45
|
end
|
46
46
|
end
|
47
47
|
|
48
|
-
StoreCreditReason.all.
|
48
|
+
StoreCreditReason.all.find_each do |store_credit_reason|
|
49
49
|
StoreCreditUpdateReason.create!(name: store_credit_reason.name)
|
50
50
|
end
|
51
51
|
|
@@ -2,7 +2,7 @@
|
|
2
2
|
|
3
3
|
class SetPromotionsWithAnyPolicyToAllIfPossible < ActiveRecord::Migration[5.2]
|
4
4
|
def up
|
5
|
-
Spree::Promotion.where(match_policy: :any).includes(:promotion_rules).all.
|
5
|
+
Spree::Promotion.where(match_policy: :any).includes(:promotion_rules).all.find_each do |promotion|
|
6
6
|
if promotion.promotion_rules.length <= 1
|
7
7
|
promotion.update!(match_policy: :all)
|
8
8
|
else
|
@@ -45,7 +45,7 @@ module Spree
|
|
45
45
|
|
46
46
|
def set_current_order
|
47
47
|
if spree_current_user && current_order
|
48
|
-
spree_current_user.orders.by_store(current_store).incomplete.where('id != ?', current_order.id).
|
48
|
+
spree_current_user.orders.by_store(current_store).incomplete.where('id != ?', current_order.id).find_each do |order|
|
49
49
|
current_order.merge!(order, spree_current_user)
|
50
50
|
end
|
51
51
|
end
|
data/lib/spree/core/version.rb
CHANGED
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: 4.1.
|
4
|
+
version: 4.1.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Solidus Team
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2024-01-05 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: actionmailer
|
@@ -1047,7 +1047,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
1047
1047
|
- !ruby/object:Gem::Version
|
1048
1048
|
version: 1.8.23
|
1049
1049
|
requirements: []
|
1050
|
-
rubygems_version: 3.
|
1050
|
+
rubygems_version: 3.5.3
|
1051
1051
|
signing_key:
|
1052
1052
|
specification_version: 4
|
1053
1053
|
summary: Essential models, mailers, and classes for the Solidus e-commerce project.
|