spree 4.2.0.rc1 → 4.2.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +9 -94
- metadata +18 -19
- data/lib/sandbox.sh +0 -77
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: f5fd931c003801e1dfd10d6308ca2c26b309a68359a6b974c0dd60c1bce323d2
|
4
|
+
data.tar.gz: 9159ba41e014b991a434b1e949738bb59192a77132c26fc80dd3d19e68504409
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 80fffaaebf74a38f999c4fc4697a96a8955fcd54e183d9fb98dfc0ec7d3fdda7afeec32361b22e29a22e827e38b296a66914a6b87ec67951d8152fd043b9ac4b
|
7
|
+
data.tar.gz: '09d97acf3e74474e70e235d3fb965dc53b5d922f375c0b4cfefddd15e4fd4f58dbe150587a7a7c7dc0818c26a9498d21de6c6a6b36bcafbf0ba94f82516b676d'
|
data/README.md
CHANGED
@@ -40,109 +40,25 @@ Explore demo features: https://spreecommerce.org/spree-commerce-demo-explainer/
|
|
40
40
|
|
41
41
|
Or fire up your own demo on Heroku:
|
42
42
|
|
43
|
-
[![Deploy](https://www.herokucdn.com/deploy/button.svg)](https://heroku.com/deploy?template=https://github.com/spree/
|
43
|
+
[![Deploy](https://www.herokucdn.com/deploy/button.svg)](https://heroku.com/deploy?template=https://github.com/spree/spree_starter)
|
44
44
|
|
45
45
|
Admin panel credentials for your own Heroku demo:
|
46
46
|
|
47
47
|
* login: `spree@example.com`
|
48
48
|
* password: `spree123`
|
49
49
|
|
50
|
-
## Installation
|
50
|
+
## Local Installation
|
51
51
|
|
52
|
-
###
|
52
|
+
### Option A - use Spree Starter with Docker
|
53
53
|
|
54
|
-
|
54
|
+
1. [Install Docker](https://docs.docker.com/get-docker/)
|
55
|
+
2. Download [Spree Starter](https://github.com/spree/spree_starter/archive/main.zip)
|
56
|
+
3. Unzip it
|
57
|
+
4. Run `bin/setup` in `spree_starter-main` directory
|
55
58
|
|
56
|
-
|
57
|
-
rails new my_store
|
58
|
-
cd my_store
|
59
|
-
```
|
59
|
+
### Option B - add Spree to an existing application
|
60
60
|
|
61
|
-
|
62
|
-
|
63
|
-
### Add Spree gems to your `Gemfile`
|
64
|
-
|
65
|
-
#### Rails 6.0
|
66
|
-
|
67
|
-
```ruby
|
68
|
-
gem 'spree', '~> 4.1'
|
69
|
-
gem 'spree_auth_devise', '~> 4.2'
|
70
|
-
gem 'spree_gateway', '~> 3.7'
|
71
|
-
```
|
72
|
-
|
73
|
-
#### Rails 5.2
|
74
|
-
|
75
|
-
```ruby
|
76
|
-
gem 'spree', '~> 3.7.0'
|
77
|
-
gem 'spree_auth_devise', '~> 3.5'
|
78
|
-
gem 'spree_gateway', '~> 3.4'
|
79
|
-
```
|
80
|
-
|
81
|
-
To see what rails version are you using run this command:
|
82
|
-
|
83
|
-
```bash
|
84
|
-
rails -v
|
85
|
-
```
|
86
|
-
|
87
|
-
Older rails versions are also supported: [Rails 5.1](https://guides.spreecommerce.org/release_notes/3_5_0.html), [Rails 5.0](https://guides.spreecommerce.org/release_notes/3_2_0.html), [Rails 4.2](https://guides.spreecommerce.org/release_notes/3_1_0.html)
|
88
|
-
|
89
|
-
### Install gems
|
90
|
-
|
91
|
-
```bash
|
92
|
-
bundle install
|
93
|
-
```
|
94
|
-
|
95
|
-
**Note**: if you run into `Bundler could not find compatible versions for gem "sprockets":` error message, please run
|
96
|
-
|
97
|
-
```bash
|
98
|
-
bundle update
|
99
|
-
```
|
100
|
-
|
101
|
-
### Use the install generators to set up Spree
|
102
|
-
|
103
|
-
```shell
|
104
|
-
bundle exec rails g spree:install --user_class=Spree::User
|
105
|
-
bundle exec rails g spree:auth:install
|
106
|
-
bundle exec rails g spree_gateway:install
|
107
|
-
```
|
108
|
-
|
109
|
-
## Installation options
|
110
|
-
|
111
|
-
By default, the installation generator (`rails g spree:install`) will run
|
112
|
-
migrations as well as adding seed and sample data and will copy storefront data
|
113
|
-
for easy customization (if `spree_frontend` available). This can be disabled using
|
114
|
-
|
115
|
-
```shell
|
116
|
-
rails g spree:install --migrate=false --sample=false --seed=false --copy_storefront=false
|
117
|
-
```
|
118
|
-
|
119
|
-
You can always perform any of these steps later by using these commands.
|
120
|
-
|
121
|
-
```shell
|
122
|
-
bundle exec rake railties:install:migrations
|
123
|
-
bundle exec rails db:migrate
|
124
|
-
bundle exec rails db:seed
|
125
|
-
bundle exec rake spree_sample:load
|
126
|
-
bundle exec rails g spree:frontend:copy_storefront
|
127
|
-
```
|
128
|
-
|
129
|
-
### Headless installation
|
130
|
-
|
131
|
-
To use Spree in [API-only mode](https://guides.spreecommerce.org/api/overview/) you need to replace `spree` with `spree_api` in your project Gemfile. This will skip Storefront and Admin Panel. If you would want to include the Admin Panel please add `spree_backend` to your Gemfile.
|
132
|
-
|
133
|
-
## Run rails sever
|
134
|
-
|
135
|
-
```bash
|
136
|
-
rails s
|
137
|
-
```
|
138
|
-
|
139
|
-
## Browse Storefront
|
140
|
-
|
141
|
-
Go to http://localhost:3000
|
142
|
-
|
143
|
-
## Browse Admin Panel
|
144
|
-
|
145
|
-
Go to http://localhost:3000/admin
|
61
|
+
1. [Please follow Add Spree to an existing Ruby on Rails application tutorial](https://guides.spreecommerce.org/developer/tutorials/existing_app_tutorial.html)
|
146
62
|
|
147
63
|
## Extensions
|
148
64
|
|
@@ -162,7 +78,6 @@ Spree Extensions provide additional features not present in the Core system.
|
|
162
78
|
| [spree_globalize](https://github.com/spree-contrib/spree_globalize) | [![Build Status](https://travis-ci.org/spree-contrib/spree_globalize.svg?branch=master)](https://travis-ci.org/spree-contrib/spree_globalize) | Adds support for model translations (multi-language stores)
|
163
79
|
| [spree_i18n](https://github.com/spree-contrib/spree_i18n) | [![Build Status](https://travis-ci.org/spree-contrib/spree_i18n.svg?branch=master)](https://travis-ci.org/spree-contrib/spree_i18n) | I18n translation files for Spree Commerce
|
164
80
|
| [spree-mollie-gateway](https://github.com/mollie/spree-mollie-gateway) | [![Build Status](https://travis-ci.org/mollie/spree-mollie-gateway.svg?branch=master)](https://github.com/mollie/spree-mollie-gateway) | Official [Mollie](https://www.mollie.com) payment gateway for Spree Commerce. |
|
165
|
-
| [spree_multi_currency](https://github.com/spree-contrib/spree_multi_currency) | [![Build Status](https://travis-ci.org/spree-contrib/spree_multi_currency.svg?branch=master)](https://travis-ci.org/spree-contrib/spree_multi_currency) | Provides UI to allow configuring multiple currencies in Spree |
|
166
81
|
| [spree-multi-domain](https://github.com/spree-contrib/spree-multi-domain) | [![Build Status](https://travis-ci.org/spree-contrib/spree-multi-domain.svg?branch=master)](https://travis-ci.org/spree-contrib/spree-multi-domain) | Multiple Spree stores on different domains - single unified backed for processing orders
|
167
82
|
| [spree_multi_vendor](https://github.com/spree-contrib/spree_multi_vendor) | [![Build Status](https://travis-ci.org/spree-contrib/spree_multi_vendor.svg?branch=master)](https://travis-ci.org/spree-contrib/spree_multi_vendor) | Spree Multi Vendor Marketplace extension |
|
168
83
|
| [spree-product-assembly](https://github.com/spree-contrib/spree-product-assembly) | [![Build Status](https://travis-ci.org/spree-contrib/spree-product-assembly.svg?branch=master)](https://travis-ci.org/spree-contrib/spree-product-assembly) | Product Bundles |
|
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.2.0
|
4
|
+
version: 4.2.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Sean Schofield
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date:
|
12
|
+
date: 2021-02-25 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: spree_core
|
@@ -17,84 +17,84 @@ dependencies:
|
|
17
17
|
requirements:
|
18
18
|
- - '='
|
19
19
|
- !ruby/object:Gem::Version
|
20
|
-
version: 4.2.0
|
20
|
+
version: 4.2.0
|
21
21
|
type: :runtime
|
22
22
|
prerelease: false
|
23
23
|
version_requirements: !ruby/object:Gem::Requirement
|
24
24
|
requirements:
|
25
25
|
- - '='
|
26
26
|
- !ruby/object:Gem::Version
|
27
|
-
version: 4.2.0
|
27
|
+
version: 4.2.0
|
28
28
|
- !ruby/object:Gem::Dependency
|
29
29
|
name: spree_api
|
30
30
|
requirement: !ruby/object:Gem::Requirement
|
31
31
|
requirements:
|
32
32
|
- - '='
|
33
33
|
- !ruby/object:Gem::Version
|
34
|
-
version: 4.2.0
|
34
|
+
version: 4.2.0
|
35
35
|
type: :runtime
|
36
36
|
prerelease: false
|
37
37
|
version_requirements: !ruby/object:Gem::Requirement
|
38
38
|
requirements:
|
39
39
|
- - '='
|
40
40
|
- !ruby/object:Gem::Version
|
41
|
-
version: 4.2.0
|
41
|
+
version: 4.2.0
|
42
42
|
- !ruby/object:Gem::Dependency
|
43
43
|
name: spree_backend
|
44
44
|
requirement: !ruby/object:Gem::Requirement
|
45
45
|
requirements:
|
46
46
|
- - '='
|
47
47
|
- !ruby/object:Gem::Version
|
48
|
-
version: 4.2.0
|
48
|
+
version: 4.2.0
|
49
49
|
type: :runtime
|
50
50
|
prerelease: false
|
51
51
|
version_requirements: !ruby/object:Gem::Requirement
|
52
52
|
requirements:
|
53
53
|
- - '='
|
54
54
|
- !ruby/object:Gem::Version
|
55
|
-
version: 4.2.0
|
55
|
+
version: 4.2.0
|
56
56
|
- !ruby/object:Gem::Dependency
|
57
57
|
name: spree_frontend
|
58
58
|
requirement: !ruby/object:Gem::Requirement
|
59
59
|
requirements:
|
60
60
|
- - '='
|
61
61
|
- !ruby/object:Gem::Version
|
62
|
-
version: 4.2.0
|
62
|
+
version: 4.2.0
|
63
63
|
type: :runtime
|
64
64
|
prerelease: false
|
65
65
|
version_requirements: !ruby/object:Gem::Requirement
|
66
66
|
requirements:
|
67
67
|
- - '='
|
68
68
|
- !ruby/object:Gem::Version
|
69
|
-
version: 4.2.0
|
69
|
+
version: 4.2.0
|
70
70
|
- !ruby/object:Gem::Dependency
|
71
71
|
name: spree_sample
|
72
72
|
requirement: !ruby/object:Gem::Requirement
|
73
73
|
requirements:
|
74
74
|
- - '='
|
75
75
|
- !ruby/object:Gem::Version
|
76
|
-
version: 4.2.0
|
76
|
+
version: 4.2.0
|
77
77
|
type: :runtime
|
78
78
|
prerelease: false
|
79
79
|
version_requirements: !ruby/object:Gem::Requirement
|
80
80
|
requirements:
|
81
81
|
- - '='
|
82
82
|
- !ruby/object:Gem::Version
|
83
|
-
version: 4.2.0
|
83
|
+
version: 4.2.0
|
84
84
|
- !ruby/object:Gem::Dependency
|
85
85
|
name: spree_cmd
|
86
86
|
requirement: !ruby/object:Gem::Requirement
|
87
87
|
requirements:
|
88
88
|
- - '='
|
89
89
|
- !ruby/object:Gem::Version
|
90
|
-
version: 4.2.0
|
90
|
+
version: 4.2.0
|
91
91
|
type: :runtime
|
92
92
|
prerelease: false
|
93
93
|
version_requirements: !ruby/object:Gem::Requirement
|
94
94
|
requirements:
|
95
95
|
- - '='
|
96
96
|
- !ruby/object:Gem::Version
|
97
|
-
version: 4.2.0
|
97
|
+
version: 4.2.0
|
98
98
|
description: Spree is an open source e-commerce framework for Ruby on Rails. Join
|
99
99
|
us on http://slack.spreecommerce.org
|
100
100
|
email: hello@spreecommerce.org
|
@@ -103,16 +103,15 @@ extensions: []
|
|
103
103
|
extra_rdoc_files: []
|
104
104
|
files:
|
105
105
|
- README.md
|
106
|
-
- lib/sandbox.sh
|
107
106
|
- lib/spree.rb
|
108
107
|
homepage: https://spreecommerce.org
|
109
108
|
licenses:
|
110
109
|
- BSD-3-Clause
|
111
110
|
metadata:
|
112
111
|
bug_tracker_uri: https://github.com/spree/spree/issues
|
113
|
-
changelog_uri: https://github.com/spree/spree/releases/tag/v4.2.0
|
112
|
+
changelog_uri: https://github.com/spree/spree/releases/tag/v4.2.0
|
114
113
|
documentation_uri: https://guides.spreecommerce.org/
|
115
|
-
source_code_uri: https://github.com/spree/spree/tree/v4.2.0
|
114
|
+
source_code_uri: https://github.com/spree/spree/tree/v4.2.0
|
116
115
|
post_install_message:
|
117
116
|
rdoc_options: []
|
118
117
|
require_paths:
|
@@ -124,9 +123,9 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
124
123
|
version: 2.5.0
|
125
124
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
126
125
|
requirements:
|
127
|
-
- - "
|
126
|
+
- - ">="
|
128
127
|
- !ruby/object:Gem::Version
|
129
|
-
version:
|
128
|
+
version: '0'
|
130
129
|
requirements:
|
131
130
|
- none
|
132
131
|
rubygems_version: 3.1.4
|
data/lib/sandbox.sh
DELETED
@@ -1,77 +0,0 @@
|
|
1
|
-
#!/bin/sh
|
2
|
-
# Used in the sandbox rake task in Rakefile
|
3
|
-
|
4
|
-
set -e
|
5
|
-
|
6
|
-
case "$DB" in
|
7
|
-
postgres)
|
8
|
-
RAILSDB="postgresql"
|
9
|
-
;;
|
10
|
-
mysql)
|
11
|
-
RAILSDB="mysql"
|
12
|
-
;;
|
13
|
-
sqlite|'')
|
14
|
-
RAILSDB="sqlite3"
|
15
|
-
;;
|
16
|
-
*)
|
17
|
-
echo "Invalid DB specified: $DB"
|
18
|
-
exit 1
|
19
|
-
;;
|
20
|
-
esac
|
21
|
-
|
22
|
-
rm -rf ./sandbox
|
23
|
-
bundle exec rails new sandbox --database="$RAILSDB" \
|
24
|
-
--skip-bundle \
|
25
|
-
--skip-git \
|
26
|
-
--skip-keeps \
|
27
|
-
--skip-rc \
|
28
|
-
--skip-spring \
|
29
|
-
--skip-test \
|
30
|
-
--skip-coffee \
|
31
|
-
--skip-javascript \
|
32
|
-
--skip-bootsnap
|
33
|
-
|
34
|
-
if [ ! -d "sandbox" ]; then
|
35
|
-
echo 'sandbox rails application failed'
|
36
|
-
exit 1
|
37
|
-
fi
|
38
|
-
|
39
|
-
cd ./sandbox
|
40
|
-
|
41
|
-
if [ "$SPREE_AUTH_DEVISE_PATH" != "" ]; then
|
42
|
-
SPREE_AUTH_DEVISE_GEM="gem 'spree_auth_devise', path: '$SPREE_AUTH_DEVISE_PATH'"
|
43
|
-
else
|
44
|
-
SPREE_AUTH_DEVISE_GEM="gem 'spree_auth_devise', github: 'spree/spree_auth_devise', branch: 'master'"
|
45
|
-
fi
|
46
|
-
|
47
|
-
if [ "$SPREE_GATEWAY_PATH" != "" ]; then
|
48
|
-
SPREE_GATEWAY_GEM="gem 'spree_gateway', path: '$SPREE_GATEWAY_PATH'"
|
49
|
-
else
|
50
|
-
SPREE_GATEWAY_GEM="gem 'spree_gateway', github: 'spree/spree_gateway', branch: 'master'"
|
51
|
-
fi
|
52
|
-
|
53
|
-
cat <<RUBY >> Gemfile
|
54
|
-
gem 'spree', path: '..'
|
55
|
-
$SPREE_AUTH_DEVISE_GEM
|
56
|
-
$SPREE_GATEWAY_GEM
|
57
|
-
|
58
|
-
group :test, :development do
|
59
|
-
gem 'bullet'
|
60
|
-
gem 'pry-byebug'
|
61
|
-
gem 'rack-mini-profiler'
|
62
|
-
gem 'awesome_print'
|
63
|
-
end
|
64
|
-
|
65
|
-
# ExecJS runtime
|
66
|
-
gem 'mini_racer'
|
67
|
-
|
68
|
-
gem 'rack-cache'
|
69
|
-
RUBY
|
70
|
-
|
71
|
-
bundle install --gemfile Gemfile
|
72
|
-
bundle exec rails db:drop || true
|
73
|
-
bundle exec rails db:create
|
74
|
-
bundle exec rails g spree:install --auto-accept --user_class=Spree::User --enforce_available_locales=true --copy_storefront=false
|
75
|
-
bundle exec rails g spree:mailers_preview
|
76
|
-
bundle exec rails g spree:auth:install
|
77
|
-
bundle exec rails g spree_gateway:install
|