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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: c3600d5a533290c099382476478e8eeb060d3596363939f726d1e02125e88aa1
4
- data.tar.gz: b3fa5cfb3f1e6f7a67bd3a893766292375b7b7217d21bd314666648b98a3615c
3
+ metadata.gz: 145d5f977aa13ad4cfb755cde0001dd95033333ddbfba76867939c80c1d45d6c
4
+ data.tar.gz: cefd0c49cb7ff79a1173851a22a5cfa155824c537ea8575f6ba26c0ce43661c6
5
5
  SHA512:
6
- metadata.gz: 318e5325ee20610090fbd4113ecd6bc3493b36f690ad4650b6186144f0615558be34279f779454d59b5a2089b3c672c37b9b65b9cd1ec85022ed26d184f755cf
7
- data.tar.gz: 7b072c3828d8a943f34eb9182e17923b4475014550583d7515d65458a7fe1db8778589654659526048456b29e2be80ca637c6f86fe5dd88c92cc35b1d9d86f68
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).each do |return_item|
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).each do |stock_location|
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
@@ -397,7 +397,7 @@ module Spree
397
397
  end
398
398
 
399
399
  def create_stock_items
400
- StockLocation.where(propagate_all_variants: true).each do |stock_location|
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
@@ -9,7 +9,7 @@ def create_states(subregions, country)
9
9
  end
10
10
 
11
11
  ActiveRecord::Base.transaction do
12
- Spree::Country.all.each do |country|
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.each do |update_reason|
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.each do |store_credit_reason|
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.each do |promotion|
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).each do |order|
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
@@ -1,7 +1,7 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Spree
4
- VERSION = "4.1.3"
4
+ VERSION = "4.1.4"
5
5
 
6
6
  def self.solidus_version
7
7
  VERSION
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.3
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: 2023-11-02 00:00:00.000000000 Z
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.4.17
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.