spree 5.6.1 → 6.0.0.beta2
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/LICENSE +30 -0
- data/README.md +3 -3
- data/lib/generators/spree/install/install_generator.rb +30 -12
- data/lib/generators/spree/install/templates/config/initializers/spree.rb +43 -72
- metadata +13 -11
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 9fd94482fbff12a86fd0909ea0e2597d0fb02d8dd5f98689e42c799acb5c5170
|
|
4
|
+
data.tar.gz: 71080643af34f94c9c8368da01c22c978153e2ce9bcbe64ad9323b25bdddb56e
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 3aae847f6cd72a1f7804fb6cfbc7bfb082c79603b252a3027a95b17211730a1340cf828d2b83ab80915d632e6989cde99b14e451fd575a4d0c4e59b68881a71b
|
|
7
|
+
data.tar.gz: f7c6af5cc5ff55070a605a09abb3614aac2b18fa507dbd911f152ccc244ac5fc0d1632f31568d7c110815e2343321b688311f2b81526ba6b0ba58c30c9bec174
|
data/LICENSE
ADDED
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
BSD 3-Clause License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2024-present, Vendo Sp. z o.o., Vendo Connect Inc.
|
|
4
|
+
Copyright (c) 2015-2024, Spark Solutions Sp. z o.o.
|
|
5
|
+
Copyright (c) 2007-2015, Spree Commerce Inc.
|
|
6
|
+
|
|
7
|
+
Redistribution and use in source and binary forms, with or without
|
|
8
|
+
modification, are permitted provided that the following conditions are met:
|
|
9
|
+
|
|
10
|
+
1. Redistributions of source code must retain the above copyright notice,
|
|
11
|
+
this list of conditions and the following disclaimer.
|
|
12
|
+
|
|
13
|
+
2. Redistributions in binary form must reproduce the above copyright notice,
|
|
14
|
+
this list of conditions and the following disclaimer in the documentation
|
|
15
|
+
and/or other materials provided with the distribution.
|
|
16
|
+
|
|
17
|
+
3. Neither the name of the copyright holder nor the names of its
|
|
18
|
+
contributors may be used to endorse or promote products derived from
|
|
19
|
+
this software without specific prior written permission.
|
|
20
|
+
|
|
21
|
+
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
|
|
22
|
+
AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
|
|
23
|
+
IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
|
|
24
|
+
DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
|
|
25
|
+
FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
|
|
26
|
+
DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
|
|
27
|
+
SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
|
|
28
|
+
CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
|
|
29
|
+
OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
|
|
30
|
+
OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
data/README.md
CHANGED
|
@@ -8,7 +8,7 @@ Ruby gems that power Spree Commerce — models, services, APIs, admin dashboard,
|
|
|
8
8
|
spree/
|
|
9
9
|
├── core/ # spree_core — models, services, business logic
|
|
10
10
|
├── api/ # spree_api — REST APIs (Store API + Admin API)
|
|
11
|
-
├──
|
|
11
|
+
├── dashboard/ # spree_dashboard — hosts the React admin dashboard (optional)
|
|
12
12
|
├── emails/ # spree_emails — transactional emails (optional)
|
|
13
13
|
├── spree.gemspec # meta-gem (installs core + api)
|
|
14
14
|
├── template.rb # Rails application template for new projects
|
|
@@ -23,8 +23,8 @@ Add to your Rails application's Gemfile:
|
|
|
23
23
|
|
|
24
24
|
```ruby
|
|
25
25
|
gem 'spree'
|
|
26
|
-
gem '
|
|
27
|
-
gem 'spree_emails'
|
|
26
|
+
gem 'spree_dashboard' # optional
|
|
27
|
+
gem 'spree_emails' # optional
|
|
28
28
|
```
|
|
29
29
|
|
|
30
30
|
Or use the Rails application template:
|
|
@@ -16,7 +16,7 @@ module Spree
|
|
|
16
16
|
class_option :admin_email, type: :string
|
|
17
17
|
class_option :admin_password, type: :string
|
|
18
18
|
class_option :enforce_available_locales, type: :boolean, default: nil
|
|
19
|
-
class_option :authentication, type: :string, default:
|
|
19
|
+
class_option :authentication, type: :string, default: nil
|
|
20
20
|
|
|
21
21
|
def self.source_paths
|
|
22
22
|
paths = superclass.source_paths
|
|
@@ -41,11 +41,7 @@ module Spree
|
|
|
41
41
|
end
|
|
42
42
|
|
|
43
43
|
def install_authentication
|
|
44
|
-
if @authentication == '
|
|
45
|
-
generate 'spree:authentication:devise'
|
|
46
|
-
elsif @authentication == 'dummy'
|
|
47
|
-
generate 'spree:authentication:dummy'
|
|
48
|
-
end
|
|
44
|
+
generate 'spree:authentication:dummy' if @authentication == 'dummy'
|
|
49
45
|
end
|
|
50
46
|
|
|
51
47
|
def configure_application
|
|
@@ -78,7 +74,6 @@ module Spree
|
|
|
78
74
|
say_status :copying, 'migrations'
|
|
79
75
|
silence_stream(STDOUT) do
|
|
80
76
|
silence_warnings { rake 'active_storage:install:migrations' }
|
|
81
|
-
silence_warnings { rake 'action_text:install:migrations' }
|
|
82
77
|
silence_warnings { rake 'spree:install:migrations' }
|
|
83
78
|
end
|
|
84
79
|
end
|
|
@@ -112,13 +107,18 @@ module Spree
|
|
|
112
107
|
end
|
|
113
108
|
|
|
114
109
|
def load_sample_data
|
|
115
|
-
return unless Spree::Core::Engine.sample_available?
|
|
116
|
-
|
|
117
110
|
if @load_sample_data
|
|
118
|
-
|
|
119
|
-
|
|
111
|
+
# Sample-data imports need an admin as their owner. Without explicit
|
|
112
|
+
# credentials the seed mints none (first-run setup does), so loading
|
|
113
|
+
# now would raise mid-install.
|
|
114
|
+
if admin_account_available?
|
|
115
|
+
say_status :loading, 'sample data'
|
|
116
|
+
rake 'spree:load_sample_data'
|
|
117
|
+
else
|
|
118
|
+
say_status :skipping, 'sample data (needs an admin account — finish setup, then run bin/rails spree:load_sample_data)'
|
|
119
|
+
end
|
|
120
120
|
else
|
|
121
|
-
say_status :skipping, 'sample data (you can always run
|
|
121
|
+
say_status :skipping, 'sample data (you can always run bin/rails spree:load_sample_data)'
|
|
122
122
|
end
|
|
123
123
|
end
|
|
124
124
|
|
|
@@ -150,6 +150,11 @@ module Spree
|
|
|
150
150
|
unless options[:quiet]
|
|
151
151
|
puts '*' * 50
|
|
152
152
|
puts "Spree has been installed successfully. You're all ready to go!"
|
|
153
|
+
unless admin_account_available?
|
|
154
|
+
puts ' '
|
|
155
|
+
puts 'No admin account was created — finish setup in the dashboard using the'
|
|
156
|
+
puts 'link printed by the seed (reprint it with: bin/rails spree:setup:token).'
|
|
157
|
+
end
|
|
153
158
|
puts ' '
|
|
154
159
|
puts 'Enjoy!'
|
|
155
160
|
end
|
|
@@ -157,6 +162,19 @@ module Spree
|
|
|
157
162
|
|
|
158
163
|
private
|
|
159
164
|
|
|
165
|
+
# Whether this install ends up with an admin account: explicit credentials
|
|
166
|
+
# were passed to the seed, or one already exists (re-install into a
|
|
167
|
+
# configured app). Drives the sample-data guard and the completion notes.
|
|
168
|
+
def admin_account_available?
|
|
169
|
+
credentials = (options[:admin_email].presence || ENV['ADMIN_EMAIL'].presence) &&
|
|
170
|
+
(options[:admin_password].presence || ENV['ADMIN_PASSWORD'].presence)
|
|
171
|
+
return true if credentials
|
|
172
|
+
|
|
173
|
+
Spree.admin_user_class.present? && Spree.admin_user_class.exists?
|
|
174
|
+
rescue StandardError
|
|
175
|
+
false
|
|
176
|
+
end
|
|
177
|
+
|
|
160
178
|
def silence_stream(stream)
|
|
161
179
|
old_stream = stream.dup
|
|
162
180
|
stream.reopen(RbConfig::CONFIG['host_os'] =~ /mswin|mingw/ ? 'NUL:' : '/dev/null')
|
|
@@ -1,29 +1,18 @@
|
|
|
1
|
-
#
|
|
1
|
+
# Spree settings are configured with environment variables — see
|
|
2
|
+
# https://docs.spreecommerce.org/developer/customization/configuration
|
|
3
|
+
# for every setting and the variable that sets it.
|
|
2
4
|
#
|
|
3
|
-
#
|
|
4
|
-
# If you would like users to be able to update a setting with the Admin it should NOT be set here.
|
|
5
|
+
# SPREE_MINIMUM_PASSWORD_LENGTH=10
|
|
5
6
|
#
|
|
6
|
-
#
|
|
7
|
-
#
|
|
8
|
-
# Instead you must either set a new value or remove entry, clear cache, and remove database entry.
|
|
7
|
+
# Anything that shapes how a shop sells — currency, taxes, when customers are
|
|
8
|
+
# charged — belongs to the store and is edited in the dashboard, not here.
|
|
9
9
|
#
|
|
10
|
-
#
|
|
11
|
-
#
|
|
10
|
+
# Use a Spree.config block only for a value that has to be computed in Ruby;
|
|
11
|
+
# it is applied at boot and wins over the environment.
|
|
12
12
|
#
|
|
13
|
-
#
|
|
14
|
-
#
|
|
15
|
-
|
|
16
|
-
# Example:
|
|
17
|
-
# Uncomment to stop tracking inventory levels in the application
|
|
18
|
-
# config.track_inventory_levels = false
|
|
19
|
-
end
|
|
20
|
-
|
|
21
|
-
# Background job queue names
|
|
22
|
-
# Spree.queues.default = :default
|
|
23
|
-
# Spree.queues.events = :default # Event subscribers (Spree::Events::SubscriberJob)
|
|
24
|
-
# Spree.queues.variants = :default
|
|
25
|
-
# Spree.queues.stock_location_stock_items = :default
|
|
26
|
-
# Spree.queues.coupon_codes = :default
|
|
13
|
+
# Spree.config do |config|
|
|
14
|
+
# config.minimum_password_length = 10
|
|
15
|
+
# end
|
|
27
16
|
|
|
28
17
|
# Use a CDN host for images, eg. Cloudfront
|
|
29
18
|
# This is used in the frontend to generate absolute URLs to images
|
|
@@ -37,17 +26,12 @@ end
|
|
|
37
26
|
|
|
38
27
|
# Use a different service for storage (S3, google, etc)
|
|
39
28
|
# unless Rails.env.test?
|
|
40
|
-
# Spree.
|
|
41
|
-
# Spree.
|
|
29
|
+
# Spree.public_storage_service_name = :amazon_public # public assets, such as product images
|
|
30
|
+
# Spree.private_storage_service_name = :amazon_private # private assets, such as invoices, etc
|
|
42
31
|
# end
|
|
43
32
|
|
|
44
|
-
#
|
|
45
|
-
#
|
|
46
|
-
# Note: If a dependency is set here it will NOT be stored within the cache & database upon initialization.
|
|
47
|
-
# Just removing an entry from this initializer will make the dependency value go away.
|
|
48
|
-
#
|
|
49
|
-
# More on how to use Spree dependencies can be found at:
|
|
50
|
-
# https://docs.spreecommerce.org/customization/dependencies
|
|
33
|
+
# Swap a Spree service for your own — see
|
|
34
|
+
# https://docs.spreecommerce.org/developer/customization/dependencies
|
|
51
35
|
Spree.dependencies do |dependencies|
|
|
52
36
|
# Example:
|
|
53
37
|
# Uncomment to change the default Service handling adding Items to Cart
|
|
@@ -77,61 +61,48 @@ Rails.application.config.after_initialize do
|
|
|
77
61
|
# Taxon rules
|
|
78
62
|
# Spree.taxon_rules << Spree::TaxonRules::ProductsWithColor
|
|
79
63
|
|
|
80
|
-
# Exports
|
|
64
|
+
# Exports
|
|
81
65
|
# Spree.export_types << Spree::Exports::Payments
|
|
82
|
-
# Spree.reports << Spree::Reports::MassivelyOvercomplexReportForCfo
|
|
83
|
-
|
|
84
|
-
# Admin partials
|
|
85
|
-
# Spree.admin.partials.product_form << 'spree/admin/products/custom_section'
|
|
86
66
|
|
|
87
67
|
# Role-based permissions
|
|
88
|
-
#
|
|
89
|
-
#
|
|
90
|
-
Spree.permissions.assign(:default, [Spree::PermissionSets::DefaultCustomer])
|
|
91
|
-
Spree.permissions.assign(:admin, [Spree::PermissionSets::SuperUser])
|
|
92
|
-
|
|
93
|
-
# Example: Create a custom role with specific permissions
|
|
94
|
-
# Spree.permissions.assign(:customer_service, [
|
|
95
|
-
# Spree::PermissionSets::DashboardDisplay,
|
|
96
|
-
# Spree::PermissionSets::OrderManagement,
|
|
97
|
-
# Spree::PermissionSets::UserDisplay
|
|
98
|
-
# ])
|
|
68
|
+
# Staff roles and their permissions are managed as data — in the dashboard
|
|
69
|
+
# (Settings → Roles), via the Admin API, or in db/seeds.rb:
|
|
99
70
|
#
|
|
100
|
-
#
|
|
101
|
-
#
|
|
102
|
-
#
|
|
103
|
-
#
|
|
104
|
-
#
|
|
105
|
-
#
|
|
106
|
-
#
|
|
107
|
-
# - Spree::PermissionSets::StockDisplay / StockManagement
|
|
108
|
-
# - Spree::PermissionSets::PromotionManagement
|
|
109
|
-
# - Spree::PermissionSets::ConfigurationManagement
|
|
110
|
-
# - Spree::PermissionSets::RoleManagement
|
|
71
|
+
# Spree::Role.find_or_create_by!(name: 'support')
|
|
72
|
+
# .update!(permissions: %w[read_orders read_customers])
|
|
73
|
+
#
|
|
74
|
+
# Extensions can register additional permission resources:
|
|
75
|
+
# Spree.permissions.register_scope(:reviews, group: :catalog, resources: -> { [MyApp::Review] })
|
|
76
|
+
#
|
|
77
|
+
# More: https://spreecommerce.org/docs/developer/customization/permissions
|
|
111
78
|
end
|
|
112
79
|
|
|
113
80
|
# Background job queue configuration
|
|
81
|
+
# Spree.queues.addresses = :default
|
|
82
|
+
# Spree.queues.api_keys = :default
|
|
83
|
+
# Spree.queues.categories = :default
|
|
84
|
+
# Spree.queues.collections = :default
|
|
85
|
+
# Spree.queues.coupon_codes = :default
|
|
86
|
+
# Spree.queues.data_requests = :default
|
|
114
87
|
# Spree.queues.default = :default
|
|
115
88
|
# Spree.queues.events = :default
|
|
116
89
|
# Spree.queues.exports = :default
|
|
90
|
+
# Spree.queues.gift_cards = :default
|
|
117
91
|
# Spree.queues.images = :default
|
|
118
92
|
# Spree.queues.imports = :default
|
|
93
|
+
# Spree.queues.payment_webhooks = :default
|
|
94
|
+
# Spree.queues.payouts = :default
|
|
119
95
|
# Spree.queues.products = :default
|
|
120
|
-
# Spree.queues.
|
|
121
|
-
# Spree.queues.
|
|
122
|
-
# Spree.queues.
|
|
123
|
-
# Spree.queues.
|
|
124
|
-
# Spree.queues.coupon_codes = :default
|
|
96
|
+
# Spree.queues.search = :default
|
|
97
|
+
# Spree.queues.stock_location_stock_levels = :default
|
|
98
|
+
# Spree.queues.stock_reservations = :default
|
|
99
|
+
# Spree.queues.tax_identifiers = :default
|
|
125
100
|
# Spree.queues.themes = :default
|
|
126
|
-
# Spree.queues.
|
|
127
|
-
# Spree.queues.gift_cards = :default
|
|
101
|
+
# Spree.queues.variants = :default
|
|
128
102
|
# Spree.queues.webhooks = :default
|
|
129
|
-
# Spree.queues.payment_webhooks = :default
|
|
130
|
-
# Spree.queues.api_keys = :default
|
|
131
|
-
# Spree.queues.search = :default
|
|
132
103
|
|
|
133
|
-
# Search provider
|
|
134
|
-
# Spree.search_provider = '
|
|
104
|
+
# Search provider — requires the spree_meilisearch gem
|
|
105
|
+
# Spree.search_provider = 'SpreeMeilisearch::SearchProvider'
|
|
135
106
|
|
|
136
|
-
Spree.
|
|
137
|
-
Spree.admin_user_class = <%= (options[:admin_user_class].blank? ? (options[:user_class].blank? ? 'Spree::
|
|
107
|
+
Spree.customer_class = <%= (options[:user_class].blank? ? 'Spree::Customer' : options[:user_class]).inspect %>
|
|
108
|
+
Spree.admin_user_class = <%= (options[:admin_user_class].blank? ? (options[:user_class].blank? ? 'Spree::AdminUser' : options[:user_class]) : options[:admin_user_class]).inspect %>
|
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: spree
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version:
|
|
4
|
+
version: 6.0.0.beta2
|
|
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-
|
|
13
|
+
date: 2026-09-17 00:00:00.000000000 Z
|
|
14
14
|
dependencies:
|
|
15
15
|
- !ruby/object:Gem::Dependency
|
|
16
16
|
name: spree_core
|
|
@@ -18,35 +18,37 @@ dependencies:
|
|
|
18
18
|
requirements:
|
|
19
19
|
- - '='
|
|
20
20
|
- !ruby/object:Gem::Version
|
|
21
|
-
version:
|
|
21
|
+
version: 6.0.0.beta2
|
|
22
22
|
type: :runtime
|
|
23
23
|
prerelease: false
|
|
24
24
|
version_requirements: !ruby/object:Gem::Requirement
|
|
25
25
|
requirements:
|
|
26
26
|
- - '='
|
|
27
27
|
- !ruby/object:Gem::Version
|
|
28
|
-
version:
|
|
28
|
+
version: 6.0.0.beta2
|
|
29
29
|
- !ruby/object:Gem::Dependency
|
|
30
30
|
name: spree_api
|
|
31
31
|
requirement: !ruby/object:Gem::Requirement
|
|
32
32
|
requirements:
|
|
33
33
|
- - '='
|
|
34
34
|
- !ruby/object:Gem::Version
|
|
35
|
-
version:
|
|
35
|
+
version: 6.0.0.beta2
|
|
36
36
|
type: :runtime
|
|
37
37
|
prerelease: false
|
|
38
38
|
version_requirements: !ruby/object:Gem::Requirement
|
|
39
39
|
requirements:
|
|
40
40
|
- - '='
|
|
41
41
|
- !ruby/object:Gem::Version
|
|
42
|
-
version:
|
|
43
|
-
description:
|
|
44
|
-
and
|
|
42
|
+
version: 6.0.0.beta2
|
|
43
|
+
description: Open Source Platform for DTC, B2B Commerce, Marketplaces & Omnichannel.
|
|
44
|
+
REST APIs, TypeScript SDKs, and production-ready Next.js storefront. Self-host it.
|
|
45
|
+
Own your data. No vendor lock-in. Zero platform fees.
|
|
45
46
|
email: hello@spreecommerce.org
|
|
46
47
|
executables: []
|
|
47
48
|
extensions: []
|
|
48
49
|
extra_rdoc_files: []
|
|
49
50
|
files:
|
|
51
|
+
- LICENSE
|
|
50
52
|
- README.md
|
|
51
53
|
- lib/generators/spree/install/install_generator.rb
|
|
52
54
|
- lib/generators/spree/install/templates/config/initializers/spree.rb
|
|
@@ -56,9 +58,9 @@ licenses:
|
|
|
56
58
|
- BSD-3-Clause
|
|
57
59
|
metadata:
|
|
58
60
|
bug_tracker_uri: https://github.com/spree/spree/issues
|
|
59
|
-
changelog_uri: https://github.com/spree/spree/releases/tag/
|
|
61
|
+
changelog_uri: https://github.com/spree/spree/releases/tag/v6.0.0.beta2
|
|
60
62
|
documentation_uri: https://docs.spreecommerce.org/
|
|
61
|
-
source_code_uri: https://github.com/spree/spree/tree/
|
|
63
|
+
source_code_uri: https://github.com/spree/spree/tree/v6.0.0.beta2
|
|
62
64
|
post_install_message:
|
|
63
65
|
rdoc_options: []
|
|
64
66
|
require_paths:
|
|
@@ -78,5 +80,5 @@ requirements:
|
|
|
78
80
|
rubygems_version: 3.5.22
|
|
79
81
|
signing_key:
|
|
80
82
|
specification_version: 4
|
|
81
|
-
summary:
|
|
83
|
+
summary: Open Source B2B eCommerce and Marketplace platform
|
|
82
84
|
test_files: []
|