spree_core 5.5.1 → 5.5.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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 6b15a0aab09b99fce9b5a361577d7cf8c45576e4e4fff0bde398374eb876dfa9
4
- data.tar.gz: 8dea678d1da4bfe11d29aaa9b7806ebe702ae3e339318e2b72063ef330dd4b79
3
+ metadata.gz: c50d137ef2f51b5fbdb5c343c360d805fe8839978386c08902ff3f29873c7e56
4
+ data.tar.gz: f495c858e04f2c469323c744c5bcdff4c3d23891b85771f44082dc104922de21
5
5
  SHA512:
6
- metadata.gz: 5b6a38e339e292481b3ffea592632848b81dedec28bc1324896958366130ad55f3d06e85e0558d08d7111c2ba0ecdf4a4916efb91fb221a6d9bc5dac6dd49edd
7
- data.tar.gz: 2cb8797d32de652508f96640a40a2157bbc69c5f73601f7369f4231daf98eecfb61e8bafec10b135bb4cd96189a1804d71e7f2a0f1bab1b9dad5b892a090b281
6
+ metadata.gz: 96e1c8a7b981d143e5aab043ce6d236cd55627ddc28f1e29e573c873440e7515787e0f64f016409b54001c4313eca64b9f71f9f4641ddf3e021741c80300717d
7
+ data.tar.gz: 6810ea91184c9646922ba3dba4973fd337dfc4068513ead2cc3d198bb5f316798f4f1810eb51b08b50381eecb8603c378d56c3ef5b162c38f6d0f1cb62caf519
@@ -0,0 +1,10 @@
1
+ module Spree
2
+ # Constant alias for Spree::Searchable — remove in Spree 6.0.
3
+ #
4
+ # Lets legacy code and extensions reference the concern by its former name
5
+ # after the Searchable rename. The concern itself lives in Spree::Searchable;
6
+ # keeping the alias in its own file lets Zeitwerk manage (and reload) it,
7
+ # avoiding the "already initialized constant" warning that a second constant
8
+ # defined inside searchable.rb would raise.
9
+ MultiSearchable = Searchable
10
+ end
@@ -31,7 +31,4 @@ module Spree
31
31
  def self.multi_search_condition(model_class, attribute, query) = search_condition(model_class, attribute, query)
32
32
  end
33
33
  end
34
-
35
- # Backward compatibility alias — remove in Spree 6.0
36
- MultiSearchable = Searchable
37
34
  end
@@ -4,20 +4,18 @@ module Spree
4
4
  prepend Spree::ServiceModule::Base
5
5
 
6
6
  def call
7
- default_store = Spree::Store.default
7
+ return if Spree::Store.where(default: true).exists?
8
8
 
9
- unless default_store.persisted?
10
- Spree::Store.new do |s|
11
- s.name = 'Shop'
12
- s.code = 'shop'
13
- s.url = Rails.application.routes.default_url_options[:host] || 'localhost:3000'
14
- s.mail_from_address = 'no-reply@example.com'
15
- s.customer_support_email = 'support@example.com'
16
- s.default_currency = 'USD'
17
- s.default_country_iso = 'US'
18
- s.default_locale = I18n.locale
19
- end.save!
20
- end
9
+ Spree::Store.new do |s|
10
+ s.name = 'Shop'
11
+ s.code = 'shop'
12
+ s.url = Rails.application.routes.default_url_options[:host] || 'localhost:3000'
13
+ s.mail_from_address = 'no-reply@example.com'
14
+ s.customer_support_email = 'support@example.com'
15
+ s.default_currency = 'USD'
16
+ s.default_country_iso = 'US'
17
+ s.default_locale = I18n.locale
18
+ end.save!
21
19
  end
22
20
  end
23
21
  end
data/config/routes.rb CHANGED
@@ -2,11 +2,11 @@
2
2
  # see: https://github.com/rails/rails/issues/34872
3
3
  Rails.application.routes.draw do
4
4
  direct :cdn_image do |model, options|
5
- opts = options.slice(:protocol, :host, :port)
6
- opts[:host] = Spree.cdn_host if Spree.cdn_host.present?
7
- opts[:host] ||= Rails.application.routes.default_url_options[:host]
8
- opts[:host] ||= Spree::Store.current.url_or_custom_domain if Spree::Store.current.present?
9
-
5
+ opts = options.slice(:protocol, :port)
6
+ opts[:host] = Spree.cdn_host.presence ||
7
+ Rails.application.routes.default_url_options[:host].presence ||
8
+ options[:host].presence ||
9
+ (Spree::Store.current.present? ? Spree::Store.current.formatted_url : nil)
10
10
  opts[:only_path] = true if opts[:host].blank?
11
11
 
12
12
  if model.blob.service_name == 'cloudinary' && defined?(Cloudinary)
@@ -1,5 +1,5 @@
1
1
  module Spree
2
- VERSION = '5.5.1'.freeze
2
+ VERSION = '5.5.2'.freeze
3
3
 
4
4
  def self.version
5
5
  VERSION
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.5.1
4
+ version: 5.5.2
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-06-29 00:00:00.000000000 Z
13
+ date: 2026-07-06 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: i18n-tasks
@@ -900,6 +900,7 @@ files:
900
900
  - app/models/concerns/spree/memoized_data.rb
901
901
  - app/models/concerns/spree/metadata.rb
902
902
  - app/models/concerns/spree/metafields.rb
903
+ - app/models/concerns/spree/multi_searchable.rb
903
904
  - app/models/concerns/spree/named_type.rb
904
905
  - app/models/concerns/spree/number_as_param.rb
905
906
  - app/models/concerns/spree/number_identifier.rb
@@ -1817,9 +1818,9 @@ licenses:
1817
1818
  - BSD-3-Clause
1818
1819
  metadata:
1819
1820
  bug_tracker_uri: https://github.com/spree/spree/issues
1820
- changelog_uri: https://github.com/spree/spree/releases/tag/v5.5.1
1821
+ changelog_uri: https://github.com/spree/spree/releases/tag/v5.5.2
1821
1822
  documentation_uri: https://docs.spreecommerce.org/
1822
- source_code_uri: https://github.com/spree/spree/tree/v5.5.1
1823
+ source_code_uri: https://github.com/spree/spree/tree/v5.5.2
1823
1824
  post_install_message:
1824
1825
  rdoc_options: []
1825
1826
  require_paths: