solidus_core 4.4.0 → 4.4.2

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: 2a65544dbf1bc4080f863f20536ce1d7d886183329e9c7fc456c575fbf17c856
4
- data.tar.gz: f23b80167add2aa1d054af79397ca03c1dc4210ee0a7649276440e519cd4b8e1
3
+ metadata.gz: 9a77feaec973407e0036df672af2decbf5a3a0fcae38d4041dcbd5fea19bfbaf
4
+ data.tar.gz: ed69345a425cef54bb72257aa687711c9379903866886035f54510dc076aedb4
5
5
  SHA512:
6
- metadata.gz: cf3fe6657b4884a70e838d8bf7ec6c77d5b83fe5ba242e49d33c808c71cb9228b36525aae42532aeecf12c28ec5cb41beead0b851f0bcc6ba8d3b44f4dd297f6
7
- data.tar.gz: 8185232f7e5a42224db6b7b201b49d312e762608813caffed760aa4c212894ea56ad602e996da69573391c5593d88fbdff60bb36392afff8ee6ead3e64302b55
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
@@ -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"
@@ -1,7 +1,7 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Spree
4
- VERSION = "4.4.0"
4
+ VERSION = "4.4.2"
5
5
 
6
6
  def self.solidus_version
7
7
  VERSION
data/lib/spree/core.rb CHANGED
@@ -39,6 +39,10 @@ module Spree
39
39
  end
40
40
  end
41
41
 
42
+ def self.user_class_name
43
+ @@user_class
44
+ end
45
+
42
46
  # Load the same version defaults for all available Solidus components
43
47
  #
44
48
  # @see Spree::Preferences::Configuration#load_defaults
@@ -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, _args|
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.user_class
25
- "::#{Spree.user_class}"
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
@@ -17,7 +17,7 @@ Gem::Specification.new do |s|
17
17
  s.metadata['rubygems_mfa_required'] = 'true'
18
18
 
19
19
  s.files = `git ls-files -z`.split("\x0").reject do |f|
20
- f.match(%r{^(spec|script)/})
20
+ f.match(%r{^(spec|bin)/})
21
21
  end
22
22
 
23
23
  s.required_ruby_version = '>= 3.1.0'
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.0
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-12 00:00:00.000000000 Z
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.22
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.
@@ -1,8 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- module Spree
4
- class LineItemAction < Spree::Base
5
- belongs_to :line_item, optional: true
6
- belongs_to :action, class_name: "Spree::PromotionAction", optional: true
7
- end
8
- end
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"