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:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: c50d137ef2f51b5fbdb5c343c360d805fe8839978386c08902ff3f29873c7e56
|
|
4
|
+
data.tar.gz: f495c858e04f2c469323c744c5bcdff4c3d23891b85771f44082dc104922de21
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
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
|
|
@@ -4,20 +4,18 @@ module Spree
|
|
|
4
4
|
prepend Spree::ServiceModule::Base
|
|
5
5
|
|
|
6
6
|
def call
|
|
7
|
-
|
|
7
|
+
return if Spree::Store.where(default: true).exists?
|
|
8
8
|
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
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, :
|
|
6
|
-
opts[:host] = Spree.cdn_host
|
|
7
|
-
|
|
8
|
-
|
|
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)
|
data/lib/spree/core/version.rb
CHANGED
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.
|
|
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
|
|
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.
|
|
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.
|
|
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:
|