Skip to content

Commit

Permalink
Spree 2.4.x compatibility
Browse files Browse the repository at this point in the history
  • Loading branch information
swrobel committed Nov 11, 2014
1 parent 0b03899 commit de524f1
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 4 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
## 2.4.0

* Spree ~> 2.4.0 compatibility

## 2.3.0

* Spree ~> 2.3.0 compatibility
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
Spree Zero Stock Products
======================
[![Build Status](http://img.shields.io/travis/swrobel/spree_zero_stock_products/2-3-stable.svg?style=flat)](https://travis-ci.org/swrobel/spree_zero_stock_products) [![Dependency Status](http://img.shields.io/gemnasium/swrobel/spree_zero_stock_products.svg?style=flat)](https://gemnasium.com/swrobel/spree_zero_stock_products) [![Coverage Status](http://img.shields.io/coveralls/swrobel/spree_zero_stock_products/2-3-stable.svg?style=flat)](https://coveralls.io/r/swrobel/spree_zero_stock_products) [![Code Climate]( http://img.shields.io/codeclimate/github/swrobel/spree_zero_stock_products.svg?style=flat)](https://codeclimate.com/github/swrobel/spree_zero_stock_products)
[![Build Status](http://img.shields.io/travis/swrobel/spree_zero_stock_products/2-4-stable.svg?style=flat)](https://travis-ci.org/swrobel/spree_zero_stock_products) [![Dependency Status](http://img.shields.io/gemnasium/swrobel/spree_zero_stock_products.svg?style=flat)](https://gemnasium.com/swrobel/spree_zero_stock_products) [![Coverage Status](http://img.shields.io/coveralls/swrobel/spree_zero_stock_products/2-4-stable.svg?style=flat)](https://coveralls.io/r/swrobel/spree_zero_stock_products) [![Code Climate]( http://img.shields.io/codeclimate/github/swrobel/spree_zero_stock_products.svg?style=flat)](https://codeclimate.com/github/swrobel/spree_zero_stock_products)

Restore the `show_zero_stock_products` preference & related functionality in Spree 2.0+

Expand Down
2 changes: 1 addition & 1 deletion app/models/taxon_decorator.rb
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
Spree::Taxon.class_eval do
# Returns products in this taxon that are active (and in stock, depending on settings)
durably_decorate :active_products, mode: 'soft', sha: 'd2da9b539628597db39f535ea8aa2da241d61881' do
durably_decorate :active_products, mode: 'soft', sha: '3661de088762ab6a5b880446ca6296200b7521eb' do
if Spree::Config[:show_zero_stock_products]
original_active_products
else
Expand Down
4 changes: 2 additions & 2 deletions spree_zero_stock_products.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
Gem::Specification.new do |s|
s.platform = Gem::Platform::RUBY
s.name = 'spree_zero_stock_products'
s.version = '2.3.0'
s.version = '2.4.0'
s.summary = 'Restore show_zero_stock_products functionality in Spree 2.0+'
s.description = 'Restore show_zero_stock_products functionality in Spree 2.0+'
s.required_ruby_version = '>= 1.9.3'
Expand All @@ -17,7 +17,7 @@ Gem::Specification.new do |s|
s.require_path = 'lib'
s.requirements << 'none'

s.add_dependency 'spree_core', '~> 2.3.0'
s.add_dependency 'spree_core', '~> 2.4.0.rc'
s.add_dependency 'durable_decorator', '~> 0.2.0'

s.add_development_dependency 'database_cleaner'
Expand Down

0 comments on commit de524f1

Please sign in to comment.