spree 4.2.0.beta → 4.2.0.rc5

Sign up to get free protection for your applications and to get access to all the features.
Files changed (4) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +9 -94
  3. data/lib/sandbox.sh +42 -1
  4. metadata +20 -20
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 06e4bda55a126d238210ef9f9c6f2887a4713a5114bbed43a2ea24fb6322918b
4
- data.tar.gz: fa15616d4bfe0cb48909c119fb90a12cfe86e1e5c3f5012c2674e7157d2acb50
3
+ metadata.gz: 8e9100da845ab2127bc03cd3b469f04d80cfac17e3e5809299d48bf617397b16
4
+ data.tar.gz: 9dc2ed6a2e0126452335f5c727db37baff37a2aca6a786d4d1691956ba80e01d
5
5
  SHA512:
6
- metadata.gz: 7bc6ff6a933ff8ae879afe83b7fce2df7e018d5e2e043a88882cbfb871a014eb98eddd5c10732ad237a372091054dbbb5d334e566901ea22bef9f9dc2329c152
7
- data.tar.gz: f62a985b59224cae795e9db03411a93b368da79542c9d2ccddd59dcf75b5d203e436ad6eac7c90f695678c3e84264dc1e4d535ed8d6f0a2c2810eaf19b76e613
6
+ metadata.gz: 7a3e8137aa115f3080d2afb09ded29a526d2fe20b4b68dc56e96cd8ad017e23b36b7afb28cc26bdfc3fced0e4728b6587679e7688642b17293c3b11783a92d46
7
+ data.tar.gz: 5acd9da5983c7cda1298490728ab0128f555130f019d88eb7a642b84900eb85d1df3bf1f79c48b1e477503882c00bc5bccfb95ae4e29ea3b4a7451600e76975d
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/spree/tree/4-1-stable)
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
- ### Create new Rails app (optional)
52
+ ### Option A - use Spree Starter with Docker
53
53
 
54
- If you're starting a new application from scrach run:
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
- ```bash
57
- rails new my_store
58
- cd my_store
59
- ```
59
+ ### Option B - add Spree to an existing application
60
60
 
61
- You can **add Spree to your existing Rails application** as well.
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.1'
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 |
data/lib/sandbox.sh CHANGED
@@ -50,23 +50,58 @@ else
50
50
  SPREE_GATEWAY_GEM="gem 'spree_gateway', github: 'spree/spree_gateway', branch: 'master'"
51
51
  fi
52
52
 
53
+ if [ "$SPREE_HEADLESS" != "" ]; then
54
+ cat <<RUBY >> Gemfile
55
+ gem 'spree_core', path: '..'
56
+ gem 'spree_api', path: '..'
57
+ gem 'spree_backend', path: '..'
58
+ gem 'spree_sample', path: '..'
59
+ gem 'spree_cmd', path: '..'
60
+
61
+ $SPREE_AUTH_DEVISE_GEM
62
+ $SPREE_GATEWAY_GEM
63
+
64
+ gem 'spree_i18n', github: 'spree-contrib/spree_i18n', branch: 'master'
65
+
66
+ group :test, :development do
67
+ gem 'bullet'
68
+ gem 'pry-byebug'
69
+ gem 'awesome_print'
70
+ end
71
+
72
+ gem 'rack-cache'
73
+ RUBY
74
+ else
53
75
  cat <<RUBY >> Gemfile
54
76
  gem 'spree', path: '..'
55
77
  $SPREE_AUTH_DEVISE_GEM
56
78
  $SPREE_GATEWAY_GEM
79
+ gem 'spree_i18n', github: 'spree-contrib/spree_i18n', branch: 'master'
80
+ gem 'spree_static_content', github: 'spree-contrib/spree_static_content', branch: 'master'
81
+ gem 'spree_related_products', github: 'spree-contrib/spree_related_products', branch: 'master'
82
+ gem 'spree_multi_domain', github: 'spree-contrib/spree-multi-domain', branch: 'master'
57
83
 
58
84
  group :test, :development do
59
85
  gem 'bullet'
60
86
  gem 'pry-byebug'
61
- gem 'rack-mini-profiler'
62
87
  gem 'awesome_print'
63
88
  end
64
89
 
65
90
  # ExecJS runtime
66
91
  gem 'mini_racer'
67
92
 
93
+ # temporary fix for sassc segfaults on ruby 3.0.0 on Mac OS Big Sur
94
+ # this change fixes the issue:
95
+ # https://github.com/sass/sassc-ruby/commit/04407faf6fbd400f1c9f72f752395e1dfa5865f7
96
+ gem 'sassc', github: 'sass/sassc-ruby', branch: 'master'
97
+
68
98
  gem 'rack-cache'
69
99
  RUBY
100
+ fi
101
+
102
+ cat <<RUBY >> config/environments/development.rb
103
+ Rails.application.config.hosts << /.*\.lvh\.me/
104
+ RUBY
70
105
 
71
106
  bundle install --gemfile Gemfile
72
107
  bundle exec rails db:drop || true
@@ -75,3 +110,9 @@ bundle exec rails g spree:install --auto-accept --user_class=Spree::User --enfor
75
110
  bundle exec rails g spree:mailers_preview
76
111
  bundle exec rails g spree:auth:install
77
112
  bundle exec rails g spree_gateway:install
113
+
114
+ if [ "$SPREE_HEADLESS" == "" ]; then
115
+ bundle exec rails g spree_related_products:install
116
+ bundle exec rails g spree_static_content:install
117
+ bundle exec rails g spree_multi_domain:install
118
+ fi
metadata CHANGED
@@ -1,15 +1,15 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: spree
3
3
  version: !ruby/object:Gem::Version
4
- version: 4.2.0.beta
4
+ version: 4.2.0.rc5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Sean Schofield
8
8
  - Spark Solutions
9
- autorequire:
9
+ autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2020-09-07 00:00:00.000000000 Z
12
+ date: 2021-02-04 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.beta
20
+ version: 4.2.0.rc5
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.beta
27
+ version: 4.2.0.rc5
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.beta
34
+ version: 4.2.0.rc5
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.beta
41
+ version: 4.2.0.rc5
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.beta
48
+ version: 4.2.0.rc5
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.beta
55
+ version: 4.2.0.rc5
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.beta
62
+ version: 4.2.0.rc5
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.beta
69
+ version: 4.2.0.rc5
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.beta
76
+ version: 4.2.0.rc5
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.beta
83
+ version: 4.2.0.rc5
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.beta
90
+ version: 4.2.0.rc5
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.beta
97
+ version: 4.2.0.rc5
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
@@ -110,10 +110,10 @@ licenses:
110
110
  - BSD-3-Clause
111
111
  metadata:
112
112
  bug_tracker_uri: https://github.com/spree/spree/issues
113
- changelog_uri: https://github.com/spree/spree/releases/tag/v4.2.0.beta
113
+ changelog_uri: https://github.com/spree/spree/releases/tag/v4.2.0.rc5
114
114
  documentation_uri: https://guides.spreecommerce.org/
115
- source_code_uri: https://github.com/spree/spree/tree/v4.2.0.beta
116
- post_install_message:
115
+ source_code_uri: https://github.com/spree/spree/tree/v4.2.0.rc5
116
+ post_install_message:
117
117
  rdoc_options: []
118
118
  require_paths:
119
119
  - lib
@@ -129,8 +129,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
129
129
  version: 1.3.1
130
130
  requirements:
131
131
  - none
132
- rubygems_version: 3.1.2
133
- signing_key:
132
+ rubygems_version: 3.1.4
133
+ signing_key:
134
134
  specification_version: 4
135
135
  summary: Full-stack e-commerce framework for Ruby on Rails.
136
136
  test_files: []