spree 1.1.6 → 1.3.5
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.
Potentially problematic release.
This version of spree might be problematic. Click here for more details.
- checksums.yaml +7 -0
- data/README.md +69 -28
- data/lib/sandbox.sh +16 -0
- data/lib/spree.rb +0 -2
- metadata +30 -74
- data/lib/generators/spree/site/site_generator.rb +0 -18
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA1:
|
3
|
+
metadata.gz: 6ead8dd7b471a478398319da9d2c9c1832031058
|
4
|
+
data.tar.gz: 9f7725233eb6ddaa911f3f3e4120e34ebe97bf2d
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: af4f8aa2c151fd68afcd0edb9ab17316d0fcb7800d1a1c749ea832b5cc90bf47c796d34591b733692290c2802a7eb56dfd0cc89e39f133408c73a15263cf9a49
|
7
|
+
data.tar.gz: 95d2d2d9601807d9010918fc6e5a9df1e0310f2d12475fcfd22d20a60a9cd01d344abc62208498728b0df86515aa13976b4361857f580ea6fffce4af6f67b440
|
data/README.md
CHANGED
@@ -1,6 +1,7 @@
|
|
1
1
|
SUMMARY
|
2
2
|
-------
|
3
3
|
|
4
|
+
|
4
5
|
Spree is a complete open source e-commerce solution built with Ruby on Rails. It was originally developed by Sean Schofield
|
5
6
|
and is now maintained by a dedicated [core team](http://spreecommerce.com/core-team). You can find out more
|
6
7
|
by visiting the [Spree e-commerce project page](http://spreecommerce.com).
|
@@ -10,7 +11,6 @@ in a single set of [online documentation](http://spreecommerce.com/documentation
|
|
10
11
|
automatically require all of the necessary gem dependencies which are:
|
11
12
|
|
12
13
|
* spree_api
|
13
|
-
* spree_auth
|
14
14
|
* spree_cmd
|
15
15
|
* spree_core
|
16
16
|
* spree_dash
|
@@ -19,9 +19,9 @@ automatically require all of the necessary gem dependencies which are:
|
|
19
19
|
|
20
20
|
All of the gems are designed to work together to provide a fully functional e-commerce platform. It is also possible,
|
21
21
|
however, to use only the pieces you are interested in. So for example, you could use just the barebones spree\_core gem
|
22
|
-
and perhaps combine it with your own custom
|
22
|
+
and perhaps combine it with your own custom promotion scheme instead of using spree_promo.
|
23
23
|
|
24
|
-
[](https://codeclimate.com/github/spree/spree)
|
25
25
|
|
26
26
|
Installation
|
27
27
|
------------
|
@@ -29,10 +29,10 @@ Installation
|
|
29
29
|
The fastest way to get started is by using the spree command line tool
|
30
30
|
available in the spree gem which will add Spree to an existing Rails application.
|
31
31
|
|
32
|
-
$ gem install rails -v 3.2.
|
33
|
-
$ gem install spree
|
34
|
-
$ rails _3.2.
|
35
|
-
$ spree install my_store
|
32
|
+
$ gem install rails -v 3.2.14
|
33
|
+
$ gem install spree -v 1.3.4
|
34
|
+
$ rails _3.2.14_ new my_store
|
35
|
+
$ spree _1.3.4_ install my_store
|
36
36
|
|
37
37
|
This will add the Spree gem to your Gemfile, create initializers, copy migrations and
|
38
38
|
optionally generate sample products and orders.
|
@@ -52,7 +52,7 @@ You can manually add Spree to your Rails 3.2.x application. Add Spree to
|
|
52
52
|
your Gemfile.
|
53
53
|
|
54
54
|
```ruby
|
55
|
-
gem 'spree', '
|
55
|
+
gem 'spree', :git => 'git://github.com/spree/spree.git'
|
56
56
|
```
|
57
57
|
|
58
58
|
Update your bundle
|
@@ -126,41 +126,82 @@ If you want to remove precompiled assets (recommended before you commit to Git a
|
|
126
126
|
|
127
127
|
$ bundle exec rake assets:clean
|
128
128
|
|
129
|
+
Use Dedicated Spree Devise Authentication
|
130
|
+
-----------------------------------------
|
131
|
+
Add the following to your Gemfile
|
132
|
+
|
133
|
+
$ gem 'spree_auth_devise', :git => 'git://github.com/spree/spree_auth_devise'
|
134
|
+
|
135
|
+
Then run `bundle install`. Authentication will then work exactly as it did in previous versions of Spree.
|
136
|
+
|
137
|
+
This line is automatically added by the `spree install` command.
|
138
|
+
|
139
|
+
If you're installing this in a new Spree 1.2+ application, you'll need to install and run the migrations with
|
140
|
+
|
141
|
+
$ bundle exec rake spree_auth:install:migrations
|
142
|
+
$ bundle exec rake db:migrate
|
143
|
+
|
144
|
+
change the following line in `config/initializers/spree.rb`
|
145
|
+
```ruby
|
146
|
+
Spree.user_class = "Spree::LegacyUser"
|
147
|
+
```
|
148
|
+
to
|
149
|
+
```ruby
|
150
|
+
Spree.user_class = "Spree::User"
|
151
|
+
```
|
152
|
+
|
153
|
+
In order to set up the admin user for the application you should then run:
|
154
|
+
|
155
|
+
$ bundle exec rake spree_auth:admin:create
|
156
|
+
|
157
|
+
|
129
158
|
Running Tests
|
130
159
|
-------------
|
131
160
|
|
132
|
-
|
161
|
+
[](http://www.jetbrains.com/teamcity)
|
162
|
+
|
163
|
+
We use [TeamCity](http://www.jetbrains.com/teamcity/) to run the tests for Spree.
|
133
164
|
|
134
|
-
|
135
|
-
|
165
|
+
You can see the build statuses at [http://ci.spreecommerce.com](http://ci.spreecommerce.com/guestLogin.html?guest=1).
|
166
|
+
|
167
|
+
---
|
136
168
|
|
137
169
|
Each gem contains its own series of tests, and for each directory, you need to do a quick one-time
|
138
170
|
creation of a test application and then you can use it to run the tests. For example, to run the
|
139
171
|
tests for the core project.
|
140
172
|
|
141
|
-
|
142
|
-
|
143
|
-
|
144
|
-
|
145
|
-
|
146
|
-
generate test applications for all the facets:
|
147
|
-
|
148
|
-
$ bundle exec rake test_app
|
149
|
-
|
150
|
-
You can run all of the tests inside a facet by also running
|
151
|
-
this command:
|
152
|
-
|
153
|
-
$ cd core
|
154
|
-
$ bundle exec rake
|
173
|
+
```shell
|
174
|
+
cd core
|
175
|
+
bundle exec rake test_app
|
176
|
+
bundle exec rspec spec
|
177
|
+
```
|
155
178
|
|
156
179
|
If you want to run specs for only a single spec file
|
157
|
-
|
158
|
-
|
180
|
+
```shell
|
181
|
+
bundle exec rspec spec/models/state_spec.rb
|
182
|
+
```
|
159
183
|
|
160
184
|
If you want to run a particular line of spec
|
185
|
+
```shell
|
186
|
+
bundle exec rspec spec/models/state_spec.rb:7
|
187
|
+
```
|
188
|
+
|
189
|
+
You can also enable fail fast in order to stop tests at the first failure
|
190
|
+
```shell
|
191
|
+
FAIL_FAST=true bundle exec rspec spec/models/state_spec.rb
|
192
|
+
```
|
161
193
|
|
162
|
-
|
194
|
+
If you want to run the simplecov code coverage report
|
195
|
+
```shell
|
196
|
+
COVERAGE=true bundle exec rspec spec
|
197
|
+
```
|
163
198
|
|
199
|
+
If you're working on multiple facets of Spree, you may want
|
200
|
+
to run this command at the root of the Spree project to
|
201
|
+
generate test applications and run specs for all the facets:
|
202
|
+
```shell
|
203
|
+
bash build.sh
|
204
|
+
```
|
164
205
|
|
165
206
|
Contributing
|
166
207
|
------------
|
data/lib/sandbox.sh
ADDED
@@ -0,0 +1,16 @@
|
|
1
|
+
# Used in the sandbox rake task in Rakefile
|
2
|
+
#!/bin/bash
|
3
|
+
|
4
|
+
rm -rf ./sandbox
|
5
|
+
bundle exec rails new sandbox --skip-bundle
|
6
|
+
if [ ! -d "sandbox" ]; then
|
7
|
+
echo 'sandbox rails application failed'
|
8
|
+
exit 1
|
9
|
+
fi
|
10
|
+
|
11
|
+
cd ./sandbox
|
12
|
+
echo "gem 'spree', :path => '..'" >> Gemfile
|
13
|
+
echo "gem 'spree_auth_devise', :github => 'spree/spree_auth_devise', :branch => '1-3-stable'" >> Gemfile
|
14
|
+
|
15
|
+
bundle install --gemfile Gemfile
|
16
|
+
bundle exec rails g spree:install --auto-accept --user_class=Spree::User
|
data/lib/spree.rb
CHANGED
metadata
CHANGED
@@ -1,129 +1,86 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: spree
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
|
5
|
-
version: 1.1.6
|
4
|
+
version: 1.3.5
|
6
5
|
platform: ruby
|
7
6
|
authors:
|
8
7
|
- Sean Schofield
|
9
8
|
autorequire:
|
10
9
|
bindir: bin
|
11
10
|
cert_chain: []
|
12
|
-
date:
|
11
|
+
date: 2014-01-23 00:00:00.000000000 Z
|
13
12
|
dependencies:
|
14
13
|
- !ruby/object:Gem::Dependency
|
15
|
-
type: :runtime
|
16
|
-
version_requirements: !ruby/object:Gem::Requirement
|
17
|
-
none: false
|
18
|
-
requirements:
|
19
|
-
- - '='
|
20
|
-
- !ruby/object:Gem::Version
|
21
|
-
version: 1.1.6
|
22
14
|
name: spree_core
|
23
|
-
prerelease: false
|
24
15
|
requirement: !ruby/object:Gem::Requirement
|
25
|
-
none: false
|
26
16
|
requirements:
|
27
17
|
- - '='
|
28
18
|
- !ruby/object:Gem::Version
|
29
|
-
version: 1.
|
30
|
-
- !ruby/object:Gem::Dependency
|
19
|
+
version: 1.3.5
|
31
20
|
type: :runtime
|
32
|
-
version_requirements: !ruby/object:Gem::Requirement
|
33
|
-
none: false
|
34
|
-
requirements:
|
35
|
-
- - '='
|
36
|
-
- !ruby/object:Gem::Version
|
37
|
-
version: 1.1.6
|
38
|
-
name: spree_auth
|
39
21
|
prerelease: false
|
40
|
-
requirement: !ruby/object:Gem::Requirement
|
41
|
-
none: false
|
42
|
-
requirements:
|
43
|
-
- - '='
|
44
|
-
- !ruby/object:Gem::Version
|
45
|
-
version: 1.1.6
|
46
|
-
- !ruby/object:Gem::Dependency
|
47
|
-
type: :runtime
|
48
22
|
version_requirements: !ruby/object:Gem::Requirement
|
49
|
-
none: false
|
50
23
|
requirements:
|
51
24
|
- - '='
|
52
25
|
- !ruby/object:Gem::Version
|
53
|
-
version: 1.
|
26
|
+
version: 1.3.5
|
27
|
+
- !ruby/object:Gem::Dependency
|
54
28
|
name: spree_api
|
55
|
-
prerelease: false
|
56
29
|
requirement: !ruby/object:Gem::Requirement
|
57
|
-
none: false
|
58
30
|
requirements:
|
59
31
|
- - '='
|
60
32
|
- !ruby/object:Gem::Version
|
61
|
-
version: 1.
|
62
|
-
- !ruby/object:Gem::Dependency
|
33
|
+
version: 1.3.5
|
63
34
|
type: :runtime
|
35
|
+
prerelease: false
|
64
36
|
version_requirements: !ruby/object:Gem::Requirement
|
65
|
-
none: false
|
66
37
|
requirements:
|
67
38
|
- - '='
|
68
39
|
- !ruby/object:Gem::Version
|
69
|
-
version: 1.
|
70
|
-
|
71
|
-
|
40
|
+
version: 1.3.5
|
41
|
+
- !ruby/object:Gem::Dependency
|
42
|
+
name: spree_sample
|
72
43
|
requirement: !ruby/object:Gem::Requirement
|
73
|
-
none: false
|
74
44
|
requirements:
|
75
45
|
- - '='
|
76
46
|
- !ruby/object:Gem::Version
|
77
|
-
version: 1.
|
78
|
-
- !ruby/object:Gem::Dependency
|
47
|
+
version: 1.3.5
|
79
48
|
type: :runtime
|
49
|
+
prerelease: false
|
80
50
|
version_requirements: !ruby/object:Gem::Requirement
|
81
|
-
none: false
|
82
51
|
requirements:
|
83
52
|
- - '='
|
84
53
|
- !ruby/object:Gem::Version
|
85
|
-
version: 1.
|
86
|
-
|
87
|
-
|
54
|
+
version: 1.3.5
|
55
|
+
- !ruby/object:Gem::Dependency
|
56
|
+
name: spree_promo
|
88
57
|
requirement: !ruby/object:Gem::Requirement
|
89
|
-
none: false
|
90
58
|
requirements:
|
91
59
|
- - '='
|
92
60
|
- !ruby/object:Gem::Version
|
93
|
-
version: 1.
|
94
|
-
- !ruby/object:Gem::Dependency
|
61
|
+
version: 1.3.5
|
95
62
|
type: :runtime
|
63
|
+
prerelease: false
|
96
64
|
version_requirements: !ruby/object:Gem::Requirement
|
97
|
-
none: false
|
98
65
|
requirements:
|
99
66
|
- - '='
|
100
67
|
- !ruby/object:Gem::Version
|
101
|
-
version: 1.
|
102
|
-
|
103
|
-
|
68
|
+
version: 1.3.5
|
69
|
+
- !ruby/object:Gem::Dependency
|
70
|
+
name: spree_cmd
|
104
71
|
requirement: !ruby/object:Gem::Requirement
|
105
|
-
none: false
|
106
72
|
requirements:
|
107
73
|
- - '='
|
108
74
|
- !ruby/object:Gem::Version
|
109
|
-
version: 1.
|
110
|
-
- !ruby/object:Gem::Dependency
|
75
|
+
version: 1.3.5
|
111
76
|
type: :runtime
|
112
|
-
version_requirements: !ruby/object:Gem::Requirement
|
113
|
-
none: false
|
114
|
-
requirements:
|
115
|
-
- - '='
|
116
|
-
- !ruby/object:Gem::Version
|
117
|
-
version: 1.1.6
|
118
|
-
name: spree_cmd
|
119
77
|
prerelease: false
|
120
|
-
|
121
|
-
none: false
|
78
|
+
version_requirements: !ruby/object:Gem::Requirement
|
122
79
|
requirements:
|
123
80
|
- - '='
|
124
81
|
- !ruby/object:Gem::Version
|
125
|
-
version: 1.
|
126
|
-
description:
|
82
|
+
version: 1.3.5
|
83
|
+
description: 'Spree is an open source e-commerce framework for Ruby on Rails. Join
|
127
84
|
us on the spree-user google group or in #spree on IRC'
|
128
85
|
email: sean@spreecommerce.com
|
129
86
|
executables: []
|
@@ -131,32 +88,31 @@ extensions: []
|
|
131
88
|
extra_rdoc_files: []
|
132
89
|
files:
|
133
90
|
- README.md
|
134
|
-
- lib/
|
91
|
+
- lib/sandbox.sh
|
135
92
|
- lib/spree.rb
|
136
93
|
homepage: http://spreecommerce.com
|
137
94
|
licenses:
|
138
95
|
- BSD-3
|
96
|
+
metadata: {}
|
139
97
|
post_install_message:
|
140
98
|
rdoc_options: []
|
141
99
|
require_paths:
|
142
100
|
- lib
|
143
101
|
required_ruby_version: !ruby/object:Gem::Requirement
|
144
|
-
none: false
|
145
102
|
requirements:
|
146
|
-
- -
|
103
|
+
- - ">="
|
147
104
|
- !ruby/object:Gem::Version
|
148
105
|
version: 1.8.7
|
149
106
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
150
|
-
none: false
|
151
107
|
requirements:
|
152
|
-
- -
|
108
|
+
- - ">="
|
153
109
|
- !ruby/object:Gem::Version
|
154
110
|
version: 1.3.6
|
155
111
|
requirements:
|
156
112
|
- none
|
157
113
|
rubyforge_project:
|
158
|
-
rubygems_version:
|
114
|
+
rubygems_version: 2.2.0
|
159
115
|
signing_key:
|
160
|
-
specification_version:
|
116
|
+
specification_version: 4
|
161
117
|
summary: Full-stack e-commerce framework for Ruby on Rails.
|
162
118
|
test_files: []
|
@@ -1,18 +0,0 @@
|
|
1
|
-
require 'rails/generators'
|
2
|
-
require 'generators/spree/install/install_generator'
|
3
|
-
|
4
|
-
module Spree
|
5
|
-
class SiteGenerator < Rails::Generators::Base
|
6
|
-
class_option :auto_accept, :type => :boolean, :default => false, :aliases => '-A', :desc => "Answer yes to all prompts"
|
7
|
-
|
8
|
-
def run_install_generator
|
9
|
-
if options[:auto_accept]
|
10
|
-
Spree::InstallGenerator.start ["--auto-accept"]
|
11
|
-
else
|
12
|
-
Spree::InstallGenerator.start
|
13
|
-
end
|
14
|
-
|
15
|
-
puts ActiveSupport::Deprecation.warn "rails g spree:site has been deprecated and will be removed in the future, use rails g spree:install instead."
|
16
|
-
end
|
17
|
-
end
|
18
|
-
end
|