solidus_core 4.4.0 → 4.4.2
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/line_item.rb +0 -3
- data/app/models/spree/order_shipping.rb +0 -1
- data/config/locales/en.yml +2 -0
- data/db/migrate/20160101010000_solidus_one_four.rb +0 -10
- data/lib/spree/core/version.rb +1 -1
- data/lib/spree/core.rb +4 -0
- data/lib/spree/testing_support/extension_rake.rb +2 -2
- data/lib/spree/user_class_handle.rb +2 -2
- data/solidus_core.gemspec +1 -1
- metadata +3 -5
- data/app/models/spree/line_item_action.rb +0 -8
- data/bin/rails +0 -13
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 9a77feaec973407e0036df672af2decbf5a3a0fcae38d4041dcbd5fea19bfbaf
|
4
|
+
data.tar.gz: ed69345a425cef54bb72257aa687711c9379903866886035f54510dc076aedb4
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 47c13a634466741aa45278e9fd7007eed9621ac595ae9bcfd9c5f8bbeeeae932b2419e620ec574b00a68c4f90a8a8e866042744895cf71d5443dc42ff39577b8
|
7
|
+
data.tar.gz: 3d8a8943ae006304d636ba1c54108a01d46b390bf10085c917002caaeb2b3b4c55986ba528efa8a6b18ce2b2f39d49b40d589cff4233a7c67977e634adeacf13
|
@@ -19,9 +19,6 @@ module Spree
|
|
19
19
|
has_many :adjustments, as: :adjustable, inverse_of: :adjustable, dependent: :destroy
|
20
20
|
has_many :inventory_units, inverse_of: :line_item
|
21
21
|
|
22
|
-
has_many :line_item_actions, dependent: :destroy
|
23
|
-
has_many :actions, through: :line_item_actions
|
24
|
-
|
25
22
|
before_validation :normalize_quantity
|
26
23
|
before_validation :set_required_attributes
|
27
24
|
|
@@ -44,7 +44,6 @@ class Spree::OrderShipping
|
|
44
44
|
# @return The carton created.
|
45
45
|
def ship(inventory_units:, stock_location:, address:, shipping_method:,
|
46
46
|
shipped_at: Time.current, external_number: nil, tracking_number: nil, suppress_mailer: false)
|
47
|
-
|
48
47
|
carton = nil
|
49
48
|
|
50
49
|
Spree::InventoryUnit.transaction do
|
data/config/locales/en.yml
CHANGED
@@ -1516,6 +1516,7 @@ en:
|
|
1516
1516
|
end: End
|
1517
1517
|
ending_in: Ending in
|
1518
1518
|
error: error
|
1519
|
+
error_user_destroy_with_orders: Cannot delete a user with orders
|
1519
1520
|
errors:
|
1520
1521
|
messages:
|
1521
1522
|
cannot_delete_finalized_stock_location: Stock Location cannot be destroyed if you have open stock transfers.
|
@@ -2096,6 +2097,7 @@ en:
|
|
2096
2097
|
scope: Scope
|
2097
2098
|
search: Search
|
2098
2099
|
search_results: Search results for '%{keywords}'
|
2100
|
+
search_results_all: Show all results for '%{keywords}'
|
2099
2101
|
searching: Searching
|
2100
2102
|
secure_connection_type: Secure Connection Type
|
2101
2103
|
security_settings: Security Settings
|
@@ -197,16 +197,6 @@ class SolidusOneFour < ActiveRecord::Migration[5.0]
|
|
197
197
|
t.index ["variant_id"], name: "index_inventory_units_on_variant_id"
|
198
198
|
end
|
199
199
|
|
200
|
-
create_table "spree_line_item_actions", force: :cascade do |t|
|
201
|
-
t.integer "line_item_id", null: false
|
202
|
-
t.integer "action_id", null: false
|
203
|
-
t.integer "quantity", default: 0
|
204
|
-
t.datetime "created_at", precision: 6
|
205
|
-
t.datetime "updated_at", precision: 6
|
206
|
-
t.index ["action_id"], name: "index_spree_line_item_actions_on_action_id"
|
207
|
-
t.index ["line_item_id"], name: "index_spree_line_item_actions_on_line_item_id"
|
208
|
-
end
|
209
|
-
|
210
200
|
create_table "spree_line_items", force: :cascade do |t|
|
211
201
|
t.integer "variant_id"
|
212
202
|
t.integer "order_id"
|
data/lib/spree/core/version.rb
CHANGED
data/lib/spree/core.rb
CHANGED
@@ -4,8 +4,8 @@ require 'spree/testing_support/common_rake'
|
|
4
4
|
|
5
5
|
desc "Generates a dummy app for testing an extension"
|
6
6
|
namespace :extension do
|
7
|
-
task :test_app, [:user_class] do |_t,
|
7
|
+
task :test_app, [:user_class] do |_t, args|
|
8
8
|
Spree::DummyGeneratorHelper.inject_extension_requirements = true
|
9
|
-
Rake::Task['common:test_app'].invoke
|
9
|
+
Rake::Task['common:test_app'].invoke(args[:user_class])
|
10
10
|
end
|
11
11
|
end
|
@@ -21,8 +21,8 @@ module Spree
|
|
21
21
|
# @return [String] the name of the user class as a string.
|
22
22
|
# @raise [RuntimeError] if Spree.user_class is nil
|
23
23
|
def to_s
|
24
|
-
fail "'Spree.user_class' has not been set yet." unless Spree.
|
25
|
-
"::#{Spree.
|
24
|
+
fail "'Spree.user_class' has not been set yet." unless Spree.user_class_name
|
25
|
+
"::#{Spree.user_class_name}"
|
26
26
|
end
|
27
27
|
end
|
28
28
|
end
|
data/solidus_core.gemspec
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.4.
|
4
|
+
version: 4.4.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Solidus Team
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2024-
|
11
|
+
date: 2024-12-09 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: actionmailer
|
@@ -536,7 +536,6 @@ files:
|
|
536
536
|
- app/models/spree/inventory_unit.rb
|
537
537
|
- app/models/spree/legacy_user.rb
|
538
538
|
- app/models/spree/line_item.rb
|
539
|
-
- app/models/spree/line_item_action.rb
|
540
539
|
- app/models/spree/log_entry.rb
|
541
540
|
- app/models/spree/null_promotion_adjuster.rb
|
542
541
|
- app/models/spree/null_promotion_advertiser.rb
|
@@ -711,7 +710,6 @@ files:
|
|
711
710
|
- app/views/spree/shared/_error_messages.html.erb
|
712
711
|
- app/views/spree/test_mailer/test_email.html.erb
|
713
712
|
- app/views/spree/test_mailer/test_email.text.erb
|
714
|
-
- bin/rails
|
715
713
|
- config/i18n-tasks.yml
|
716
714
|
- config/initializers/assets.rb
|
717
715
|
- config/initializers/friendly_id.rb
|
@@ -1021,7 +1019,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
1021
1019
|
- !ruby/object:Gem::Version
|
1022
1020
|
version: 1.8.23
|
1023
1021
|
requirements: []
|
1024
|
-
rubygems_version: 3.5.
|
1022
|
+
rubygems_version: 3.5.3
|
1025
1023
|
signing_key:
|
1026
1024
|
specification_version: 4
|
1027
1025
|
summary: Essential models, mailers, and classes for the Solidus e-commerce project.
|
data/bin/rails
DELETED
@@ -1,13 +0,0 @@
|
|
1
|
-
#!/usr/bin/env ruby
|
2
|
-
# This command will automatically be run when you run "rails" with Rails gems
|
3
|
-
# installed from the root of your application.
|
4
|
-
|
5
|
-
ENGINE_ROOT = File.expand_path('..', __dir__)
|
6
|
-
ENGINE_PATH = File.expand_path('../lib/spree/core/engine', __dir__)
|
7
|
-
|
8
|
-
# Set up gems listed in the Gemfile.
|
9
|
-
ENV['BUNDLE_GEMFILE'] ||= File.expand_path('../../Gemfile', __dir__)
|
10
|
-
require "bundler/setup" if File.exist?(ENV["BUNDLE_GEMFILE"])
|
11
|
-
|
12
|
-
require "rails/all"
|
13
|
-
require "rails/engine/commands"
|