spree_zero_stock_products 2.1.0 → 2.2.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.gitignore +3 -0
- data/.travis.yml +4 -5
- data/CHANGELOG.md +9 -4
- data/README.md +29 -19
- data/Versionfile +3 -1
- data/spree_zero_stock_products.gemspec +3 -3
- metadata +28 -29
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: f24c9eac70e202faf1f758f32d77df59a4615f7f
|
4
|
+
data.tar.gz: 53ae8321af78437dd12233824c9e054fbcac523c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 0d9c3daf77e99103a6efe0e624d88b5d6644927622b9762fe1924bd453e841d659d76184a8dae622b106dec4cbaa5d1f813ef59011a6d477a06d0ca672bbd412
|
7
|
+
data.tar.gz: e3386758e325996db1e1a3dcef6c64a1d5c588213fa5637f3db94d98a731b2ebf4037956dc1c09bc4d2e62e74cda21c82de2fd105ffad55fea6b160a6e073f93
|
data/.gitignore
CHANGED
data/.travis.yml
CHANGED
@@ -5,8 +5,10 @@ script:
|
|
5
5
|
rvm:
|
6
6
|
- 1.9.3
|
7
7
|
- 2.0.0
|
8
|
-
-
|
8
|
+
- 2.1.0
|
9
9
|
- jruby-19mode
|
10
|
+
- jruby-20mode
|
11
|
+
- rbx
|
10
12
|
env:
|
11
13
|
- DB=sqlite
|
12
14
|
- DB=mysql
|
@@ -14,10 +16,7 @@ env:
|
|
14
16
|
language: ruby
|
15
17
|
matrix:
|
16
18
|
allow_failures:
|
17
|
-
- rvm:
|
18
|
-
exclude:
|
19
|
-
- rvm: jruby-19mode
|
20
|
-
env: DB=mysql
|
19
|
+
- rvm: rbx
|
21
20
|
notifications:
|
22
21
|
recipients:
|
23
22
|
- swrobel@gmail.com
|
data/CHANGELOG.md
CHANGED
@@ -1,10 +1,14 @@
|
|
1
|
-
|
1
|
+
## 2.2.0
|
2
|
+
|
3
|
+
* Spree ~> 2.2.0 compatibility
|
2
4
|
|
3
5
|
## 2.1.0
|
4
|
-
|
6
|
+
|
7
|
+
* Spree ~> 2.1.0 compatibility
|
5
8
|
|
6
9
|
## 2.0.2
|
7
|
-
|
10
|
+
|
11
|
+
* Fix for Spree >= 2.0.5 because StockItems can now be deleted
|
8
12
|
|
9
13
|
## 2.0.1
|
10
14
|
|
@@ -13,4 +17,5 @@ Fix for Spree >= 2.0.5 because StockItems can now be deleted
|
|
13
17
|
* Tested against jruby, postgres & mysql
|
14
18
|
|
15
19
|
## 2.0.0
|
16
|
-
|
20
|
+
|
21
|
+
* Initial release
|
data/README.md
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
Spree Zero Stock Products
|
2
2
|
======================
|
3
|
-
[![Build Status](
|
3
|
+
[![Build Status](http://img.shields.io/travis/swrobel/spree_zero_stock_products/2-2-stable.svg)](https://travis-ci.org/swrobel/spree_zero_stock_products) [![Dependency Status](http://img.shields.io/gemnasium/swrobel/spree_zero_stock_products.svg)](https://gemnasium.com/swrobel/spree_zero_stock_products) [![Coverage Status](http://img.shields.io/coveralls/swrobel/spree_zero_stock_products/2-2-stable.svg)](https://coveralls.io/r/swrobel/spree_zero_stock_products) [![Code Climate]( http://img.shields.io/codeclimate/github/swrobel/spree_zero_stock_products.svg)](https://codeclimate.com/github/swrobel/spree_zero_stock_products)
|
4
4
|
|
5
5
|
Restore the `show_zero_stock_products` preference & related functionality in Spree 2.0+
|
6
6
|
|
@@ -11,36 +11,46 @@ Set it to `false` to avoid showing products with zero stock on any product listi
|
|
11
11
|
Installation
|
12
12
|
------------
|
13
13
|
|
14
|
-
Add spree_zero_stock_products to your Gemfile:
|
14
|
+
1. Add spree_zero_stock_products to your Gemfile:
|
15
15
|
|
16
|
-
```ruby
|
17
|
-
gem 'spree_zero_stock_products'
|
18
|
-
```
|
16
|
+
```ruby
|
17
|
+
gem 'spree_zero_stock_products'
|
18
|
+
```
|
19
19
|
|
20
|
-
Bundle your dependencies:
|
20
|
+
1. Bundle your dependencies:
|
21
21
|
|
22
|
-
```shell
|
23
|
-
bundle
|
24
|
-
```
|
22
|
+
```shell
|
23
|
+
bundle
|
24
|
+
```
|
25
25
|
|
26
|
-
Set the preference in an intializer such as `config/initializers/spree.rb`:
|
26
|
+
1. Set the preference in an intializer such as `config/initializers/spree.rb`:
|
27
27
|
|
28
|
-
```ruby
|
29
|
-
Spree.config do |config|
|
30
|
-
|
31
|
-
end
|
32
|
-
```
|
28
|
+
```ruby
|
29
|
+
Spree.config do |config|
|
30
|
+
config.show_zero_stock_products = false # Default is true
|
31
|
+
end
|
32
|
+
```
|
33
|
+
|
34
|
+
1. Profit.
|
35
|
+
|
36
|
+
Versioning
|
37
|
+
----------
|
38
|
+
Versions files the pattern MAJOR.MINOR.PATCH [SemVer-style](http://semver.org/). MAJOR.MINOR version will always match the Spree version that gem is compatible with. PATCH version is incremented as new bugfix releases of this gem come out, indepently of new Spree PATCH versions.
|
39
|
+
|
40
|
+
For example, version 2.1.0 is compatible with the Spree 2.1.x series, while version 2.0.4 is compatible with the Spree 2.0.x series.
|
33
41
|
|
34
|
-
|
42
|
+
You should not need to worry about this, as the gemspec has the appropriate constraints. But hey, the more you know.
|
35
43
|
|
36
44
|
Testing
|
37
45
|
-------
|
38
46
|
This extension is tested against the following rubies:
|
39
47
|
|
40
48
|
* 1.9.3
|
41
|
-
* 2.0
|
42
|
-
*
|
43
|
-
*
|
49
|
+
* 2.0
|
50
|
+
* 2.1
|
51
|
+
* jruby-19mode
|
52
|
+
* jruby-20mode
|
53
|
+
* rubinius (experimental)
|
44
54
|
|
45
55
|
As well as the following databases:
|
46
56
|
|
data/Versionfile
CHANGED
@@ -9,5 +9,7 @@
|
|
9
9
|
# '0.70.x' => { :branch => '0-70-stable' }
|
10
10
|
# '0.40.x' => { :tag => 'v1.0.0', :version => '1.0.0' }
|
11
11
|
|
12
|
-
"2.
|
12
|
+
"2.3.x" => { :branch => "master" }
|
13
|
+
"2.2.x" => { :branch => "2-2-stable" }
|
14
|
+
"2.1.x" => { :branch => "2-1-stable" }
|
13
15
|
"2.0.x" => { :branch => "2-0-stable" }
|
@@ -2,7 +2,7 @@
|
|
2
2
|
Gem::Specification.new do |s|
|
3
3
|
s.platform = Gem::Platform::RUBY
|
4
4
|
s.name = 'spree_zero_stock_products'
|
5
|
-
s.version = '2.
|
5
|
+
s.version = '2.2.0'
|
6
6
|
s.summary = 'Restore show_zero_stock_products functionality in Spree 2.0+'
|
7
7
|
s.description = 'Restore show_zero_stock_products functionality in Spree 2.0+'
|
8
8
|
s.required_ruby_version = '>= 1.9.3'
|
@@ -17,13 +17,13 @@ Gem::Specification.new do |s|
|
|
17
17
|
s.require_path = 'lib'
|
18
18
|
s.requirements << 'none'
|
19
19
|
|
20
|
-
s.add_dependency 'spree_core', '~> 2.
|
20
|
+
s.add_dependency 'spree_core', '~> 2.2.0'
|
21
21
|
s.add_dependency 'durable_decorator', '~> 0.2.0'
|
22
22
|
|
23
23
|
s.add_development_dependency 'factory_girl', '~> 4.2'
|
24
24
|
s.add_development_dependency 'ffaker'
|
25
25
|
s.add_development_dependency 'rspec-rails', '~> 2.13'
|
26
26
|
s.add_development_dependency 'simplecov'
|
27
|
-
s.add_development_dependency 'durable_decorator_rails', '~> 0.
|
27
|
+
s.add_development_dependency 'durable_decorator_rails', '~> 0.2.0'
|
28
28
|
s.add_development_dependency 'coveralls'
|
29
29
|
end
|
metadata
CHANGED
@@ -1,125 +1,125 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: spree_zero_stock_products
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.
|
4
|
+
version: 2.2.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Stefan Wrobel
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2014-03-12 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: spree_core
|
15
15
|
requirement: !ruby/object:Gem::Requirement
|
16
16
|
requirements:
|
17
|
-
- - ~>
|
17
|
+
- - "~>"
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: 2.
|
19
|
+
version: 2.2.0
|
20
20
|
type: :runtime
|
21
21
|
prerelease: false
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
23
23
|
requirements:
|
24
|
-
- - ~>
|
24
|
+
- - "~>"
|
25
25
|
- !ruby/object:Gem::Version
|
26
|
-
version: 2.
|
26
|
+
version: 2.2.0
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: durable_decorator
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
30
30
|
requirements:
|
31
|
-
- - ~>
|
31
|
+
- - "~>"
|
32
32
|
- !ruby/object:Gem::Version
|
33
33
|
version: 0.2.0
|
34
34
|
type: :runtime
|
35
35
|
prerelease: false
|
36
36
|
version_requirements: !ruby/object:Gem::Requirement
|
37
37
|
requirements:
|
38
|
-
- - ~>
|
38
|
+
- - "~>"
|
39
39
|
- !ruby/object:Gem::Version
|
40
40
|
version: 0.2.0
|
41
41
|
- !ruby/object:Gem::Dependency
|
42
42
|
name: factory_girl
|
43
43
|
requirement: !ruby/object:Gem::Requirement
|
44
44
|
requirements:
|
45
|
-
- - ~>
|
45
|
+
- - "~>"
|
46
46
|
- !ruby/object:Gem::Version
|
47
47
|
version: '4.2'
|
48
48
|
type: :development
|
49
49
|
prerelease: false
|
50
50
|
version_requirements: !ruby/object:Gem::Requirement
|
51
51
|
requirements:
|
52
|
-
- - ~>
|
52
|
+
- - "~>"
|
53
53
|
- !ruby/object:Gem::Version
|
54
54
|
version: '4.2'
|
55
55
|
- !ruby/object:Gem::Dependency
|
56
56
|
name: ffaker
|
57
57
|
requirement: !ruby/object:Gem::Requirement
|
58
58
|
requirements:
|
59
|
-
- -
|
59
|
+
- - ">="
|
60
60
|
- !ruby/object:Gem::Version
|
61
61
|
version: '0'
|
62
62
|
type: :development
|
63
63
|
prerelease: false
|
64
64
|
version_requirements: !ruby/object:Gem::Requirement
|
65
65
|
requirements:
|
66
|
-
- -
|
66
|
+
- - ">="
|
67
67
|
- !ruby/object:Gem::Version
|
68
68
|
version: '0'
|
69
69
|
- !ruby/object:Gem::Dependency
|
70
70
|
name: rspec-rails
|
71
71
|
requirement: !ruby/object:Gem::Requirement
|
72
72
|
requirements:
|
73
|
-
- - ~>
|
73
|
+
- - "~>"
|
74
74
|
- !ruby/object:Gem::Version
|
75
75
|
version: '2.13'
|
76
76
|
type: :development
|
77
77
|
prerelease: false
|
78
78
|
version_requirements: !ruby/object:Gem::Requirement
|
79
79
|
requirements:
|
80
|
-
- - ~>
|
80
|
+
- - "~>"
|
81
81
|
- !ruby/object:Gem::Version
|
82
82
|
version: '2.13'
|
83
83
|
- !ruby/object:Gem::Dependency
|
84
84
|
name: simplecov
|
85
85
|
requirement: !ruby/object:Gem::Requirement
|
86
86
|
requirements:
|
87
|
-
- -
|
87
|
+
- - ">="
|
88
88
|
- !ruby/object:Gem::Version
|
89
89
|
version: '0'
|
90
90
|
type: :development
|
91
91
|
prerelease: false
|
92
92
|
version_requirements: !ruby/object:Gem::Requirement
|
93
93
|
requirements:
|
94
|
-
- -
|
94
|
+
- - ">="
|
95
95
|
- !ruby/object:Gem::Version
|
96
96
|
version: '0'
|
97
97
|
- !ruby/object:Gem::Dependency
|
98
98
|
name: durable_decorator_rails
|
99
99
|
requirement: !ruby/object:Gem::Requirement
|
100
100
|
requirements:
|
101
|
-
- - ~>
|
101
|
+
- - "~>"
|
102
102
|
- !ruby/object:Gem::Version
|
103
|
-
version: 0.
|
103
|
+
version: 0.2.0
|
104
104
|
type: :development
|
105
105
|
prerelease: false
|
106
106
|
version_requirements: !ruby/object:Gem::Requirement
|
107
107
|
requirements:
|
108
|
-
- - ~>
|
108
|
+
- - "~>"
|
109
109
|
- !ruby/object:Gem::Version
|
110
|
-
version: 0.
|
110
|
+
version: 0.2.0
|
111
111
|
- !ruby/object:Gem::Dependency
|
112
112
|
name: coveralls
|
113
113
|
requirement: !ruby/object:Gem::Requirement
|
114
114
|
requirements:
|
115
|
-
- -
|
115
|
+
- - ">="
|
116
116
|
- !ruby/object:Gem::Version
|
117
117
|
version: '0'
|
118
118
|
type: :development
|
119
119
|
prerelease: false
|
120
120
|
version_requirements: !ruby/object:Gem::Requirement
|
121
121
|
requirements:
|
122
|
-
- -
|
122
|
+
- - ">="
|
123
123
|
- !ruby/object:Gem::Version
|
124
124
|
version: '0'
|
125
125
|
description: Restore show_zero_stock_products functionality in Spree 2.0+
|
@@ -128,9 +128,9 @@ executables: []
|
|
128
128
|
extensions: []
|
129
129
|
extra_rdoc_files: []
|
130
130
|
files:
|
131
|
-
- .gitignore
|
132
|
-
- .rspec
|
133
|
-
- .travis.yml
|
131
|
+
- ".gitignore"
|
132
|
+
- ".rspec"
|
133
|
+
- ".travis.yml"
|
134
134
|
- CHANGELOG.md
|
135
135
|
- Gemfile
|
136
136
|
- LICENSE
|
@@ -161,18 +161,18 @@ require_paths:
|
|
161
161
|
- lib
|
162
162
|
required_ruby_version: !ruby/object:Gem::Requirement
|
163
163
|
requirements:
|
164
|
-
- -
|
164
|
+
- - ">="
|
165
165
|
- !ruby/object:Gem::Version
|
166
166
|
version: 1.9.3
|
167
167
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
168
168
|
requirements:
|
169
|
-
- -
|
169
|
+
- - ">="
|
170
170
|
- !ruby/object:Gem::Version
|
171
171
|
version: '0'
|
172
172
|
requirements:
|
173
173
|
- none
|
174
174
|
rubyforge_project:
|
175
|
-
rubygems_version: 2.
|
175
|
+
rubygems_version: 2.2.2
|
176
176
|
signing_key:
|
177
177
|
specification_version: 4
|
178
178
|
summary: Restore show_zero_stock_products functionality in Spree 2.0+
|
@@ -181,4 +181,3 @@ test_files:
|
|
181
181
|
- spec/models/spree/product/scopes_spec.rb
|
182
182
|
- spec/models/spree/taxon/taxon_spec.rb
|
183
183
|
- spec/spec_helper.rb
|
184
|
-
has_rdoc:
|